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

org.vision.visionjsdk.proto.Response Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: core/response.proto

package org.vision.visionjsdk.proto;

public final class Response {
  private Response() {}
  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 BlockExtentionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protocol.BlockExtention)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return list
     */
    java.util.List
        getTransactionsList();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @param index index
     * @return TransactionExtention
     */
    org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index);
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return int
     */
    int getTransactionsCount();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return list
     */
    java.util.List
        getTransactionsOrBuilderList();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @param index index
     * @return TransactionExtentionOrBuilder
     */
    org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
        int index);

    /**
     * .protocol.BlockHeader block_header = 2;
     * @return Whether the blockHeader field is set.
     */
    boolean hasBlockHeader();
    /**
     * .protocol.BlockHeader block_header = 2;
     * @return The blockHeader.
     */
    org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader();
    /**
     * .protocol.BlockHeader block_header = 2;
     * @return BlockHeaderOrBuilder
     */
    org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder();

    /**
     * bytes blockid = 3;
     * @return The blockid.
     */
    com.google.protobuf.ByteString getBlockid();
  }
  /**
   * Protobuf type {@code protocol.BlockExtention}
   */
  public static final class BlockExtention extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.BlockExtention)
      BlockExtentionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockExtention.newBuilder() to construct.
    private BlockExtention(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BlockExtention() {
      transactions_ = java.util.Collections.emptyList();
      blockid_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockExtention(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                transactions_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              transactions_.add(
                  input.readMessage(org.vision.visionjsdk.proto.Response.TransactionExtention.parser(), extensionRegistry));
              break;
            }
            case 18: {
              org.vision.visionjsdk.proto.Chain.BlockHeader.Builder subBuilder = null;
              if (blockHeader_ != null) {
                subBuilder = blockHeader_.toBuilder();
              }
              blockHeader_ = input.readMessage(org.vision.visionjsdk.proto.Chain.BlockHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(blockHeader_);
                blockHeader_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {

              blockid_ = 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)) {
          transactions_ = java.util.Collections.unmodifiableList(transactions_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.vision.visionjsdk.proto.Response.BlockExtention.class, org.vision.visionjsdk.proto.Response.BlockExtention.Builder.class);
    }

    public static final int TRANSACTIONS_FIELD_NUMBER = 1;
    private java.util.List transactions_;
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return list
     */
    @java.lang.Override
    public java.util.List getTransactionsList() {
      return transactions_;
    }
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return list
     */
    @java.lang.Override
    public java.util.List
        getTransactionsOrBuilderList() {
      return transactions_;
    }
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @return int
     */
    @java.lang.Override
    public int getTransactionsCount() {
      return transactions_.size();
    }
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @param index index
     * @return TransactionExtention
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index) {
      return transactions_.get(index);
    }
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     * @param index index
     * @return TransactionExtentionOrBuilder
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
        int index) {
      return transactions_.get(index);
    }

    public static final int BLOCK_HEADER_FIELD_NUMBER = 2;
    private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_;
    /**
     * .protocol.BlockHeader block_header = 2;
     * @return Whether the blockHeader field is set.
     */
    @java.lang.Override
    public boolean hasBlockHeader() {
      return blockHeader_ != null;
    }
    /**
     * .protocol.BlockHeader block_header = 2;
     * @return The blockHeader.
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() {
      return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
    }
    /**
     * .protocol.BlockHeader block_header = 2;
     * @return BlockHeaderOrBuilder
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
      return getBlockHeader();
    }

    public static final int BLOCKID_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString blockid_;
    /**
     * bytes blockid = 3;
     * @return The blockid.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getBlockid() {
      return blockid_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < transactions_.size(); i++) {
        output.writeMessage(1, transactions_.get(i));
      }
      if (blockHeader_ != null) {
        output.writeMessage(2, getBlockHeader());
      }
      if (!blockid_.isEmpty()) {
        output.writeBytes(3, blockid_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < transactions_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, transactions_.get(i));
      }
      if (blockHeader_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getBlockHeader());
      }
      if (!blockid_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, blockid_);
      }
      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.vision.visionjsdk.proto.Response.BlockExtention)) {
        return super.equals(obj);
      }
      org.vision.visionjsdk.proto.Response.BlockExtention other = (org.vision.visionjsdk.proto.Response.BlockExtention) obj;

      if (!getTransactionsList()
          .equals(other.getTransactionsList())) return false;
      if (hasBlockHeader() != other.hasBlockHeader()) return false;
      if (hasBlockHeader()) {
        if (!getBlockHeader()
            .equals(other.getBlockHeader())) return false;
      }
      if (!getBlockid()
          .equals(other.getBlockid())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 46;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getTransactionsCount() > 0) {
        hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getTransactionsList().hashCode();
      }
      if (hasBlockHeader()) {
        hash = (37 * hash) + BLOCK_HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getBlockHeader().hashCode();
      }
      hash = (37 * hash) + BLOCKID_FIELD_NUMBER;
      hash = (53 * hash) + getBlockid().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention 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.vision.visionjsdk.proto.Response.BlockExtention parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention 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.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockExtention 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.vision.visionjsdk.proto.Response.BlockExtention 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 protocol.BlockExtention}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.BlockExtention)
        org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.vision.visionjsdk.proto.Response.BlockExtention.class, org.vision.visionjsdk.proto.Response.BlockExtention.Builder.class);
      }

      // Construct using org.vision.visionjsdk.proto.Response.BlockExtention.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTransactionsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (transactionsBuilder_ == null) {
          transactions_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          transactionsBuilder_.clear();
        }
        if (blockHeaderBuilder_ == null) {
          blockHeader_ = null;
        } else {
          blockHeader_ = null;
          blockHeaderBuilder_ = null;
        }
        blockid_ = com.google.protobuf.ByteString.EMPTY;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockExtention getDefaultInstanceForType() {
        return org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance();
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockExtention build() {
        org.vision.visionjsdk.proto.Response.BlockExtention result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockExtention buildPartial() {
        org.vision.visionjsdk.proto.Response.BlockExtention result = new org.vision.visionjsdk.proto.Response.BlockExtention(this);
        int from_bitField0_ = bitField0_;
        if (transactionsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            transactions_ = java.util.Collections.unmodifiableList(transactions_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.transactions_ = transactions_;
        } else {
          result.transactions_ = transactionsBuilder_.build();
        }
        if (blockHeaderBuilder_ == null) {
          result.blockHeader_ = blockHeader_;
        } else {
          result.blockHeader_ = blockHeaderBuilder_.build();
        }
        result.blockid_ = blockid_;
        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.vision.visionjsdk.proto.Response.BlockExtention) {
          return mergeFrom((org.vision.visionjsdk.proto.Response.BlockExtention)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockExtention other) {
        if (other == org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance()) return this;
        if (transactionsBuilder_ == null) {
          if (!other.transactions_.isEmpty()) {
            if (transactions_.isEmpty()) {
              transactions_ = other.transactions_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTransactionsIsMutable();
              transactions_.addAll(other.transactions_);
            }
            onChanged();
          }
        } else {
          if (!other.transactions_.isEmpty()) {
            if (transactionsBuilder_.isEmpty()) {
              transactionsBuilder_.dispose();
              transactionsBuilder_ = null;
              transactions_ = other.transactions_;
              bitField0_ = (bitField0_ & ~0x00000001);
              transactionsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTransactionsFieldBuilder() : null;
            } else {
              transactionsBuilder_.addAllMessages(other.transactions_);
            }
          }
        }
        if (other.hasBlockHeader()) {
          mergeBlockHeader(other.getBlockHeader());
        }
        if (other.getBlockid() != com.google.protobuf.ByteString.EMPTY) {
          setBlockid(other.getBlockid());
        }
        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.vision.visionjsdk.proto.Response.BlockExtention parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.vision.visionjsdk.proto.Response.BlockExtention) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> transactionsBuilder_;

      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return list
       */
      public java.util.List getTransactionsList() {
        if (transactionsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(transactions_);
        } else {
          return transactionsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return int
       */
      public int getTransactionsCount() {
        if (transactionsBuilder_ == null) {
          return transactions_.size();
        } else {
          return transactionsBuilder_.getCount();
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @return TransactionExtention
       */
      public org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);
        } else {
          return transactionsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @param value value
       * @return Builder
       */
      public Builder setTransactions(
          int index, org.vision.visionjsdk.proto.Response.TransactionExtention value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.set(index, value);
          onChanged();
        } else {
          transactionsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder setTransactions(
          int index, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.set(index, builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param value value
       * @return Builder
       */
      public Builder addTransactions(org.vision.visionjsdk.proto.Response.TransactionExtention value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.add(value);
          onChanged();
        } else {
          transactionsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @param value value
       * @return Builder
       */
      public Builder addTransactions(
          int index, org.vision.visionjsdk.proto.Response.TransactionExtention value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.add(index, value);
          onChanged();
        } else {
          transactionsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder addTransactions(
          org.vision.visionjsdk.proto.Response.TransactionExtention.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.add(builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder addTransactions(
          int index, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.add(index, builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param values values
       * @return Builder
       */
      public Builder addAllTransactions(
          java.lang.Iterable values) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, transactions_);
          onChanged();
        } else {
          transactionsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return Builder
       */
      public Builder clearTransactions() {
        if (transactionsBuilder_ == null) {
          transactions_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          transactionsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @return Builder
       */
      public Builder removeTransactions(int index) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.remove(index);
          onChanged();
        } else {
          transactionsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder getTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @return TransactionExtentionOrBuilder
       */
      public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
          int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);  } else {
          return transactionsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return list
       */
      public java.util.List
           getTransactionsOrBuilderList() {
        if (transactionsBuilder_ != null) {
          return transactionsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(transactions_);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder addTransactionsBuilder() {
        return getTransactionsFieldBuilder().addBuilder(
            org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @param index index
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder addTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().addBuilder(
            index, org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       * @return list
       */
      public java.util.List
           getTransactionsBuilderList() {
        return getTransactionsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>
          getTransactionsFieldBuilder() {
        if (transactionsBuilder_ == null) {
          transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>(
                  transactions_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          transactions_ = null;
        }
        return transactionsBuilder_;
      }

      private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder> blockHeaderBuilder_;
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return Whether the blockHeader field is set.
       */
      public boolean hasBlockHeader() {
        return blockHeaderBuilder_ != null || blockHeader_ != null;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return The blockHeader.
       */
      public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() {
        if (blockHeaderBuilder_ == null) {
          return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
        } else {
          return blockHeaderBuilder_.getMessage();
        }
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @param value value
       * @return Builder
       */
      public Builder setBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) {
        if (blockHeaderBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          blockHeader_ = value;
          onChanged();
        } else {
          blockHeaderBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return Builder
       */
      public Builder setBlockHeader(
          org.vision.visionjsdk.proto.Chain.BlockHeader.Builder builderForValue) {
        if (blockHeaderBuilder_ == null) {
          blockHeader_ = builderForValue.build();
          onChanged();
        } else {
          blockHeaderBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @param value value
       * @return Builder
       */
      public Builder mergeBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) {
        if (blockHeaderBuilder_ == null) {
          if (blockHeader_ != null) {
            blockHeader_ =
              org.vision.visionjsdk.proto.Chain.BlockHeader.newBuilder(blockHeader_).mergeFrom(value).buildPartial();
          } else {
            blockHeader_ = value;
          }
          onChanged();
        } else {
          blockHeaderBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return Builder
       */
      public Builder clearBlockHeader() {
        if (blockHeaderBuilder_ == null) {
          blockHeader_ = null;
          onChanged();
        } else {
          blockHeader_ = null;
          blockHeaderBuilder_ = null;
        }

        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Chain.BlockHeader.Builder getBlockHeaderBuilder() {

        onChanged();
        return getBlockHeaderFieldBuilder().getBuilder();
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return BlockHeaderOrBuilder
       */
      public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
        if (blockHeaderBuilder_ != null) {
          return blockHeaderBuilder_.getMessageOrBuilder();
        } else {
          return blockHeader_ == null ?
              org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
        }
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return SingleFieldBuilderV3
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder>
          getBlockHeaderFieldBuilder() {
        if (blockHeaderBuilder_ == null) {
          blockHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder>(
                  getBlockHeader(),
                  getParentForChildren(),
                  isClean());
          blockHeader_ = null;
        }
        return blockHeaderBuilder_;
      }

      private com.google.protobuf.ByteString blockid_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes blockid = 3;
       * @return The blockid.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getBlockid() {
        return blockid_;
      }
      /**
       * bytes blockid = 3;
       * @param value The blockid to set.
       * @return This builder for chaining.
       */
      public Builder setBlockid(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }

        blockid_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes blockid = 3;
       * @return This builder for chaining.
       */
      public Builder clearBlockid() {

        blockid_ = getDefaultInstance().getBlockid();
        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:protocol.BlockExtention)
    }

    // @@protoc_insertion_point(class_scope:protocol.BlockExtention)
    private static final org.vision.visionjsdk.proto.Response.BlockExtention DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockExtention();
    }

    public static org.vision.visionjsdk.proto.Response.BlockExtention getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BlockExtention parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BlockExtention(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.vision.visionjsdk.proto.Response.BlockExtention getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BlockListExtentionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protocol.BlockListExtention)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return list
     */
    java.util.List
        getBlockList();
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @param index index
     * @return BlockExtention
     */
    org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index);
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return int
     */
    int getBlockCount();
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return list
     */
    java.util.List
        getBlockOrBuilderList();
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @param index index
     * @return BlockExtentionOrBuilder
     */
    org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code protocol.BlockListExtention}
   */
  public static final class BlockListExtention extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.BlockListExtention)
      BlockListExtentionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockListExtention.newBuilder() to construct.
    private BlockListExtention(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BlockListExtention() {
      block_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockListExtention(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                block_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              block_.add(
                  input.readMessage(org.vision.visionjsdk.proto.Response.BlockExtention.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)) {
          block_ = java.util.Collections.unmodifiableList(block_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.vision.visionjsdk.proto.Response.BlockListExtention.class, org.vision.visionjsdk.proto.Response.BlockListExtention.Builder.class);
    }

    public static final int BLOCK_FIELD_NUMBER = 1;
    private java.util.List block_;
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return list
     */
    @java.lang.Override
    public java.util.List getBlockList() {
      return block_;
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return list
     */
    @java.lang.Override
    public java.util.List
        getBlockOrBuilderList() {
      return block_;
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @return int
     */
    @java.lang.Override
    public int getBlockCount() {
      return block_.size();
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @param index index
     * @return BlockExtention
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index) {
      return block_.get(index);
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     * @param index index
     * @return BlockExtentionOrBuilder
     */
    @java.lang.Override
    public org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
        int index) {
      return block_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < block_.size(); i++) {
        output.writeMessage(1, block_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < block_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, block_.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.vision.visionjsdk.proto.Response.BlockListExtention)) {
        return super.equals(obj);
      }
      org.vision.visionjsdk.proto.Response.BlockListExtention other = (org.vision.visionjsdk.proto.Response.BlockListExtention) obj;

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

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 46;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getBlockCount() > 0) {
        hash = (37 * hash) + BLOCK_FIELD_NUMBER;
        hash = (53 * hash) + getBlockList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention 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.vision.visionjsdk.proto.Response.BlockListExtention parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention 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.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.vision.visionjsdk.proto.Response.BlockListExtention 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.vision.visionjsdk.proto.Response.BlockListExtention 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 protocol.BlockListExtention}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.BlockListExtention)
        org.vision.visionjsdk.proto.Response.BlockListExtentionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.vision.visionjsdk.proto.Response.BlockListExtention.class, org.vision.visionjsdk.proto.Response.BlockListExtention.Builder.class);
      }

      // Construct using org.vision.visionjsdk.proto.Response.BlockListExtention.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getBlockFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (blockBuilder_ == null) {
          block_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          blockBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockListExtention getDefaultInstanceForType() {
        return org.vision.visionjsdk.proto.Response.BlockListExtention.getDefaultInstance();
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockListExtention build() {
        org.vision.visionjsdk.proto.Response.BlockListExtention result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.vision.visionjsdk.proto.Response.BlockListExtention buildPartial() {
        org.vision.visionjsdk.proto.Response.BlockListExtention result = new org.vision.visionjsdk.proto.Response.BlockListExtention(this);
        int from_bitField0_ = bitField0_;
        if (blockBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            block_ = java.util.Collections.unmodifiableList(block_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.block_ = block_;
        } else {
          result.block_ = blockBuilder_.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.vision.visionjsdk.proto.Response.BlockListExtention) {
          return mergeFrom((org.vision.visionjsdk.proto.Response.BlockListExtention)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockListExtention other) {
        if (other == org.vision.visionjsdk.proto.Response.BlockListExtention.getDefaultInstance()) return this;
        if (blockBuilder_ == null) {
          if (!other.block_.isEmpty()) {
            if (block_.isEmpty()) {
              block_ = other.block_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureBlockIsMutable();
              block_.addAll(other.block_);
            }
            onChanged();
          }
        } else {
          if (!other.block_.isEmpty()) {
            if (blockBuilder_.isEmpty()) {
              blockBuilder_.dispose();
              blockBuilder_ = null;
              block_ = other.block_;
              bitField0_ = (bitField0_ & ~0x00000001);
              blockBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getBlockFieldBuilder() : null;
            } else {
              blockBuilder_.addAllMessages(other.block_);
            }
          }
        }
        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.vision.visionjsdk.proto.Response.BlockListExtention parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.vision.visionjsdk.proto.Response.BlockListExtention) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder> blockBuilder_;

      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return list
       */
      public java.util.List getBlockList() {
        if (blockBuilder_ == null) {
          return java.util.Collections.unmodifiableList(block_);
        } else {
          return blockBuilder_.getMessageList();
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return int
       */
      public int getBlockCount() {
        if (blockBuilder_ == null) {
          return block_.size();
        } else {
          return blockBuilder_.getCount();
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @return BlockExtention
       */
      public org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index) {
        if (blockBuilder_ == null) {
          return block_.get(index);
        } else {
          return blockBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @param value value
       * @return Builder
       */
      public Builder setBlock(
          int index, org.vision.visionjsdk.proto.Response.BlockExtention value) {
        if (blockBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlockIsMutable();
          block_.set(index, value);
          onChanged();
        } else {
          blockBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder setBlock(
          int index, org.vision.visionjsdk.proto.Response.BlockExtention.Builder builderForValue) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          block_.set(index, builderForValue.build());
          onChanged();
        } else {
          blockBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param value value
       * @return Builder
       */
      public Builder addBlock(org.vision.visionjsdk.proto.Response.BlockExtention value) {
        if (blockBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlockIsMutable();
          block_.add(value);
          onChanged();
        } else {
          blockBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @param value value
       * @return Builder
       */
      public Builder addBlock(
          int index, org.vision.visionjsdk.proto.Response.BlockExtention value) {
        if (blockBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlockIsMutable();
          block_.add(index, value);
          onChanged();
        } else {
          blockBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder addBlock(
          org.vision.visionjsdk.proto.Response.BlockExtention.Builder builderForValue) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          block_.add(builderForValue.build());
          onChanged();
        } else {
          blockBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @param builderForValue builderForValue
       * @return Builder
       */
      public Builder addBlock(
          int index, org.vision.visionjsdk.proto.Response.BlockExtention.Builder builderForValue) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          block_.add(index, builderForValue.build());
          onChanged();
        } else {
          blockBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param values values
       * @return Builder
       */
      public Builder addAllBlock(
          java.lang.Iterable values) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, block_);
          onChanged();
        } else {
          blockBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return Builder
       */
      public Builder clearBlock() {
        if (blockBuilder_ == null) {
          block_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          blockBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @return Builder
       */
      public Builder removeBlock(int index) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          block_.remove(index);
          onChanged();
        } else {
          blockBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.BlockExtention.Builder getBlockBuilder(
          int index) {
        return getBlockFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @return BlockExtentionOrBuilder
       */
      public org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
          int index) {
        if (blockBuilder_ == null) {
          return block_.get(index);  } else {
          return blockBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return list
       */
      public java.util.List
           getBlockOrBuilderList() {
        if (blockBuilder_ != null) {
          return blockBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(block_);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.BlockExtention.Builder addBlockBuilder() {
        return getBlockFieldBuilder().addBuilder(
            org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @param index index
       * @return Builder
       */
      public org.vision.visionjsdk.proto.Response.BlockExtention.Builder addBlockBuilder(
          int index) {
        return getBlockFieldBuilder().addBuilder(
            index, org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       * @return list
       */
      public java.util.List
           getBlockBuilderList() {
        return getBlockFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>
          getBlockFieldBuilder() {
        if (blockBuilder_ == null) {
          blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>(
                  block_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          block_ = null;
        }
        return blockBuilder_;
      }
      @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:protocol.BlockListExtention)
    }

    // @@protoc_insertion_point(class_scope:protocol.BlockListExtention)
    private static final org.vision.visionjsdk.proto.Response.BlockListExtention DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockListExtention();
    }

    public static org.vision.visionjsdk.proto.Response.BlockListExtention getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BlockListExtention parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BlockListExtention(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.vision.visionjsdk.proto.Response.BlockListExtention getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TransactionReturnOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protocol.TransactionReturn)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bool result = 1;
     * @return The result.
     */
    boolean getResult();

    /**
     * .protocol.TransactionReturn.response_code code = 2;
     * @return The enum numeric value on the wire for code.
     */
    int getCodeValue();
    /**
     * .protocol.TransactionReturn.response_code code = 2;
     * @return The code.
     */
    org.vision.visionjsdk.proto.Response.TransactionReturn.response_code getCode();

    /**
     * bytes message = 3;
     * @return The message.
     */
    com.google.protobuf.ByteString getMessage();
  }
  /**
   * Protobuf type {@code protocol.TransactionReturn}
   */
  public static final class TransactionReturn extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.TransactionReturn)
      TransactionReturnOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TransactionReturn.newBuilder() to construct.
    private TransactionReturn(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private TransactionReturn() {
      code_ = 0;
      message_ = com.google.protobuf.ByteString.EMPTY;
    }

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

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

              result_ = input.readBool();
              break;
            }
            case 16: {
              int rawValue = input.readEnum();

              code_ = rawValue;
              break;
            }
            case 26: {

              message_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.vision.visionjsdk.proto.Response.TransactionReturn.class, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder.class);
    }

    /**
     * Protobuf enum {@code protocol.TransactionReturn.response_code}
     */
    public enum response_code
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * SUCCESS = 0;
       */
      SUCCESS(0),
      /**
       * 
       * error in signature
       * 
* * SIGERROR = 1; */ SIGERROR(1), /** * CONTRACT_VALIDATE_ERROR = 2; */ CONTRACT_VALIDATE_ERROR(2), /** * CONTRACT_EXE_ERROR = 3; */ CONTRACT_EXE_ERROR(3), /** * BANDWITH_ERROR = 4; */ BANDWITH_ERROR(4), /** * DUP_TRANSACTION_ERROR = 5; */ DUP_TRANSACTION_ERROR(5), /** * TAPOS_ERROR = 6; */ TAPOS_ERROR(6), /** * TOO_BIG_TRANSACTION_ERROR = 7; */ TOO_BIG_TRANSACTION_ERROR(7), /** * TRANSACTION_EXPIRATION_ERROR = 8; */ TRANSACTION_EXPIRATION_ERROR(8), /** * SERVER_BUSY = 9; */ SERVER_BUSY(9), /** * NO_CONNECTION = 10; */ NO_CONNECTION(10), /** * NOT_ENOUGH_EFFECTIVE_CONNECTION = 11; */ NOT_ENOUGH_EFFECTIVE_CONNECTION(11), /** * OTHER_ERROR = 20; */ OTHER_ERROR(20), UNRECOGNIZED(-1), ; /** * SUCCESS = 0; */ public static final int SUCCESS_VALUE = 0; /** *
       * error in signature
       * 
* * SIGERROR = 1; */ public static final int SIGERROR_VALUE = 1; /** * CONTRACT_VALIDATE_ERROR = 2; */ public static final int CONTRACT_VALIDATE_ERROR_VALUE = 2; /** * CONTRACT_EXE_ERROR = 3; */ public static final int CONTRACT_EXE_ERROR_VALUE = 3; /** * BANDWITH_ERROR = 4; */ public static final int BANDWITH_ERROR_VALUE = 4; /** * DUP_TRANSACTION_ERROR = 5; */ public static final int DUP_TRANSACTION_ERROR_VALUE = 5; /** * TAPOS_ERROR = 6; */ public static final int TAPOS_ERROR_VALUE = 6; /** * TOO_BIG_TRANSACTION_ERROR = 7; */ public static final int TOO_BIG_TRANSACTION_ERROR_VALUE = 7; /** * TRANSACTION_EXPIRATION_ERROR = 8; */ public static final int TRANSACTION_EXPIRATION_ERROR_VALUE = 8; /** * SERVER_BUSY = 9; */ public static final int SERVER_BUSY_VALUE = 9; /** * NO_CONNECTION = 10; */ public static final int NO_CONNECTION_VALUE = 10; /** * NOT_ENOUGH_EFFECTIVE_CONNECTION = 11; */ public static final int NOT_ENOUGH_EFFECTIVE_CONNECTION_VALUE = 11; /** * OTHER_ERROR = 20; */ public static final int OTHER_ERROR_VALUE = 20; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static response_code valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static response_code forNumber(int value) { switch (value) { case 0: return SUCCESS; case 1: return SIGERROR; case 2: return CONTRACT_VALIDATE_ERROR; case 3: return CONTRACT_EXE_ERROR; case 4: return BANDWITH_ERROR; case 5: return DUP_TRANSACTION_ERROR; case 6: return TAPOS_ERROR; case 7: return TOO_BIG_TRANSACTION_ERROR; case 8: return TRANSACTION_EXPIRATION_ERROR; case 9: return SERVER_BUSY; case 10: return NO_CONNECTION; case 11: return NOT_ENOUGH_EFFECTIVE_CONNECTION; case 20: return OTHER_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< response_code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public response_code findValueByNumber(int number) { return response_code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.TransactionReturn.getDescriptor().getEnumTypes().get(0); } private static final response_code[] VALUES = values(); public static response_code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private response_code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.TransactionReturn.response_code) } public static final int RESULT_FIELD_NUMBER = 1; private boolean result_; /** * bool result = 1; * @return The result. */ @java.lang.Override public boolean getResult() { return result_; } public static final int CODE_FIELD_NUMBER = 2; private int code_; /** * .protocol.TransactionReturn.response_code code = 2; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionReturn.response_code code = 2; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionReturn.response_code result = org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString message_; /** * bytes message = 3; * @return The message. */ @java.lang.Override public com.google.protobuf.ByteString getMessage() { return message_; } 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 (result_ != false) { output.writeBool(1, result_); } if (code_ != org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) { output.writeEnum(2, code_); } if (!message_.isEmpty()) { output.writeBytes(3, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, result_); } if (code_ != org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, code_); } if (!message_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, message_); } 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.vision.visionjsdk.proto.Response.TransactionReturn)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionReturn other = (org.vision.visionjsdk.proto.Response.TransactionReturn) obj; if (getResult() != other.getResult()) return false; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getResult()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionReturn 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.vision.visionjsdk.proto.Response.TransactionReturn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionReturn 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.vision.visionjsdk.proto.Response.TransactionReturn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionReturn 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.vision.visionjsdk.proto.Response.TransactionReturn 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 protocol.TransactionReturn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionReturn) org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionReturn.class, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionReturn.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(); result_ = false; code_ = 0; message_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn build() { org.vision.visionjsdk.proto.Response.TransactionReturn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn buildPartial() { org.vision.visionjsdk.proto.Response.TransactionReturn result = new org.vision.visionjsdk.proto.Response.TransactionReturn(this); result.result_ = result_; result.code_ = code_; result.message_ = message_; 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.vision.visionjsdk.proto.Response.TransactionReturn) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionReturn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionReturn other) { if (other == org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance()) return this; if (other.getResult() != false) { setResult(other.getResult()); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (other.getMessage() != com.google.protobuf.ByteString.EMPTY) { setMessage(other.getMessage()); } 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.vision.visionjsdk.proto.Response.TransactionReturn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionReturn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean result_ ; /** * bool result = 1; * @return The result. */ @java.lang.Override public boolean getResult() { return result_; } /** * bool result = 1; * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(boolean value) { result_ = value; onChanged(); return this; } /** * bool result = 1; * @return This builder for chaining. */ public Builder clearResult() { result_ = false; onChanged(); return this; } private int code_ = 0; /** * .protocol.TransactionReturn.response_code code = 2; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionReturn.response_code code = 2; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** * .protocol.TransactionReturn.response_code code = 2; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionReturn.response_code result = org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result; } /** * .protocol.TransactionReturn.response_code code = 2; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(org.vision.visionjsdk.proto.Response.TransactionReturn.response_code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionReturn.response_code code = 2; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** * bytes message = 3; * @return The message. */ @java.lang.Override public com.google.protobuf.ByteString getMessage() { return message_; } /** * bytes message = 3; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * bytes message = 3; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); 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:protocol.TransactionReturn) } // @@protoc_insertion_point(class_scope:protocol.TransactionReturn) private static final org.vision.visionjsdk.proto.Response.TransactionReturn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionReturn(); } public static org.vision.visionjsdk.proto.Response.TransactionReturn getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionReturn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionReturn(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.vision.visionjsdk.proto.Response.TransactionReturn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionExtentionOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionExtention) com.google.protobuf.MessageOrBuilder { /** * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * * @return The transaction. */ org.vision.visionjsdk.proto.Chain.Transaction getTransaction(); /** * * @return TransactionOrBuilder */ org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(); /** *
     * transaction id = sha256(transaction.raw_data)
     * 
* * bytes txid = 2; * @return The txid. */ com.google.protobuf.ByteString getTxid(); /** * repeated bytes constant_result = 3; * @return A list containing the constantResult. */ java.util.List getConstantResultList(); /** * repeated bytes constant_result = 3; * @return The count of constantResult. */ int getConstantResultCount(); /** * repeated bytes constant_result = 3; * @param index The index of the element to return. * @return The constantResult at the given index. */ com.google.protobuf.ByteString getConstantResult(int index); /** * .protocol.TransactionReturn result = 4; * @return Whether the result field is set. */ boolean hasResult(); /** * .protocol.TransactionReturn result = 4; * @return The result. */ org.vision.visionjsdk.proto.Response.TransactionReturn getResult(); /** * .protocol.TransactionReturn result = 4; * @return TransactionReturnOrBuilder */ org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder(); } /** * Protobuf type {@code protocol.TransactionExtention} */ public static final class TransactionExtention extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionExtention) TransactionExtentionOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionExtention.newBuilder() to construct. private TransactionExtention(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionExtention() { txid_ = com.google.protobuf.ByteString.EMPTY; constantResult_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionExtention(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionExtention( 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: { org.vision.visionjsdk.proto.Chain.Transaction.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 18: { txid_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { constantResult_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } constantResult_.add(input.readBytes()); break; } case 34: { org.vision.visionjsdk.proto.Response.TransactionReturn.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionReturn.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { constantResult_ = java.util.Collections.unmodifiableList(constantResult_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionExtention.class, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Chain.Transaction transaction_; /** * * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * * @return The transaction. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * * @return TransactionOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int TXID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString txid_; /** *
     * transaction id = sha256(transaction.raw_data)
     * 
* * bytes txid = 2; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } public static final int CONSTANT_RESULT_FIELD_NUMBER = 3; private java.util.List constantResult_; /** * repeated bytes constant_result = 3; * @return A list containing the constantResult. */ @java.lang.Override public java.util.List getConstantResultList() { return constantResult_; } /** * repeated bytes constant_result = 3; * @return The count of constantResult. */ public int getConstantResultCount() { return constantResult_.size(); } /** * repeated bytes constant_result = 3; * @param index The index of the element to return. * @return The constantResult at the given index. */ public com.google.protobuf.ByteString getConstantResult(int index) { return constantResult_.get(index); } public static final int RESULT_FIELD_NUMBER = 4; private org.vision.visionjsdk.proto.Response.TransactionReturn result_; /** * .protocol.TransactionReturn result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .protocol.TransactionReturn result = 4; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } /** * .protocol.TransactionReturn result = 4; * @return TransactionReturnOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { return getResult(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (transaction_ != null) { output.writeMessage(1, getTransaction()); } if (!txid_.isEmpty()) { output.writeBytes(2, txid_); } for (int i = 0; i < constantResult_.size(); i++) { output.writeBytes(3, constantResult_.get(i)); } if (result_ != null) { output.writeMessage(4, getResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (!txid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, txid_); } { int dataSize = 0; for (int i = 0; i < constantResult_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(constantResult_.get(i)); } size += dataSize; size += 1 * getConstantResultList().size(); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionExtention)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionExtention other = (org.vision.visionjsdk.proto.Response.TransactionExtention) obj; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!getTxid() .equals(other.getTxid())) return false; if (!getConstantResultList() .equals(other.getConstantResultList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); if (getConstantResultCount() > 0) { hash = (37 * hash) + CONSTANT_RESULT_FIELD_NUMBER; hash = (53 * hash) + getConstantResultList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionExtention 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.vision.visionjsdk.proto.Response.TransactionExtention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionExtention 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.vision.visionjsdk.proto.Response.TransactionExtention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionExtention 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.vision.visionjsdk.proto.Response.TransactionExtention 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 protocol.TransactionExtention} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionExtention) org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionExtention.class, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionExtention.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } txid_ = com.google.protobuf.ByteString.EMPTY; constantResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtention getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtention build() { org.vision.visionjsdk.proto.Response.TransactionExtention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtention buildPartial() { org.vision.visionjsdk.proto.Response.TransactionExtention result = new org.vision.visionjsdk.proto.Response.TransactionExtention(this); int from_bitField0_ = bitField0_; if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } result.txid_ = txid_; if (((bitField0_ & 0x00000001) != 0)) { constantResult_ = java.util.Collections.unmodifiableList(constantResult_); bitField0_ = (bitField0_ & ~0x00000001); } result.constantResult_ = constantResult_; if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Response.TransactionExtention) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionExtention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionExtention other) { if (other == org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance()) return this; if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.getTxid() != com.google.protobuf.ByteString.EMPTY) { setTxid(other.getTxid()); } if (!other.constantResult_.isEmpty()) { if (constantResult_.isEmpty()) { constantResult_ = other.constantResult_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConstantResultIsMutable(); constantResult_.addAll(other.constantResult_); } onChanged(); } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Response.TransactionExtention parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionExtention) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.vision.visionjsdk.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * * @return The transaction. */ public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * * @param value value * @return Builder */ public Builder setTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** * * @param builderForValue builderForValue * @return Builder */ public Builder setTransaction( org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** * * @param value value * @return Builder */ public Builder mergeTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = org.vision.visionjsdk.proto.Chain.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** * * @return Builder */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** * * @return Builder */ public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * * @return TransactionOrBuilder */ public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } /** * * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY; /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 2; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 2; * @param value The txid to set. * @return This builder for chaining. */ public Builder setTxid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } txid_ = value; onChanged(); return this; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 2; * @return This builder for chaining. */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } private java.util.List constantResult_ = java.util.Collections.emptyList(); private void ensureConstantResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { constantResult_ = new java.util.ArrayList(constantResult_); bitField0_ |= 0x00000001; } } /** * repeated bytes constant_result = 3; * @return A list containing the constantResult. */ public java.util.List getConstantResultList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(constantResult_) : constantResult_; } /** * repeated bytes constant_result = 3; * @return The count of constantResult. */ public int getConstantResultCount() { return constantResult_.size(); } /** * repeated bytes constant_result = 3; * @param index The index of the element to return. * @return The constantResult at the given index. */ public com.google.protobuf.ByteString getConstantResult(int index) { return constantResult_.get(index); } /** * repeated bytes constant_result = 3; * @param index The index to set the value at. * @param value The constantResult to set. * @return This builder for chaining. */ public Builder setConstantResult( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureConstantResultIsMutable(); constantResult_.set(index, value); onChanged(); return this; } /** * repeated bytes constant_result = 3; * @param value The constantResult to add. * @return This builder for chaining. */ public Builder addConstantResult(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureConstantResultIsMutable(); constantResult_.add(value); onChanged(); return this; } /** * repeated bytes constant_result = 3; * @param values The constantResult to add. * @return This builder for chaining. */ public Builder addAllConstantResult( java.lang.Iterable values) { ensureConstantResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, constantResult_); onChanged(); return this; } /** * repeated bytes constant_result = 3; * @return This builder for chaining. */ public Builder clearConstantResult() { constantResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private org.vision.visionjsdk.proto.Response.TransactionReturn result_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> resultBuilder_; /** * .protocol.TransactionReturn result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .protocol.TransactionReturn result = 4; * @return The result. */ public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() { if (resultBuilder_ == null) { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionReturn result = 4; * @param value value * @return Builder */ public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .protocol.TransactionReturn result = 4; * @param builderForValue builderForValue * @return Builder */ public Builder setResult( org.vision.visionjsdk.proto.Response.TransactionReturn.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.TransactionReturn result = 4; * @param value value * @return Builder */ public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = org.vision.visionjsdk.proto.Response.TransactionReturn.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .protocol.TransactionReturn result = 4; * @return Builder */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .protocol.TransactionReturn result = 4; * @return Builder */ public org.vision.visionjsdk.proto.Response.TransactionReturn.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionReturn result = 4; * @return TransactionReturnOrBuilder */ public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } } /** * .protocol.TransactionReturn result = 4; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.TransactionExtention) } // @@protoc_insertion_point(class_scope:protocol.TransactionExtention) private static final org.vision.visionjsdk.proto.Response.TransactionExtention DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionExtention(); } public static org.vision.visionjsdk.proto.Response.TransactionExtention getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionExtention parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionExtention(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.vision.visionjsdk.proto.Response.TransactionExtention getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WitnessListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WitnessList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Witness witnesses = 1; * @return list */ java.util.List getWitnessesList(); /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Witness */ org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index); /** * repeated .protocol.Witness witnesses = 1; * @return int */ int getWitnessesCount(); /** * repeated .protocol.Witness witnesses = 1; * @return list */ java.util.List getWitnessesOrBuilderList(); /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return WitnessOrBuilder */ org.vision.visionjsdk.proto.Response.WitnessOrBuilder getWitnessesOrBuilder( int index); } /** * Protobuf type {@code protocol.WitnessList} */ public static final class WitnessList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WitnessList) WitnessListOrBuilder { private static final long serialVersionUID = 0L; // Use WitnessList.newBuilder() to construct. private WitnessList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WitnessList() { witnesses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WitnessList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WitnessList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { witnesses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } witnesses_.add( input.readMessage(org.vision.visionjsdk.proto.Response.Witness.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)) { witnesses_ = java.util.Collections.unmodifiableList(witnesses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.WitnessList.class, org.vision.visionjsdk.proto.Response.WitnessList.Builder.class); } public static final int WITNESSES_FIELD_NUMBER = 1; private java.util.List witnesses_; /** * repeated .protocol.Witness witnesses = 1; * @return list */ @java.lang.Override public java.util.List getWitnessesList() { return witnesses_; } /** * repeated .protocol.Witness witnesses = 1; * @return list */ @java.lang.Override public java.util.List getWitnessesOrBuilderList() { return witnesses_; } /** * repeated .protocol.Witness witnesses = 1; * @return int */ @java.lang.Override public int getWitnessesCount() { return witnesses_.size(); } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Witness */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index) { return witnesses_.get(index); } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return WitnessOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Response.WitnessOrBuilder getWitnessesOrBuilder( int index) { return witnesses_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < witnesses_.size(); i++) { output.writeMessage(1, witnesses_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < witnesses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, witnesses_.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.vision.visionjsdk.proto.Response.WitnessList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.WitnessList other = (org.vision.visionjsdk.proto.Response.WitnessList) obj; if (!getWitnessesList() .equals(other.getWitnessesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getWitnessesCount() > 0) { hash = (37 * hash) + WITNESSES_FIELD_NUMBER; hash = (53 * hash) + getWitnessesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.WitnessList 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.vision.visionjsdk.proto.Response.WitnessList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.WitnessList 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.vision.visionjsdk.proto.Response.WitnessList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.WitnessList 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.vision.visionjsdk.proto.Response.WitnessList 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 protocol.WitnessList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WitnessList) org.vision.visionjsdk.proto.Response.WitnessListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.WitnessList.class, org.vision.visionjsdk.proto.Response.WitnessList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.WitnessList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWitnessesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (witnessesBuilder_ == null) { witnesses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { witnessesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.WitnessList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.WitnessList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.WitnessList build() { org.vision.visionjsdk.proto.Response.WitnessList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.WitnessList buildPartial() { org.vision.visionjsdk.proto.Response.WitnessList result = new org.vision.visionjsdk.proto.Response.WitnessList(this); int from_bitField0_ = bitField0_; if (witnessesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { witnesses_ = java.util.Collections.unmodifiableList(witnesses_); bitField0_ = (bitField0_ & ~0x00000001); } result.witnesses_ = witnesses_; } else { result.witnesses_ = witnessesBuilder_.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.vision.visionjsdk.proto.Response.WitnessList) { return mergeFrom((org.vision.visionjsdk.proto.Response.WitnessList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.WitnessList other) { if (other == org.vision.visionjsdk.proto.Response.WitnessList.getDefaultInstance()) return this; if (witnessesBuilder_ == null) { if (!other.witnesses_.isEmpty()) { if (witnesses_.isEmpty()) { witnesses_ = other.witnesses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWitnessesIsMutable(); witnesses_.addAll(other.witnesses_); } onChanged(); } } else { if (!other.witnesses_.isEmpty()) { if (witnessesBuilder_.isEmpty()) { witnessesBuilder_.dispose(); witnessesBuilder_ = null; witnesses_ = other.witnesses_; bitField0_ = (bitField0_ & ~0x00000001); witnessesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWitnessesFieldBuilder() : null; } else { witnessesBuilder_.addAllMessages(other.witnesses_); } } } 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.vision.visionjsdk.proto.Response.WitnessList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.WitnessList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List witnesses_ = java.util.Collections.emptyList(); private void ensureWitnessesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { witnesses_ = new java.util.ArrayList(witnesses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.proto.Response.WitnessOrBuilder> witnessesBuilder_; /** * repeated .protocol.Witness witnesses = 1; * @return list */ public java.util.List getWitnessesList() { if (witnessesBuilder_ == null) { return java.util.Collections.unmodifiableList(witnesses_); } else { return witnessesBuilder_.getMessageList(); } } /** * repeated .protocol.Witness witnesses = 1; * @return int */ public int getWitnessesCount() { if (witnessesBuilder_ == null) { return witnesses_.size(); } else { return witnessesBuilder_.getCount(); } } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Witness */ public org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index) { if (witnessesBuilder_ == null) { return witnesses_.get(index); } else { return witnessesBuilder_.getMessage(index); } } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @param value value * @return Builder */ public Builder setWitnesses( int index, org.vision.visionjsdk.proto.Response.Witness value) { if (witnessesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWitnessesIsMutable(); witnesses_.set(index, value); onChanged(); } else { witnessesBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setWitnesses( int index, org.vision.visionjsdk.proto.Response.Witness.Builder builderForValue) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.set(index, builderForValue.build()); onChanged(); } else { witnessesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param value value * @return Builder */ public Builder addWitnesses(org.vision.visionjsdk.proto.Response.Witness value) { if (witnessesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWitnessesIsMutable(); witnesses_.add(value); onChanged(); } else { witnessesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @param value value * @return Builder */ public Builder addWitnesses( int index, org.vision.visionjsdk.proto.Response.Witness value) { if (witnessesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWitnessesIsMutable(); witnesses_.add(index, value); onChanged(); } else { witnessesBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param builderForValue builderForValue * @return Builder */ public Builder addWitnesses( org.vision.visionjsdk.proto.Response.Witness.Builder builderForValue) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.add(builderForValue.build()); onChanged(); } else { witnessesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addWitnesses( int index, org.vision.visionjsdk.proto.Response.Witness.Builder builderForValue) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.add(index, builderForValue.build()); onChanged(); } else { witnessesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param values values * @return Builder */ public Builder addAllWitnesses( java.lang.Iterable values) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, witnesses_); onChanged(); } else { witnessesBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @return Builder */ public Builder clearWitnesses() { if (witnessesBuilder_ == null) { witnesses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { witnessesBuilder_.clear(); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Builder */ public Builder removeWitnesses(int index) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.remove(index); onChanged(); } else { witnessesBuilder_.remove(index); } return this; } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Witness.Builder getWitnessesBuilder( int index) { return getWitnessesFieldBuilder().getBuilder(index); } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return WitnessOrBuilder */ public org.vision.visionjsdk.proto.Response.WitnessOrBuilder getWitnessesOrBuilder( int index) { if (witnessesBuilder_ == null) { return witnesses_.get(index); } else { return witnessesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Witness witnesses = 1; * @return list */ public java.util.List getWitnessesOrBuilderList() { if (witnessesBuilder_ != null) { return witnessesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(witnesses_); } } /** * repeated .protocol.Witness witnesses = 1; * @return Builder */ public org.vision.visionjsdk.proto.Response.Witness.Builder addWitnessesBuilder() { return getWitnessesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance()); } /** * repeated .protocol.Witness witnesses = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Witness.Builder addWitnessesBuilder( int index) { return getWitnessesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance()); } /** * repeated .protocol.Witness witnesses = 1; * @return list */ public java.util.List getWitnessesBuilderList() { return getWitnessesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.proto.Response.WitnessOrBuilder> getWitnessesFieldBuilder() { if (witnessesBuilder_ == null) { witnessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.proto.Response.WitnessOrBuilder>( witnesses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); witnesses_ = null; } return witnessesBuilder_; } @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:protocol.WitnessList) } // @@protoc_insertion_point(class_scope:protocol.WitnessList) private static final org.vision.visionjsdk.proto.Response.WitnessList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.WitnessList(); } public static org.vision.visionjsdk.proto.Response.WitnessList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WitnessList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WitnessList(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.vision.visionjsdk.proto.Response.WitnessList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ProposalList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Proposal proposals = 1; * @return list */ java.util.List getProposalsList(); /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Proposal */ org.vision.visionjsdk.proto.Response.Proposal getProposals(int index); /** * repeated .protocol.Proposal proposals = 1; * @return int */ int getProposalsCount(); /** * repeated .protocol.Proposal proposals = 1; * @return list */ java.util.List getProposalsOrBuilderList(); /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return ProposalOrBuilder */ org.vision.visionjsdk.proto.Response.ProposalOrBuilder getProposalsOrBuilder( int index); } /** * Protobuf type {@code protocol.ProposalList} */ public static final class ProposalList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ProposalList) ProposalListOrBuilder { private static final long serialVersionUID = 0L; // Use ProposalList.newBuilder() to construct. private ProposalList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalList() { proposals_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProposalList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProposalList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { proposals_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } proposals_.add( input.readMessage(org.vision.visionjsdk.proto.Response.Proposal.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)) { proposals_ = java.util.Collections.unmodifiableList(proposals_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ProposalList.class, org.vision.visionjsdk.proto.Response.ProposalList.Builder.class); } public static final int PROPOSALS_FIELD_NUMBER = 1; private java.util.List proposals_; /** * repeated .protocol.Proposal proposals = 1; * @return list */ @java.lang.Override public java.util.List getProposalsList() { return proposals_; } /** * repeated .protocol.Proposal proposals = 1; * @return list */ @java.lang.Override public java.util.List getProposalsOrBuilderList() { return proposals_; } /** * repeated .protocol.Proposal proposals = 1; * @return int */ @java.lang.Override public int getProposalsCount() { return proposals_.size(); } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Proposal */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal getProposals(int index) { return proposals_.get(index); } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return ProposalOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Response.ProposalOrBuilder getProposalsOrBuilder( int index) { return proposals_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < proposals_.size(); i++) { output.writeMessage(1, proposals_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < proposals_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, proposals_.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.vision.visionjsdk.proto.Response.ProposalList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.ProposalList other = (org.vision.visionjsdk.proto.Response.ProposalList) obj; if (!getProposalsList() .equals(other.getProposalsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getProposalsCount() > 0) { hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; hash = (53 * hash) + getProposalsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ProposalList 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.vision.visionjsdk.proto.Response.ProposalList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ProposalList 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.vision.visionjsdk.proto.Response.ProposalList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ProposalList 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.vision.visionjsdk.proto.Response.ProposalList 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 protocol.ProposalList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ProposalList) org.vision.visionjsdk.proto.Response.ProposalListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ProposalList.class, org.vision.visionjsdk.proto.Response.ProposalList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.ProposalList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getProposalsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (proposalsBuilder_ == null) { proposals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { proposalsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ProposalList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.ProposalList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ProposalList build() { org.vision.visionjsdk.proto.Response.ProposalList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ProposalList buildPartial() { org.vision.visionjsdk.proto.Response.ProposalList result = new org.vision.visionjsdk.proto.Response.ProposalList(this); int from_bitField0_ = bitField0_; if (proposalsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { proposals_ = java.util.Collections.unmodifiableList(proposals_); bitField0_ = (bitField0_ & ~0x00000001); } result.proposals_ = proposals_; } else { result.proposals_ = proposalsBuilder_.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.vision.visionjsdk.proto.Response.ProposalList) { return mergeFrom((org.vision.visionjsdk.proto.Response.ProposalList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ProposalList other) { if (other == org.vision.visionjsdk.proto.Response.ProposalList.getDefaultInstance()) return this; if (proposalsBuilder_ == null) { if (!other.proposals_.isEmpty()) { if (proposals_.isEmpty()) { proposals_ = other.proposals_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureProposalsIsMutable(); proposals_.addAll(other.proposals_); } onChanged(); } } else { if (!other.proposals_.isEmpty()) { if (proposalsBuilder_.isEmpty()) { proposalsBuilder_.dispose(); proposalsBuilder_ = null; proposals_ = other.proposals_; bitField0_ = (bitField0_ & ~0x00000001); proposalsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProposalsFieldBuilder() : null; } else { proposalsBuilder_.addAllMessages(other.proposals_); } } } 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.vision.visionjsdk.proto.Response.ProposalList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.ProposalList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List proposals_ = java.util.Collections.emptyList(); private void ensureProposalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { proposals_ = new java.util.ArrayList(proposals_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.proto.Response.ProposalOrBuilder> proposalsBuilder_; /** * repeated .protocol.Proposal proposals = 1; * @return list */ public java.util.List getProposalsList() { if (proposalsBuilder_ == null) { return java.util.Collections.unmodifiableList(proposals_); } else { return proposalsBuilder_.getMessageList(); } } /** * repeated .protocol.Proposal proposals = 1; * @return int */ public int getProposalsCount() { if (proposalsBuilder_ == null) { return proposals_.size(); } else { return proposalsBuilder_.getCount(); } } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Proposal */ public org.vision.visionjsdk.proto.Response.Proposal getProposals(int index) { if (proposalsBuilder_ == null) { return proposals_.get(index); } else { return proposalsBuilder_.getMessage(index); } } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @param value value * @return Builder */ public Builder setProposals( int index, org.vision.visionjsdk.proto.Response.Proposal value) { if (proposalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProposalsIsMutable(); proposals_.set(index, value); onChanged(); } else { proposalsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setProposals( int index, org.vision.visionjsdk.proto.Response.Proposal.Builder builderForValue) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.set(index, builderForValue.build()); onChanged(); } else { proposalsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param value index * @return Builder */ public Builder addProposals(org.vision.visionjsdk.proto.Response.Proposal value) { if (proposalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProposalsIsMutable(); proposals_.add(value); onChanged(); } else { proposalsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @param value value * @return Builder */ public Builder addProposals( int index, org.vision.visionjsdk.proto.Response.Proposal value) { if (proposalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProposalsIsMutable(); proposals_.add(index, value); onChanged(); } else { proposalsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param builderForValue builderForValue * @return Builder */ public Builder addProposals( org.vision.visionjsdk.proto.Response.Proposal.Builder builderForValue) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.add(builderForValue.build()); onChanged(); } else { proposalsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addProposals( int index, org.vision.visionjsdk.proto.Response.Proposal.Builder builderForValue) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.add(index, builderForValue.build()); onChanged(); } else { proposalsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param values values * @return Builder */ public Builder addAllProposals( java.lang.Iterable values) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, proposals_); onChanged(); } else { proposalsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @return Builder */ public Builder clearProposals() { if (proposalsBuilder_ == null) { proposals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { proposalsBuilder_.clear(); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Builder */ public Builder removeProposals(int index) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.remove(index); onChanged(); } else { proposalsBuilder_.remove(index); } return this; } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Proposal.Builder getProposalsBuilder( int index) { return getProposalsFieldBuilder().getBuilder(index); } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.ProposalOrBuilder getProposalsOrBuilder( int index) { if (proposalsBuilder_ == null) { return proposals_.get(index); } else { return proposalsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Proposal proposals = 1; * @return list */ public java.util.List getProposalsOrBuilderList() { if (proposalsBuilder_ != null) { return proposalsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(proposals_); } } /** * repeated .protocol.Proposal proposals = 1; * @return Builder */ public org.vision.visionjsdk.proto.Response.Proposal.Builder addProposalsBuilder() { return getProposalsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance()); } /** * repeated .protocol.Proposal proposals = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Proposal.Builder addProposalsBuilder( int index) { return getProposalsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance()); } /** * repeated .protocol.Proposal proposals = 1; * @return list */ public java.util.List getProposalsBuilderList() { return getProposalsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.proto.Response.ProposalOrBuilder> getProposalsFieldBuilder() { if (proposalsBuilder_ == null) { proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.proto.Response.ProposalOrBuilder>( proposals_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); proposals_ = null; } return proposalsBuilder_; } @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:protocol.ProposalList) } // @@protoc_insertion_point(class_scope:protocol.ProposalList) private static final org.vision.visionjsdk.proto.Response.ProposalList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ProposalList(); } public static org.vision.visionjsdk.proto.Response.ProposalList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProposalList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProposalList(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.vision.visionjsdk.proto.Response.ProposalList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExchangeList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Exchange exchanges = 1; * @return list */ java.util.List getExchangesList(); /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Exchange */ org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index); /** * repeated .protocol.Exchange exchanges = 1; * @return int */ int getExchangesCount(); /** * repeated .protocol.Exchange exchanges = 1; * @return list */ java.util.List getExchangesOrBuilderList(); /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return ExchangeOrBuilder */ org.vision.visionjsdk.proto.Response.ExchangeOrBuilder getExchangesOrBuilder( int index); } /** * Protobuf type {@code protocol.ExchangeList} */ public static final class ExchangeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExchangeList) ExchangeListOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeList.newBuilder() to construct. private ExchangeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeList() { exchanges_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExchangeList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { exchanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } exchanges_.add( input.readMessage(org.vision.visionjsdk.proto.Response.Exchange.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)) { exchanges_ = java.util.Collections.unmodifiableList(exchanges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ExchangeList.class, org.vision.visionjsdk.proto.Response.ExchangeList.Builder.class); } public static final int EXCHANGES_FIELD_NUMBER = 1; private java.util.List exchanges_; /** * repeated .protocol.Exchange exchanges = 1; * @return list */ @java.lang.Override public java.util.List getExchangesList() { return exchanges_; } /** * repeated .protocol.Exchange exchanges = 1; * @return list */ @java.lang.Override public java.util.List getExchangesOrBuilderList() { return exchanges_; } /** * repeated .protocol.Exchange exchanges = 1; * @return int */ @java.lang.Override public int getExchangesCount() { return exchanges_.size(); } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Exchange */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index) { return exchanges_.get(index); } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return ExchangeOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Response.ExchangeOrBuilder getExchangesOrBuilder( int index) { return exchanges_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < exchanges_.size(); i++) { output.writeMessage(1, exchanges_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < exchanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, exchanges_.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.vision.visionjsdk.proto.Response.ExchangeList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.ExchangeList other = (org.vision.visionjsdk.proto.Response.ExchangeList) obj; if (!getExchangesList() .equals(other.getExchangesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getExchangesCount() > 0) { hash = (37 * hash) + EXCHANGES_FIELD_NUMBER; hash = (53 * hash) + getExchangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ExchangeList 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.vision.visionjsdk.proto.Response.ExchangeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ExchangeList 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.vision.visionjsdk.proto.Response.ExchangeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ExchangeList 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.vision.visionjsdk.proto.Response.ExchangeList 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 protocol.ExchangeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExchangeList) org.vision.visionjsdk.proto.Response.ExchangeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ExchangeList.class, org.vision.visionjsdk.proto.Response.ExchangeList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.ExchangeList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExchangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (exchangesBuilder_ == null) { exchanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { exchangesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ExchangeList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.ExchangeList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ExchangeList build() { org.vision.visionjsdk.proto.Response.ExchangeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ExchangeList buildPartial() { org.vision.visionjsdk.proto.Response.ExchangeList result = new org.vision.visionjsdk.proto.Response.ExchangeList(this); int from_bitField0_ = bitField0_; if (exchangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { exchanges_ = java.util.Collections.unmodifiableList(exchanges_); bitField0_ = (bitField0_ & ~0x00000001); } result.exchanges_ = exchanges_; } else { result.exchanges_ = exchangesBuilder_.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.vision.visionjsdk.proto.Response.ExchangeList) { return mergeFrom((org.vision.visionjsdk.proto.Response.ExchangeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ExchangeList other) { if (other == org.vision.visionjsdk.proto.Response.ExchangeList.getDefaultInstance()) return this; if (exchangesBuilder_ == null) { if (!other.exchanges_.isEmpty()) { if (exchanges_.isEmpty()) { exchanges_ = other.exchanges_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExchangesIsMutable(); exchanges_.addAll(other.exchanges_); } onChanged(); } } else { if (!other.exchanges_.isEmpty()) { if (exchangesBuilder_.isEmpty()) { exchangesBuilder_.dispose(); exchangesBuilder_ = null; exchanges_ = other.exchanges_; bitField0_ = (bitField0_ & ~0x00000001); exchangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExchangesFieldBuilder() : null; } else { exchangesBuilder_.addAllMessages(other.exchanges_); } } } 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.vision.visionjsdk.proto.Response.ExchangeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.ExchangeList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List exchanges_ = java.util.Collections.emptyList(); private void ensureExchangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exchanges_ = new java.util.ArrayList(exchanges_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.proto.Response.ExchangeOrBuilder> exchangesBuilder_; /** * repeated .protocol.Exchange exchanges = 1; * @return list */ public java.util.List getExchangesList() { if (exchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(exchanges_); } else { return exchangesBuilder_.getMessageList(); } } /** * repeated .protocol.Exchange exchanges = 1; * @return int */ public int getExchangesCount() { if (exchangesBuilder_ == null) { return exchanges_.size(); } else { return exchangesBuilder_.getCount(); } } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Exchange */ public org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index) { if (exchangesBuilder_ == null) { return exchanges_.get(index); } else { return exchangesBuilder_.getMessage(index); } } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @param value value * @return Builder */ public Builder setExchanges( int index, org.vision.visionjsdk.proto.Response.Exchange value) { if (exchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangesIsMutable(); exchanges_.set(index, value); onChanged(); } else { exchangesBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setExchanges( int index, org.vision.visionjsdk.proto.Response.Exchange.Builder builderForValue) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.set(index, builderForValue.build()); onChanged(); } else { exchangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param value value * @return Builder */ public Builder addExchanges(org.vision.visionjsdk.proto.Response.Exchange value) { if (exchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangesIsMutable(); exchanges_.add(value); onChanged(); } else { exchangesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @param value value * @return Builder */ public Builder addExchanges( int index, org.vision.visionjsdk.proto.Response.Exchange value) { if (exchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangesIsMutable(); exchanges_.add(index, value); onChanged(); } else { exchangesBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param builderForValue builderForValue * @return Builder */ public Builder addExchanges( org.vision.visionjsdk.proto.Response.Exchange.Builder builderForValue) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.add(builderForValue.build()); onChanged(); } else { exchangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addExchanges( int index, org.vision.visionjsdk.proto.Response.Exchange.Builder builderForValue) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.add(index, builderForValue.build()); onChanged(); } else { exchangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param values values * @return Builder */ public Builder addAllExchanges( java.lang.Iterable values) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exchanges_); onChanged(); } else { exchangesBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @return Builder */ public Builder clearExchanges() { if (exchangesBuilder_ == null) { exchanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { exchangesBuilder_.clear(); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Builder */ public Builder removeExchanges(int index) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.remove(index); onChanged(); } else { exchangesBuilder_.remove(index); } return this; } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Exchange.Builder getExchangesBuilder( int index) { return getExchangesFieldBuilder().getBuilder(index); } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return ExchangeOrBuilder */ public org.vision.visionjsdk.proto.Response.ExchangeOrBuilder getExchangesOrBuilder( int index) { if (exchangesBuilder_ == null) { return exchanges_.get(index); } else { return exchangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Exchange exchanges = 1; * @return list */ public java.util.List getExchangesOrBuilderList() { if (exchangesBuilder_ != null) { return exchangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exchanges_); } } /** * repeated .protocol.Exchange exchanges = 1; * @return Builder */ public org.vision.visionjsdk.proto.Response.Exchange.Builder addExchangesBuilder() { return getExchangesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance()); } /** * repeated .protocol.Exchange exchanges = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Exchange.Builder addExchangesBuilder( int index) { return getExchangesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance()); } /** * repeated .protocol.Exchange exchanges = 1; * @return list */ public java.util.List getExchangesBuilderList() { return getExchangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.proto.Response.ExchangeOrBuilder> getExchangesFieldBuilder() { if (exchangesBuilder_ == null) { exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.proto.Response.ExchangeOrBuilder>( exchanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); exchanges_ = null; } return exchangesBuilder_; } @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:protocol.ExchangeList) } // @@protoc_insertion_point(class_scope:protocol.ExchangeList) private static final org.vision.visionjsdk.proto.Response.ExchangeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ExchangeList(); } public static org.vision.visionjsdk.proto.Response.ExchangeList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExchangeList(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.vision.visionjsdk.proto.Response.ExchangeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssetIssueListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AssetIssueList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ java.util.List getAssetsList(); /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContract */ org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index); /** * repeated .protocol.AssetIssueContract assets = 1; * @return int */ int getAssetsCount(); /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ java.util.List getAssetsOrBuilderList(); /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContractOrBuilder */ org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder( int index); } /** * Protobuf type {@code protocol.AssetIssueList} */ public static final class AssetIssueList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AssetIssueList) AssetIssueListOrBuilder { private static final long serialVersionUID = 0L; // Use AssetIssueList.newBuilder() to construct. private AssetIssueList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetIssueList() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetIssueList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssetIssueList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } assets_.add( input.readMessage(org.vision.visionjsdk.proto.Contract.AssetIssueContract.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)) { assets_ = java.util.Collections.unmodifiableList(assets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AssetIssueList.class, org.vision.visionjsdk.proto.Response.AssetIssueList.Builder.class); } public static final int ASSETS_FIELD_NUMBER = 1; private java.util.List assets_; /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ @java.lang.Override public java.util.List getAssetsList() { return assets_; } /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ @java.lang.Override public java.util.List getAssetsOrBuilderList() { return assets_; } /** * repeated .protocol.AssetIssueContract assets = 1; * @return int */ @java.lang.Override public int getAssetsCount() { return assets_.size(); } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContract */ @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index) { return assets_.get(index); } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContractOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder( 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 { for (int i = 0; i < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < assets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, assets_.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.vision.visionjsdk.proto.Response.AssetIssueList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.AssetIssueList other = (org.vision.visionjsdk.proto.Response.AssetIssueList) obj; 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 = 46; hash = (19 * hash) + getDescriptor().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 org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AssetIssueList 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.vision.visionjsdk.proto.Response.AssetIssueList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AssetIssueList 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.vision.visionjsdk.proto.Response.AssetIssueList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AssetIssueList 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.vision.visionjsdk.proto.Response.AssetIssueList 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 protocol.AssetIssueList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AssetIssueList) org.vision.visionjsdk.proto.Response.AssetIssueListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AssetIssueList.class, org.vision.visionjsdk.proto.Response.AssetIssueList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.AssetIssueList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAssetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { assetsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AssetIssueList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.AssetIssueList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.AssetIssueList build() { org.vision.visionjsdk.proto.Response.AssetIssueList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AssetIssueList buildPartial() { org.vision.visionjsdk.proto.Response.AssetIssueList result = new org.vision.visionjsdk.proto.Response.AssetIssueList(this); int from_bitField0_ = bitField0_; if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { assets_ = java.util.Collections.unmodifiableList(assets_); bitField0_ = (bitField0_ & ~0x00000001); } result.assets_ = assets_; } else { result.assets_ = assetsBuilder_.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.vision.visionjsdk.proto.Response.AssetIssueList) { return mergeFrom((org.vision.visionjsdk.proto.Response.AssetIssueList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AssetIssueList other) { if (other == org.vision.visionjsdk.proto.Response.AssetIssueList.getDefaultInstance()) return this; if (assetsBuilder_ == null) { if (!other.assets_.isEmpty()) { if (assets_.isEmpty()) { assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetsIsMutable(); assets_.addAll(other.assets_); } onChanged(); } } else { if (!other.assets_.isEmpty()) { if (assetsBuilder_.isEmpty()) { assetsBuilder_.dispose(); assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); assetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } } } 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.vision.visionjsdk.proto.Response.AssetIssueList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.AssetIssueList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List assets_ = java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder> assetsBuilder_; /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ public java.util.List getAssetsList() { if (assetsBuilder_ == null) { return java.util.Collections.unmodifiableList(assets_); } else { return assetsBuilder_.getMessageList(); } } /** * repeated .protocol.AssetIssueContract assets = 1; * @return int */ public int getAssetsCount() { if (assetsBuilder_ == null) { return assets_.size(); } else { return assetsBuilder_.getCount(); } } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContract */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessage(index); } } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @param value value * @return Builder */ public Builder setAssets( int index, org.vision.visionjsdk.proto.Contract.AssetIssueContract value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.set(index, value); onChanged(); } else { assetsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setAssets( int index, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.set(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param value value * @return Builder */ public Builder addAssets(org.vision.visionjsdk.proto.Contract.AssetIssueContract value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(value); onChanged(); } else { assetsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @param value value * @return Builder */ public Builder addAssets( int index, org.vision.visionjsdk.proto.Contract.AssetIssueContract value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(index, value); onChanged(); } else { assetsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param builderForValue builderForValue * @return Builder */ public Builder addAssets( org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addAssets( int index, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param values values * @return Builder */ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @return Builder */ public Builder clearAssets() { if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { assetsBuilder_.clear(); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return Builder */ public Builder removeAssets(int index) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.remove(index); onChanged(); } else { assetsBuilder_.remove(index); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder getAssetsBuilder( int index) { return getAssetsFieldBuilder().getBuilder(index); } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return AssetIssueContractOrBuilder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder( int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ public java.util.List getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assets_); } } /** * repeated .protocol.AssetIssueContract assets = 1; * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder addAssetsBuilder() { return getAssetsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract assets = 1; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder addAssetsBuilder( int index) { return getAssetsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract assets = 1; * @return list */ public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder>( assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } @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:protocol.AssetIssueList) } // @@protoc_insertion_point(class_scope:protocol.AssetIssueList) private static final org.vision.visionjsdk.proto.Response.AssetIssueList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AssetIssueList(); } public static org.vision.visionjsdk.proto.Response.AssetIssueList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetIssueList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssetIssueList(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.vision.visionjsdk.proto.Response.AssetIssueList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BlockList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Block block = 1; * @return list */ java.util.List getBlockList(); /** * repeated .protocol.Block block = 1; * @param index index * @return Block */ org.vision.visionjsdk.proto.Chain.Block getBlock(int index); /** * repeated .protocol.Block block = 1; * @return int */ int getBlockCount(); /** * repeated .protocol.Block block = 1; * @return list */ java.util.List getBlockOrBuilderList(); /** * repeated .protocol.Block block = 1; * @param index index * @return BlockOrBuilder */ org.vision.visionjsdk.proto.Chain.BlockOrBuilder getBlockOrBuilder( int index); } /** * Protobuf type {@code protocol.BlockList} */ public static final class BlockList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BlockList) BlockListOrBuilder { private static final long serialVersionUID = 0L; // Use BlockList.newBuilder() to construct. private BlockList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockList() { block_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { block_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } block_.add( input.readMessage(org.vision.visionjsdk.proto.Chain.Block.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)) { block_ = java.util.Collections.unmodifiableList(block_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.BlockList.class, org.vision.visionjsdk.proto.Response.BlockList.Builder.class); } public static final int BLOCK_FIELD_NUMBER = 1; private java.util.List block_; /** * repeated .protocol.Block block = 1; * @return list */ @java.lang.Override public java.util.List getBlockList() { return block_; } /** * repeated .protocol.Block block = 1; * @return list */ @java.lang.Override public java.util.List getBlockOrBuilderList() { return block_; } /** * repeated .protocol.Block block = 1; * @return int */ @java.lang.Override public int getBlockCount() { return block_.size(); } /** * repeated .protocol.Block block = 1; * @param index index * @return Block */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Block getBlock(int index) { return block_.get(index); } /** * repeated .protocol.Block block = 1; * @param index index * @return BlockOrBuilder */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.BlockOrBuilder getBlockOrBuilder( int index) { return block_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < block_.size(); i++) { output.writeMessage(1, block_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < block_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, block_.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.vision.visionjsdk.proto.Response.BlockList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.BlockList other = (org.vision.visionjsdk.proto.Response.BlockList) obj; if (!getBlockList() .equals(other.getBlockList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getBlockCount() > 0) { hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlockList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.BlockList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.BlockList 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.vision.visionjsdk.proto.Response.BlockList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.BlockList 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.vision.visionjsdk.proto.Response.BlockList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.BlockList 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.vision.visionjsdk.proto.Response.BlockList 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 protocol.BlockList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BlockList) org.vision.visionjsdk.proto.Response.BlockListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.BlockList.class, org.vision.visionjsdk.proto.Response.BlockList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.BlockList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBlockFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (blockBuilder_ == null) { block_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { blockBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.BlockList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.BlockList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.BlockList build() { org.vision.visionjsdk.proto.Response.BlockList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.BlockList buildPartial() { org.vision.visionjsdk.proto.Response.BlockList result = new org.vision.visionjsdk.proto.Response.BlockList(this); int from_bitField0_ = bitField0_; if (blockBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { block_ = java.util.Collections.unmodifiableList(block_); bitField0_ = (bitField0_ & ~0x00000001); } result.block_ = block_; } else { result.block_ = blockBuilder_.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.vision.visionjsdk.proto.Response.BlockList) { return mergeFrom((org.vision.visionjsdk.proto.Response.BlockList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockList other) { if (other == org.vision.visionjsdk.proto.Response.BlockList.getDefaultInstance()) return this; if (blockBuilder_ == null) { if (!other.block_.isEmpty()) { if (block_.isEmpty()) { block_ = other.block_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlockIsMutable(); block_.addAll(other.block_); } onChanged(); } } else { if (!other.block_.isEmpty()) { if (blockBuilder_.isEmpty()) { blockBuilder_.dispose(); blockBuilder_ = null; block_ = other.block_; bitField0_ = (bitField0_ & ~0x00000001); blockBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBlockFieldBuilder() : null; } else { blockBuilder_.addAllMessages(other.block_); } } } 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.vision.visionjsdk.proto.Response.BlockList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.BlockList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List block_ = java.util.Collections.emptyList(); private void ensureBlockIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { block_ = new java.util.ArrayList(block_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.proto.Chain.BlockOrBuilder> blockBuilder_; /** * repeated .protocol.Block block = 1; * @return list */ public java.util.List getBlockList() { if (blockBuilder_ == null) { return java.util.Collections.unmodifiableList(block_); } else { return blockBuilder_.getMessageList(); } } /** * repeated .protocol.Block block = 1; * @return int */ public int getBlockCount() { if (blockBuilder_ == null) { return block_.size(); } else { return blockBuilder_.getCount(); } } /** * repeated .protocol.Block block = 1; * @param index index * @return Block */ public org.vision.visionjsdk.proto.Chain.Block getBlock(int index) { if (blockBuilder_ == null) { return block_.get(index); } else { return blockBuilder_.getMessage(index); } } public Builder setBlock( int index, org.vision.visionjsdk.proto.Chain.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockIsMutable(); block_.set(index, value); onChanged(); } else { blockBuilder_.setMessage(index, value); } return this; } public Builder setBlock( int index, org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.set(index, builderForValue.build()); onChanged(); } else { blockBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addBlock(org.vision.visionjsdk.proto.Chain.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockIsMutable(); block_.add(value); onChanged(); } else { blockBuilder_.addMessage(value); } return this; } public Builder addBlock( int index, org.vision.visionjsdk.proto.Chain.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockIsMutable(); block_.add(index, value); onChanged(); } else { blockBuilder_.addMessage(index, value); } return this; } public Builder addBlock( org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.add(builderForValue.build()); onChanged(); } else { blockBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addBlock( int index, org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.add(index, builderForValue.build()); onChanged(); } else { blockBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllBlock( java.lang.Iterable values) { if (blockBuilder_ == null) { ensureBlockIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, block_); onChanged(); } else { blockBuilder_.addAllMessages(values); } return this; } public Builder clearBlock() { if (blockBuilder_ == null) { block_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { blockBuilder_.clear(); } return this; } public Builder removeBlock(int index) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.remove(index); onChanged(); } else { blockBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Chain.Block.Builder getBlockBuilder( int index) { return getBlockFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Chain.BlockOrBuilder getBlockOrBuilder( int index) { if (blockBuilder_ == null) { return block_.get(index); } else { return blockBuilder_.getMessageOrBuilder(index); } } public java.util.List getBlockOrBuilderList() { if (blockBuilder_ != null) { return blockBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(block_); } } public org.vision.visionjsdk.proto.Chain.Block.Builder addBlockBuilder() { return getBlockFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance()); } public org.vision.visionjsdk.proto.Chain.Block.Builder addBlockBuilder( int index) { return getBlockFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance()); } public java.util.List getBlockBuilderList() { return getBlockFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.proto.Chain.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.proto.Chain.BlockOrBuilder>( block_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); block_ = null; } return blockBuilder_; } @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:protocol.BlockList) } // @@protoc_insertion_point(class_scope:protocol.BlockList) private static final org.vision.visionjsdk.proto.Response.BlockList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockList(); } public static org.vision.visionjsdk.proto.Response.BlockList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockList(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.vision.visionjsdk.proto.Response.BlockList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionList) com.google.protobuf.MessageOrBuilder { java.util.List getTransactionList(); org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index); int getTransactionCount(); java.util.List getTransactionOrBuilderList(); org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder( int index); } /** * Protobuf type {@code protocol.TransactionList} */ public static final class TransactionList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionList) TransactionListOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionList.newBuilder() to construct. private TransactionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionList() { transaction_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transaction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } transaction_.add( input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.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)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionList.class, org.vision.visionjsdk.proto.Response.TransactionList.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private java.util.List transaction_; @java.lang.Override public java.util.List getTransactionList() { return transaction_; } @java.lang.Override public java.util.List getTransactionOrBuilderList() { return transaction_; } @java.lang.Override public int getTransactionCount() { return transaction_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index) { return transaction_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder( int index) { return transaction_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transaction_.size(); i++) { output.writeMessage(1, transaction_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < transaction_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transaction_.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.vision.visionjsdk.proto.Response.TransactionList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionList other = (org.vision.visionjsdk.proto.Response.TransactionList) obj; if (!getTransactionList() .equals(other.getTransactionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionCount() > 0) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransactionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionList 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.vision.visionjsdk.proto.Response.TransactionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionList 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.vision.visionjsdk.proto.Response.TransactionList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionList 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.vision.visionjsdk.proto.Response.TransactionList 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 protocol.TransactionList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionList) org.vision.visionjsdk.proto.Response.TransactionListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionList.class, org.vision.visionjsdk.proto.Response.TransactionList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transactionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionList build() { org.vision.visionjsdk.proto.Response.TransactionList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionList buildPartial() { org.vision.visionjsdk.proto.Response.TransactionList result = new org.vision.visionjsdk.proto.Response.TransactionList(this); int from_bitField0_ = bitField0_; if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); bitField0_ = (bitField0_ & ~0x00000001); } result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.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.vision.visionjsdk.proto.Response.TransactionList) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionList other) { if (other == org.vision.visionjsdk.proto.Response.TransactionList.getDefaultInstance()) return this; if (transactionBuilder_ == null) { if (!other.transaction_.isEmpty()) { if (transaction_.isEmpty()) { transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransactionIsMutable(); transaction_.addAll(other.transaction_); } onChanged(); } } else { if (!other.transaction_.isEmpty()) { if (transactionBuilder_.isEmpty()) { transactionBuilder_.dispose(); transactionBuilder_ = null; transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000001); transactionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionFieldBuilder() : null; } else { transactionBuilder_.addAllMessages(other.transaction_); } } } 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.vision.visionjsdk.proto.Response.TransactionList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List transaction_ = java.util.Collections.emptyList(); private void ensureTransactionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transaction_ = new java.util.ArrayList(transaction_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_; public java.util.List getTransactionList() { if (transactionBuilder_ == null) { return java.util.Collections.unmodifiableList(transaction_); } else { return transactionBuilder_.getMessageList(); } } public int getTransactionCount() { if (transactionBuilder_ == null) { return transaction_.size(); } else { return transactionBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessage(index); } } public Builder setTransaction( int index, org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.set(index, value); onChanged(); } else { transactionBuilder_.setMessage(index, value); } return this; } public Builder setTransaction( int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.set(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(value); onChanged(); } else { transactionBuilder_.addMessage(value); } return this; } public Builder addTransaction( int index, org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(index, value); onChanged(); } else { transactionBuilder_.addMessage(index, value); } return this; } public Builder addTransaction( org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addTransaction( int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllTransaction( java.lang.Iterable values) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transaction_); onChanged(); } else { transactionBuilder_.addAllMessages(values); } return this; } public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionBuilder_.clear(); } return this; } public Builder removeTransaction(int index) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.remove(index); onChanged(); } else { transactionBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder( int index) { return getTransactionFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder( int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessageOrBuilder(index); } } public java.util.List getTransactionOrBuilderList() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transaction_); } } public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionBuilder() { return getTransactionFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance()); } public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionBuilder( int index) { return getTransactionFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance()); } public java.util.List getTransactionBuilderList() { return getTransactionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>( transaction_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } @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:protocol.TransactionList) } // @@protoc_insertion_point(class_scope:protocol.TransactionList) private static final org.vision.visionjsdk.proto.Response.TransactionList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionList(); } public static org.vision.visionjsdk.proto.Response.TransactionList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionList(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.vision.visionjsdk.proto.Response.TransactionList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegatedResourceMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceMessage) com.google.protobuf.MessageOrBuilder { /** * bytes from_address = 1; * @return The fromAddress. */ com.google.protobuf.ByteString getFromAddress(); /** * bytes to_address = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); } /** * Protobuf type {@code protocol.DelegatedResourceMessage} */ public static final class DelegatedResourceMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DelegatedResourceMessage) DelegatedResourceMessageOrBuilder { private static final long serialVersionUID = 0L; // Use DelegatedResourceMessage.newBuilder() to construct. private DelegatedResourceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelegatedResourceMessage() { fromAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegatedResourceMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DelegatedResourceMessage( 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: { fromAddress_ = input.readBytes(); break; } case 18: { toAddress_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.class, org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.Builder.class); } public static final int FROM_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString fromAddress_; /** * bytes from_address = 1; * @return The fromAddress. */ @java.lang.Override public com.google.protobuf.ByteString getFromAddress() { return fromAddress_; } public static final int TO_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString toAddress_; /** * bytes to_address = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } 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 (!fromAddress_.isEmpty()) { output.writeBytes(1, fromAddress_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!fromAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, fromAddress_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DelegatedResourceMessage other = (org.vision.visionjsdk.proto.Response.DelegatedResourceMessage) obj; if (!getFromAddress() .equals(other.getFromAddress())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getFromAddress().hashCode(); hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage 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 protocol.DelegatedResourceMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DelegatedResourceMessage) org.vision.visionjsdk.proto.Response.DelegatedResourceMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.class, org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.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(); fromAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage build() { org.vision.visionjsdk.proto.Response.DelegatedResourceMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage buildPartial() { org.vision.visionjsdk.proto.Response.DelegatedResourceMessage result = new org.vision.visionjsdk.proto.Response.DelegatedResourceMessage(this); result.fromAddress_ = fromAddress_; result.toAddress_ = toAddress_; 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage) { return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResourceMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResourceMessage other) { if (other == org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.getDefaultInstance()) return this; if (other.getFromAddress() != com.google.protobuf.ByteString.EMPTY) { setFromAddress(other.getFromAddress()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResourceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString fromAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes from_address = 1; * @return The fromAddress. */ @java.lang.Override public com.google.protobuf.ByteString getFromAddress() { return fromAddress_; } /** * bytes from_address = 1; * @param value The fromAddress to set. * @return This builder for chaining. */ public Builder setFromAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fromAddress_ = value; onChanged(); return this; } /** * bytes from_address = 1; * @return This builder for chaining. */ public Builder clearFromAddress() { fromAddress_ = getDefaultInstance().getFromAddress(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes to_address = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes to_address = 2; * @param value The toAddress to set. * @return This builder for chaining. */ public Builder setToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; onChanged(); return this; } /** * bytes to_address = 2; * @return This builder for chaining. */ public Builder clearToAddress() { toAddress_ = getDefaultInstance().getToAddress(); 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:protocol.DelegatedResourceMessage) } // @@protoc_insertion_point(class_scope:protocol.DelegatedResourceMessage) private static final org.vision.visionjsdk.proto.Response.DelegatedResourceMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResourceMessage(); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelegatedResourceMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DelegatedResourceMessage(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.vision.visionjsdk.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegatedResourceListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceList) com.google.protobuf.MessageOrBuilder { java.util.List getDelegatedResourceList(); org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index); int getDelegatedResourceCount(); java.util.List getDelegatedResourceOrBuilderList(); org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder( int index); } /** * Protobuf type {@code protocol.DelegatedResourceList} */ public static final class DelegatedResourceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DelegatedResourceList) DelegatedResourceListOrBuilder { private static final long serialVersionUID = 0L; // Use DelegatedResourceList.newBuilder() to construct. private DelegatedResourceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelegatedResourceList() { delegatedResource_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegatedResourceList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DelegatedResourceList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { delegatedResource_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } delegatedResource_.add( input.readMessage(org.vision.visionjsdk.proto.Response.DelegatedResource.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)) { delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceList.class, org.vision.visionjsdk.proto.Response.DelegatedResourceList.Builder.class); } public static final int DELEGATEDRESOURCE_FIELD_NUMBER = 1; private java.util.List delegatedResource_; @java.lang.Override public java.util.List getDelegatedResourceList() { return delegatedResource_; } @java.lang.Override public java.util.List getDelegatedResourceOrBuilderList() { return delegatedResource_; } @java.lang.Override public int getDelegatedResourceCount() { return delegatedResource_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index) { return delegatedResource_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder( int index) { return delegatedResource_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < delegatedResource_.size(); i++) { output.writeMessage(1, delegatedResource_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < delegatedResource_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, delegatedResource_.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.vision.visionjsdk.proto.Response.DelegatedResourceList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DelegatedResourceList other = (org.vision.visionjsdk.proto.Response.DelegatedResourceList) obj; if (!getDelegatedResourceList() .equals(other.getDelegatedResourceList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getDelegatedResourceCount() > 0) { hash = (37 * hash) + DELEGATEDRESOURCE_FIELD_NUMBER; hash = (53 * hash) + getDelegatedResourceList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList 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.vision.visionjsdk.proto.Response.DelegatedResourceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList 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.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList 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.vision.visionjsdk.proto.Response.DelegatedResourceList 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 protocol.DelegatedResourceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DelegatedResourceList) org.vision.visionjsdk.proto.Response.DelegatedResourceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceList.class, org.vision.visionjsdk.proto.Response.DelegatedResourceList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DelegatedResourceList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDelegatedResourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (delegatedResourceBuilder_ == null) { delegatedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { delegatedResourceBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DelegatedResourceList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceList build() { org.vision.visionjsdk.proto.Response.DelegatedResourceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceList buildPartial() { org.vision.visionjsdk.proto.Response.DelegatedResourceList result = new org.vision.visionjsdk.proto.Response.DelegatedResourceList(this); int from_bitField0_ = bitField0_; if (delegatedResourceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_); bitField0_ = (bitField0_ & ~0x00000001); } result.delegatedResource_ = delegatedResource_; } else { result.delegatedResource_ = delegatedResourceBuilder_.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.vision.visionjsdk.proto.Response.DelegatedResourceList) { return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResourceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResourceList other) { if (other == org.vision.visionjsdk.proto.Response.DelegatedResourceList.getDefaultInstance()) return this; if (delegatedResourceBuilder_ == null) { if (!other.delegatedResource_.isEmpty()) { if (delegatedResource_.isEmpty()) { delegatedResource_ = other.delegatedResource_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDelegatedResourceIsMutable(); delegatedResource_.addAll(other.delegatedResource_); } onChanged(); } } else { if (!other.delegatedResource_.isEmpty()) { if (delegatedResourceBuilder_.isEmpty()) { delegatedResourceBuilder_.dispose(); delegatedResourceBuilder_ = null; delegatedResource_ = other.delegatedResource_; bitField0_ = (bitField0_ & ~0x00000001); delegatedResourceBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDelegatedResourceFieldBuilder() : null; } else { delegatedResourceBuilder_.addAllMessages(other.delegatedResource_); } } } 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.vision.visionjsdk.proto.Response.DelegatedResourceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResourceList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List delegatedResource_ = java.util.Collections.emptyList(); private void ensureDelegatedResourceIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { delegatedResource_ = new java.util.ArrayList(delegatedResource_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder> delegatedResourceBuilder_; public java.util.List getDelegatedResourceList() { if (delegatedResourceBuilder_ == null) { return java.util.Collections.unmodifiableList(delegatedResource_); } else { return delegatedResourceBuilder_.getMessageList(); } } public int getDelegatedResourceCount() { if (delegatedResourceBuilder_ == null) { return delegatedResource_.size(); } else { return delegatedResourceBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index) { if (delegatedResourceBuilder_ == null) { return delegatedResource_.get(index); } else { return delegatedResourceBuilder_.getMessage(index); } } public Builder setDelegatedResource( int index, org.vision.visionjsdk.proto.Response.DelegatedResource value) { if (delegatedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegatedResourceIsMutable(); delegatedResource_.set(index, value); onChanged(); } else { delegatedResourceBuilder_.setMessage(index, value); } return this; } public Builder setDelegatedResource( int index, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.set(index, builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addDelegatedResource(org.vision.visionjsdk.proto.Response.DelegatedResource value) { if (delegatedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegatedResourceIsMutable(); delegatedResource_.add(value); onChanged(); } else { delegatedResourceBuilder_.addMessage(value); } return this; } public Builder addDelegatedResource( int index, org.vision.visionjsdk.proto.Response.DelegatedResource value) { if (delegatedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegatedResourceIsMutable(); delegatedResource_.add(index, value); onChanged(); } else { delegatedResourceBuilder_.addMessage(index, value); } return this; } public Builder addDelegatedResource( org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.add(builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addDelegatedResource( int index, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.add(index, builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllDelegatedResource( java.lang.Iterable values) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, delegatedResource_); onChanged(); } else { delegatedResourceBuilder_.addAllMessages(values); } return this; } public Builder clearDelegatedResource() { if (delegatedResourceBuilder_ == null) { delegatedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { delegatedResourceBuilder_.clear(); } return this; } public Builder removeDelegatedResource(int index) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.remove(index); onChanged(); } else { delegatedResourceBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder getDelegatedResourceBuilder( int index) { return getDelegatedResourceFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder( int index) { if (delegatedResourceBuilder_ == null) { return delegatedResource_.get(index); } else { return delegatedResourceBuilder_.getMessageOrBuilder(index); } } public java.util.List getDelegatedResourceOrBuilderList() { if (delegatedResourceBuilder_ != null) { return delegatedResourceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(delegatedResource_); } } public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder() { return getDelegatedResourceFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder( int index) { return getDelegatedResourceFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance()); } public java.util.List getDelegatedResourceBuilderList() { return getDelegatedResourceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder> getDelegatedResourceFieldBuilder() { if (delegatedResourceBuilder_ == null) { delegatedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder>( delegatedResource_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); delegatedResource_ = null; } return delegatedResourceBuilder_; } @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:protocol.DelegatedResourceList) } // @@protoc_insertion_point(class_scope:protocol.DelegatedResourceList) private static final org.vision.visionjsdk.proto.Response.DelegatedResourceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResourceList(); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelegatedResourceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DelegatedResourceList(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.vision.visionjsdk.proto.Response.DelegatedResourceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddressPrKeyPairMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AddressPrKeyPairMessage) com.google.protobuf.MessageOrBuilder { /** * string address = 1; * @return The address. */ java.lang.String getAddress(); /** * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** * string privateKey = 2; * @return The privateKey. */ java.lang.String getPrivateKey(); /** * string privateKey = 2; * @return The bytes for privateKey. */ com.google.protobuf.ByteString getPrivateKeyBytes(); } /** * Protobuf type {@code protocol.AddressPrKeyPairMessage} */ public static final class AddressPrKeyPairMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AddressPrKeyPairMessage) AddressPrKeyPairMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AddressPrKeyPairMessage.newBuilder() to construct. private AddressPrKeyPairMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddressPrKeyPairMessage() { address_ = ""; privateKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddressPrKeyPairMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddressPrKeyPairMessage( 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: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); privateKey_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.class, org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVATEKEY_FIELD_NUMBER = 2; private volatile java.lang.Object privateKey_; /** * string privateKey = 2; * @return The privateKey. */ @java.lang.Override public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; 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(); privateKey_ = s; return s; } } /** * string privateKey = 2; * @return The bytes for privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKey_ = 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 (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (!getPrivateKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateKey_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (!getPrivateKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateKey_); } 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage other = (org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getPrivateKey() .equals(other.getPrivateKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage 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 protocol.AddressPrKeyPairMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AddressPrKeyPairMessage) org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.class, org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.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_ = ""; privateKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage build() { org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage buildPartial() { org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage result = new org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage(this); result.address_ = address_; result.privateKey_ = privateKey_; 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) { return mergeFrom((org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage other) { if (other == org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (!other.getPrivateKey().isEmpty()) { privateKey_ = other.privateKey_; 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 { org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object address_ = ""; /** * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.lang.Object privateKey_ = ""; /** * string privateKey = 2; * @return The privateKey. */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string privateKey = 2; * @return The bytes for privateKey. */ public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string privateKey = 2; * @param value The privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } privateKey_ = value; onChanged(); return this; } /** * string privateKey = 2; * @return This builder for chaining. */ public Builder clearPrivateKey() { privateKey_ = getDefaultInstance().getPrivateKey(); onChanged(); return this; } /** * string privateKey = 2; * @param value The bytes for privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateKey_ = 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:protocol.AddressPrKeyPairMessage) } // @@protoc_insertion_point(class_scope:protocol.AddressPrKeyPairMessage) private static final org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage(); } public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddressPrKeyPairMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddressPrKeyPairMessage(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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferResponse) com.google.protobuf.MessageOrBuilder { /** * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * * @return The transaction. */ org.vision.visionjsdk.proto.Chain.Transaction getTransaction(); /** * */ org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(); /** * * @return Whether the result field is set. */ boolean hasResult(); /** * * @return The result. */ org.vision.visionjsdk.proto.Response.TransactionReturn getResult(); /** * */ org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder(); /** *
     * transaction id = sha256(transaction.raw_data)
     * 
* * bytes txid = 3; * @return The txid. */ com.google.protobuf.ByteString getTxid(); } /** * Protobuf type {@code protocol.EasyTransferResponse} */ public static final class EasyTransferResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EasyTransferResponse) EasyTransferResponseOrBuilder { private static final long serialVersionUID = 0L; // Use EasyTransferResponse.newBuilder() to construct. private EasyTransferResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EasyTransferResponse() { txid_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EasyTransferResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EasyTransferResponse( 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: { org.vision.visionjsdk.proto.Chain.Transaction.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 18: { org.vision.visionjsdk.proto.Response.TransactionReturn.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionReturn.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } case 26: { txid_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.EasyTransferResponse.class, org.vision.visionjsdk.proto.Response.EasyTransferResponse.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Chain.Transaction transaction_; /** * * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * * @return The transaction. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int RESULT_FIELD_NUMBER = 2; private org.vision.visionjsdk.proto.Response.TransactionReturn result_; /** * * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } /** * */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { return getResult(); } public static final int TXID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString txid_; /** *
     * transaction id = sha256(transaction.raw_data)
     * 
* * bytes txid = 3; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } 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 (transaction_ != null) { output.writeMessage(1, getTransaction()); } if (result_ != null) { output.writeMessage(2, getResult()); } if (!txid_.isEmpty()) { output.writeBytes(3, txid_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } if (!txid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, txid_); } 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.vision.visionjsdk.proto.Response.EasyTransferResponse)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.EasyTransferResponse other = (org.vision.visionjsdk.proto.Response.EasyTransferResponse) obj; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!getTxid() .equals(other.getTxid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse 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.vision.visionjsdk.proto.Response.EasyTransferResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse 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.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse 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.vision.visionjsdk.proto.Response.EasyTransferResponse 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 protocol.EasyTransferResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EasyTransferResponse) org.vision.visionjsdk.proto.Response.EasyTransferResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.EasyTransferResponse.class, org.vision.visionjsdk.proto.Response.EasyTransferResponse.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.EasyTransferResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } txid_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.EasyTransferResponse getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.EasyTransferResponse.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.EasyTransferResponse build() { org.vision.visionjsdk.proto.Response.EasyTransferResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.EasyTransferResponse buildPartial() { org.vision.visionjsdk.proto.Response.EasyTransferResponse result = new org.vision.visionjsdk.proto.Response.EasyTransferResponse(this); if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } result.txid_ = txid_; 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.vision.visionjsdk.proto.Response.EasyTransferResponse) { return mergeFrom((org.vision.visionjsdk.proto.Response.EasyTransferResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.EasyTransferResponse other) { if (other == org.vision.visionjsdk.proto.Response.EasyTransferResponse.getDefaultInstance()) return this; if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.getTxid() != com.google.protobuf.ByteString.EMPTY) { setTxid(other.getTxid()); } 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.vision.visionjsdk.proto.Response.EasyTransferResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.EasyTransferResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * * @return The transaction. */ public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } public Builder setTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } public Builder setTransaction( org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = org.vision.visionjsdk.proto.Chain.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private org.vision.visionjsdk.proto.Response.TransactionReturn result_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> resultBuilder_; /** * * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * * @return The result. */ public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() { if (resultBuilder_ == null) { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } public Builder setResult( org.vision.visionjsdk.proto.Response.TransactionReturn.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = org.vision.visionjsdk.proto.Response.TransactionReturn.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Response.TransactionReturn.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY; /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 3; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 3; * @param value The txid to set. * @return This builder for chaining. */ public Builder setTxid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } txid_ = value; onChanged(); return this; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 3; * @return This builder for chaining. */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); 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:protocol.EasyTransferResponse) } // @@protoc_insertion_point(class_scope:protocol.EasyTransferResponse) private static final org.vision.visionjsdk.proto.Response.EasyTransferResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.EasyTransferResponse(); } public static org.vision.visionjsdk.proto.Response.EasyTransferResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EasyTransferResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EasyTransferResponse(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.vision.visionjsdk.proto.Response.EasyTransferResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SmartContractDataWrapperOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.SmartContractDataWrapper) com.google.protobuf.MessageOrBuilder { /** * .protocol.SmartContract smart_contract = 1; * @return Whether the smartContract field is set. */ boolean hasSmartContract(); /** * .protocol.SmartContract smart_contract = 1; * @return The smartContract. */ org.vision.visionjsdk.proto.Common.SmartContract getSmartContract(); /** * .protocol.SmartContract smart_contract = 1; */ org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder(); /** * bytes runtime_code = 2; * @return The runtimeCode. */ com.google.protobuf.ByteString getRuntimeCode(); } /** * Protobuf type {@code protocol.SmartContractDataWrapper} */ public static final class SmartContractDataWrapper extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.SmartContractDataWrapper) SmartContractDataWrapperOrBuilder { private static final long serialVersionUID = 0L; // Use SmartContractDataWrapper.newBuilder() to construct. private SmartContractDataWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SmartContractDataWrapper() { runtimeCode_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SmartContractDataWrapper(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SmartContractDataWrapper( 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: { org.vision.visionjsdk.proto.Common.SmartContract.Builder subBuilder = null; if (smartContract_ != null) { subBuilder = smartContract_.toBuilder(); } smartContract_ = input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(smartContract_); smartContract_ = subBuilder.buildPartial(); } break; } case 18: { runtimeCode_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.class, org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.Builder.class); } public static final int SMART_CONTRACT_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Common.SmartContract smartContract_; /** * .protocol.SmartContract smart_contract = 1; * @return Whether the smartContract field is set. */ @java.lang.Override public boolean hasSmartContract() { return smartContract_ != null; } /** * .protocol.SmartContract smart_contract = 1; * @return The smartContract. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContract getSmartContract() { return smartContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } /** * .protocol.SmartContract smart_contract = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() { return getSmartContract(); } public static final int RUNTIME_CODE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString runtimeCode_; /** * bytes runtime_code = 2; * @return The runtimeCode. */ @java.lang.Override public com.google.protobuf.ByteString getRuntimeCode() { return runtimeCode_; } 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 (smartContract_ != null) { output.writeMessage(1, getSmartContract()); } if (!runtimeCode_.isEmpty()) { output.writeBytes(2, runtimeCode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (smartContract_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSmartContract()); } if (!runtimeCode_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, runtimeCode_); } 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.SmartContractDataWrapper other = (org.vision.visionjsdk.proto.Response.SmartContractDataWrapper) obj; if (hasSmartContract() != other.hasSmartContract()) return false; if (hasSmartContract()) { if (!getSmartContract() .equals(other.getSmartContract())) return false; } if (!getRuntimeCode() .equals(other.getRuntimeCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSmartContract()) { hash = (37 * hash) + SMART_CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getSmartContract().hashCode(); } hash = (37 * hash) + RUNTIME_CODE_FIELD_NUMBER; hash = (53 * hash) + getRuntimeCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper 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 protocol.SmartContractDataWrapper} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.SmartContractDataWrapper) org.vision.visionjsdk.proto.Response.SmartContractDataWrapperOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.class, org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (smartContractBuilder_ == null) { smartContract_ = null; } else { smartContract_ = null; smartContractBuilder_ = null; } runtimeCode_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper build() { org.vision.visionjsdk.proto.Response.SmartContractDataWrapper result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper buildPartial() { org.vision.visionjsdk.proto.Response.SmartContractDataWrapper result = new org.vision.visionjsdk.proto.Response.SmartContractDataWrapper(this); if (smartContractBuilder_ == null) { result.smartContract_ = smartContract_; } else { result.smartContract_ = smartContractBuilder_.build(); } result.runtimeCode_ = runtimeCode_; 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper) { return mergeFrom((org.vision.visionjsdk.proto.Response.SmartContractDataWrapper)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.SmartContractDataWrapper other) { if (other == org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.getDefaultInstance()) return this; if (other.hasSmartContract()) { mergeSmartContract(other.getSmartContract()); } if (other.getRuntimeCode() != com.google.protobuf.ByteString.EMPTY) { setRuntimeCode(other.getRuntimeCode()); } 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.SmartContractDataWrapper) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Common.SmartContract smartContract_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder> smartContractBuilder_; /** * .protocol.SmartContract smart_contract = 1; * @return Whether the smartContract field is set. */ public boolean hasSmartContract() { return smartContractBuilder_ != null || smartContract_ != null; } /** * .protocol.SmartContract smart_contract = 1; * @return The smartContract. */ public org.vision.visionjsdk.proto.Common.SmartContract getSmartContract() { if (smartContractBuilder_ == null) { return smartContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } else { return smartContractBuilder_.getMessage(); } } public Builder setSmartContract(org.vision.visionjsdk.proto.Common.SmartContract value) { if (smartContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartContract_ = value; onChanged(); } else { smartContractBuilder_.setMessage(value); } return this; } public Builder setSmartContract( org.vision.visionjsdk.proto.Common.SmartContract.Builder builderForValue) { if (smartContractBuilder_ == null) { smartContract_ = builderForValue.build(); onChanged(); } else { smartContractBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeSmartContract(org.vision.visionjsdk.proto.Common.SmartContract value) { if (smartContractBuilder_ == null) { if (smartContract_ != null) { smartContract_ = org.vision.visionjsdk.proto.Common.SmartContract.newBuilder(smartContract_).mergeFrom(value).buildPartial(); } else { smartContract_ = value; } onChanged(); } else { smartContractBuilder_.mergeFrom(value); } return this; } public Builder clearSmartContract() { if (smartContractBuilder_ == null) { smartContract_ = null; onChanged(); } else { smartContract_ = null; smartContractBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Common.SmartContract.Builder getSmartContractBuilder() { onChanged(); return getSmartContractFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() { if (smartContractBuilder_ != null) { return smartContractBuilder_.getMessageOrBuilder(); } else { return smartContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder> getSmartContractFieldBuilder() { if (smartContractBuilder_ == null) { smartContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder>( getSmartContract(), getParentForChildren(), isClean()); smartContract_ = null; } return smartContractBuilder_; } private com.google.protobuf.ByteString runtimeCode_ = com.google.protobuf.ByteString.EMPTY; /** * bytes runtime_code = 2; * @return The runtimeCode. */ @java.lang.Override public com.google.protobuf.ByteString getRuntimeCode() { return runtimeCode_; } /** * bytes runtime_code = 2; * @param value The runtimeCode to set. * @return This builder for chaining. */ public Builder setRuntimeCode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } runtimeCode_ = value; onChanged(); return this; } /** * bytes runtime_code = 2; * @return This builder for chaining. */ public Builder clearRuntimeCode() { runtimeCode_ = getDefaultInstance().getRuntimeCode(); 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:protocol.SmartContractDataWrapper) } // @@protoc_insertion_point(class_scope:protocol.SmartContractDataWrapper) private static final org.vision.visionjsdk.proto.Response.SmartContractDataWrapper DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.SmartContractDataWrapper(); } public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SmartContractDataWrapper parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SmartContractDataWrapper(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.vision.visionjsdk.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InternalTransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.InternalTransaction) com.google.protobuf.MessageOrBuilder { /** *
     * internalTransaction identity, the root InternalTransaction hash
     * should equals to root transaction id.
     * 
* * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** *
     * the one send vs (TBD: or token) via function
     * 
* * bytes caller_address = 2; * @return The callerAddress. */ com.google.protobuf.ByteString getCallerAddress(); /** *
     * the one recieve vs (TBD: or token) via function
     * 
* * bytes transferTo_address = 3; * @return The transferToAddress. */ com.google.protobuf.ByteString getTransferToAddress(); java.util.List getCallValueInfoList(); org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index); int getCallValueInfoCount(); java.util.List getCallValueInfoOrBuilderList(); org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder( int index); /** * bytes note = 5; * @return The note. */ com.google.protobuf.ByteString getNote(); /** * bool rejected = 6; * @return The rejected. */ boolean getRejected(); } /** * Protobuf type {@code protocol.InternalTransaction} */ public static final class InternalTransaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.InternalTransaction) InternalTransactionOrBuilder { private static final long serialVersionUID = 0L; // Use InternalTransaction.newBuilder() to construct. private InternalTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InternalTransaction() { hash_ = com.google.protobuf.ByteString.EMPTY; callerAddress_ = com.google.protobuf.ByteString.EMPTY; transferToAddress_ = com.google.protobuf.ByteString.EMPTY; callValueInfo_ = java.util.Collections.emptyList(); note_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InternalTransaction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InternalTransaction( 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: { hash_ = input.readBytes(); break; } case 18: { callerAddress_ = input.readBytes(); break; } case 26: { transferToAddress_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { callValueInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } callValueInfo_.add( input.readMessage(org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.parser(), extensionRegistry)); break; } case 42: { note_ = input.readBytes(); break; } case 48: { rejected_ = input.readBool(); 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)) { callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.InternalTransaction.class, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder.class); } public interface CallValueInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.InternalTransaction.CallValueInfo) com.google.protobuf.MessageOrBuilder { /** *
       * vs (TBD: or token) value
       * 
* * int64 callValue = 1; * @return The callValue. */ long getCallValue(); /** *
       * TBD: tokenName, vs should be empty
       * 
* * string tokenId = 2; * @return The tokenId. */ java.lang.String getTokenId(); /** *
       * TBD: tokenName, vs should be empty
       * 
* * string tokenId = 2; * @return The bytes for tokenId. */ com.google.protobuf.ByteString getTokenIdBytes(); } /** * Protobuf type {@code protocol.InternalTransaction.CallValueInfo} */ public static final class CallValueInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.InternalTransaction.CallValueInfo) CallValueInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CallValueInfo.newBuilder() to construct. private CallValueInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallValueInfo() { tokenId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallValueInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CallValueInfo( 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: { callValue_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tokenId_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.class, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder.class); } public static final int CALLVALUE_FIELD_NUMBER = 1; private long callValue_; /** *
       * vs (TBD: or token) value
       * 
* * int64 callValue = 1; * @return The callValue. */ @java.lang.Override public long getCallValue() { return callValue_; } public static final int TOKENID_FIELD_NUMBER = 2; private volatile java.lang.Object tokenId_; /** *
       * TBD: tokenName, vs should be empty
       * 
* * string tokenId = 2; * @return The tokenId. */ @java.lang.Override public java.lang.String getTokenId() { java.lang.Object ref = tokenId_; 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(); tokenId_ = s; return s; } } /** *
       * TBD: tokenName, vs should be empty
       * 
* * string tokenId = 2; * @return The bytes for tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenIdBytes() { java.lang.Object ref = tokenId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenId_ = 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 (callValue_ != 0L) { output.writeInt64(1, callValue_); } if (!getTokenIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tokenId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (callValue_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, callValue_); } if (!getTokenIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tokenId_); } 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo other = (org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) obj; if (getCallValue() != other.getCallValue()) return false; if (!getTokenId() .equals(other.getTokenId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CALLVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallValue()); hash = (37 * hash) + TOKENID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo 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 protocol.InternalTransaction.CallValueInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.InternalTransaction.CallValueInfo) org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.class, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.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(); callValue_ = 0L; tokenId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo build() { org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo buildPartial() { org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo result = new org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo(this); result.callValue_ = callValue_; result.tokenId_ = tokenId_; 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo other) { if (other == org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()) return this; if (other.getCallValue() != 0L) { setCallValue(other.getCallValue()); } if (!other.getTokenId().isEmpty()) { tokenId_ = other.tokenId_; 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 { org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long callValue_ ; /** *
         * vs (TBD: or token) value
         * 
* * int64 callValue = 1; * @return The callValue. */ @java.lang.Override public long getCallValue() { return callValue_; } /** *
         * vs (TBD: or token) value
         * 
* * int64 callValue = 1; * @param value The callValue to set. * @return This builder for chaining. */ public Builder setCallValue(long value) { callValue_ = value; onChanged(); return this; } /** *
         * vs (TBD: or token) value
         * 
* * int64 callValue = 1; * @return This builder for chaining. */ public Builder clearCallValue() { callValue_ = 0L; onChanged(); return this; } private java.lang.Object tokenId_ = ""; /** *
         * TBD: tokenName, vs should be empty
         * 
* * string tokenId = 2; * @return The tokenId. */ public java.lang.String getTokenId() { java.lang.Object ref = tokenId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tokenId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * TBD: tokenName, vs should be empty
         * 
* * string tokenId = 2; * @return The bytes for tokenId. */ public com.google.protobuf.ByteString getTokenIdBytes() { java.lang.Object ref = tokenId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * TBD: tokenName, vs should be empty
         * 
* * string tokenId = 2; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; onChanged(); return this; } /** *
         * TBD: tokenName, vs should be empty
         * 
* * string tokenId = 2; * @return This builder for chaining. */ public Builder clearTokenId() { tokenId_ = getDefaultInstance().getTokenId(); onChanged(); return this; } /** *
         * TBD: tokenName, vs should be empty
         * 
* * string tokenId = 2; * @param value The bytes for tokenId to set. * @return This builder for chaining. */ public Builder setTokenIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tokenId_ = 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:protocol.InternalTransaction.CallValueInfo) } // @@protoc_insertion_point(class_scope:protocol.InternalTransaction.CallValueInfo) private static final org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo(); } public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallValueInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CallValueInfo(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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** *
     * internalTransaction identity, the root InternalTransaction hash
     * should equals to root transaction id.
     * 
* * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int CALLER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString callerAddress_; /** *
     * the one send vs (TBD: or token) via function
     * 
* * bytes caller_address = 2; * @return The callerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getCallerAddress() { return callerAddress_; } public static final int TRANSFERTO_ADDRESS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString transferToAddress_; /** *
     * the one recieve vs (TBD: or token) via function
     * 
* * bytes transferTo_address = 3; * @return The transferToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransferToAddress() { return transferToAddress_; } public static final int CALLVALUEINFO_FIELD_NUMBER = 4; private java.util.List callValueInfo_; @java.lang.Override public java.util.List getCallValueInfoList() { return callValueInfo_; } @java.lang.Override public java.util.List getCallValueInfoOrBuilderList() { return callValueInfo_; } @java.lang.Override public int getCallValueInfoCount() { return callValueInfo_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) { return callValueInfo_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder( int index) { return callValueInfo_.get(index); } public static final int NOTE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString note_; /** * bytes note = 5; * @return The note. */ @java.lang.Override public com.google.protobuf.ByteString getNote() { return note_; } public static final int REJECTED_FIELD_NUMBER = 6; private boolean rejected_; /** * bool rejected = 6; * @return The rejected. */ @java.lang.Override public boolean getRejected() { return rejected_; } 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 (!hash_.isEmpty()) { output.writeBytes(1, hash_); } if (!callerAddress_.isEmpty()) { output.writeBytes(2, callerAddress_); } if (!transferToAddress_.isEmpty()) { output.writeBytes(3, transferToAddress_); } for (int i = 0; i < callValueInfo_.size(); i++) { output.writeMessage(4, callValueInfo_.get(i)); } if (!note_.isEmpty()) { output.writeBytes(5, note_); } if (rejected_ != false) { output.writeBool(6, rejected_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } if (!callerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, callerAddress_); } if (!transferToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, transferToAddress_); } for (int i = 0; i < callValueInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, callValueInfo_.get(i)); } if (!note_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, note_); } if (rejected_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, rejected_); } 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.vision.visionjsdk.proto.Response.InternalTransaction)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.InternalTransaction other = (org.vision.visionjsdk.proto.Response.InternalTransaction) obj; if (!getHash() .equals(other.getHash())) return false; if (!getCallerAddress() .equals(other.getCallerAddress())) return false; if (!getTransferToAddress() .equals(other.getTransferToAddress())) return false; if (!getCallValueInfoList() .equals(other.getCallValueInfoList())) return false; if (!getNote() .equals(other.getNote())) return false; if (getRejected() != other.getRejected()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + CALLER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getCallerAddress().hashCode(); hash = (37 * hash) + TRANSFERTO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTransferToAddress().hashCode(); if (getCallValueInfoCount() > 0) { hash = (37 * hash) + CALLVALUEINFO_FIELD_NUMBER; hash = (53 * hash) + getCallValueInfoList().hashCode(); } hash = (37 * hash) + NOTE_FIELD_NUMBER; hash = (53 * hash) + getNote().hashCode(); hash = (37 * hash) + REJECTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRejected()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction 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.vision.visionjsdk.proto.Response.InternalTransaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction 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.vision.visionjsdk.proto.Response.InternalTransaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.InternalTransaction 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.vision.visionjsdk.proto.Response.InternalTransaction 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 protocol.InternalTransaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.InternalTransaction) org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.InternalTransaction.class, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.InternalTransaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCallValueInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; callerAddress_ = com.google.protobuf.ByteString.EMPTY; transferToAddress_ = com.google.protobuf.ByteString.EMPTY; if (callValueInfoBuilder_ == null) { callValueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { callValueInfoBuilder_.clear(); } note_ = com.google.protobuf.ByteString.EMPTY; rejected_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction build() { org.vision.visionjsdk.proto.Response.InternalTransaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction buildPartial() { org.vision.visionjsdk.proto.Response.InternalTransaction result = new org.vision.visionjsdk.proto.Response.InternalTransaction(this); int from_bitField0_ = bitField0_; result.hash_ = hash_; result.callerAddress_ = callerAddress_; result.transferToAddress_ = transferToAddress_; if (callValueInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.callValueInfo_ = callValueInfo_; } else { result.callValueInfo_ = callValueInfoBuilder_.build(); } result.note_ = note_; result.rejected_ = rejected_; 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.vision.visionjsdk.proto.Response.InternalTransaction) { return mergeFrom((org.vision.visionjsdk.proto.Response.InternalTransaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.InternalTransaction other) { if (other == org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.getCallerAddress() != com.google.protobuf.ByteString.EMPTY) { setCallerAddress(other.getCallerAddress()); } if (other.getTransferToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransferToAddress(other.getTransferToAddress()); } if (callValueInfoBuilder_ == null) { if (!other.callValueInfo_.isEmpty()) { if (callValueInfo_.isEmpty()) { callValueInfo_ = other.callValueInfo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCallValueInfoIsMutable(); callValueInfo_.addAll(other.callValueInfo_); } onChanged(); } } else { if (!other.callValueInfo_.isEmpty()) { if (callValueInfoBuilder_.isEmpty()) { callValueInfoBuilder_.dispose(); callValueInfoBuilder_ = null; callValueInfo_ = other.callValueInfo_; bitField0_ = (bitField0_ & ~0x00000001); callValueInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCallValueInfoFieldBuilder() : null; } else { callValueInfoBuilder_.addAllMessages(other.callValueInfo_); } } } if (other.getNote() != com.google.protobuf.ByteString.EMPTY) { setNote(other.getNote()); } if (other.getRejected() != false) { setRejected(other.getRejected()); } 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.vision.visionjsdk.proto.Response.InternalTransaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.InternalTransaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * internalTransaction identity, the root InternalTransaction hash
       * should equals to root transaction id.
       * 
* * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** *
       * internalTransaction identity, the root InternalTransaction hash
       * should equals to root transaction id.
       * 
* * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** *
       * internalTransaction identity, the root InternalTransaction hash
       * should equals to root transaction id.
       * 
* * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the one send vs (TBD: or token) via function
       * 
* * bytes caller_address = 2; * @return The callerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getCallerAddress() { return callerAddress_; } /** *
       * the one send vs (TBD: or token) via function
       * 
* * bytes caller_address = 2; * @param value The callerAddress to set. * @return This builder for chaining. */ public Builder setCallerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } callerAddress_ = value; onChanged(); return this; } /** *
       * the one send vs (TBD: or token) via function
       * 
* * bytes caller_address = 2; * @return This builder for chaining. */ public Builder clearCallerAddress() { callerAddress_ = getDefaultInstance().getCallerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString transferToAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the one recieve vs (TBD: or token) via function
       * 
* * bytes transferTo_address = 3; * @return The transferToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransferToAddress() { return transferToAddress_; } /** *
       * the one recieve vs (TBD: or token) via function
       * 
* * bytes transferTo_address = 3; * @param value The transferToAddress to set. * @return This builder for chaining. */ public Builder setTransferToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transferToAddress_ = value; onChanged(); return this; } /** *
       * the one recieve vs (TBD: or token) via function
       * 
* * bytes transferTo_address = 3; * @return This builder for chaining. */ public Builder clearTransferToAddress() { transferToAddress_ = getDefaultInstance().getTransferToAddress(); onChanged(); return this; } private java.util.List callValueInfo_ = java.util.Collections.emptyList(); private void ensureCallValueInfoIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { callValueInfo_ = new java.util.ArrayList(callValueInfo_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder> callValueInfoBuilder_; public java.util.List getCallValueInfoList() { if (callValueInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(callValueInfo_); } else { return callValueInfoBuilder_.getMessageList(); } } public int getCallValueInfoCount() { if (callValueInfoBuilder_ == null) { return callValueInfo_.size(); } else { return callValueInfoBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) { if (callValueInfoBuilder_ == null) { return callValueInfo_.get(index); } else { return callValueInfoBuilder_.getMessage(index); } } public Builder setCallValueInfo( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo value) { if (callValueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallValueInfoIsMutable(); callValueInfo_.set(index, value); onChanged(); } else { callValueInfoBuilder_.setMessage(index, value); } return this; } public Builder setCallValueInfo( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.set(index, builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addCallValueInfo(org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo value) { if (callValueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallValueInfoIsMutable(); callValueInfo_.add(value); onChanged(); } else { callValueInfoBuilder_.addMessage(value); } return this; } public Builder addCallValueInfo( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo value) { if (callValueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallValueInfoIsMutable(); callValueInfo_.add(index, value); onChanged(); } else { callValueInfoBuilder_.addMessage(index, value); } return this; } public Builder addCallValueInfo( org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.add(builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addCallValueInfo( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.add(index, builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllCallValueInfo( java.lang.Iterable values) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, callValueInfo_); onChanged(); } else { callValueInfoBuilder_.addAllMessages(values); } return this; } public Builder clearCallValueInfo() { if (callValueInfoBuilder_ == null) { callValueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { callValueInfoBuilder_.clear(); } return this; } public Builder removeCallValueInfo(int index) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.remove(index); onChanged(); } else { callValueInfoBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder getCallValueInfoBuilder( int index) { return getCallValueInfoFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder( int index) { if (callValueInfoBuilder_ == null) { return callValueInfo_.get(index); } else { return callValueInfoBuilder_.getMessageOrBuilder(index); } } public java.util.List getCallValueInfoOrBuilderList() { if (callValueInfoBuilder_ != null) { return callValueInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(callValueInfo_); } } public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder() { return getCallValueInfoFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder( int index) { return getCallValueInfoFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()); } public java.util.List getCallValueInfoBuilderList() { return getCallValueInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder> getCallValueInfoFieldBuilder() { if (callValueInfoBuilder_ == null) { callValueInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>( callValueInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); callValueInfo_ = null; } return callValueInfoBuilder_; } private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY; /** * bytes note = 5; * @return The note. */ @java.lang.Override public com.google.protobuf.ByteString getNote() { return note_; } /** * bytes note = 5; * @param value The note to set. * @return This builder for chaining. */ public Builder setNote(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } note_ = value; onChanged(); return this; } /** * bytes note = 5; * @return This builder for chaining. */ public Builder clearNote() { note_ = getDefaultInstance().getNote(); onChanged(); return this; } private boolean rejected_ ; /** * bool rejected = 6; * @return The rejected. */ @java.lang.Override public boolean getRejected() { return rejected_; } /** * bool rejected = 6; * @param value The rejected to set. * @return This builder for chaining. */ public Builder setRejected(boolean value) { rejected_ = value; onChanged(); return this; } /** * bool rejected = 6; * @return This builder for chaining. */ public Builder clearRejected() { rejected_ = false; 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:protocol.InternalTransaction) } // @@protoc_insertion_point(class_scope:protocol.InternalTransaction) private static final org.vision.visionjsdk.proto.Response.InternalTransaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.InternalTransaction(); } public static org.vision.visionjsdk.proto.Response.InternalTransaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InternalTransaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InternalTransaction(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.vision.visionjsdk.proto.Response.InternalTransaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceReceiptOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ResourceReceipt) com.google.protobuf.MessageOrBuilder { /** * int64 entropy_usage = 1; * @return The entropyUsage. */ long getEntropyUsage(); /** * int64 entropy_fee = 2; * @return The entropyFee. */ long getEntropyFee(); /** * int64 origin_entropy_usage = 3; * @return The originEntropyUsage. */ long getOriginEntropyUsage(); /** * int64 entropy_usage_total = 4; * @return The entropyUsageTotal. */ long getEntropyUsageTotal(); /** * int64 net_usage = 5; * @return The netUsage. */ long getNetUsage(); /** * int64 net_fee = 6; * @return The netFee. */ long getNetFee(); /** * .protocol.Transaction.Result.contractResult result = 7; * @return The enum numeric value on the wire for result. */ int getResultValue(); /** * .protocol.Transaction.Result.contractResult result = 7; * @return The result. */ org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getResult(); } /** * Protobuf type {@code protocol.ResourceReceipt} */ public static final class ResourceReceipt extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ResourceReceipt) ResourceReceiptOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceReceipt.newBuilder() to construct. private ResourceReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceReceipt() { result_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceReceipt(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceReceipt( 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: { entropyUsage_ = input.readInt64(); break; } case 16: { entropyFee_ = input.readInt64(); break; } case 24: { originEntropyUsage_ = input.readInt64(); break; } case 32: { entropyUsageTotal_ = input.readInt64(); break; } case 40: { netUsage_ = input.readInt64(); break; } case 48: { netFee_ = input.readInt64(); break; } case 56: { int rawValue = input.readEnum(); result_ = rawValue; 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.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ResourceReceipt.class, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder.class); } public static final int ENTROPY_USAGE_FIELD_NUMBER = 1; private long entropyUsage_; /** * int64 entropy_usage = 1; * @return The entropyUsage. */ @java.lang.Override public long getEntropyUsage() { return entropyUsage_; } public static final int ENTROPY_FEE_FIELD_NUMBER = 2; private long entropyFee_; /** * int64 entropy_fee = 2; * @return The entropyFee. */ @java.lang.Override public long getEntropyFee() { return entropyFee_; } public static final int ORIGIN_ENTROPY_USAGE_FIELD_NUMBER = 3; private long originEntropyUsage_; /** * int64 origin_entropy_usage = 3; * @return The originEntropyUsage. */ @java.lang.Override public long getOriginEntropyUsage() { return originEntropyUsage_; } public static final int ENTROPY_USAGE_TOTAL_FIELD_NUMBER = 4; private long entropyUsageTotal_; /** * int64 entropy_usage_total = 4; * @return The entropyUsageTotal. */ @java.lang.Override public long getEntropyUsageTotal() { return entropyUsageTotal_; } public static final int NET_USAGE_FIELD_NUMBER = 5; private long netUsage_; /** * int64 net_usage = 5; * @return The netUsage. */ @java.lang.Override public long getNetUsage() { return netUsage_; } public static final int NET_FEE_FIELD_NUMBER = 6; private long netFee_; /** * int64 net_fee = 6; * @return The netFee. */ @java.lang.Override public long getNetFee() { return netFee_; } public static final int RESULT_FIELD_NUMBER = 7; private int result_; /** * .protocol.Transaction.Result.contractResult result = 7; * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * .protocol.Transaction.Result.contractResult result = 7; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getResult() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(result_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (entropyUsage_ != 0L) { output.writeInt64(1, entropyUsage_); } if (entropyFee_ != 0L) { output.writeInt64(2, entropyFee_); } if (originEntropyUsage_ != 0L) { output.writeInt64(3, originEntropyUsage_); } if (entropyUsageTotal_ != 0L) { output.writeInt64(4, entropyUsageTotal_); } if (netUsage_ != 0L) { output.writeInt64(5, netUsage_); } if (netFee_ != 0L) { output.writeInt64(6, netFee_); } if (result_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { output.writeEnum(7, result_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (entropyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, entropyUsage_); } if (entropyFee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, entropyFee_); } if (originEntropyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, originEntropyUsage_); } if (entropyUsageTotal_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, entropyUsageTotal_); } if (netUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, netUsage_); } if (netFee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, netFee_); } if (result_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, result_); } 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.vision.visionjsdk.proto.Response.ResourceReceipt)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.ResourceReceipt other = (org.vision.visionjsdk.proto.Response.ResourceReceipt) obj; if (getEntropyUsage() != other.getEntropyUsage()) return false; if (getEntropyFee() != other.getEntropyFee()) return false; if (getOriginEntropyUsage() != other.getOriginEntropyUsage()) return false; if (getEntropyUsageTotal() != other.getEntropyUsageTotal()) return false; if (getNetUsage() != other.getNetUsage()) return false; if (getNetFee() != other.getNetFee()) return false; if (result_ != other.result_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTROPY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyUsage()); hash = (37 * hash) + ENTROPY_FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyFee()); hash = (37 * hash) + ORIGIN_ENTROPY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginEntropyUsage()); hash = (37 * hash) + ENTROPY_USAGE_TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyUsageTotal()); hash = (37 * hash) + NET_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetUsage()); hash = (37 * hash) + NET_FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetFee()); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt 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.vision.visionjsdk.proto.Response.ResourceReceipt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt 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.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt 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.vision.visionjsdk.proto.Response.ResourceReceipt 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 protocol.ResourceReceipt} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ResourceReceipt) org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ResourceReceipt.class, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.ResourceReceipt.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(); entropyUsage_ = 0L; entropyFee_ = 0L; originEntropyUsage_ = 0L; entropyUsageTotal_ = 0L; netUsage_ = 0L; netFee_ = 0L; result_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ResourceReceipt getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ResourceReceipt build() { org.vision.visionjsdk.proto.Response.ResourceReceipt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ResourceReceipt buildPartial() { org.vision.visionjsdk.proto.Response.ResourceReceipt result = new org.vision.visionjsdk.proto.Response.ResourceReceipt(this); result.entropyUsage_ = entropyUsage_; result.entropyFee_ = entropyFee_; result.originEntropyUsage_ = originEntropyUsage_; result.entropyUsageTotal_ = entropyUsageTotal_; result.netUsage_ = netUsage_; result.netFee_ = netFee_; result.result_ = result_; 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.vision.visionjsdk.proto.Response.ResourceReceipt) { return mergeFrom((org.vision.visionjsdk.proto.Response.ResourceReceipt)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ResourceReceipt other) { if (other == org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance()) return this; if (other.getEntropyUsage() != 0L) { setEntropyUsage(other.getEntropyUsage()); } if (other.getEntropyFee() != 0L) { setEntropyFee(other.getEntropyFee()); } if (other.getOriginEntropyUsage() != 0L) { setOriginEntropyUsage(other.getOriginEntropyUsage()); } if (other.getEntropyUsageTotal() != 0L) { setEntropyUsageTotal(other.getEntropyUsageTotal()); } if (other.getNetUsage() != 0L) { setNetUsage(other.getNetUsage()); } if (other.getNetFee() != 0L) { setNetFee(other.getNetFee()); } if (other.result_ != 0) { setResultValue(other.getResultValue()); } 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.vision.visionjsdk.proto.Response.ResourceReceipt parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.ResourceReceipt) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long entropyUsage_ ; /** * int64 entropy_usage = 1; * @return The entropyUsage. */ @java.lang.Override public long getEntropyUsage() { return entropyUsage_; } /** * int64 entropy_usage = 1; * @param value The entropyUsage to set. * @return This builder for chaining. */ public Builder setEntropyUsage(long value) { entropyUsage_ = value; onChanged(); return this; } /** * int64 entropy_usage = 1; * @return This builder for chaining. */ public Builder clearEntropyUsage() { entropyUsage_ = 0L; onChanged(); return this; } private long entropyFee_ ; /** * int64 entropy_fee = 2; * @return The entropyFee. */ @java.lang.Override public long getEntropyFee() { return entropyFee_; } /** * int64 entropy_fee = 2; * @param value The entropyFee to set. * @return This builder for chaining. */ public Builder setEntropyFee(long value) { entropyFee_ = value; onChanged(); return this; } /** * int64 entropy_fee = 2; * @return This builder for chaining. */ public Builder clearEntropyFee() { entropyFee_ = 0L; onChanged(); return this; } private long originEntropyUsage_ ; /** * int64 origin_entropy_usage = 3; * @return The originEntropyUsage. */ @java.lang.Override public long getOriginEntropyUsage() { return originEntropyUsage_; } /** * int64 origin_entropy_usage = 3; * @param value The originEntropyUsage to set. * @return This builder for chaining. */ public Builder setOriginEntropyUsage(long value) { originEntropyUsage_ = value; onChanged(); return this; } /** * int64 origin_entropy_usage = 3; * @return This builder for chaining. */ public Builder clearOriginEntropyUsage() { originEntropyUsage_ = 0L; onChanged(); return this; } private long entropyUsageTotal_ ; /** * int64 entropy_usage_total = 4; * @return The entropyUsageTotal. */ @java.lang.Override public long getEntropyUsageTotal() { return entropyUsageTotal_; } /** * int64 entropy_usage_total = 4; * @param value The entropyUsageTotal to set. * @return This builder for chaining. */ public Builder setEntropyUsageTotal(long value) { entropyUsageTotal_ = value; onChanged(); return this; } /** * int64 entropy_usage_total = 4; * @return This builder for chaining. */ public Builder clearEntropyUsageTotal() { entropyUsageTotal_ = 0L; onChanged(); return this; } private long netUsage_ ; /** * int64 net_usage = 5; * @return The netUsage. */ @java.lang.Override public long getNetUsage() { return netUsage_; } /** * int64 net_usage = 5; * @param value The netUsage to set. * @return This builder for chaining. */ public Builder setNetUsage(long value) { netUsage_ = value; onChanged(); return this; } /** * int64 net_usage = 5; * @return This builder for chaining. */ public Builder clearNetUsage() { netUsage_ = 0L; onChanged(); return this; } private long netFee_ ; /** * int64 net_fee = 6; * @return The netFee. */ @java.lang.Override public long getNetFee() { return netFee_; } /** * int64 net_fee = 6; * @param value The netFee to set. * @return This builder for chaining. */ public Builder setNetFee(long value) { netFee_ = value; onChanged(); return this; } /** * int64 net_fee = 6; * @return This builder for chaining. */ public Builder clearNetFee() { netFee_ = 0L; onChanged(); return this; } private int result_ = 0; /** * .protocol.Transaction.Result.contractResult result = 7; * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * .protocol.Transaction.Result.contractResult result = 7; * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { result_ = value; onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult result = 7; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getResult() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(result_); return result == null ? org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result; } /** * .protocol.Transaction.Result.contractResult result = 7; * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult value) { if (value == null) { throw new NullPointerException(); } result_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult result = 7; * @return This builder for chaining. */ public Builder clearResult() { result_ = 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:protocol.ResourceReceipt) } // @@protoc_insertion_point(class_scope:protocol.ResourceReceipt) private static final org.vision.visionjsdk.proto.Response.ResourceReceipt DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ResourceReceipt(); } public static org.vision.visionjsdk.proto.Response.ResourceReceipt getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceReceipt parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceReceipt(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.vision.visionjsdk.proto.Response.ResourceReceipt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionInfo) com.google.protobuf.MessageOrBuilder { /** * bytes id = 1; * @return The id. */ com.google.protobuf.ByteString getId(); /** * int64 fee = 2; * @return The fee. */ long getFee(); /** * int64 blockNumber = 3; * @return The blockNumber. */ long getBlockNumber(); /** * int64 blockTimeStamp = 4; * @return The blockTimeStamp. */ long getBlockTimeStamp(); /** * repeated bytes contractResult = 5; * @return A list containing the contractResult. */ java.util.List getContractResultList(); /** * repeated bytes contractResult = 5; * @return The count of contractResult. */ int getContractResultCount(); /** * repeated bytes contractResult = 5; * @param index The index of the element to return. * @return The contractResult at the given index. */ com.google.protobuf.ByteString getContractResult(int index); /** * bytes contract_address = 6; * @return The contractAddress. */ com.google.protobuf.ByteString getContractAddress(); /** * .protocol.ResourceReceipt receipt = 7; * @return Whether the receipt field is set. */ boolean hasReceipt(); /** * .protocol.ResourceReceipt receipt = 7; * @return The receipt. */ org.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt(); org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder(); java.util.List getLogList(); org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index); int getLogCount(); java.util.List getLogOrBuilderList(); org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder( int index); /** * .protocol.TransactionInfo.code result = 9; * @return The enum numeric value on the wire for result. */ int getResultValue(); /** * .protocol.TransactionInfo.code result = 9; * @return The result. */ org.vision.visionjsdk.proto.Response.TransactionInfo.code getResult(); /** * bytes resMessage = 10; * @return The resMessage. */ com.google.protobuf.ByteString getResMessage(); /** * string assetIssueID = 14; * @return The assetIssueID. */ java.lang.String getAssetIssueID(); /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ com.google.protobuf.ByteString getAssetIssueIDBytes(); /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ long getWithdrawAmount(); /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ long getUnfreezeAmount(); java.util.List getInternalTransactionsList(); org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index); int getInternalTransactionsCount(); java.util.List getInternalTransactionsOrBuilderList(); org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder( int index); /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ long getExchangeReceivedAmount(); /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ long getExchangeInjectAnotherAmount(); /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ long getExchangeWithdrawAnotherAmount(); /** * int64 exchange_id = 21; * @return The exchangeId. */ long getExchangeId(); /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ long getShieldedTransactionFee(); /** * bytes orderId = 25; * @return The orderId. */ com.google.protobuf.ByteString getOrderId(); java.util.List getOrderDetailsList(); org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index); int getOrderDetailsCount(); java.util.List getOrderDetailsOrBuilderList(); org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index); } /** * Protobuf type {@code protocol.TransactionInfo} */ public static final class TransactionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionInfo) TransactionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionInfo.newBuilder() to construct. private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionInfo() { id_ = com.google.protobuf.ByteString.EMPTY; contractResult_ = java.util.Collections.emptyList(); contractAddress_ = com.google.protobuf.ByteString.EMPTY; log_ = java.util.Collections.emptyList(); result_ = 0; resMessage_ = com.google.protobuf.ByteString.EMPTY; assetIssueID_ = ""; internalTransactions_ = java.util.Collections.emptyList(); orderId_ = com.google.protobuf.ByteString.EMPTY; orderDetails_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readBytes(); break; } case 16: { fee_ = input.readInt64(); break; } case 24: { blockNumber_ = input.readInt64(); break; } case 32: { blockTimeStamp_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { contractResult_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } contractResult_.add(input.readBytes()); break; } case 50: { contractAddress_ = input.readBytes(); break; } case 58: { org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder subBuilder = null; if (receipt_ != null) { subBuilder = receipt_.toBuilder(); } receipt_ = input.readMessage(org.vision.visionjsdk.proto.Response.ResourceReceipt.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(receipt_); receipt_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { log_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } log_.add( input.readMessage(org.vision.visionjsdk.proto.Response.TransactionInfo.Log.parser(), extensionRegistry)); break; } case 72: { int rawValue = input.readEnum(); result_ = rawValue; break; } case 82: { resMessage_ = input.readBytes(); break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); assetIssueID_ = s; break; } case 120: { withdrawAmount_ = input.readInt64(); break; } case 128: { unfreezeAmount_ = input.readInt64(); break; } case 138: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { internalTransactions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } internalTransactions_.add( input.readMessage(org.vision.visionjsdk.proto.Response.InternalTransaction.parser(), extensionRegistry)); break; } case 144: { exchangeReceivedAmount_ = input.readInt64(); break; } case 152: { exchangeInjectAnotherAmount_ = input.readInt64(); break; } case 160: { exchangeWithdrawAnotherAmount_ = input.readInt64(); break; } case 168: { exchangeId_ = input.readInt64(); break; } case 176: { shieldedTransactionFee_ = input.readInt64(); break; } case 202: { orderId_ = input.readBytes(); break; } case 210: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { orderDetails_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } orderDetails_.add( input.readMessage(org.vision.visionjsdk.proto.Response.MarketOrderDetail.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)) { contractResult_ = java.util.Collections.unmodifiableList(contractResult_); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { log_ = java.util.Collections.unmodifiableList(log_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfo.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder.class); } /** * Protobuf enum {@code protocol.TransactionInfo.code} */ public enum code implements com.google.protobuf.ProtocolMessageEnum { /** * SUCESS = 0; */ SUCESS(0), /** * FAILED = 1; */ FAILED(1), UNRECOGNIZED(-1), ; /** * SUCESS = 0; */ public static final int SUCESS_VALUE = 0; /** * FAILED = 1; */ public static final int FAILED_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static code valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static code forNumber(int value) { switch (value) { case 0: return SUCESS; case 1: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public code findValueByNumber(int number) { return code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.TransactionInfo.getDescriptor().getEnumTypes().get(0); } private static final code[] VALUES = values(); public static code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.TransactionInfo.code) } public interface LogOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionInfo.Log) com.google.protobuf.MessageOrBuilder { /** * bytes address = 1; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** * repeated bytes topics = 2; * @return A list containing the topics. */ java.util.List getTopicsList(); /** * repeated bytes topics = 2; * @return The count of topics. */ int getTopicsCount(); /** * repeated bytes topics = 2; * @param index The index of the element to return. * @return The topics at the given index. */ com.google.protobuf.ByteString getTopics(int index); /** * bytes data = 3; * @return The data. */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code protocol.TransactionInfo.Log} */ public static final class Log extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionInfo.Log) LogOrBuilder { private static final long serialVersionUID = 0L; // Use Log.newBuilder() to construct. private Log(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Log() { address_ = com.google.protobuf.ByteString.EMPTY; topics_ = java.util.Collections.emptyList(); data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Log(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Log( 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 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } topics_.add(input.readBytes()); break; } case 26: { data_ = 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)) { topics_ = java.util.Collections.unmodifiableList(topics_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfo.Log.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.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 TOPICS_FIELD_NUMBER = 2; private java.util.List topics_; /** * repeated bytes topics = 2; * @return A list containing the topics. */ @java.lang.Override public java.util.List getTopicsList() { return topics_; } /** * repeated bytes topics = 2; * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated bytes topics = 2; * @param index The index of the element to return. * @return The topics at the given index. */ public com.google.protobuf.ByteString getTopics(int index) { return topics_.get(index); } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } 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 < topics_.size(); i++) { output.writeBytes(2, topics_.get(i)); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } 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 < topics_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(topics_.get(i)); } size += dataSize; size += 1 * getTopicsList().size(); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } 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.vision.visionjsdk.proto.Response.TransactionInfo.Log)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionInfo.Log other = (org.vision.visionjsdk.proto.Response.TransactionInfo.Log) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getTopicsList() .equals(other.getTopicsList())) return false; if (!getData() .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (getTopicsCount() > 0) { hash = (37 * hash) + TOPICS_FIELD_NUMBER; hash = (53 * hash) + getTopicsList().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log 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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log 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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log 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.vision.visionjsdk.proto.Response.TransactionInfo.Log 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 protocol.TransactionInfo.Log} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionInfo.Log) org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfo.Log.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionInfo.Log.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; topics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.Log build() { org.vision.visionjsdk.proto.Response.TransactionInfo.Log result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.Log buildPartial() { org.vision.visionjsdk.proto.Response.TransactionInfo.Log result = new org.vision.visionjsdk.proto.Response.TransactionInfo.Log(this); int from_bitField0_ = bitField0_; result.address_ = address_; if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); bitField0_ = (bitField0_ & ~0x00000001); } result.topics_ = topics_; result.data_ = data_; 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.vision.visionjsdk.proto.Response.TransactionInfo.Log) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionInfo.Log)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionInfo.Log other) { if (other == org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance()) return this; if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTopicsIsMutable(); topics_.addAll(other.topics_); } onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } 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.vision.visionjsdk.proto.Response.TransactionInfo.Log parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionInfo.Log) 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 java.util.List topics_ = java.util.Collections.emptyList(); private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000001; } } /** * repeated bytes topics = 2; * @return A list containing the topics. */ public java.util.List getTopicsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(topics_) : topics_; } /** * repeated bytes topics = 2; * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated bytes topics = 2; * @param index The index of the element to return. * @return The topics at the given index. */ public com.google.protobuf.ByteString getTopics(int index) { return topics_.get(index); } /** * repeated bytes topics = 2; * @param index The index to set the value at. * @param value The topics to set. * @return This builder for chaining. */ public Builder setTopics( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.set(index, value); onChanged(); return this; } /** * repeated bytes topics = 2; * @param value The topics to add. * @return This builder for chaining. */ public Builder addTopics(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(value); onChanged(); return this; } /** * repeated bytes topics = 2; * @param values The topics to add. * @return This builder for chaining. */ public Builder addAllTopics( java.lang.Iterable values) { ensureTopicsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topics_); onChanged(); return this; } /** * repeated bytes topics = 2; * @return This builder for chaining. */ public Builder clearTopics() { topics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 3; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 3; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:protocol.TransactionInfo.Log) } // @@protoc_insertion_point(class_scope:protocol.TransactionInfo.Log) private static final org.vision.visionjsdk.proto.Response.TransactionInfo.Log DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionInfo.Log(); } public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Log parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Log(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.vision.visionjsdk.proto.Response.TransactionInfo.Log getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString id_; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } public static final int FEE_FIELD_NUMBER = 2; private long fee_; /** * int64 fee = 2; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } public static final int BLOCKNUMBER_FIELD_NUMBER = 3; private long blockNumber_; /** * int64 blockNumber = 3; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } public static final int BLOCKTIMESTAMP_FIELD_NUMBER = 4; private long blockTimeStamp_; /** * int64 blockTimeStamp = 4; * @return The blockTimeStamp. */ @java.lang.Override public long getBlockTimeStamp() { return blockTimeStamp_; } public static final int CONTRACTRESULT_FIELD_NUMBER = 5; private java.util.List contractResult_; /** * repeated bytes contractResult = 5; * @return A list containing the contractResult. */ @java.lang.Override public java.util.List getContractResultList() { return contractResult_; } /** * repeated bytes contractResult = 5; * @return The count of contractResult. */ public int getContractResultCount() { return contractResult_.size(); } /** * repeated bytes contractResult = 5; * @param index The index of the element to return. * @return The contractResult at the given index. */ public com.google.protobuf.ByteString getContractResult(int index) { return contractResult_.get(index); } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString contractAddress_; /** * bytes contract_address = 6; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } public static final int RECEIPT_FIELD_NUMBER = 7; private org.vision.visionjsdk.proto.Response.ResourceReceipt receipt_; /** * .protocol.ResourceReceipt receipt = 7; * @return Whether the receipt field is set. */ @java.lang.Override public boolean hasReceipt() { return receipt_ != null; } /** * .protocol.ResourceReceipt receipt = 7; * @return The receipt. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt() { return receipt_ == null ? org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() { return getReceipt(); } public static final int LOG_FIELD_NUMBER = 8; private java.util.List log_; @java.lang.Override public java.util.List getLogList() { return log_; } @java.lang.Override public java.util.List getLogOrBuilderList() { return log_; } @java.lang.Override public int getLogCount() { return log_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index) { return log_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder( int index) { return log_.get(index); } public static final int RESULT_FIELD_NUMBER = 9; private int result_; /** * .protocol.TransactionInfo.code result = 9; * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * .protocol.TransactionInfo.code result = 9; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.code getResult() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionInfo.code result = org.vision.visionjsdk.proto.Response.TransactionInfo.code.valueOf(result_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionInfo.code.UNRECOGNIZED : result; } public static final int RESMESSAGE_FIELD_NUMBER = 10; private com.google.protobuf.ByteString resMessage_; /** * bytes resMessage = 10; * @return The resMessage. */ @java.lang.Override public com.google.protobuf.ByteString getResMessage() { return resMessage_; } public static final int ASSETISSUEID_FIELD_NUMBER = 14; private volatile java.lang.Object assetIssueID_; /** * string assetIssueID = 14; * @return The assetIssueID. */ @java.lang.Override public java.lang.String getAssetIssueID() { java.lang.Object ref = assetIssueID_; 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(); assetIssueID_ = s; return s; } } /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssueIDBytes() { java.lang.Object ref = assetIssueID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetIssueID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WITHDRAW_AMOUNT_FIELD_NUMBER = 15; private long withdrawAmount_; /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ @java.lang.Override public long getWithdrawAmount() { return withdrawAmount_; } public static final int UNFREEZE_AMOUNT_FIELD_NUMBER = 16; private long unfreezeAmount_; /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } public static final int INTERNAL_TRANSACTIONS_FIELD_NUMBER = 17; private java.util.List internalTransactions_; @java.lang.Override public java.util.List getInternalTransactionsList() { return internalTransactions_; } @java.lang.Override public java.util.List getInternalTransactionsOrBuilderList() { return internalTransactions_; } @java.lang.Override public int getInternalTransactionsCount() { return internalTransactions_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index) { return internalTransactions_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder( int index) { return internalTransactions_.get(index); } public static final int EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER = 18; private long exchangeReceivedAmount_; /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ @java.lang.Override public long getExchangeReceivedAmount() { return exchangeReceivedAmount_; } public static final int EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER = 19; private long exchangeInjectAnotherAmount_; /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ @java.lang.Override public long getExchangeInjectAnotherAmount() { return exchangeInjectAnotherAmount_; } public static final int EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER = 20; private long exchangeWithdrawAnotherAmount_; /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ @java.lang.Override public long getExchangeWithdrawAnotherAmount() { return exchangeWithdrawAnotherAmount_; } public static final int EXCHANGE_ID_FIELD_NUMBER = 21; private long exchangeId_; /** * int64 exchange_id = 21; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int SHIELDED_TRANSACTION_FEE_FIELD_NUMBER = 22; private long shieldedTransactionFee_; /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ @java.lang.Override public long getShieldedTransactionFee() { return shieldedTransactionFee_; } public static final int ORDERID_FIELD_NUMBER = 25; private com.google.protobuf.ByteString orderId_; /** * bytes orderId = 25; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } public static final int ORDERDETAILS_FIELD_NUMBER = 26; private java.util.List orderDetails_; @java.lang.Override public java.util.List getOrderDetailsList() { return orderDetails_; } @java.lang.Override public java.util.List getOrderDetailsOrBuilderList() { return orderDetails_; } @java.lang.Override public int getOrderDetailsCount() { return orderDetails_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index) { return orderDetails_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index) { return orderDetails_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!id_.isEmpty()) { output.writeBytes(1, id_); } if (fee_ != 0L) { output.writeInt64(2, fee_); } if (blockNumber_ != 0L) { output.writeInt64(3, blockNumber_); } if (blockTimeStamp_ != 0L) { output.writeInt64(4, blockTimeStamp_); } for (int i = 0; i < contractResult_.size(); i++) { output.writeBytes(5, contractResult_.get(i)); } if (!contractAddress_.isEmpty()) { output.writeBytes(6, contractAddress_); } if (receipt_ != null) { output.writeMessage(7, getReceipt()); } for (int i = 0; i < log_.size(); i++) { output.writeMessage(8, log_.get(i)); } if (result_ != org.vision.visionjsdk.proto.Response.TransactionInfo.code.SUCESS.getNumber()) { output.writeEnum(9, result_); } if (!resMessage_.isEmpty()) { output.writeBytes(10, resMessage_); } if (!getAssetIssueIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, assetIssueID_); } if (withdrawAmount_ != 0L) { output.writeInt64(15, withdrawAmount_); } if (unfreezeAmount_ != 0L) { output.writeInt64(16, unfreezeAmount_); } for (int i = 0; i < internalTransactions_.size(); i++) { output.writeMessage(17, internalTransactions_.get(i)); } if (exchangeReceivedAmount_ != 0L) { output.writeInt64(18, exchangeReceivedAmount_); } if (exchangeInjectAnotherAmount_ != 0L) { output.writeInt64(19, exchangeInjectAnotherAmount_); } if (exchangeWithdrawAnotherAmount_ != 0L) { output.writeInt64(20, exchangeWithdrawAnotherAmount_); } if (exchangeId_ != 0L) { output.writeInt64(21, exchangeId_); } if (shieldedTransactionFee_ != 0L) { output.writeInt64(22, shieldedTransactionFee_); } if (!orderId_.isEmpty()) { output.writeBytes(25, orderId_); } for (int i = 0; i < orderDetails_.size(); i++) { output.writeMessage(26, orderDetails_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, id_); } if (fee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, fee_); } if (blockNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, blockNumber_); } if (blockTimeStamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, blockTimeStamp_); } { int dataSize = 0; for (int i = 0; i < contractResult_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(contractResult_.get(i)); } size += dataSize; size += 1 * getContractResultList().size(); } if (!contractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, contractAddress_); } if (receipt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getReceipt()); } for (int i = 0; i < log_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, log_.get(i)); } if (result_ != org.vision.visionjsdk.proto.Response.TransactionInfo.code.SUCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, result_); } if (!resMessage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, resMessage_); } if (!getAssetIssueIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, assetIssueID_); } if (withdrawAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, withdrawAmount_); } if (unfreezeAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, unfreezeAmount_); } for (int i = 0; i < internalTransactions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, internalTransactions_.get(i)); } if (exchangeReceivedAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, exchangeReceivedAmount_); } if (exchangeInjectAnotherAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, exchangeInjectAnotherAmount_); } if (exchangeWithdrawAnotherAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, exchangeWithdrawAnotherAmount_); } if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, exchangeId_); } if (shieldedTransactionFee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, shieldedTransactionFee_); } if (!orderId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(25, orderId_); } for (int i = 0; i < orderDetails_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, orderDetails_.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.vision.visionjsdk.proto.Response.TransactionInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionInfo other = (org.vision.visionjsdk.proto.Response.TransactionInfo) obj; if (!getId() .equals(other.getId())) return false; if (getFee() != other.getFee()) return false; if (getBlockNumber() != other.getBlockNumber()) return false; if (getBlockTimeStamp() != other.getBlockTimeStamp()) return false; if (!getContractResultList() .equals(other.getContractResultList())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (hasReceipt() != other.hasReceipt()) return false; if (hasReceipt()) { if (!getReceipt() .equals(other.getReceipt())) return false; } if (!getLogList() .equals(other.getLogList())) return false; if (result_ != other.result_) return false; if (!getResMessage() .equals(other.getResMessage())) return false; if (!getAssetIssueID() .equals(other.getAssetIssueID())) return false; if (getWithdrawAmount() != other.getWithdrawAmount()) return false; if (getUnfreezeAmount() != other.getUnfreezeAmount()) return false; if (!getInternalTransactionsList() .equals(other.getInternalTransactionsList())) return false; if (getExchangeReceivedAmount() != other.getExchangeReceivedAmount()) return false; if (getExchangeInjectAnotherAmount() != other.getExchangeInjectAnotherAmount()) return false; if (getExchangeWithdrawAnotherAmount() != other.getExchangeWithdrawAnotherAmount()) return false; if (getExchangeId() != other.getExchangeId()) return false; if (getShieldedTransactionFee() != other.getShieldedTransactionFee()) return false; if (!getOrderId() .equals(other.getOrderId())) return false; if (!getOrderDetailsList() .equals(other.getOrderDetailsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFee()); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); hash = (37 * hash) + BLOCKTIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockTimeStamp()); if (getContractResultCount() > 0) { hash = (37 * hash) + CONTRACTRESULT_FIELD_NUMBER; hash = (53 * hash) + getContractResultList().hashCode(); } hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); if (hasReceipt()) { hash = (37 * hash) + RECEIPT_FIELD_NUMBER; hash = (53 * hash) + getReceipt().hashCode(); } if (getLogCount() > 0) { hash = (37 * hash) + LOG_FIELD_NUMBER; hash = (53 * hash) + getLogList().hashCode(); } hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; hash = (37 * hash) + RESMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getResMessage().hashCode(); hash = (37 * hash) + ASSETISSUEID_FIELD_NUMBER; hash = (53 * hash) + getAssetIssueID().hashCode(); hash = (37 * hash) + WITHDRAW_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWithdrawAmount()); hash = (37 * hash) + UNFREEZE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnfreezeAmount()); if (getInternalTransactionsCount() > 0) { hash = (37 * hash) + INTERNAL_TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + getInternalTransactionsList().hashCode(); } hash = (37 * hash) + EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeReceivedAmount()); hash = (37 * hash) + EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeInjectAnotherAmount()); hash = (37 * hash) + EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeWithdrawAnotherAmount()); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + SHIELDED_TRANSACTION_FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getShieldedTransactionFee()); hash = (37 * hash) + ORDERID_FIELD_NUMBER; hash = (53 * hash) + getOrderId().hashCode(); if (getOrderDetailsCount() > 0) { hash = (37 * hash) + ORDERDETAILS_FIELD_NUMBER; hash = (53 * hash) + getOrderDetailsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo 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.vision.visionjsdk.proto.Response.TransactionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo 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.vision.visionjsdk.proto.Response.TransactionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfo 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.vision.visionjsdk.proto.Response.TransactionInfo 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 protocol.TransactionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionInfo) org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfo.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLogFieldBuilder(); getInternalTransactionsFieldBuilder(); getOrderDetailsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = com.google.protobuf.ByteString.EMPTY; fee_ = 0L; blockNumber_ = 0L; blockTimeStamp_ = 0L; contractResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); contractAddress_ = com.google.protobuf.ByteString.EMPTY; if (receiptBuilder_ == null) { receipt_ = null; } else { receipt_ = null; receiptBuilder_ = null; } if (logBuilder_ == null) { log_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { logBuilder_.clear(); } result_ = 0; resMessage_ = com.google.protobuf.ByteString.EMPTY; assetIssueID_ = ""; withdrawAmount_ = 0L; unfreezeAmount_ = 0L; if (internalTransactionsBuilder_ == null) { internalTransactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { internalTransactionsBuilder_.clear(); } exchangeReceivedAmount_ = 0L; exchangeInjectAnotherAmount_ = 0L; exchangeWithdrawAnotherAmount_ = 0L; exchangeId_ = 0L; shieldedTransactionFee_ = 0L; orderId_ = com.google.protobuf.ByteString.EMPTY; if (orderDetailsBuilder_ == null) { orderDetails_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { orderDetailsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo build() { org.vision.visionjsdk.proto.Response.TransactionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo buildPartial() { org.vision.visionjsdk.proto.Response.TransactionInfo result = new org.vision.visionjsdk.proto.Response.TransactionInfo(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.fee_ = fee_; result.blockNumber_ = blockNumber_; result.blockTimeStamp_ = blockTimeStamp_; if (((bitField0_ & 0x00000001) != 0)) { contractResult_ = java.util.Collections.unmodifiableList(contractResult_); bitField0_ = (bitField0_ & ~0x00000001); } result.contractResult_ = contractResult_; result.contractAddress_ = contractAddress_; if (receiptBuilder_ == null) { result.receipt_ = receipt_; } else { result.receipt_ = receiptBuilder_.build(); } if (logBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { log_ = java.util.Collections.unmodifiableList(log_); bitField0_ = (bitField0_ & ~0x00000002); } result.log_ = log_; } else { result.log_ = logBuilder_.build(); } result.result_ = result_; result.resMessage_ = resMessage_; result.assetIssueID_ = assetIssueID_; result.withdrawAmount_ = withdrawAmount_; result.unfreezeAmount_ = unfreezeAmount_; if (internalTransactionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_); bitField0_ = (bitField0_ & ~0x00000004); } result.internalTransactions_ = internalTransactions_; } else { result.internalTransactions_ = internalTransactionsBuilder_.build(); } result.exchangeReceivedAmount_ = exchangeReceivedAmount_; result.exchangeInjectAnotherAmount_ = exchangeInjectAnotherAmount_; result.exchangeWithdrawAnotherAmount_ = exchangeWithdrawAnotherAmount_; result.exchangeId_ = exchangeId_; result.shieldedTransactionFee_ = shieldedTransactionFee_; result.orderId_ = orderId_; if (orderDetailsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_); bitField0_ = (bitField0_ & ~0x00000008); } result.orderDetails_ = orderDetails_; } else { result.orderDetails_ = orderDetailsBuilder_.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.vision.visionjsdk.proto.Response.TransactionInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionInfo other) { if (other == org.vision.visionjsdk.proto.Response.TransactionInfo.getDefaultInstance()) return this; if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId()); } if (other.getFee() != 0L) { setFee(other.getFee()); } if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } if (other.getBlockTimeStamp() != 0L) { setBlockTimeStamp(other.getBlockTimeStamp()); } if (!other.contractResult_.isEmpty()) { if (contractResult_.isEmpty()) { contractResult_ = other.contractResult_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContractResultIsMutable(); contractResult_.addAll(other.contractResult_); } onChanged(); } if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } if (other.hasReceipt()) { mergeReceipt(other.getReceipt()); } if (logBuilder_ == null) { if (!other.log_.isEmpty()) { if (log_.isEmpty()) { log_ = other.log_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLogIsMutable(); log_.addAll(other.log_); } onChanged(); } } else { if (!other.log_.isEmpty()) { if (logBuilder_.isEmpty()) { logBuilder_.dispose(); logBuilder_ = null; log_ = other.log_; bitField0_ = (bitField0_ & ~0x00000002); logBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogFieldBuilder() : null; } else { logBuilder_.addAllMessages(other.log_); } } } if (other.result_ != 0) { setResultValue(other.getResultValue()); } if (other.getResMessage() != com.google.protobuf.ByteString.EMPTY) { setResMessage(other.getResMessage()); } if (!other.getAssetIssueID().isEmpty()) { assetIssueID_ = other.assetIssueID_; onChanged(); } if (other.getWithdrawAmount() != 0L) { setWithdrawAmount(other.getWithdrawAmount()); } if (other.getUnfreezeAmount() != 0L) { setUnfreezeAmount(other.getUnfreezeAmount()); } if (internalTransactionsBuilder_ == null) { if (!other.internalTransactions_.isEmpty()) { if (internalTransactions_.isEmpty()) { internalTransactions_ = other.internalTransactions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInternalTransactionsIsMutable(); internalTransactions_.addAll(other.internalTransactions_); } onChanged(); } } else { if (!other.internalTransactions_.isEmpty()) { if (internalTransactionsBuilder_.isEmpty()) { internalTransactionsBuilder_.dispose(); internalTransactionsBuilder_ = null; internalTransactions_ = other.internalTransactions_; bitField0_ = (bitField0_ & ~0x00000004); internalTransactionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInternalTransactionsFieldBuilder() : null; } else { internalTransactionsBuilder_.addAllMessages(other.internalTransactions_); } } } if (other.getExchangeReceivedAmount() != 0L) { setExchangeReceivedAmount(other.getExchangeReceivedAmount()); } if (other.getExchangeInjectAnotherAmount() != 0L) { setExchangeInjectAnotherAmount(other.getExchangeInjectAnotherAmount()); } if (other.getExchangeWithdrawAnotherAmount() != 0L) { setExchangeWithdrawAnotherAmount(other.getExchangeWithdrawAnotherAmount()); } if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getShieldedTransactionFee() != 0L) { setShieldedTransactionFee(other.getShieldedTransactionFee()); } if (other.getOrderId() != com.google.protobuf.ByteString.EMPTY) { setOrderId(other.getOrderId()); } if (orderDetailsBuilder_ == null) { if (!other.orderDetails_.isEmpty()) { if (orderDetails_.isEmpty()) { orderDetails_ = other.orderDetails_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureOrderDetailsIsMutable(); orderDetails_.addAll(other.orderDetails_); } onChanged(); } } else { if (!other.orderDetails_.isEmpty()) { if (orderDetailsBuilder_.isEmpty()) { orderDetailsBuilder_.dispose(); orderDetailsBuilder_ = null; orderDetails_ = other.orderDetails_; bitField0_ = (bitField0_ & ~0x00000008); orderDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderDetailsFieldBuilder() : null; } else { orderDetailsBuilder_.addAllMessages(other.orderDetails_); } } } 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.vision.visionjsdk.proto.Response.TransactionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } /** * bytes id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * bytes id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } private long fee_ ; /** * int64 fee = 2; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } /** * int64 fee = 2; * @param value The fee to set. * @return This builder for chaining. */ public Builder setFee(long value) { fee_ = value; onChanged(); return this; } /** * int64 fee = 2; * @return This builder for chaining. */ public Builder clearFee() { fee_ = 0L; onChanged(); return this; } private long blockNumber_ ; /** * int64 blockNumber = 3; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } /** * int64 blockNumber = 3; * @param value The blockNumber to set. * @return This builder for chaining. */ public Builder setBlockNumber(long value) { blockNumber_ = value; onChanged(); return this; } /** * int64 blockNumber = 3; * @return This builder for chaining. */ public Builder clearBlockNumber() { blockNumber_ = 0L; onChanged(); return this; } private long blockTimeStamp_ ; /** * int64 blockTimeStamp = 4; * @return The blockTimeStamp. */ @java.lang.Override public long getBlockTimeStamp() { return blockTimeStamp_; } /** * int64 blockTimeStamp = 4; * @param value The blockTimeStamp to set. * @return This builder for chaining. */ public Builder setBlockTimeStamp(long value) { blockTimeStamp_ = value; onChanged(); return this; } /** * int64 blockTimeStamp = 4; * @return This builder for chaining. */ public Builder clearBlockTimeStamp() { blockTimeStamp_ = 0L; onChanged(); return this; } private java.util.List contractResult_ = java.util.Collections.emptyList(); private void ensureContractResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contractResult_ = new java.util.ArrayList(contractResult_); bitField0_ |= 0x00000001; } } /** * repeated bytes contractResult = 5; * @return A list containing the contractResult. */ public java.util.List getContractResultList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(contractResult_) : contractResult_; } /** * repeated bytes contractResult = 5; * @return The count of contractResult. */ public int getContractResultCount() { return contractResult_.size(); } /** * repeated bytes contractResult = 5; * @param index The index of the element to return. * @return The contractResult at the given index. */ public com.google.protobuf.ByteString getContractResult(int index) { return contractResult_.get(index); } /** * repeated bytes contractResult = 5; * @param index The index to set the value at. * @param value The contractResult to set. * @return This builder for chaining. */ public Builder setContractResult( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContractResultIsMutable(); contractResult_.set(index, value); onChanged(); return this; } /** * repeated bytes contractResult = 5; * @param value The contractResult to add. * @return This builder for chaining. */ public Builder addContractResult(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContractResultIsMutable(); contractResult_.add(value); onChanged(); return this; } /** * repeated bytes contractResult = 5; * @param values The contractResult to add. * @return This builder for chaining. */ public Builder addAllContractResult( java.lang.Iterable values) { ensureContractResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contractResult_); onChanged(); return this; } /** * repeated bytes contractResult = 5; * @return This builder for chaining. */ public Builder clearContractResult() { contractResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 6; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** * bytes contract_address = 6; * @param value The contractAddress to set. * @return This builder for chaining. */ public Builder setContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } contractAddress_ = value; onChanged(); return this; } /** * bytes contract_address = 6; * @return This builder for chaining. */ public Builder clearContractAddress() { contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private org.vision.visionjsdk.proto.Response.ResourceReceipt receipt_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder> receiptBuilder_; /** * .protocol.ResourceReceipt receipt = 7; * @return Whether the receipt field is set. */ public boolean hasReceipt() { return receiptBuilder_ != null || receipt_ != null; } /** * .protocol.ResourceReceipt receipt = 7; * @return The receipt. */ public org.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt() { if (receiptBuilder_ == null) { return receipt_ == null ? org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } else { return receiptBuilder_.getMessage(); } } public Builder setReceipt(org.vision.visionjsdk.proto.Response.ResourceReceipt value) { if (receiptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receipt_ = value; onChanged(); } else { receiptBuilder_.setMessage(value); } return this; } public Builder setReceipt( org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder builderForValue) { if (receiptBuilder_ == null) { receipt_ = builderForValue.build(); onChanged(); } else { receiptBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeReceipt(org.vision.visionjsdk.proto.Response.ResourceReceipt value) { if (receiptBuilder_ == null) { if (receipt_ != null) { receipt_ = org.vision.visionjsdk.proto.Response.ResourceReceipt.newBuilder(receipt_).mergeFrom(value).buildPartial(); } else { receipt_ = value; } onChanged(); } else { receiptBuilder_.mergeFrom(value); } return this; } public Builder clearReceipt() { if (receiptBuilder_ == null) { receipt_ = null; onChanged(); } else { receipt_ = null; receiptBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder getReceiptBuilder() { onChanged(); return getReceiptFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() { if (receiptBuilder_ != null) { return receiptBuilder_.getMessageOrBuilder(); } else { return receipt_ == null ? org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder> getReceiptFieldBuilder() { if (receiptBuilder_ == null) { receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder>( getReceipt(), getParentForChildren(), isClean()); receipt_ = null; } return receiptBuilder_; } private java.util.List log_ = java.util.Collections.emptyList(); private void ensureLogIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { log_ = new java.util.ArrayList(log_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder> logBuilder_; public java.util.List getLogList() { if (logBuilder_ == null) { return java.util.Collections.unmodifiableList(log_); } else { return logBuilder_.getMessageList(); } } public int getLogCount() { if (logBuilder_ == null) { return log_.size(); } else { return logBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index) { if (logBuilder_ == null) { return log_.get(index); } else { return logBuilder_.getMessage(index); } } public Builder setLog( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log value) { if (logBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogIsMutable(); log_.set(index, value); onChanged(); } else { logBuilder_.setMessage(index, value); } return this; } public Builder setLog( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.set(index, builderForValue.build()); onChanged(); } else { logBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addLog(org.vision.visionjsdk.proto.Response.TransactionInfo.Log value) { if (logBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogIsMutable(); log_.add(value); onChanged(); } else { logBuilder_.addMessage(value); } return this; } public Builder addLog( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log value) { if (logBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogIsMutable(); log_.add(index, value); onChanged(); } else { logBuilder_.addMessage(index, value); } return this; } public Builder addLog( org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.add(builderForValue.build()); onChanged(); } else { logBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addLog( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.add(index, builderForValue.build()); onChanged(); } else { logBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllLog( java.lang.Iterable values) { if (logBuilder_ == null) { ensureLogIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, log_); onChanged(); } else { logBuilder_.addAllMessages(values); } return this; } public Builder clearLog() { if (logBuilder_ == null) { log_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { logBuilder_.clear(); } return this; } public Builder removeLog(int index) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.remove(index); onChanged(); } else { logBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder getLogBuilder( int index) { return getLogFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder( int index) { if (logBuilder_ == null) { return log_.get(index); } else { return logBuilder_.getMessageOrBuilder(index); } } public java.util.List getLogOrBuilderList() { if (logBuilder_ != null) { return logBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(log_); } } public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder addLogBuilder() { return getLogFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder addLogBuilder( int index) { return getLogFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance()); } public java.util.List getLogBuilderList() { return getLogFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder> getLogFieldBuilder() { if (logBuilder_ == null) { logBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>( log_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); log_ = null; } return logBuilder_; } private int result_ = 0; /** * .protocol.TransactionInfo.code result = 9; * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * .protocol.TransactionInfo.code result = 9; * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { result_ = value; onChanged(); return this; } /** * .protocol.TransactionInfo.code result = 9; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo.code getResult() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionInfo.code result = org.vision.visionjsdk.proto.Response.TransactionInfo.code.valueOf(result_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionInfo.code.UNRECOGNIZED : result; } /** * .protocol.TransactionInfo.code result = 9; * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionInfo.code value) { if (value == null) { throw new NullPointerException(); } result_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionInfo.code result = 9; * @return This builder for chaining. */ public Builder clearResult() { result_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString resMessage_ = com.google.protobuf.ByteString.EMPTY; /** * bytes resMessage = 10; * @return The resMessage. */ @java.lang.Override public com.google.protobuf.ByteString getResMessage() { return resMessage_; } /** * bytes resMessage = 10; * @param value The resMessage to set. * @return This builder for chaining. */ public Builder setResMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resMessage_ = value; onChanged(); return this; } /** * bytes resMessage = 10; * @return This builder for chaining. */ public Builder clearResMessage() { resMessage_ = getDefaultInstance().getResMessage(); onChanged(); return this; } private java.lang.Object assetIssueID_ = ""; /** * string assetIssueID = 14; * @return The assetIssueID. */ public java.lang.String getAssetIssueID() { java.lang.Object ref = assetIssueID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetIssueID_ = s; return s; } else { return (java.lang.String) ref; } } /** * string assetIssueID = 14; * @return The bytes for assetIssueID. */ public com.google.protobuf.ByteString getAssetIssueIDBytes() { java.lang.Object ref = assetIssueID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetIssueID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string assetIssueID = 14; * @param value The assetIssueID to set. * @return This builder for chaining. */ public Builder setAssetIssueID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetIssueID_ = value; onChanged(); return this; } /** * string assetIssueID = 14; * @return This builder for chaining. */ public Builder clearAssetIssueID() { assetIssueID_ = getDefaultInstance().getAssetIssueID(); onChanged(); return this; } /** * string assetIssueID = 14; * @param value The bytes for assetIssueID to set. * @return This builder for chaining. */ public Builder setAssetIssueIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetIssueID_ = value; onChanged(); return this; } private long withdrawAmount_ ; /** * int64 withdraw_amount = 15; * @return The withdrawAmount. */ @java.lang.Override public long getWithdrawAmount() { return withdrawAmount_; } /** * int64 withdraw_amount = 15; * @param value The withdrawAmount to set. * @return This builder for chaining. */ public Builder setWithdrawAmount(long value) { withdrawAmount_ = value; onChanged(); return this; } /** * int64 withdraw_amount = 15; * @return This builder for chaining. */ public Builder clearWithdrawAmount() { withdrawAmount_ = 0L; onChanged(); return this; } private long unfreezeAmount_ ; /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } /** * int64 unfreeze_amount = 16; * @param value The unfreezeAmount to set. * @return This builder for chaining. */ public Builder setUnfreezeAmount(long value) { unfreezeAmount_ = value; onChanged(); return this; } /** * int64 unfreeze_amount = 16; * @return This builder for chaining. */ public Builder clearUnfreezeAmount() { unfreezeAmount_ = 0L; onChanged(); return this; } private java.util.List internalTransactions_ = java.util.Collections.emptyList(); private void ensureInternalTransactionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { internalTransactions_ = new java.util.ArrayList(internalTransactions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder> internalTransactionsBuilder_; public java.util.List getInternalTransactionsList() { if (internalTransactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(internalTransactions_); } else { return internalTransactionsBuilder_.getMessageList(); } } public int getInternalTransactionsCount() { if (internalTransactionsBuilder_ == null) { return internalTransactions_.size(); } else { return internalTransactionsBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index) { if (internalTransactionsBuilder_ == null) { return internalTransactions_.get(index); } else { return internalTransactionsBuilder_.getMessage(index); } } public Builder setInternalTransactions( int index, org.vision.visionjsdk.proto.Response.InternalTransaction value) { if (internalTransactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternalTransactionsIsMutable(); internalTransactions_.set(index, value); onChanged(); } else { internalTransactionsBuilder_.setMessage(index, value); } return this; } public Builder setInternalTransactions( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.set(index, builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addInternalTransactions(org.vision.visionjsdk.proto.Response.InternalTransaction value) { if (internalTransactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternalTransactionsIsMutable(); internalTransactions_.add(value); onChanged(); } else { internalTransactionsBuilder_.addMessage(value); } return this; } public Builder addInternalTransactions( int index, org.vision.visionjsdk.proto.Response.InternalTransaction value) { if (internalTransactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternalTransactionsIsMutable(); internalTransactions_.add(index, value); onChanged(); } else { internalTransactionsBuilder_.addMessage(index, value); } return this; } public Builder addInternalTransactions( org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.add(builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addInternalTransactions( int index, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.add(index, builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllInternalTransactions( java.lang.Iterable values) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, internalTransactions_); onChanged(); } else { internalTransactionsBuilder_.addAllMessages(values); } return this; } public Builder clearInternalTransactions() { if (internalTransactionsBuilder_ == null) { internalTransactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { internalTransactionsBuilder_.clear(); } return this; } public Builder removeInternalTransactions(int index) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.remove(index); onChanged(); } else { internalTransactionsBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder getInternalTransactionsBuilder( int index) { return getInternalTransactionsFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder( int index) { if (internalTransactionsBuilder_ == null) { return internalTransactions_.get(index); } else { return internalTransactionsBuilder_.getMessageOrBuilder(index); } } public java.util.List getInternalTransactionsOrBuilderList() { if (internalTransactionsBuilder_ != null) { return internalTransactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(internalTransactions_); } } public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder() { return getInternalTransactionsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder( int index) { return getInternalTransactionsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance()); } public java.util.List getInternalTransactionsBuilderList() { return getInternalTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder> getInternalTransactionsFieldBuilder() { if (internalTransactionsBuilder_ == null) { internalTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>( internalTransactions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); internalTransactions_ = null; } return internalTransactionsBuilder_; } private long exchangeReceivedAmount_ ; /** * int64 exchange_received_amount = 18; * @return The exchangeReceivedAmount. */ @java.lang.Override public long getExchangeReceivedAmount() { return exchangeReceivedAmount_; } /** * int64 exchange_received_amount = 18; * @param value The exchangeReceivedAmount to set. * @return This builder for chaining. */ public Builder setExchangeReceivedAmount(long value) { exchangeReceivedAmount_ = value; onChanged(); return this; } /** * int64 exchange_received_amount = 18; * @return This builder for chaining. */ public Builder clearExchangeReceivedAmount() { exchangeReceivedAmount_ = 0L; onChanged(); return this; } private long exchangeInjectAnotherAmount_ ; /** * int64 exchange_inject_another_amount = 19; * @return The exchangeInjectAnotherAmount. */ @java.lang.Override public long getExchangeInjectAnotherAmount() { return exchangeInjectAnotherAmount_; } /** * int64 exchange_inject_another_amount = 19; * @param value The exchangeInjectAnotherAmount to set. * @return This builder for chaining. */ public Builder setExchangeInjectAnotherAmount(long value) { exchangeInjectAnotherAmount_ = value; onChanged(); return this; } /** * int64 exchange_inject_another_amount = 19; * @return This builder for chaining. */ public Builder clearExchangeInjectAnotherAmount() { exchangeInjectAnotherAmount_ = 0L; onChanged(); return this; } private long exchangeWithdrawAnotherAmount_ ; /** * int64 exchange_withdraw_another_amount = 20; * @return The exchangeWithdrawAnotherAmount. */ @java.lang.Override public long getExchangeWithdrawAnotherAmount() { return exchangeWithdrawAnotherAmount_; } /** * int64 exchange_withdraw_another_amount = 20; * @param value The exchangeWithdrawAnotherAmount to set. * @return This builder for chaining. */ public Builder setExchangeWithdrawAnotherAmount(long value) { exchangeWithdrawAnotherAmount_ = value; onChanged(); return this; } /** * int64 exchange_withdraw_another_amount = 20; * @return This builder for chaining. */ public Builder clearExchangeWithdrawAnotherAmount() { exchangeWithdrawAnotherAmount_ = 0L; onChanged(); return this; } private long exchangeId_ ; /** * int64 exchange_id = 21; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 21; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; onChanged(); return this; } /** * int64 exchange_id = 21; * @return This builder for chaining. */ public Builder clearExchangeId() { exchangeId_ = 0L; onChanged(); return this; } private long shieldedTransactionFee_ ; /** * int64 shielded_transaction_fee = 22; * @return The shieldedTransactionFee. */ @java.lang.Override public long getShieldedTransactionFee() { return shieldedTransactionFee_; } /** * int64 shielded_transaction_fee = 22; * @param value The shieldedTransactionFee to set. * @return This builder for chaining. */ public Builder setShieldedTransactionFee(long value) { shieldedTransactionFee_ = value; onChanged(); return this; } /** * int64 shielded_transaction_fee = 22; * @return This builder for chaining. */ public Builder clearShieldedTransactionFee() { shieldedTransactionFee_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes orderId = 25; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } /** * bytes orderId = 25; * @param value The orderId to set. * @return This builder for chaining. */ public Builder setOrderId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } orderId_ = value; onChanged(); return this; } /** * bytes orderId = 25; * @return This builder for chaining. */ public Builder clearOrderId() { orderId_ = getDefaultInstance().getOrderId(); onChanged(); return this; } private java.util.List orderDetails_ = java.util.Collections.emptyList(); private void ensureOrderDetailsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { orderDetails_ = new java.util.ArrayList(orderDetails_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder> orderDetailsBuilder_; public java.util.List getOrderDetailsList() { if (orderDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(orderDetails_); } else { return orderDetailsBuilder_.getMessageList(); } } public int getOrderDetailsCount() { if (orderDetailsBuilder_ == null) { return orderDetails_.size(); } else { return orderDetailsBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index) { if (orderDetailsBuilder_ == null) { return orderDetails_.get(index); } else { return orderDetailsBuilder_.getMessage(index); } } public Builder setOrderDetails( int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail value) { if (orderDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderDetailsIsMutable(); orderDetails_.set(index, value); onChanged(); } else { orderDetailsBuilder_.setMessage(index, value); } return this; } public Builder setOrderDetails( int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.set(index, builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addOrderDetails(org.vision.visionjsdk.proto.Response.MarketOrderDetail value) { if (orderDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderDetailsIsMutable(); orderDetails_.add(value); onChanged(); } else { orderDetailsBuilder_.addMessage(value); } return this; } public Builder addOrderDetails( int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail value) { if (orderDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderDetailsIsMutable(); orderDetails_.add(index, value); onChanged(); } else { orderDetailsBuilder_.addMessage(index, value); } return this; } public Builder addOrderDetails( org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.add(builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addOrderDetails( int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.add(index, builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllOrderDetails( java.lang.Iterable values) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderDetails_); onChanged(); } else { orderDetailsBuilder_.addAllMessages(values); } return this; } public Builder clearOrderDetails() { if (orderDetailsBuilder_ == null) { orderDetails_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { orderDetailsBuilder_.clear(); } return this; } public Builder removeOrderDetails(int index) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.remove(index); onChanged(); } else { orderDetailsBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder getOrderDetailsBuilder( int index) { return getOrderDetailsFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index) { if (orderDetailsBuilder_ == null) { return orderDetails_.get(index); } else { return orderDetailsBuilder_.getMessageOrBuilder(index); } } public java.util.List getOrderDetailsOrBuilderList() { if (orderDetailsBuilder_ != null) { return orderDetailsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orderDetails_); } } public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder() { return getOrderDetailsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder( int index) { return getOrderDetailsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance()); } public java.util.List getOrderDetailsBuilderList() { return getOrderDetailsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder> getOrderDetailsFieldBuilder() { if (orderDetailsBuilder_ == null) { orderDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>( orderDetails_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); orderDetails_ = null; } return orderDetailsBuilder_; } @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:protocol.TransactionInfo) } // @@protoc_insertion_point(class_scope:protocol.TransactionInfo) private static final org.vision.visionjsdk.proto.Response.TransactionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionInfo(); } public static org.vision.visionjsdk.proto.Response.TransactionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionInfo(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.vision.visionjsdk.proto.Response.TransactionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WitnessOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Witness) com.google.protobuf.MessageOrBuilder { /** * bytes address = 1; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** * int64 voteCount = 2; * @return The voteCount. */ long getVoteCount(); /** * bytes pubKey = 3; * @return The pubKey. */ com.google.protobuf.ByteString getPubKey(); /** * string url = 4; * @return The url. */ java.lang.String getUrl(); /** * string url = 4; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** * int64 totalProduced = 5; * @return The totalProduced. */ long getTotalProduced(); /** * int64 totalMissed = 6; * @return The totalMissed. */ long getTotalMissed(); /** * int64 latestBlockNum = 7; * @return The latestBlockNum. */ long getLatestBlockNum(); /** * int64 latestSlotNum = 8; * @return The latestSlotNum. */ long getLatestSlotNum(); /** * bool isJobs = 9; * @return The isJobs. */ boolean getIsJobs(); } /** *
   * Witness
   * 
* * Protobuf type {@code protocol.Witness} */ public static final class Witness extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Witness) WitnessOrBuilder { private static final long serialVersionUID = 0L; // Use Witness.newBuilder() to construct. private Witness(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Witness() { address_ = com.google.protobuf.ByteString.EMPTY; pubKey_ = com.google.protobuf.ByteString.EMPTY; url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Witness(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Witness( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readBytes(); break; } case 16: { voteCount_ = input.readInt64(); break; } case 26: { pubKey_ = input.readBytes(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; break; } case 40: { totalProduced_ = input.readInt64(); break; } case 48: { totalMissed_ = input.readInt64(); break; } case 56: { latestBlockNum_ = input.readInt64(); break; } case 64: { latestSlotNum_ = input.readInt64(); break; } case 72: { isJobs_ = input.readBool(); 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.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Witness.class, org.vision.visionjsdk.proto.Response.Witness.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 VOTECOUNT_FIELD_NUMBER = 2; private long voteCount_; /** * int64 voteCount = 2; * @return The voteCount. */ @java.lang.Override public long getVoteCount() { return voteCount_; } public static final int PUBKEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString pubKey_; /** * bytes pubKey = 3; * @return The pubKey. */ @java.lang.Override public com.google.protobuf.ByteString getPubKey() { return pubKey_; } public static final int URL_FIELD_NUMBER = 4; private volatile java.lang.Object url_; /** * string url = 4; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** * string url = 4; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTALPRODUCED_FIELD_NUMBER = 5; private long totalProduced_; /** * int64 totalProduced = 5; * @return The totalProduced. */ @java.lang.Override public long getTotalProduced() { return totalProduced_; } public static final int TOTALMISSED_FIELD_NUMBER = 6; private long totalMissed_; /** * int64 totalMissed = 6; * @return The totalMissed. */ @java.lang.Override public long getTotalMissed() { return totalMissed_; } public static final int LATESTBLOCKNUM_FIELD_NUMBER = 7; private long latestBlockNum_; /** * int64 latestBlockNum = 7; * @return The latestBlockNum. */ @java.lang.Override public long getLatestBlockNum() { return latestBlockNum_; } public static final int LATESTSLOTNUM_FIELD_NUMBER = 8; private long latestSlotNum_; /** * int64 latestSlotNum = 8; * @return The latestSlotNum. */ @java.lang.Override public long getLatestSlotNum() { return latestSlotNum_; } public static final int ISJOBS_FIELD_NUMBER = 9; private boolean isJobs_; /** * bool isJobs = 9; * @return The isJobs. */ @java.lang.Override public boolean getIsJobs() { return isJobs_; } 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 (voteCount_ != 0L) { output.writeInt64(2, voteCount_); } if (!pubKey_.isEmpty()) { output.writeBytes(3, pubKey_); } if (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, url_); } if (totalProduced_ != 0L) { output.writeInt64(5, totalProduced_); } if (totalMissed_ != 0L) { output.writeInt64(6, totalMissed_); } if (latestBlockNum_ != 0L) { output.writeInt64(7, latestBlockNum_); } if (latestSlotNum_ != 0L) { output.writeInt64(8, latestSlotNum_); } if (isJobs_ != false) { output.writeBool(9, isJobs_); } 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 (voteCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, voteCount_); } if (!pubKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, pubKey_); } if (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, url_); } if (totalProduced_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, totalProduced_); } if (totalMissed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, totalMissed_); } if (latestBlockNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, latestBlockNum_); } if (latestSlotNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, latestSlotNum_); } if (isJobs_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, isJobs_); } 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.vision.visionjsdk.proto.Response.Witness)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Witness other = (org.vision.visionjsdk.proto.Response.Witness) obj; if (!getAddress() .equals(other.getAddress())) return false; if (getVoteCount() != other.getVoteCount()) return false; if (!getPubKey() .equals(other.getPubKey())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (getTotalProduced() != other.getTotalProduced()) return false; if (getTotalMissed() != other.getTotalMissed()) return false; if (getLatestBlockNum() != other.getLatestBlockNum()) return false; if (getLatestSlotNum() != other.getLatestSlotNum()) return false; if (getIsJobs() != other.getIsJobs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + VOTECOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVoteCount()); hash = (37 * hash) + PUBKEY_FIELD_NUMBER; hash = (53 * hash) + getPubKey().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + TOTALPRODUCED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalProduced()); hash = (37 * hash) + TOTALMISSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalMissed()); hash = (37 * hash) + LATESTBLOCKNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestBlockNum()); hash = (37 * hash) + LATESTSLOTNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestSlotNum()); hash = (37 * hash) + ISJOBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsJobs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Witness parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Witness parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Witness 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.vision.visionjsdk.proto.Response.Witness parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Witness 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.vision.visionjsdk.proto.Response.Witness parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Witness 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.vision.visionjsdk.proto.Response.Witness 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; } /** *
     * Witness
     * 
* * Protobuf type {@code protocol.Witness} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Witness) org.vision.visionjsdk.proto.Response.WitnessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Witness.class, org.vision.visionjsdk.proto.Response.Witness.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.Witness.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; voteCount_ = 0L; pubKey_ = com.google.protobuf.ByteString.EMPTY; url_ = ""; totalProduced_ = 0L; totalMissed_ = 0L; latestBlockNum_ = 0L; latestSlotNum_ = 0L; isJobs_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Witness getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Witness build() { org.vision.visionjsdk.proto.Response.Witness result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Witness buildPartial() { org.vision.visionjsdk.proto.Response.Witness result = new org.vision.visionjsdk.proto.Response.Witness(this); result.address_ = address_; result.voteCount_ = voteCount_; result.pubKey_ = pubKey_; result.url_ = url_; result.totalProduced_ = totalProduced_; result.totalMissed_ = totalMissed_; result.latestBlockNum_ = latestBlockNum_; result.latestSlotNum_ = latestSlotNum_; result.isJobs_ = isJobs_; 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.vision.visionjsdk.proto.Response.Witness) { return mergeFrom((org.vision.visionjsdk.proto.Response.Witness)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Witness other) { if (other == org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance()) return this; if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (other.getVoteCount() != 0L) { setVoteCount(other.getVoteCount()); } if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) { setPubKey(other.getPubKey()); } if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } if (other.getTotalProduced() != 0L) { setTotalProduced(other.getTotalProduced()); } if (other.getTotalMissed() != 0L) { setTotalMissed(other.getTotalMissed()); } if (other.getLatestBlockNum() != 0L) { setLatestBlockNum(other.getLatestBlockNum()); } if (other.getLatestSlotNum() != 0L) { setLatestSlotNum(other.getLatestSlotNum()); } if (other.getIsJobs() != false) { setIsJobs(other.getIsJobs()); } 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.vision.visionjsdk.proto.Response.Witness parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Witness) 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. */ @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 voteCount_ ; /** * int64 voteCount = 2; * @return The voteCount. */ @java.lang.Override public long getVoteCount() { return voteCount_; } /** * int64 voteCount = 2; * @param value The voteCount to set. * @return This builder for chaining. */ public Builder setVoteCount(long value) { voteCount_ = value; onChanged(); return this; } /** * int64 voteCount = 2; * @return This builder for chaining. */ public Builder clearVoteCount() { voteCount_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pubKey = 3; * @return The pubKey. */ @java.lang.Override public com.google.protobuf.ByteString getPubKey() { return pubKey_; } /** * bytes pubKey = 3; * @param value The pubKey to set. * @return This builder for chaining. */ public Builder setPubKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pubKey_ = value; onChanged(); return this; } /** * bytes pubKey = 3; * @return This builder for chaining. */ public Builder clearPubKey() { pubKey_ = getDefaultInstance().getPubKey(); onChanged(); return this; } private java.lang.Object url_ = ""; /** * string url = 4; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * string url = 4; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string url = 4; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** * string url = 4; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * string url = 4; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } private long totalProduced_ ; /** * int64 totalProduced = 5; * @return The totalProduced. */ @java.lang.Override public long getTotalProduced() { return totalProduced_; } /** * int64 totalProduced = 5; * @param value The totalProduced to set. * @return This builder for chaining. */ public Builder setTotalProduced(long value) { totalProduced_ = value; onChanged(); return this; } /** * int64 totalProduced = 5; * @return This builder for chaining. */ public Builder clearTotalProduced() { totalProduced_ = 0L; onChanged(); return this; } private long totalMissed_ ; /** * int64 totalMissed = 6; * @return The totalMissed. */ @java.lang.Override public long getTotalMissed() { return totalMissed_; } /** * int64 totalMissed = 6; * @param value The totalMissed to set. * @return This builder for chaining. */ public Builder setTotalMissed(long value) { totalMissed_ = value; onChanged(); return this; } /** * int64 totalMissed = 6; * @return This builder for chaining. */ public Builder clearTotalMissed() { totalMissed_ = 0L; onChanged(); return this; } private long latestBlockNum_ ; /** * int64 latestBlockNum = 7; * @return The latestBlockNum. */ @java.lang.Override public long getLatestBlockNum() { return latestBlockNum_; } /** * int64 latestBlockNum = 7; * @param value The latestBlockNum to set. * @return This builder for chaining. */ public Builder setLatestBlockNum(long value) { latestBlockNum_ = value; onChanged(); return this; } /** * int64 latestBlockNum = 7; * @return This builder for chaining. */ public Builder clearLatestBlockNum() { latestBlockNum_ = 0L; onChanged(); return this; } private long latestSlotNum_ ; /** * int64 latestSlotNum = 8; * @return The latestSlotNum. */ @java.lang.Override public long getLatestSlotNum() { return latestSlotNum_; } /** * int64 latestSlotNum = 8; * @param value The latestSlotNum to set. * @return This builder for chaining. */ public Builder setLatestSlotNum(long value) { latestSlotNum_ = value; onChanged(); return this; } /** * int64 latestSlotNum = 8; * @return This builder for chaining. */ public Builder clearLatestSlotNum() { latestSlotNum_ = 0L; onChanged(); return this; } private boolean isJobs_ ; /** * bool isJobs = 9; * @return The isJobs. */ @java.lang.Override public boolean getIsJobs() { return isJobs_; } /** * bool isJobs = 9; * @param value The isJobs to set. * @return This builder for chaining. */ public Builder setIsJobs(boolean value) { isJobs_ = value; onChanged(); return this; } /** * bool isJobs = 9; * @return This builder for chaining. */ public Builder clearIsJobs() { isJobs_ = false; 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:protocol.Witness) } // @@protoc_insertion_point(class_scope:protocol.Witness) private static final org.vision.visionjsdk.proto.Response.Witness DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Witness(); } public static org.vision.visionjsdk.proto.Response.Witness getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Witness parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Witness(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.vision.visionjsdk.proto.Response.Witness getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account) com.google.protobuf.MessageOrBuilder { /** *
     * account nick name
     * 
* * bytes account_name = 1; * @return The accountName. */ com.google.protobuf.ByteString getAccountName(); /** * .protocol.AccountType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .protocol.AccountType type = 2; * @return The type. */ org.vision.visionjsdk.proto.Common.AccountType getType(); /** *
     * the create address
     * 
* * bytes address = 3; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** *
     * the vs balance
     * 
* * int64 balance = 4; * @return The balance. */ long getBalance(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; * @return list */ java.util.List getVotesList(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return Vote */ org.vision.visionjsdk.proto.Common.Vote getVotes(int index); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; * @return int */ int getVotesCount(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; * @return list */ java.util.List getVotesOrBuilderList(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return VoteOrBuilder */ org.vision.visionjsdk.proto.Common.VoteOrBuilder getVotesOrBuilder( int index); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; * @return int */ int getAssetCount(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; * @param key key * @return boolean */ boolean containsAsset( java.lang.String key); /** * Use {@link #getAssetMap()} instead. * @return map */ @java.lang.Deprecated java.util.Map getAsset(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; * @return map */ java.util.Map getAssetMap(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; * @param key key * @param defaultValue defaultValue * @return long */ long getAssetOrDefault( java.lang.String key, long defaultValue); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; * @param key key * @return long */ long getAssetOrThrow( java.lang.String key); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; * @return int */ int getAssetV2Count(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; * @param key key * @return boolean */ boolean containsAssetV2( java.lang.String key); /** * Use {@link #getAssetV2Map()} instead. * @return map */ @java.lang.Deprecated java.util.Map getAssetV2(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; * @return map */ java.util.Map getAssetV2Map(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; * @param key key * @param defaultValue defaultValue * @return long */ long getAssetV2OrDefault( java.lang.String key, long defaultValue); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; * @param key key * @return long */ long getAssetV2OrThrow( java.lang.String key); /** *
     * the frozen balance for photon
     * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return list */ java.util.List getFrozenList(); /** *
     * the frozen balance for photon
     * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return Frozen */ org.vision.visionjsdk.proto.Response.Account.Frozen getFrozen(int index); /** *
     * the frozen balance for photon
     * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return int */ int getFrozenCount(); /** *
     * the frozen balance for photon
     * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return list */ java.util.List getFrozenOrBuilderList(); /** *
     * the frozen balance for photon
     * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return FrozenOrBuilder */ org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index); /** *
     * photon, get from frozen
     * 
* * int64 net_usage = 8; * @return The netUsage. */ long getNetUsage(); /** *
     * Frozen balance provided by other accounts to this account
     * 
* * int64 acquired_delegated_frozen_balance_for_photon = 41; * @return The acquiredDelegatedFrozenBalanceForPhoton. */ long getAcquiredDelegatedFrozenBalanceForPhoton(); /** *
     * Freeze and provide balances to other accounts
     * 
* * int64 delegated_frozen_balance_for_photon = 42; * @return The delegatedFrozenBalanceForPhoton. */ long getDelegatedFrozenBalanceForPhoton(); /** *
     * this account create time
     * 
* * int64 create_time = 9; * @return The createTime. */ long getCreateTime(); /** *
     * this last operation time, including transfer, voting and so on. //FIXME fix
     * grammar
     * 
* * int64 latest_opration_time = 10; * @return The latestOprationTime. */ long getLatestOprationTime(); /** *
     * witness block producing allowance
     * 
* * int64 allowance = 11; * @return The allowance. */ long getAllowance(); /** *
     * last withdraw time
     * 
* * int64 latest_withdraw_time = 12; * @return The latestWithdrawTime. */ long getLatestWithdrawTime(); /** *
     * not used so far
     * 
* * bytes code = 13; * @return The code. */ com.google.protobuf.ByteString getCode(); /** * bool is_witness = 14; * @return The isWitness. */ boolean getIsWitness(); /** * bool is_committee = 15; * @return The isCommittee. */ boolean getIsCommittee(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return list */ java.util.List getFrozenSupplyList(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return Frozen */ org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenSupply(int index); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return int */ int getFrozenSupplyCount(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return list */ java.util.List getFrozenSupplyOrBuilderList(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return FrozenOrBuilder */ org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenSupplyOrBuilder( int index); /** *
     * asset_issued_name
     * 
* * bytes asset_issued_name = 17; * @return The assetIssuedName. */ com.google.protobuf.ByteString getAssetIssuedName(); /** * bytes asset_issued_ID = 57; * @return The assetIssuedID. */ com.google.protobuf.ByteString getAssetIssuedID(); /** * map<string, int64> latest_asset_operation_time = 18; * @return int */ int getLatestAssetOperationTimeCount(); /** * map<string, int64> latest_asset_operation_time = 18; * @param key key * @return boolean */ boolean containsLatestAssetOperationTime( java.lang.String key); /** * Use {@link #getLatestAssetOperationTimeMap()} instead. * @return map */ @java.lang.Deprecated java.util.Map getLatestAssetOperationTime(); /** * map<string, int64> latest_asset_operation_time = 18; * @return map */ java.util.Map getLatestAssetOperationTimeMap(); /** * map<string, int64> latest_asset_operation_time = 18; * @param key key * @param defaultValue defaultValue * @return long */ long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> latest_asset_operation_time = 18; * @param key key * @return long */ long getLatestAssetOperationTimeOrThrow( java.lang.String key); /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @return int */ int getLatestAssetOperationTimeV2Count(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @return boolean */ boolean containsLatestAssetOperationTimeV2( java.lang.String key); /** * Use {@link #getLatestAssetOperationTimeV2Map()} instead. * @return map */ @java.lang.Deprecated java.util.Map getLatestAssetOperationTimeV2(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @return map */ java.util.Map getLatestAssetOperationTimeV2Map(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @param defaultValue defaultValue * @return long */ long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @return long */ long getLatestAssetOperationTimeV2OrThrow( java.lang.String key); /** * int64 free_net_usage = 19; * @return The freeNetUsage. */ long getFreeNetUsage(); /** * map<string, int64> free_asset_net_usage = 20; * @return int */ int getFreeAssetNetUsageCount(); /** * map<string, int64> free_asset_net_usage = 20; * @param key key * @return boolean */ boolean containsFreeAssetNetUsage( java.lang.String key); /** * Use {@link #getFreeAssetNetUsageMap()} instead. * @return map */ @java.lang.Deprecated java.util.Map getFreeAssetNetUsage(); /** * map<string, int64> free_asset_net_usage = 20; * @return map */ java.util.Map getFreeAssetNetUsageMap(); /** * map<string, int64> free_asset_net_usage = 20; * @param key key * @param defaultValue defaultValue * @return long */ long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> free_asset_net_usage = 20; * @param key key * @return long */ long getFreeAssetNetUsageOrThrow( java.lang.String key); /** * map<string, int64> free_asset_net_usageV2 = 59; * @return int */ int getFreeAssetNetUsageV2Count(); /** * map<string, int64> free_asset_net_usageV2 = 59; * @param key key * @return boolean */ boolean containsFreeAssetNetUsageV2( java.lang.String key); /** * Use {@link #getFreeAssetNetUsageV2Map()} instead. * @return map */ @java.lang.Deprecated java.util.Map getFreeAssetNetUsageV2(); /** * map<string, int64> free_asset_net_usageV2 = 59; * @return map */ java.util.Map getFreeAssetNetUsageV2Map(); /** * map<string, int64> free_asset_net_usageV2 = 59; * @param key key * @param defaultValue defaultValue * @return long */ long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> free_asset_net_usageV2 = 59; * @param key key * @return long */ long getFreeAssetNetUsageV2OrThrow( java.lang.String key); /** * int64 latest_consume_time = 21; * @return The latestConsumeTime. */ long getLatestConsumeTime(); /** * int64 latest_consume_free_time = 22; * @return The latestConsumeFreeTime. */ long getLatestConsumeFreeTime(); /** *
     * the identity of this account, case insensitive
     * 
* * bytes account_id = 23; * @return The accountId. */ com.google.protobuf.ByteString getAccountId(); /** * .protocol.Account.AccountResource account_resource = 26; * @return Whether the accountResource field is set. */ boolean hasAccountResource(); /** * .protocol.Account.AccountResource account_resource = 26; * @return The accountResource. */ org.vision.visionjsdk.proto.Response.Account.AccountResource getAccountResource(); /** * .protocol.Account.AccountResource account_resource = 26; * @return AccountResourceOrBuilder */ org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder(); /** * bytes codeHash = 30; * @return The codeHash. */ com.google.protobuf.ByteString getCodeHash(); /** * .protocol.Permission owner_permission = 31; * @return Whether the ownerPermission field is set. */ boolean hasOwnerPermission(); /** * .protocol.Permission owner_permission = 31; * @return The ownerPermission. */ org.vision.visionjsdk.proto.Common.Permission getOwnerPermission(); /** * .protocol.Permission owner_permission = 31; * @return PermissionOrBuilder */ org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder(); /** * .protocol.Permission witness_permission = 32; * @return Whether the witnessPermission field is set. */ boolean hasWitnessPermission(); /** * .protocol.Permission witness_permission = 32; * @return The witnessPermission. */ org.vision.visionjsdk.proto.Common.Permission getWitnessPermission(); /** * .protocol.Permission witness_permission = 32; * @return PermissionOrBuilder */ org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder(); /** * repeated .protocol.Permission active_permission = 33; * @return list */ java.util.List getActivePermissionList(); /** * repeated .protocol.Permission active_permission = 33; * @param index index * @return Permission */ org.vision.visionjsdk.proto.Common.Permission getActivePermission(int index); /** * repeated .protocol.Permission active_permission = 33; * @return int */ int getActivePermissionCount(); /** * repeated .protocol.Permission active_permission = 33; * @return list */ java.util.List getActivePermissionOrBuilderList(); /** * repeated .protocol.Permission active_permission = 33; * @param index index * @return PermissionOrBuilder */ org.vision.visionjsdk.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index); } /** *
   * Account
   * 
* * Protobuf type {@code protocol.Account} */ public static final class Account extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.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() { accountName_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; votes_ = java.util.Collections.emptyList(); frozen_ = java.util.Collections.emptyList(); code_ = com.google.protobuf.ByteString.EMPTY; frozenSupply_ = java.util.Collections.emptyList(); assetIssuedName_ = com.google.protobuf.ByteString.EMPTY; assetIssuedID_ = com.google.protobuf.ByteString.EMPTY; accountId_ = com.google.protobuf.ByteString.EMPTY; codeHash_ = com.google.protobuf.ByteString.EMPTY; activePermission_ = 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: { accountName_ = input.readBytes(); break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 26: { address_ = input.readBytes(); break; } case 32: { balance_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } votes_.add( input.readMessage(org.vision.visionjsdk.proto.Common.Vote.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { asset_ = com.google.protobuf.MapField.newMapField( AssetDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry asset__ = input.readMessage( AssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); asset_.getMutableMap().put( asset__.getKey(), asset__.getValue()); break; } case 58: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { frozen_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } frozen_.add( input.readMessage(org.vision.visionjsdk.proto.Response.Account.Frozen.parser(), extensionRegistry)); break; } case 64: { netUsage_ = input.readInt64(); break; } case 72: { createTime_ = input.readInt64(); break; } case 80: { latestOprationTime_ = input.readInt64(); break; } case 88: { allowance_ = input.readInt64(); break; } case 96: { latestWithdrawTime_ = input.readInt64(); break; } case 106: { code_ = input.readBytes(); break; } case 112: { isWitness_ = input.readBool(); break; } case 120: { isCommittee_ = input.readBool(); break; } case 130: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { frozenSupply_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } frozenSupply_.add( input.readMessage(org.vision.visionjsdk.proto.Response.Account.Frozen.parser(), extensionRegistry)); break; } case 138: { assetIssuedName_ = input.readBytes(); break; } case 146: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { latestAssetOperationTime_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000020; } com.google.protobuf.MapEntry latestAssetOperationTime__ = input.readMessage( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); latestAssetOperationTime_.getMutableMap().put( latestAssetOperationTime__.getKey(), latestAssetOperationTime__.getValue()); break; } case 152: { freeNetUsage_ = input.readInt64(); break; } case 162: { if (!((mutable_bitField0_ & 0x00000080) != 0)) { freeAssetNetUsage_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000080; } com.google.protobuf.MapEntry freeAssetNetUsage__ = input.readMessage( FreeAssetNetUsageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); freeAssetNetUsage_.getMutableMap().put( freeAssetNetUsage__.getKey(), freeAssetNetUsage__.getValue()); break; } case 168: { latestConsumeTime_ = input.readInt64(); break; } case 176: { latestConsumeFreeTime_ = input.readInt64(); break; } case 186: { accountId_ = input.readBytes(); break; } case 210: { org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder subBuilder = null; if (accountResource_ != null) { subBuilder = accountResource_.toBuilder(); } accountResource_ = input.readMessage(org.vision.visionjsdk.proto.Response.Account.AccountResource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(accountResource_); accountResource_ = subBuilder.buildPartial(); } break; } case 242: { codeHash_ = input.readBytes(); break; } case 250: { org.vision.visionjsdk.proto.Common.Permission.Builder subBuilder = null; if (ownerPermission_ != null) { subBuilder = ownerPermission_.toBuilder(); } ownerPermission_ = input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ownerPermission_); ownerPermission_ = subBuilder.buildPartial(); } break; } case 258: { org.vision.visionjsdk.proto.Common.Permission.Builder subBuilder = null; if (witnessPermission_ != null) { subBuilder = witnessPermission_.toBuilder(); } witnessPermission_ = input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(witnessPermission_); witnessPermission_ = subBuilder.buildPartial(); } break; } case 266: { if (!((mutable_bitField0_ & 0x00000200) != 0)) { activePermission_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } activePermission_.add( input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry)); break; } case 328: { acquiredDelegatedFrozenBalanceForPhoton_ = input.readInt64(); break; } case 336: { delegatedFrozenBalanceForPhoton_ = input.readInt64(); break; } case 450: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { assetV2_ = com.google.protobuf.MapField.newMapField( AssetV2DefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry assetV2__ = input.readMessage( AssetV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); assetV2_.getMutableMap().put( assetV2__.getKey(), assetV2__.getValue()); break; } case 458: { assetIssuedID_ = input.readBytes(); break; } case 466: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { latestAssetOperationTimeV2_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000040; } com.google.protobuf.MapEntry latestAssetOperationTimeV2__ = input.readMessage( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); latestAssetOperationTimeV2_.getMutableMap().put( latestAssetOperationTimeV2__.getKey(), latestAssetOperationTimeV2__.getValue()); break; } case 474: { if (!((mutable_bitField0_ & 0x00000100) != 0)) { freeAssetNetUsageV2_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000100; } com.google.protobuf.MapEntry freeAssetNetUsageV2__ = input.readMessage( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); freeAssetNetUsageV2_.getMutableMap().put( freeAssetNetUsageV2__.getKey(), freeAssetNetUsageV2__.getValue()); 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)) { votes_ = java.util.Collections.unmodifiableList(votes_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { frozen_ = java.util.Collections.unmodifiableList(frozen_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); } if (((mutable_bitField0_ & 0x00000200) != 0)) { activePermission_ = java.util.Collections.unmodifiableList(activePermission_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAsset(); case 56: return internalGetAssetV2(); case 18: return internalGetLatestAssetOperationTime(); case 58: return internalGetLatestAssetOperationTimeV2(); case 20: return internalGetFreeAssetNetUsage(); case 59: return internalGetFreeAssetNetUsageV2(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.class, org.vision.visionjsdk.proto.Response.Account.Builder.class); } public interface FrozenOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.Frozen) com.google.protobuf.MessageOrBuilder { /** *
       * the frozen vs balance
       * 
* * int64 frozen_balance = 1; * @return The frozenBalance. */ long getFrozenBalance(); /** *
       * the expire time
       * 
* * int64 expire_time = 2; * @return The expireTime. */ long getExpireTime(); } /** *
     * frozen balance
     * 
* * Protobuf type {@code protocol.Account.Frozen} */ public static final class Frozen extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Account.Frozen) FrozenOrBuilder { private static final long serialVersionUID = 0L; // Use Frozen.newBuilder() to construct. private Frozen(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Frozen() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Frozen(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Frozen( 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: { frozenBalance_ = input.readInt64(); break; } case 16: { expireTime_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_Frozen_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.Frozen.class, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder.class); } public static final int FROZEN_BALANCE_FIELD_NUMBER = 1; private long frozenBalance_; /** *
       * the frozen vs balance
       * 
* * int64 frozen_balance = 1; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private long expireTime_; /** *
       * the expire time
       * 
* * int64 expire_time = 2; * @return The expireTime. */ @java.lang.Override public long getExpireTime() { return expireTime_; } 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 (frozenBalance_ != 0L) { output.writeInt64(1, frozenBalance_); } if (expireTime_ != 0L) { output.writeInt64(2, expireTime_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (frozenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, frozenBalance_); } if (expireTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, expireTime_); } 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.vision.visionjsdk.proto.Response.Account.Frozen)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Account.Frozen other = (org.vision.visionjsdk.proto.Response.Account.Frozen) obj; if (getFrozenBalance() != other.getFrozenBalance()) return false; if (getExpireTime() != other.getExpireTime()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROZEN_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalance()); hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpireTime()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.Frozen parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.Frozen 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.vision.visionjsdk.proto.Response.Account.Frozen parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.Frozen 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.vision.visionjsdk.proto.Response.Account.Frozen parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.Frozen 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.vision.visionjsdk.proto.Response.Account.Frozen 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; } /** *
       * frozen balance
       * 
* * Protobuf type {@code protocol.Account.Frozen} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Account.Frozen) org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_Frozen_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.Frozen.class, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.Account.Frozen.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(); frozenBalance_ = 0L; expireTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen build() { org.vision.visionjsdk.proto.Response.Account.Frozen result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen buildPartial() { org.vision.visionjsdk.proto.Response.Account.Frozen result = new org.vision.visionjsdk.proto.Response.Account.Frozen(this); result.frozenBalance_ = frozenBalance_; result.expireTime_ = expireTime_; 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.vision.visionjsdk.proto.Response.Account.Frozen) { return mergeFrom((org.vision.visionjsdk.proto.Response.Account.Frozen)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Account.Frozen other) { if (other == org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance()) return this; if (other.getFrozenBalance() != 0L) { setFrozenBalance(other.getFrozenBalance()); } if (other.getExpireTime() != 0L) { setExpireTime(other.getExpireTime()); } 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.vision.visionjsdk.proto.Response.Account.Frozen parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Account.Frozen) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long frozenBalance_ ; /** *
         * the frozen vs balance
         * 
* * int64 frozen_balance = 1; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } /** *
         * the frozen vs balance
         * 
* * int64 frozen_balance = 1; * @param value The frozenBalance to set. * @return This builder for chaining. */ public Builder setFrozenBalance(long value) { frozenBalance_ = value; onChanged(); return this; } /** *
         * the frozen vs balance
         * 
* * int64 frozen_balance = 1; * @return This builder for chaining. */ public Builder clearFrozenBalance() { frozenBalance_ = 0L; onChanged(); return this; } private long expireTime_ ; /** *
         * the expire time
         * 
* * int64 expire_time = 2; * @return The expireTime. */ @java.lang.Override public long getExpireTime() { return expireTime_; } /** *
         * the expire time
         * 
* * int64 expire_time = 2; * @param value The expireTime to set. * @return This builder for chaining. */ public Builder setExpireTime(long value) { expireTime_ = value; onChanged(); return this; } /** *
         * the expire time
         * 
* * int64 expire_time = 2; * @return This builder for chaining. */ public Builder clearExpireTime() { expireTime_ = 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:protocol.Account.Frozen) } // @@protoc_insertion_point(class_scope:protocol.Account.Frozen) private static final org.vision.visionjsdk.proto.Response.Account.Frozen DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Account.Frozen(); } public static org.vision.visionjsdk.proto.Response.Account.Frozen getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Frozen parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Frozen(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.vision.visionjsdk.proto.Response.Account.Frozen getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.AccountResource) com.google.protobuf.MessageOrBuilder { /** *
       * entropy resource, get from frozen
       * 
* * int64 entropy_usage = 1; * @return The entropyUsage. */ long getEntropyUsage(); /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return Whether the frozenBalanceForEntropy field is set. */ boolean hasFrozenBalanceForEntropy(); /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return The frozenBalanceForEntropy. */ org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenBalanceForEntropy(); /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return FrozenOrBuilder */ org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEntropyOrBuilder(); /** * int64 latest_consume_time_for_entropy = 3; * @return The latestConsumeTimeForEntropy. */ long getLatestConsumeTimeForEntropy(); /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_entropy = 4; * @return The acquiredDelegatedFrozenBalanceForEntropy. */ long getAcquiredDelegatedFrozenBalanceForEntropy(); /** *
       * Frozen balances provided to other accounts
       * 
* * int64 delegated_frozen_balance_for_entropy = 5; * @return The delegatedFrozenBalanceForEntropy. */ long getDelegatedFrozenBalanceForEntropy(); /** *
       * storage resource, get from market
       * 
* * int64 storage_limit = 6; * @return The storageLimit. */ long getStorageLimit(); /** * int64 storage_usage = 7; * @return The storageUsage. */ long getStorageUsage(); /** * int64 latest_exchange_storage_time = 8; * @return The latestExchangeStorageTime. */ long getLatestExchangeStorageTime(); } /** * Protobuf type {@code protocol.Account.AccountResource} */ public static final class AccountResource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Account.AccountResource) AccountResourceOrBuilder { private static final long serialVersionUID = 0L; // Use AccountResource.newBuilder() to construct. private AccountResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountResource() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountResource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountResource( 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: { entropyUsage_ = input.readInt64(); break; } case 18: { org.vision.visionjsdk.proto.Response.Account.Frozen.Builder subBuilder = null; if (frozenBalanceForEntropy_ != null) { subBuilder = frozenBalanceForEntropy_.toBuilder(); } frozenBalanceForEntropy_ = input.readMessage(org.vision.visionjsdk.proto.Response.Account.Frozen.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frozenBalanceForEntropy_); frozenBalanceForEntropy_ = subBuilder.buildPartial(); } break; } case 24: { latestConsumeTimeForEntropy_ = input.readInt64(); break; } case 32: { acquiredDelegatedFrozenBalanceForEntropy_ = input.readInt64(); break; } case 40: { delegatedFrozenBalanceForEntropy_ = input.readInt64(); break; } case 48: { storageLimit_ = input.readInt64(); break; } case 56: { storageUsage_ = input.readInt64(); break; } case 64: { latestExchangeStorageTime_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AccountResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.AccountResource.class, org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder.class); } public static final int ENTROPY_USAGE_FIELD_NUMBER = 1; private long entropyUsage_; /** *
       * entropy resource, get from frozen
       * 
* * int64 entropy_usage = 1; * @return The entropyUsage. */ @java.lang.Override public long getEntropyUsage() { return entropyUsage_; } public static final int FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER = 2; private org.vision.visionjsdk.proto.Response.Account.Frozen frozenBalanceForEntropy_; /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return Whether the frozenBalanceForEntropy field is set. */ @java.lang.Override public boolean hasFrozenBalanceForEntropy() { return frozenBalanceForEntropy_ != null; } /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return The frozenBalanceForEntropy. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenBalanceForEntropy() { return frozenBalanceForEntropy_ == null ? org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEntropy_; } /** *
       * the frozen balance for entropy
       * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEntropyOrBuilder() { return getFrozenBalanceForEntropy(); } public static final int LATEST_CONSUME_TIME_FOR_ENTROPY_FIELD_NUMBER = 3; private long latestConsumeTimeForEntropy_; /** * int64 latest_consume_time_for_entropy = 3; * @return The latestConsumeTimeForEntropy. */ @java.lang.Override public long getLatestConsumeTimeForEntropy() { return latestConsumeTimeForEntropy_; } public static final int ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER = 4; private long acquiredDelegatedFrozenBalanceForEntropy_; /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_entropy = 4; * @return The acquiredDelegatedFrozenBalanceForEntropy. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForEntropy() { return acquiredDelegatedFrozenBalanceForEntropy_; } public static final int DELEGATED_FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER = 5; private long delegatedFrozenBalanceForEntropy_; /** *
       * Frozen balances provided to other accounts
       * 
* * int64 delegated_frozen_balance_for_entropy = 5; * @return The delegatedFrozenBalanceForEntropy. */ @java.lang.Override public long getDelegatedFrozenBalanceForEntropy() { return delegatedFrozenBalanceForEntropy_; } public static final int STORAGE_LIMIT_FIELD_NUMBER = 6; private long storageLimit_; /** *
       * storage resource, get from market
       * 
* * int64 storage_limit = 6; * @return The storageLimit. */ @java.lang.Override public long getStorageLimit() { return storageLimit_; } public static final int STORAGE_USAGE_FIELD_NUMBER = 7; private long storageUsage_; /** * int64 storage_usage = 7; * @return The storageUsage. */ @java.lang.Override public long getStorageUsage() { return storageUsage_; } public static final int LATEST_EXCHANGE_STORAGE_TIME_FIELD_NUMBER = 8; private long latestExchangeStorageTime_; /** * int64 latest_exchange_storage_time = 8; * @return The latestExchangeStorageTime. */ @java.lang.Override public long getLatestExchangeStorageTime() { return latestExchangeStorageTime_; } 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 (entropyUsage_ != 0L) { output.writeInt64(1, entropyUsage_); } if (frozenBalanceForEntropy_ != null) { output.writeMessage(2, getFrozenBalanceForEntropy()); } if (latestConsumeTimeForEntropy_ != 0L) { output.writeInt64(3, latestConsumeTimeForEntropy_); } if (acquiredDelegatedFrozenBalanceForEntropy_ != 0L) { output.writeInt64(4, acquiredDelegatedFrozenBalanceForEntropy_); } if (delegatedFrozenBalanceForEntropy_ != 0L) { output.writeInt64(5, delegatedFrozenBalanceForEntropy_); } if (storageLimit_ != 0L) { output.writeInt64(6, storageLimit_); } if (storageUsage_ != 0L) { output.writeInt64(7, storageUsage_); } if (latestExchangeStorageTime_ != 0L) { output.writeInt64(8, latestExchangeStorageTime_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (entropyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, entropyUsage_); } if (frozenBalanceForEntropy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFrozenBalanceForEntropy()); } if (latestConsumeTimeForEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, latestConsumeTimeForEntropy_); } if (acquiredDelegatedFrozenBalanceForEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, acquiredDelegatedFrozenBalanceForEntropy_); } if (delegatedFrozenBalanceForEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, delegatedFrozenBalanceForEntropy_); } if (storageLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, storageLimit_); } if (storageUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, storageUsage_); } if (latestExchangeStorageTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, latestExchangeStorageTime_); } 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.vision.visionjsdk.proto.Response.Account.AccountResource)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Account.AccountResource other = (org.vision.visionjsdk.proto.Response.Account.AccountResource) obj; if (getEntropyUsage() != other.getEntropyUsage()) return false; if (hasFrozenBalanceForEntropy() != other.hasFrozenBalanceForEntropy()) return false; if (hasFrozenBalanceForEntropy()) { if (!getFrozenBalanceForEntropy() .equals(other.getFrozenBalanceForEntropy())) return false; } if (getLatestConsumeTimeForEntropy() != other.getLatestConsumeTimeForEntropy()) return false; if (getAcquiredDelegatedFrozenBalanceForEntropy() != other.getAcquiredDelegatedFrozenBalanceForEntropy()) return false; if (getDelegatedFrozenBalanceForEntropy() != other.getDelegatedFrozenBalanceForEntropy()) return false; if (getStorageLimit() != other.getStorageLimit()) return false; if (getStorageUsage() != other.getStorageUsage()) return false; if (getLatestExchangeStorageTime() != other.getLatestExchangeStorageTime()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTROPY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyUsage()); if (hasFrozenBalanceForEntropy()) { hash = (37 * hash) + FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + getFrozenBalanceForEntropy().hashCode(); } hash = (37 * hash) + LATEST_CONSUME_TIME_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestConsumeTimeForEntropy()); hash = (37 * hash) + ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenBalanceForEntropy()); hash = (37 * hash) + DELEGATED_FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenBalanceForEntropy()); hash = (37 * hash) + STORAGE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStorageLimit()); hash = (37 * hash) + STORAGE_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStorageUsage()); hash = (37 * hash) + LATEST_EXCHANGE_STORAGE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestExchangeStorageTime()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource 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.vision.visionjsdk.proto.Response.Account.AccountResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource 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.vision.visionjsdk.proto.Response.Account.AccountResource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource 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.vision.visionjsdk.proto.Response.Account.AccountResource 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 protocol.Account.AccountResource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Account.AccountResource) org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AccountResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.AccountResource.class, org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.Account.AccountResource.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(); entropyUsage_ = 0L; if (frozenBalanceForEntropyBuilder_ == null) { frozenBalanceForEntropy_ = null; } else { frozenBalanceForEntropy_ = null; frozenBalanceForEntropyBuilder_ = null; } latestConsumeTimeForEntropy_ = 0L; acquiredDelegatedFrozenBalanceForEntropy_ = 0L; delegatedFrozenBalanceForEntropy_ = 0L; storageLimit_ = 0L; storageUsage_ = 0L; latestExchangeStorageTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.AccountResource getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Account.AccountResource.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.AccountResource build() { org.vision.visionjsdk.proto.Response.Account.AccountResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.AccountResource buildPartial() { org.vision.visionjsdk.proto.Response.Account.AccountResource result = new org.vision.visionjsdk.proto.Response.Account.AccountResource(this); result.entropyUsage_ = entropyUsage_; if (frozenBalanceForEntropyBuilder_ == null) { result.frozenBalanceForEntropy_ = frozenBalanceForEntropy_; } else { result.frozenBalanceForEntropy_ = frozenBalanceForEntropyBuilder_.build(); } result.latestConsumeTimeForEntropy_ = latestConsumeTimeForEntropy_; result.acquiredDelegatedFrozenBalanceForEntropy_ = acquiredDelegatedFrozenBalanceForEntropy_; result.delegatedFrozenBalanceForEntropy_ = delegatedFrozenBalanceForEntropy_; result.storageLimit_ = storageLimit_; result.storageUsage_ = storageUsage_; result.latestExchangeStorageTime_ = latestExchangeStorageTime_; 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.vision.visionjsdk.proto.Response.Account.AccountResource) { return mergeFrom((org.vision.visionjsdk.proto.Response.Account.AccountResource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Account.AccountResource other) { if (other == org.vision.visionjsdk.proto.Response.Account.AccountResource.getDefaultInstance()) return this; if (other.getEntropyUsage() != 0L) { setEntropyUsage(other.getEntropyUsage()); } if (other.hasFrozenBalanceForEntropy()) { mergeFrozenBalanceForEntropy(other.getFrozenBalanceForEntropy()); } if (other.getLatestConsumeTimeForEntropy() != 0L) { setLatestConsumeTimeForEntropy(other.getLatestConsumeTimeForEntropy()); } if (other.getAcquiredDelegatedFrozenBalanceForEntropy() != 0L) { setAcquiredDelegatedFrozenBalanceForEntropy(other.getAcquiredDelegatedFrozenBalanceForEntropy()); } if (other.getDelegatedFrozenBalanceForEntropy() != 0L) { setDelegatedFrozenBalanceForEntropy(other.getDelegatedFrozenBalanceForEntropy()); } if (other.getStorageLimit() != 0L) { setStorageLimit(other.getStorageLimit()); } if (other.getStorageUsage() != 0L) { setStorageUsage(other.getStorageUsage()); } if (other.getLatestExchangeStorageTime() != 0L) { setLatestExchangeStorageTime(other.getLatestExchangeStorageTime()); } 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.vision.visionjsdk.proto.Response.Account.AccountResource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Account.AccountResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long entropyUsage_ ; /** *
         * entropy resource, get from frozen
         * 
* * int64 entropy_usage = 1; * @return The entropyUsage. */ @java.lang.Override public long getEntropyUsage() { return entropyUsage_; } /** *
         * entropy resource, get from frozen
         * 
* * int64 entropy_usage = 1; * @param value The entropyUsage to set. * @return This builder for chaining. */ public Builder setEntropyUsage(long value) { entropyUsage_ = value; onChanged(); return this; } /** *
         * entropy resource, get from frozen
         * 
* * int64 entropy_usage = 1; * @return This builder for chaining. */ public Builder clearEntropyUsage() { entropyUsage_ = 0L; onChanged(); return this; } private org.vision.visionjsdk.proto.Response.Account.Frozen frozenBalanceForEntropy_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> frozenBalanceForEntropyBuilder_; /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return Whether the frozenBalanceForEntropy field is set. */ public boolean hasFrozenBalanceForEntropy() { return frozenBalanceForEntropyBuilder_ != null || frozenBalanceForEntropy_ != null; } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return The frozenBalanceForEntropy. */ public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenBalanceForEntropy() { if (frozenBalanceForEntropyBuilder_ == null) { return frozenBalanceForEntropy_ == null ? org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEntropy_; } else { return frozenBalanceForEntropyBuilder_.getMessage(); } } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @param value value * @return Builder */ public Builder setFrozenBalanceForEntropy(org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenBalanceForEntropyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } frozenBalanceForEntropy_ = value; onChanged(); } else { frozenBalanceForEntropyBuilder_.setMessage(value); } return this; } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @param builderForValue builderForValue * @return Builder */ public Builder setFrozenBalanceForEntropy( org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenBalanceForEntropyBuilder_ == null) { frozenBalanceForEntropy_ = builderForValue.build(); onChanged(); } else { frozenBalanceForEntropyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @param value value * @return Builder */ public Builder mergeFrozenBalanceForEntropy(org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenBalanceForEntropyBuilder_ == null) { if (frozenBalanceForEntropy_ != null) { frozenBalanceForEntropy_ = org.vision.visionjsdk.proto.Response.Account.Frozen.newBuilder(frozenBalanceForEntropy_).mergeFrom(value).buildPartial(); } else { frozenBalanceForEntropy_ = value; } onChanged(); } else { frozenBalanceForEntropyBuilder_.mergeFrom(value); } return this; } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return Builder */ public Builder clearFrozenBalanceForEntropy() { if (frozenBalanceForEntropyBuilder_ == null) { frozenBalanceForEntropy_ = null; onChanged(); } else { frozenBalanceForEntropy_ = null; frozenBalanceForEntropyBuilder_ = null; } return this; } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder getFrozenBalanceForEntropyBuilder() { onChanged(); return getFrozenBalanceForEntropyFieldBuilder().getBuilder(); } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return FrozenOrBuilder */ public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEntropyOrBuilder() { if (frozenBalanceForEntropyBuilder_ != null) { return frozenBalanceForEntropyBuilder_.getMessageOrBuilder(); } else { return frozenBalanceForEntropy_ == null ? org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEntropy_; } } /** *
         * the frozen balance for entropy
         * 
* * .protocol.Account.Frozen frozen_balance_for_entropy = 2; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> getFrozenBalanceForEntropyFieldBuilder() { if (frozenBalanceForEntropyBuilder_ == null) { frozenBalanceForEntropyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder>( getFrozenBalanceForEntropy(), getParentForChildren(), isClean()); frozenBalanceForEntropy_ = null; } return frozenBalanceForEntropyBuilder_; } private long latestConsumeTimeForEntropy_ ; /** * int64 latest_consume_time_for_entropy = 3; * @return The latestConsumeTimeForEntropy. */ @java.lang.Override public long getLatestConsumeTimeForEntropy() { return latestConsumeTimeForEntropy_; } /** * int64 latest_consume_time_for_entropy = 3; * @param value The latestConsumeTimeForEntropy to set. * @return This builder for chaining. */ public Builder setLatestConsumeTimeForEntropy(long value) { latestConsumeTimeForEntropy_ = value; onChanged(); return this; } /** * int64 latest_consume_time_for_entropy = 3; * @return This builder for chaining. */ public Builder clearLatestConsumeTimeForEntropy() { latestConsumeTimeForEntropy_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenBalanceForEntropy_ ; /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_entropy = 4; * @return The acquiredDelegatedFrozenBalanceForEntropy. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForEntropy() { return acquiredDelegatedFrozenBalanceForEntropy_; } /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_entropy = 4; * @param value The acquiredDelegatedFrozenBalanceForEntropy to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenBalanceForEntropy(long value) { acquiredDelegatedFrozenBalanceForEntropy_ = value; onChanged(); return this; } /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_entropy = 4; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenBalanceForEntropy() { acquiredDelegatedFrozenBalanceForEntropy_ = 0L; onChanged(); return this; } private long delegatedFrozenBalanceForEntropy_ ; /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_entropy = 5; * @return The delegatedFrozenBalanceForEntropy. */ @java.lang.Override public long getDelegatedFrozenBalanceForEntropy() { return delegatedFrozenBalanceForEntropy_; } /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_entropy = 5; * @param value The delegatedFrozenBalanceForEntropy to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenBalanceForEntropy(long value) { delegatedFrozenBalanceForEntropy_ = value; onChanged(); return this; } /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_entropy = 5; * @return This builder for chaining. */ public Builder clearDelegatedFrozenBalanceForEntropy() { delegatedFrozenBalanceForEntropy_ = 0L; onChanged(); return this; } private long storageLimit_ ; /** *
         * storage resource, get from market
         * 
* * int64 storage_limit = 6; * @return The storageLimit. */ @java.lang.Override public long getStorageLimit() { return storageLimit_; } /** *
         * storage resource, get from market
         * 
* * int64 storage_limit = 6; * @param value The storageLimit to set. * @return This builder for chaining. */ public Builder setStorageLimit(long value) { storageLimit_ = value; onChanged(); return this; } /** *
         * storage resource, get from market
         * 
* * int64 storage_limit = 6; * @return This builder for chaining. */ public Builder clearStorageLimit() { storageLimit_ = 0L; onChanged(); return this; } private long storageUsage_ ; /** * int64 storage_usage = 7; * @return The storageUsage. */ @java.lang.Override public long getStorageUsage() { return storageUsage_; } /** * int64 storage_usage = 7; * @param value The storageUsage to set. * @return This builder for chaining. */ public Builder setStorageUsage(long value) { storageUsage_ = value; onChanged(); return this; } /** * int64 storage_usage = 7; * @return This builder for chaining. */ public Builder clearStorageUsage() { storageUsage_ = 0L; onChanged(); return this; } private long latestExchangeStorageTime_ ; /** * int64 latest_exchange_storage_time = 8; * @return The latestExchangeStorageTime. */ @java.lang.Override public long getLatestExchangeStorageTime() { return latestExchangeStorageTime_; } /** * int64 latest_exchange_storage_time = 8; * @param value The latestExchangeStorageTime to set. * @return This builder for chaining. */ public Builder setLatestExchangeStorageTime(long value) { latestExchangeStorageTime_ = value; onChanged(); return this; } /** * int64 latest_exchange_storage_time = 8; * @return This builder for chaining. */ public Builder clearLatestExchangeStorageTime() { latestExchangeStorageTime_ = 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:protocol.Account.AccountResource) } // @@protoc_insertion_point(class_scope:protocol.Account.AccountResource) private static final org.vision.visionjsdk.proto.Response.Account.AccountResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Account.AccountResource(); } public static org.vision.visionjsdk.proto.Response.Account.AccountResource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountResource(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.vision.visionjsdk.proto.Response.Account.AccountResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ACCOUNT_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString accountName_; /** *
     * account nick name
     * 
* * bytes account_name = 1; * @return The accountName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountName() { return accountName_; } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * .protocol.AccountType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.AccountType type = 2; * @return The type. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.AccountType getType() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.AccountType result = org.vision.visionjsdk.proto.Common.AccountType.valueOf(type_); return result == null ? org.vision.visionjsdk.proto.Common.AccountType.UNRECOGNIZED : result; } public static final int ADDRESS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString address_; /** *
     * the create address
     * 
* * bytes address = 3; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int BALANCE_FIELD_NUMBER = 4; private long balance_; /** *
     * the vs balance
     * 
* * int64 balance = 4; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int VOTES_FIELD_NUMBER = 5; private java.util.List votes_; @java.lang.Override public java.util.List getVotesList() { return votes_; } @java.lang.Override public java.util.List getVotesOrBuilderList() { return votes_; } @java.lang.Override public int getVotesCount() { return votes_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Common.Vote getVotes(int index) { return votes_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Common.VoteOrBuilder getVotesOrBuilder( int index) { return votes_.get(index); } public static final int ASSET_FIELD_NUMBER = 6; private static final class AssetDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AssetEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> asset_; private com.google.protobuf.MapField internalGetAsset() { if (asset_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetDefaultEntryHolder.defaultEntry); } return asset_; } public int getAssetCount() { return internalGetAsset().getMap().size(); } @java.lang.Override public boolean containsAsset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAsset().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getAsset() { return getAssetMap(); } @java.lang.Override public java.util.Map getAssetMap() { return internalGetAsset().getMap(); } @java.lang.Override public long getAssetOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAsset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getAssetOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAsset().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASSETV2_FIELD_NUMBER = 56; private static final class AssetV2DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_AssetV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetV2_; private com.google.protobuf.MapField internalGetAssetV2() { if (assetV2_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetV2DefaultEntryHolder.defaultEntry); } return assetV2_; } public int getAssetV2Count() { return internalGetAssetV2().getMap().size(); } @java.lang.Override public boolean containsAssetV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetV2().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetV2() { return getAssetV2Map(); } @java.lang.Override public java.util.Map getAssetV2Map() { return internalGetAssetV2().getMap(); } @java.lang.Override public long getAssetV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getAssetV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FROZEN_FIELD_NUMBER = 7; private java.util.List frozen_; @java.lang.Override public java.util.List getFrozenList() { return frozen_; } @java.lang.Override public java.util.List getFrozenOrBuilderList() { return frozen_; } @java.lang.Override public int getFrozenCount() { return frozen_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozen(int index) { return frozen_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index) { return frozen_.get(index); } public static final int NET_USAGE_FIELD_NUMBER = 8; private long netUsage_; /** *
     * photon, get from frozen
     * 
* * int64 net_usage = 8; * @return The netUsage. */ @java.lang.Override public long getNetUsage() { return netUsage_; } public static final int ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER = 41; private long acquiredDelegatedFrozenBalanceForPhoton_; /** *
     * Frozen balance provided by other accounts to this account
     * 
* * int64 acquired_delegated_frozen_balance_for_photon = 41; * @return The acquiredDelegatedFrozenBalanceForPhoton. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForPhoton() { return acquiredDelegatedFrozenBalanceForPhoton_; } public static final int DELEGATED_FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER = 42; private long delegatedFrozenBalanceForPhoton_; /** *
     * Freeze and provide balances to other accounts
     * 
* * int64 delegated_frozen_balance_for_photon = 42; * @return The delegatedFrozenBalanceForPhoton. */ @java.lang.Override public long getDelegatedFrozenBalanceForPhoton() { return delegatedFrozenBalanceForPhoton_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private long createTime_; /** *
     * this account create time
     * 
* * int64 create_time = 9; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int LATEST_OPRATION_TIME_FIELD_NUMBER = 10; private long latestOprationTime_; /** *
     * this last operation time, including transfer, voting and so on. //FIXME fix
     * grammar
     * 
* * int64 latest_opration_time = 10; * @return The latestOprationTime. */ @java.lang.Override public long getLatestOprationTime() { return latestOprationTime_; } public static final int ALLOWANCE_FIELD_NUMBER = 11; private long allowance_; /** *
     * witness block producing allowance
     * 
* * int64 allowance = 11; * @return The allowance. */ @java.lang.Override public long getAllowance() { return allowance_; } public static final int LATEST_WITHDRAW_TIME_FIELD_NUMBER = 12; private long latestWithdrawTime_; /** *
     * last withdraw time
     * 
* * int64 latest_withdraw_time = 12; * @return The latestWithdrawTime. */ @java.lang.Override public long getLatestWithdrawTime() { return latestWithdrawTime_; } public static final int CODE_FIELD_NUMBER = 13; private com.google.protobuf.ByteString code_; /** *
     * not used so far
     * 
* * bytes code = 13; * @return The code. */ @java.lang.Override public com.google.protobuf.ByteString getCode() { return code_; } public static final int IS_WITNESS_FIELD_NUMBER = 14; private boolean isWitness_; /** * bool is_witness = 14; * @return The isWitness. */ @java.lang.Override public boolean getIsWitness() { return isWitness_; } public static final int IS_COMMITTEE_FIELD_NUMBER = 15; private boolean isCommittee_; /** * bool is_committee = 15; * @return The isCommittee. */ @java.lang.Override public boolean getIsCommittee() { return isCommittee_; } public static final int FROZEN_SUPPLY_FIELD_NUMBER = 16; private java.util.List frozenSupply_; @java.lang.Override public java.util.List getFrozenSupplyList() { return frozenSupply_; } @java.lang.Override public java.util.List getFrozenSupplyOrBuilderList() { return frozenSupply_; } @java.lang.Override public int getFrozenSupplyCount() { return frozenSupply_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenSupply(int index) { return frozenSupply_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenSupplyOrBuilder( int index) { return frozenSupply_.get(index); } public static final int ASSET_ISSUED_NAME_FIELD_NUMBER = 17; private com.google.protobuf.ByteString assetIssuedName_; /** *
     * asset_issued_name
     * 
* * bytes asset_issued_name = 17; * @return The assetIssuedName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssuedName() { return assetIssuedName_; } public static final int ASSET_ISSUED_ID_FIELD_NUMBER = 57; private com.google.protobuf.ByteString assetIssuedID_; /** * bytes asset_issued_ID = 57; * @return The assetIssuedID. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssuedID() { return assetIssuedID_; } public static final int LATEST_ASSET_OPERATION_TIME_FIELD_NUMBER = 18; private static final class LatestAssetOperationTimeDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_LatestAssetOperationTimeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> latestAssetOperationTime_; private com.google.protobuf.MapField internalGetLatestAssetOperationTime() { if (latestAssetOperationTime_ == null) { return com.google.protobuf.MapField.emptyMapField( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry); } return latestAssetOperationTime_; } public int getLatestAssetOperationTimeCount() { return internalGetLatestAssetOperationTime().getMap().size(); } @java.lang.Override public boolean containsLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLatestAssetOperationTime().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTime() { return getLatestAssetOperationTimeMap(); } @java.lang.Override public java.util.Map getLatestAssetOperationTimeMap() { return internalGetLatestAssetOperationTime().getMap(); } @java.lang.Override public long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getLatestAssetOperationTimeOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int LATEST_ASSET_OPERATION_TIMEV2_FIELD_NUMBER = 58; private static final class LatestAssetOperationTimeV2DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> latestAssetOperationTimeV2_; private com.google.protobuf.MapField internalGetLatestAssetOperationTimeV2() { if (latestAssetOperationTimeV2_ == null) { return com.google.protobuf.MapField.emptyMapField( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry); } return latestAssetOperationTimeV2_; } public int getLatestAssetOperationTimeV2Count() { return internalGetLatestAssetOperationTimeV2().getMap().size(); } @java.lang.Override public boolean containsLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLatestAssetOperationTimeV2().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTimeV2() { return getLatestAssetOperationTimeV2Map(); } @java.lang.Override public java.util.Map getLatestAssetOperationTimeV2Map() { return internalGetLatestAssetOperationTimeV2().getMap(); } @java.lang.Override public long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getLatestAssetOperationTimeV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FREE_NET_USAGE_FIELD_NUMBER = 19; private long freeNetUsage_; /** * int64 free_net_usage = 19; * @return The freeNetUsage. */ @java.lang.Override public long getFreeNetUsage() { return freeNetUsage_; } public static final int FREE_ASSET_NET_USAGE_FIELD_NUMBER = 20; private static final class FreeAssetNetUsageDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_FreeAssetNetUsageEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> freeAssetNetUsage_; private com.google.protobuf.MapField internalGetFreeAssetNetUsage() { if (freeAssetNetUsage_ == null) { return com.google.protobuf.MapField.emptyMapField( FreeAssetNetUsageDefaultEntryHolder.defaultEntry); } return freeAssetNetUsage_; } public int getFreeAssetNetUsageCount() { return internalGetFreeAssetNetUsage().getMap().size(); } @java.lang.Override public boolean containsFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFreeAssetNetUsage().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsage() { return getFreeAssetNetUsageMap(); } @java.lang.Override public java.util.Map getFreeAssetNetUsageMap() { return internalGetFreeAssetNetUsage().getMap(); } @java.lang.Override public long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getFreeAssetNetUsageOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FREE_ASSET_NET_USAGEV2_FIELD_NUMBER = 59; private static final class FreeAssetNetUsageV2DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_FreeAssetNetUsageV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> freeAssetNetUsageV2_; private com.google.protobuf.MapField internalGetFreeAssetNetUsageV2() { if (freeAssetNetUsageV2_ == null) { return com.google.protobuf.MapField.emptyMapField( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry); } return freeAssetNetUsageV2_; } public int getFreeAssetNetUsageV2Count() { return internalGetFreeAssetNetUsageV2().getMap().size(); } @java.lang.Override public boolean containsFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFreeAssetNetUsageV2().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsageV2() { return getFreeAssetNetUsageV2Map(); } @java.lang.Override public java.util.Map getFreeAssetNetUsageV2Map() { return internalGetFreeAssetNetUsageV2().getMap(); } @java.lang.Override public long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getFreeAssetNetUsageV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int LATEST_CONSUME_TIME_FIELD_NUMBER = 21; private long latestConsumeTime_; /** * int64 latest_consume_time = 21; * @return The latestConsumeTime. */ @java.lang.Override public long getLatestConsumeTime() { return latestConsumeTime_; } public static final int LATEST_CONSUME_FREE_TIME_FIELD_NUMBER = 22; private long latestConsumeFreeTime_; /** * int64 latest_consume_free_time = 22; * @return The latestConsumeFreeTime. */ @java.lang.Override public long getLatestConsumeFreeTime() { return latestConsumeFreeTime_; } public static final int ACCOUNT_ID_FIELD_NUMBER = 23; private com.google.protobuf.ByteString accountId_; /** *
     * the identity of this account, case insensitive
     * 
* * bytes account_id = 23; * @return The accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountId() { return accountId_; } public static final int ACCOUNT_RESOURCE_FIELD_NUMBER = 26; private org.vision.visionjsdk.proto.Response.Account.AccountResource accountResource_; /** * .protocol.Account.AccountResource account_resource = 26; * @return Whether the accountResource field is set. */ @java.lang.Override public boolean hasAccountResource() { return accountResource_ != null; } /** * .protocol.Account.AccountResource account_resource = 26; * @return The accountResource. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.AccountResource getAccountResource() { return accountResource_ == null ? org.vision.visionjsdk.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder() { return getAccountResource(); } public static final int CODEHASH_FIELD_NUMBER = 30; private com.google.protobuf.ByteString codeHash_; /** * bytes codeHash = 30; * @return The codeHash. */ @java.lang.Override public com.google.protobuf.ByteString getCodeHash() { return codeHash_; } public static final int OWNER_PERMISSION_FIELD_NUMBER = 31; private org.vision.visionjsdk.proto.Common.Permission ownerPermission_; /** * .protocol.Permission owner_permission = 31; * @return Whether the ownerPermission field is set. */ @java.lang.Override public boolean hasOwnerPermission() { return ownerPermission_ != null; } /** * .protocol.Permission owner_permission = 31; * @return The ownerPermission. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getOwnerPermission() { return ownerPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder() { return getOwnerPermission(); } public static final int WITNESS_PERMISSION_FIELD_NUMBER = 32; private org.vision.visionjsdk.proto.Common.Permission witnessPermission_; /** * .protocol.Permission witness_permission = 32; * @return Whether the witnessPermission field is set. */ @java.lang.Override public boolean hasWitnessPermission() { return witnessPermission_ != null; } /** * .protocol.Permission witness_permission = 32; * @return The witnessPermission. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getWitnessPermission() { return witnessPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder() { return getWitnessPermission(); } public static final int ACTIVE_PERMISSION_FIELD_NUMBER = 33; private java.util.List activePermission_; @java.lang.Override public java.util.List getActivePermissionList() { return activePermission_; } @java.lang.Override public java.util.List getActivePermissionOrBuilderList() { return activePermission_; } @java.lang.Override public int getActivePermissionCount() { return activePermission_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getActivePermission(int index) { return activePermission_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index) { return activePermission_.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 (!accountName_.isEmpty()) { output.writeBytes(1, accountName_); } if (type_ != org.vision.visionjsdk.proto.Common.AccountType.Normal.getNumber()) { output.writeEnum(2, type_); } if (!address_.isEmpty()) { output.writeBytes(3, address_); } if (balance_ != 0L) { output.writeInt64(4, balance_); } for (int i = 0; i < votes_.size(); i++) { output.writeMessage(5, votes_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAsset(), AssetDefaultEntryHolder.defaultEntry, 6); for (int i = 0; i < frozen_.size(); i++) { output.writeMessage(7, frozen_.get(i)); } if (netUsage_ != 0L) { output.writeInt64(8, netUsage_); } if (createTime_ != 0L) { output.writeInt64(9, createTime_); } if (latestOprationTime_ != 0L) { output.writeInt64(10, latestOprationTime_); } if (allowance_ != 0L) { output.writeInt64(11, allowance_); } if (latestWithdrawTime_ != 0L) { output.writeInt64(12, latestWithdrawTime_); } if (!code_.isEmpty()) { output.writeBytes(13, code_); } if (isWitness_ != false) { output.writeBool(14, isWitness_); } if (isCommittee_ != false) { output.writeBool(15, isCommittee_); } for (int i = 0; i < frozenSupply_.size(); i++) { output.writeMessage(16, frozenSupply_.get(i)); } if (!assetIssuedName_.isEmpty()) { output.writeBytes(17, assetIssuedName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLatestAssetOperationTime(), LatestAssetOperationTimeDefaultEntryHolder.defaultEntry, 18); if (freeNetUsage_ != 0L) { output.writeInt64(19, freeNetUsage_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFreeAssetNetUsage(), FreeAssetNetUsageDefaultEntryHolder.defaultEntry, 20); if (latestConsumeTime_ != 0L) { output.writeInt64(21, latestConsumeTime_); } if (latestConsumeFreeTime_ != 0L) { output.writeInt64(22, latestConsumeFreeTime_); } if (!accountId_.isEmpty()) { output.writeBytes(23, accountId_); } if (accountResource_ != null) { output.writeMessage(26, getAccountResource()); } if (!codeHash_.isEmpty()) { output.writeBytes(30, codeHash_); } if (ownerPermission_ != null) { output.writeMessage(31, getOwnerPermission()); } if (witnessPermission_ != null) { output.writeMessage(32, getWitnessPermission()); } for (int i = 0; i < activePermission_.size(); i++) { output.writeMessage(33, activePermission_.get(i)); } if (acquiredDelegatedFrozenBalanceForPhoton_ != 0L) { output.writeInt64(41, acquiredDelegatedFrozenBalanceForPhoton_); } if (delegatedFrozenBalanceForPhoton_ != 0L) { output.writeInt64(42, delegatedFrozenBalanceForPhoton_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAssetV2(), AssetV2DefaultEntryHolder.defaultEntry, 56); if (!assetIssuedID_.isEmpty()) { output.writeBytes(57, assetIssuedID_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLatestAssetOperationTimeV2(), LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry, 58); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFreeAssetNetUsageV2(), FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry, 59); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!accountName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, accountName_); } if (type_ != org.vision.visionjsdk.proto.Common.AccountType.Normal.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, address_); } if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, balance_); } for (int i = 0; i < votes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, votes_.get(i)); } for (java.util.Map.Entry entry : internalGetAsset().getMap().entrySet()) { com.google.protobuf.MapEntry asset__ = AssetDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, asset__); } for (int i = 0; i < frozen_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, frozen_.get(i)); } if (netUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, netUsage_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, createTime_); } if (latestOprationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, latestOprationTime_); } if (allowance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, allowance_); } if (latestWithdrawTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, latestWithdrawTime_); } if (!code_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, code_); } if (isWitness_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, isWitness_); } if (isCommittee_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, isCommittee_); } for (int i = 0; i < frozenSupply_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, frozenSupply_.get(i)); } if (!assetIssuedName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(17, assetIssuedName_); } for (java.util.Map.Entry entry : internalGetLatestAssetOperationTime().getMap().entrySet()) { com.google.protobuf.MapEntry latestAssetOperationTime__ = LatestAssetOperationTimeDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, latestAssetOperationTime__); } if (freeNetUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, freeNetUsage_); } for (java.util.Map.Entry entry : internalGetFreeAssetNetUsage().getMap().entrySet()) { com.google.protobuf.MapEntry freeAssetNetUsage__ = FreeAssetNetUsageDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, freeAssetNetUsage__); } if (latestConsumeTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, latestConsumeTime_); } if (latestConsumeFreeTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, latestConsumeFreeTime_); } if (!accountId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(23, accountId_); } if (accountResource_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, getAccountResource()); } if (!codeHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(30, codeHash_); } if (ownerPermission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getOwnerPermission()); } if (witnessPermission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getWitnessPermission()); } for (int i = 0; i < activePermission_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, activePermission_.get(i)); } if (acquiredDelegatedFrozenBalanceForPhoton_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(41, acquiredDelegatedFrozenBalanceForPhoton_); } if (delegatedFrozenBalanceForPhoton_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(42, delegatedFrozenBalanceForPhoton_); } for (java.util.Map.Entry entry : internalGetAssetV2().getMap().entrySet()) { com.google.protobuf.MapEntry assetV2__ = AssetV2DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(56, assetV2__); } if (!assetIssuedID_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(57, assetIssuedID_); } for (java.util.Map.Entry entry : internalGetLatestAssetOperationTimeV2().getMap().entrySet()) { com.google.protobuf.MapEntry latestAssetOperationTimeV2__ = LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(58, latestAssetOperationTimeV2__); } for (java.util.Map.Entry entry : internalGetFreeAssetNetUsageV2().getMap().entrySet()) { com.google.protobuf.MapEntry freeAssetNetUsageV2__ = FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(59, freeAssetNetUsageV2__); } 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.vision.visionjsdk.proto.Response.Account)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Account other = (org.vision.visionjsdk.proto.Response.Account) obj; if (!getAccountName() .equals(other.getAccountName())) return false; if (type_ != other.type_) return false; if (!getAddress() .equals(other.getAddress())) return false; if (getBalance() != other.getBalance()) return false; if (!getVotesList() .equals(other.getVotesList())) return false; if (!internalGetAsset().equals( other.internalGetAsset())) return false; if (!internalGetAssetV2().equals( other.internalGetAssetV2())) return false; if (!getFrozenList() .equals(other.getFrozenList())) return false; if (getNetUsage() != other.getNetUsage()) return false; if (getAcquiredDelegatedFrozenBalanceForPhoton() != other.getAcquiredDelegatedFrozenBalanceForPhoton()) return false; if (getDelegatedFrozenBalanceForPhoton() != other.getDelegatedFrozenBalanceForPhoton()) return false; if (getCreateTime() != other.getCreateTime()) return false; if (getLatestOprationTime() != other.getLatestOprationTime()) return false; if (getAllowance() != other.getAllowance()) return false; if (getLatestWithdrawTime() != other.getLatestWithdrawTime()) return false; if (!getCode() .equals(other.getCode())) return false; if (getIsWitness() != other.getIsWitness()) return false; if (getIsCommittee() != other.getIsCommittee()) return false; if (!getFrozenSupplyList() .equals(other.getFrozenSupplyList())) return false; if (!getAssetIssuedName() .equals(other.getAssetIssuedName())) return false; if (!getAssetIssuedID() .equals(other.getAssetIssuedID())) return false; if (!internalGetLatestAssetOperationTime().equals( other.internalGetLatestAssetOperationTime())) return false; if (!internalGetLatestAssetOperationTimeV2().equals( other.internalGetLatestAssetOperationTimeV2())) return false; if (getFreeNetUsage() != other.getFreeNetUsage()) return false; if (!internalGetFreeAssetNetUsage().equals( other.internalGetFreeAssetNetUsage())) return false; if (!internalGetFreeAssetNetUsageV2().equals( other.internalGetFreeAssetNetUsageV2())) return false; if (getLatestConsumeTime() != other.getLatestConsumeTime()) return false; if (getLatestConsumeFreeTime() != other.getLatestConsumeFreeTime()) return false; if (!getAccountId() .equals(other.getAccountId())) return false; if (hasAccountResource() != other.hasAccountResource()) return false; if (hasAccountResource()) { if (!getAccountResource() .equals(other.getAccountResource())) return false; } if (!getCodeHash() .equals(other.getCodeHash())) return false; if (hasOwnerPermission() != other.hasOwnerPermission()) return false; if (hasOwnerPermission()) { if (!getOwnerPermission() .equals(other.getOwnerPermission())) return false; } if (hasWitnessPermission() != other.hasWitnessPermission()) return false; if (hasWitnessPermission()) { if (!getWitnessPermission() .equals(other.getWitnessPermission())) return false; } if (!getActivePermissionList() .equals(other.getActivePermissionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getAccountName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; 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()); if (getVotesCount() > 0) { hash = (37 * hash) + VOTES_FIELD_NUMBER; hash = (53 * hash) + getVotesList().hashCode(); } if (!internalGetAsset().getMap().isEmpty()) { hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + internalGetAsset().hashCode(); } if (!internalGetAssetV2().getMap().isEmpty()) { hash = (37 * hash) + ASSETV2_FIELD_NUMBER; hash = (53 * hash) + internalGetAssetV2().hashCode(); } if (getFrozenCount() > 0) { hash = (37 * hash) + FROZEN_FIELD_NUMBER; hash = (53 * hash) + getFrozenList().hashCode(); } hash = (37 * hash) + NET_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetUsage()); hash = (37 * hash) + ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenBalanceForPhoton()); hash = (37 * hash) + DELEGATED_FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenBalanceForPhoton()); hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); hash = (37 * hash) + LATEST_OPRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestOprationTime()); hash = (37 * hash) + ALLOWANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllowance()); hash = (37 * hash) + LATEST_WITHDRAW_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestWithdrawTime()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (37 * hash) + IS_WITNESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsWitness()); hash = (37 * hash) + IS_COMMITTEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsCommittee()); if (getFrozenSupplyCount() > 0) { hash = (37 * hash) + FROZEN_SUPPLY_FIELD_NUMBER; hash = (53 * hash) + getFrozenSupplyList().hashCode(); } hash = (37 * hash) + ASSET_ISSUED_NAME_FIELD_NUMBER; hash = (53 * hash) + getAssetIssuedName().hashCode(); hash = (37 * hash) + ASSET_ISSUED_ID_FIELD_NUMBER; hash = (53 * hash) + getAssetIssuedID().hashCode(); if (!internalGetLatestAssetOperationTime().getMap().isEmpty()) { hash = (37 * hash) + LATEST_ASSET_OPERATION_TIME_FIELD_NUMBER; hash = (53 * hash) + internalGetLatestAssetOperationTime().hashCode(); } if (!internalGetLatestAssetOperationTimeV2().getMap().isEmpty()) { hash = (37 * hash) + LATEST_ASSET_OPERATION_TIMEV2_FIELD_NUMBER; hash = (53 * hash) + internalGetLatestAssetOperationTimeV2().hashCode(); } hash = (37 * hash) + FREE_NET_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeNetUsage()); if (!internalGetFreeAssetNetUsage().getMap().isEmpty()) { hash = (37 * hash) + FREE_ASSET_NET_USAGE_FIELD_NUMBER; hash = (53 * hash) + internalGetFreeAssetNetUsage().hashCode(); } if (!internalGetFreeAssetNetUsageV2().getMap().isEmpty()) { hash = (37 * hash) + FREE_ASSET_NET_USAGEV2_FIELD_NUMBER; hash = (53 * hash) + internalGetFreeAssetNetUsageV2().hashCode(); } hash = (37 * hash) + LATEST_CONSUME_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestConsumeTime()); hash = (37 * hash) + LATEST_CONSUME_FREE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestConsumeFreeTime()); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); if (hasAccountResource()) { hash = (37 * hash) + ACCOUNT_RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getAccountResource().hashCode(); } hash = (37 * hash) + CODEHASH_FIELD_NUMBER; hash = (53 * hash) + getCodeHash().hashCode(); if (hasOwnerPermission()) { hash = (37 * hash) + OWNER_PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getOwnerPermission().hashCode(); } if (hasWitnessPermission()) { hash = (37 * hash) + WITNESS_PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getWitnessPermission().hashCode(); } if (getActivePermissionCount() > 0) { hash = (37 * hash) + ACTIVE_PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getActivePermissionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Account parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.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.vision.visionjsdk.proto.Response.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Account parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Account parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.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.vision.visionjsdk.proto.Response.Account parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.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.vision.visionjsdk.proto.Response.Account parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.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.vision.visionjsdk.proto.Response.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; } /** *
     * Account
     * 
* * Protobuf type {@code protocol.Account} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Account) org.vision.visionjsdk.proto.Response.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAsset(); case 56: return internalGetAssetV2(); case 18: return internalGetLatestAssetOperationTime(); case 58: return internalGetLatestAssetOperationTimeV2(); case 20: return internalGetFreeAssetNetUsage(); case 59: return internalGetFreeAssetNetUsageV2(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableAsset(); case 56: return internalGetMutableAssetV2(); case 18: return internalGetMutableLatestAssetOperationTime(); case 58: return internalGetMutableLatestAssetOperationTimeV2(); case 20: return internalGetMutableFreeAssetNetUsage(); case 59: return internalGetMutableFreeAssetNetUsageV2(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Account.class, org.vision.visionjsdk.proto.Response.Account.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.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) { getVotesFieldBuilder(); getFrozenFieldBuilder(); getFrozenSupplyFieldBuilder(); getActivePermissionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); accountName_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; balance_ = 0L; if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { votesBuilder_.clear(); } internalGetMutableAsset().clear(); internalGetMutableAssetV2().clear(); if (frozenBuilder_ == null) { frozen_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { frozenBuilder_.clear(); } netUsage_ = 0L; acquiredDelegatedFrozenBalanceForPhoton_ = 0L; delegatedFrozenBalanceForPhoton_ = 0L; createTime_ = 0L; latestOprationTime_ = 0L; allowance_ = 0L; latestWithdrawTime_ = 0L; code_ = com.google.protobuf.ByteString.EMPTY; isWitness_ = false; isCommittee_ = false; if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { frozenSupplyBuilder_.clear(); } assetIssuedName_ = com.google.protobuf.ByteString.EMPTY; assetIssuedID_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableLatestAssetOperationTime().clear(); internalGetMutableLatestAssetOperationTimeV2().clear(); freeNetUsage_ = 0L; internalGetMutableFreeAssetNetUsage().clear(); internalGetMutableFreeAssetNetUsageV2().clear(); latestConsumeTime_ = 0L; latestConsumeFreeTime_ = 0L; accountId_ = com.google.protobuf.ByteString.EMPTY; if (accountResourceBuilder_ == null) { accountResource_ = null; } else { accountResource_ = null; accountResourceBuilder_ = null; } codeHash_ = com.google.protobuf.ByteString.EMPTY; if (ownerPermissionBuilder_ == null) { ownerPermission_ = null; } else { ownerPermission_ = null; ownerPermissionBuilder_ = null; } if (witnessPermissionBuilder_ == null) { witnessPermission_ = null; } else { witnessPermission_ = null; witnessPermissionBuilder_ = null; } if (activePermissionBuilder_ == null) { activePermission_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { activePermissionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Account_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Account.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account build() { org.vision.visionjsdk.proto.Response.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Account buildPartial() { org.vision.visionjsdk.proto.Response.Account result = new org.vision.visionjsdk.proto.Response.Account(this); int from_bitField0_ = bitField0_; result.accountName_ = accountName_; result.type_ = type_; result.address_ = address_; result.balance_ = balance_; if (votesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); bitField0_ = (bitField0_ & ~0x00000001); } result.votes_ = votes_; } else { result.votes_ = votesBuilder_.build(); } result.asset_ = internalGetAsset(); result.asset_.makeImmutable(); result.assetV2_ = internalGetAssetV2(); result.assetV2_.makeImmutable(); if (frozenBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { frozen_ = java.util.Collections.unmodifiableList(frozen_); bitField0_ = (bitField0_ & ~0x00000008); } result.frozen_ = frozen_; } else { result.frozen_ = frozenBuilder_.build(); } result.netUsage_ = netUsage_; result.acquiredDelegatedFrozenBalanceForPhoton_ = acquiredDelegatedFrozenBalanceForPhoton_; result.delegatedFrozenBalanceForPhoton_ = delegatedFrozenBalanceForPhoton_; result.createTime_ = createTime_; result.latestOprationTime_ = latestOprationTime_; result.allowance_ = allowance_; result.latestWithdrawTime_ = latestWithdrawTime_; result.code_ = code_; result.isWitness_ = isWitness_; result.isCommittee_ = isCommittee_; if (frozenSupplyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); bitField0_ = (bitField0_ & ~0x00000010); } result.frozenSupply_ = frozenSupply_; } else { result.frozenSupply_ = frozenSupplyBuilder_.build(); } result.assetIssuedName_ = assetIssuedName_; result.assetIssuedID_ = assetIssuedID_; result.latestAssetOperationTime_ = internalGetLatestAssetOperationTime(); result.latestAssetOperationTime_.makeImmutable(); result.latestAssetOperationTimeV2_ = internalGetLatestAssetOperationTimeV2(); result.latestAssetOperationTimeV2_.makeImmutable(); result.freeNetUsage_ = freeNetUsage_; result.freeAssetNetUsage_ = internalGetFreeAssetNetUsage(); result.freeAssetNetUsage_.makeImmutable(); result.freeAssetNetUsageV2_ = internalGetFreeAssetNetUsageV2(); result.freeAssetNetUsageV2_.makeImmutable(); result.latestConsumeTime_ = latestConsumeTime_; result.latestConsumeFreeTime_ = latestConsumeFreeTime_; result.accountId_ = accountId_; if (accountResourceBuilder_ == null) { result.accountResource_ = accountResource_; } else { result.accountResource_ = accountResourceBuilder_.build(); } result.codeHash_ = codeHash_; if (ownerPermissionBuilder_ == null) { result.ownerPermission_ = ownerPermission_; } else { result.ownerPermission_ = ownerPermissionBuilder_.build(); } if (witnessPermissionBuilder_ == null) { result.witnessPermission_ = witnessPermission_; } else { result.witnessPermission_ = witnessPermissionBuilder_.build(); } if (activePermissionBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { activePermission_ = java.util.Collections.unmodifiableList(activePermission_); bitField0_ = (bitField0_ & ~0x00000200); } result.activePermission_ = activePermission_; } else { result.activePermission_ = activePermissionBuilder_.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.vision.visionjsdk.proto.Response.Account) { return mergeFrom((org.vision.visionjsdk.proto.Response.Account)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Account other) { if (other == org.vision.visionjsdk.proto.Response.Account.getDefaultInstance()) return this; if (other.getAccountName() != com.google.protobuf.ByteString.EMPTY) { setAccountName(other.getAccountName()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (other.getBalance() != 0L) { setBalance(other.getBalance()); } if (votesBuilder_ == null) { if (!other.votes_.isEmpty()) { if (votes_.isEmpty()) { votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVotesIsMutable(); votes_.addAll(other.votes_); } onChanged(); } } else { if (!other.votes_.isEmpty()) { if (votesBuilder_.isEmpty()) { votesBuilder_.dispose(); votesBuilder_ = null; votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000001); votesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotesFieldBuilder() : null; } else { votesBuilder_.addAllMessages(other.votes_); } } } internalGetMutableAsset().mergeFrom( other.internalGetAsset()); internalGetMutableAssetV2().mergeFrom( other.internalGetAssetV2()); if (frozenBuilder_ == null) { if (!other.frozen_.isEmpty()) { if (frozen_.isEmpty()) { frozen_ = other.frozen_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFrozenIsMutable(); frozen_.addAll(other.frozen_); } onChanged(); } } else { if (!other.frozen_.isEmpty()) { if (frozenBuilder_.isEmpty()) { frozenBuilder_.dispose(); frozenBuilder_ = null; frozen_ = other.frozen_; bitField0_ = (bitField0_ & ~0x00000008); frozenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenFieldBuilder() : null; } else { frozenBuilder_.addAllMessages(other.frozen_); } } } if (other.getNetUsage() != 0L) { setNetUsage(other.getNetUsage()); } if (other.getAcquiredDelegatedFrozenBalanceForPhoton() != 0L) { setAcquiredDelegatedFrozenBalanceForPhoton(other.getAcquiredDelegatedFrozenBalanceForPhoton()); } if (other.getDelegatedFrozenBalanceForPhoton() != 0L) { setDelegatedFrozenBalanceForPhoton(other.getDelegatedFrozenBalanceForPhoton()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (other.getLatestOprationTime() != 0L) { setLatestOprationTime(other.getLatestOprationTime()); } if (other.getAllowance() != 0L) { setAllowance(other.getAllowance()); } if (other.getLatestWithdrawTime() != 0L) { setLatestWithdrawTime(other.getLatestWithdrawTime()); } if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { setCode(other.getCode()); } if (other.getIsWitness() != false) { setIsWitness(other.getIsWitness()); } if (other.getIsCommittee() != false) { setIsCommittee(other.getIsCommittee()); } if (frozenSupplyBuilder_ == null) { if (!other.frozenSupply_.isEmpty()) { if (frozenSupply_.isEmpty()) { frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFrozenSupplyIsMutable(); frozenSupply_.addAll(other.frozenSupply_); } onChanged(); } } else { if (!other.frozenSupply_.isEmpty()) { if (frozenSupplyBuilder_.isEmpty()) { frozenSupplyBuilder_.dispose(); frozenSupplyBuilder_ = null; frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00000010); frozenSupplyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenSupplyFieldBuilder() : null; } else { frozenSupplyBuilder_.addAllMessages(other.frozenSupply_); } } } if (other.getAssetIssuedName() != com.google.protobuf.ByteString.EMPTY) { setAssetIssuedName(other.getAssetIssuedName()); } if (other.getAssetIssuedID() != com.google.protobuf.ByteString.EMPTY) { setAssetIssuedID(other.getAssetIssuedID()); } internalGetMutableLatestAssetOperationTime().mergeFrom( other.internalGetLatestAssetOperationTime()); internalGetMutableLatestAssetOperationTimeV2().mergeFrom( other.internalGetLatestAssetOperationTimeV2()); if (other.getFreeNetUsage() != 0L) { setFreeNetUsage(other.getFreeNetUsage()); } internalGetMutableFreeAssetNetUsage().mergeFrom( other.internalGetFreeAssetNetUsage()); internalGetMutableFreeAssetNetUsageV2().mergeFrom( other.internalGetFreeAssetNetUsageV2()); if (other.getLatestConsumeTime() != 0L) { setLatestConsumeTime(other.getLatestConsumeTime()); } if (other.getLatestConsumeFreeTime() != 0L) { setLatestConsumeFreeTime(other.getLatestConsumeFreeTime()); } if (other.getAccountId() != com.google.protobuf.ByteString.EMPTY) { setAccountId(other.getAccountId()); } if (other.hasAccountResource()) { mergeAccountResource(other.getAccountResource()); } if (other.getCodeHash() != com.google.protobuf.ByteString.EMPTY) { setCodeHash(other.getCodeHash()); } if (other.hasOwnerPermission()) { mergeOwnerPermission(other.getOwnerPermission()); } if (other.hasWitnessPermission()) { mergeWitnessPermission(other.getWitnessPermission()); } if (activePermissionBuilder_ == null) { if (!other.activePermission_.isEmpty()) { if (activePermission_.isEmpty()) { activePermission_ = other.activePermission_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureActivePermissionIsMutable(); activePermission_.addAll(other.activePermission_); } onChanged(); } } else { if (!other.activePermission_.isEmpty()) { if (activePermissionBuilder_.isEmpty()) { activePermissionBuilder_.dispose(); activePermissionBuilder_ = null; activePermission_ = other.activePermission_; bitField0_ = (bitField0_ & ~0x00000200); activePermissionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActivePermissionFieldBuilder() : null; } else { activePermissionBuilder_.addAllMessages(other.activePermission_); } } } 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.vision.visionjsdk.proto.Response.Account parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Account) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString accountName_ = com.google.protobuf.ByteString.EMPTY; /** *
       * account nick name
       * 
* * bytes account_name = 1; * @return The accountName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountName() { return accountName_; } /** *
       * account nick name
       * 
* * bytes account_name = 1; * @param value The accountName to set. * @return This builder for chaining. */ public Builder setAccountName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } accountName_ = value; onChanged(); return this; } /** *
       * account nick name
       * 
* * bytes account_name = 1; * @return This builder for chaining. */ public Builder clearAccountName() { accountName_ = getDefaultInstance().getAccountName(); onChanged(); return this; } private int type_ = 0; /** * .protocol.AccountType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.AccountType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .protocol.AccountType type = 2; * @return The type. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.AccountType getType() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.AccountType result = org.vision.visionjsdk.proto.Common.AccountType.valueOf(type_); return result == null ? org.vision.visionjsdk.proto.Common.AccountType.UNRECOGNIZED : result; } /** * .protocol.AccountType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.vision.visionjsdk.proto.Common.AccountType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .protocol.AccountType type = 2; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the create address
       * 
* * bytes address = 3; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** *
       * the create address
       * 
* * bytes address = 3; * @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; } /** *
       * the create address
       * 
* * bytes address = 3; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private long balance_ ; /** *
       * the vs balance
       * 
* * int64 balance = 4; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** *
       * the vs balance
       * 
* * int64 balance = 4; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; onChanged(); return this; } /** *
       * the vs balance
       * 
* * int64 balance = 4; * @return This builder for chaining. */ public Builder clearBalance() { balance_ = 0L; onChanged(); return this; } private java.util.List votes_ = java.util.Collections.emptyList(); private void ensureVotesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(votes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Vote, org.vision.visionjsdk.proto.Common.Vote.Builder, org.vision.visionjsdk.proto.Common.VoteOrBuilder> votesBuilder_; /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return list */ public java.util.List getVotesList() { if (votesBuilder_ == null) { return java.util.Collections.unmodifiableList(votes_); } else { return votesBuilder_.getMessageList(); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return int */ public int getVotesCount() { if (votesBuilder_ == null) { return votes_.size(); } else { return votesBuilder_.getCount(); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return Vote */ public org.vision.visionjsdk.proto.Common.Vote getVotes(int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessage(index); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @param value value * @return Builder */ public Builder setVotes( int index, org.vision.visionjsdk.proto.Common.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.set(index, value); onChanged(); } else { votesBuilder_.setMessage(index, value); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setVotes( int index, org.vision.visionjsdk.proto.Common.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.set(index, builderForValue.build()); onChanged(); } else { votesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param value value * @return Builder */ public Builder addVotes(org.vision.visionjsdk.proto.Common.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(value); onChanged(); } else { votesBuilder_.addMessage(value); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @param value value * @return Builder */ public Builder addVotes( int index, org.vision.visionjsdk.proto.Common.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(index, value); onChanged(); } else { votesBuilder_.addMessage(index, value); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param builderForValue builderForValue * @return Builder */ public Builder addVotes( org.vision.visionjsdk.proto.Common.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addVotes( int index, org.vision.visionjsdk.proto.Common.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(index, builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param values values * @return Builder */ public Builder addAllVotes( java.lang.Iterable values) { if (votesBuilder_ == null) { ensureVotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, votes_); onChanged(); } else { votesBuilder_.addAllMessages(values); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return Builder */ public Builder clearVotes() { if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { votesBuilder_.clear(); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return Builder */ public Builder removeVotes(int index) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.remove(index); onChanged(); } else { votesBuilder_.remove(index); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.Vote.Builder getVotesBuilder( int index) { return getVotesFieldBuilder().getBuilder(index); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * * @param index index * @return VoteOrBuilder */ public org.vision.visionjsdk.proto.Common.VoteOrBuilder getVotesOrBuilder( int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessageOrBuilder(index); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return list */ public java.util.List getVotesOrBuilderList() { if (votesBuilder_ != null) { return votesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(votes_); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return Builder */ public org.vision.visionjsdk.proto.Common.Vote.Builder addVotesBuilder() { return getVotesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Common.Vote.getDefaultInstance()); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.Vote.Builder addVotesBuilder( int index) { return getVotesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Common.Vote.getDefaultInstance()); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; * @return list */ public java.util.List getVotesBuilderList() { return getVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Vote, org.vision.visionjsdk.proto.Common.Vote.Builder, org.vision.visionjsdk.proto.Common.VoteOrBuilder> getVotesFieldBuilder() { if (votesBuilder_ == null) { votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Vote, org.vision.visionjsdk.proto.Common.Vote.Builder, org.vision.visionjsdk.proto.Common.VoteOrBuilder>( votes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); votes_ = null; } return votesBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> asset_; private com.google.protobuf.MapField internalGetAsset() { if (asset_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetDefaultEntryHolder.defaultEntry); } return asset_; } private com.google.protobuf.MapField internalGetMutableAsset() { onChanged();; if (asset_ == null) { asset_ = com.google.protobuf.MapField.newMapField( AssetDefaultEntryHolder.defaultEntry); } if (!asset_.isMutable()) { asset_ = asset_.copy(); } return asset_; } public int getAssetCount() { return internalGetAsset().getMap().size(); } @java.lang.Override public boolean containsAsset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAsset().getMap().containsKey(key); } /** * Use {@link #getAssetMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAsset() { return getAssetMap(); } @java.lang.Override public java.util.Map getAssetMap() { return internalGetAsset().getMap(); } @java.lang.Override public long getAssetOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAsset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getAssetOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAsset().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAsset() { internalGetMutableAsset().getMutableMap() .clear(); return this; } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; * @param key key * @return Builder */ public Builder removeAsset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAsset().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. * @return map */ @java.lang.Deprecated public java.util.Map getMutableAsset() { return internalGetMutableAsset().getMutableMap(); } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; * @param key key * @param value value * @return Builder */ public Builder putAsset( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAsset().getMutableMap() .put(key, value); return this; } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; * @param values values * @return Builder */ public Builder putAllAsset( java.util.Map values) { internalGetMutableAsset().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetV2_; private com.google.protobuf.MapField internalGetAssetV2() { if (assetV2_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetV2DefaultEntryHolder.defaultEntry); } return assetV2_; } private com.google.protobuf.MapField internalGetMutableAssetV2() { onChanged();; if (assetV2_ == null) { assetV2_ = com.google.protobuf.MapField.newMapField( AssetV2DefaultEntryHolder.defaultEntry); } if (!assetV2_.isMutable()) { assetV2_ = assetV2_.copy(); } return assetV2_; } public int getAssetV2Count() { return internalGetAssetV2().getMap().size(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param key key * @return boolean */ @java.lang.Override public boolean containsAssetV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetV2().getMap().containsKey(key); } /** * Use {@link #getAssetV2Map()} instead. * @return map */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetV2() { return getAssetV2Map(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @return map */ @java.lang.Override public java.util.Map getAssetV2Map() { return internalGetAssetV2().getMap(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param key key * @param defaultValue defaultValue * @return long */ @java.lang.Override public long getAssetV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param key key * @return long */ @java.lang.Override public long getAssetV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetV2() { internalGetMutableAssetV2().getMutableMap() .clear(); return this; } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param key key * @return Builder */ public Builder removeAssetV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetV2().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. * @return map */ @java.lang.Deprecated public java.util.Map getMutableAssetV2() { return internalGetMutableAssetV2().getMutableMap(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param key key * @param value value * @return Builder */ public Builder putAssetV2( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetV2().getMutableMap() .put(key, value); return this; } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; * @param values values * @return Builder */ public Builder putAllAssetV2( java.util.Map values) { internalGetMutableAssetV2().getMutableMap() .putAll(values); return this; } private java.util.List frozen_ = java.util.Collections.emptyList(); private void ensureFrozenIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { frozen_ = new java.util.ArrayList(frozen_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> frozenBuilder_; /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return list */ public java.util.List getFrozenList() { if (frozenBuilder_ == null) { return java.util.Collections.unmodifiableList(frozen_); } else { return frozenBuilder_.getMessageList(); } } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return int */ public int getFrozenCount() { if (frozenBuilder_ == null) { return frozen_.size(); } else { return frozenBuilder_.getCount(); } } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return Frozen */ public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozen(int index) { if (frozenBuilder_ == null) { return frozen_.get(index); } else { return frozenBuilder_.getMessage(index); } } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @param value value * @return Builder */ public Builder setFrozen( int index, org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenIsMutable(); frozen_.set(index, value); onChanged(); } else { frozenBuilder_.setMessage(index, value); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setFrozen( int index, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.set(index, builderForValue.build()); onChanged(); } else { frozenBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param value value * @return Builder */ public Builder addFrozen(org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenIsMutable(); frozen_.add(value); onChanged(); } else { frozenBuilder_.addMessage(value); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @param value value * @return Builder */ public Builder addFrozen( int index, org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenIsMutable(); frozen_.add(index, value); onChanged(); } else { frozenBuilder_.addMessage(index, value); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param builderForValue builderForValue * @return Builder */ public Builder addFrozen( org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.add(builderForValue.build()); onChanged(); } else { frozenBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addFrozen( int index, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.add(index, builderForValue.build()); onChanged(); } else { frozenBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param values values * @return Builder */ public Builder addAllFrozen( java.lang.Iterable values) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frozen_); onChanged(); } else { frozenBuilder_.addAllMessages(values); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return Builder */ public Builder clearFrozen() { if (frozenBuilder_ == null) { frozen_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { frozenBuilder_.clear(); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return Builder */ public Builder removeFrozen(int index) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.remove(index); onChanged(); } else { frozenBuilder_.remove(index); } return this; } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder getFrozenBuilder( int index) { return getFrozenFieldBuilder().getBuilder(index); } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return FrozenOrBuilder */ public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index) { if (frozenBuilder_ == null) { return frozen_.get(index); } else { return frozenBuilder_.getMessageOrBuilder(index); } } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return list */ public java.util.List getFrozenOrBuilderList() { if (frozenBuilder_ != null) { return frozenBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frozen_); } } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder addFrozenBuilder() { return getFrozenFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder addFrozenBuilder( int index) { return getFrozenFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * the frozen balance for photon
       * 
* * repeated .protocol.Account.Frozen frozen = 7; * @return list */ public java.util.List getFrozenBuilderList() { return getFrozenFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> getFrozenFieldBuilder() { if (frozenBuilder_ == null) { frozenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder>( frozen_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); frozen_ = null; } return frozenBuilder_; } private long netUsage_ ; /** *
       * photon, get from frozen
       * 
* * int64 net_usage = 8; * @return The netUsage. */ @java.lang.Override public long getNetUsage() { return netUsage_; } /** *
       * photon, get from frozen
       * 
* * int64 net_usage = 8; * @param value The netUsage to set. * @return This builder for chaining. */ public Builder setNetUsage(long value) { netUsage_ = value; onChanged(); return this; } /** *
       * photon, get from frozen
       * 
* * int64 net_usage = 8; * @return This builder for chaining. */ public Builder clearNetUsage() { netUsage_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenBalanceForPhoton_ ; /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_photon = 41; * @return The acquiredDelegatedFrozenBalanceForPhoton. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForPhoton() { return acquiredDelegatedFrozenBalanceForPhoton_; } /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_photon = 41; * @param value The acquiredDelegatedFrozenBalanceForPhoton to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenBalanceForPhoton(long value) { acquiredDelegatedFrozenBalanceForPhoton_ = value; onChanged(); return this; } /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_photon = 41; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenBalanceForPhoton() { acquiredDelegatedFrozenBalanceForPhoton_ = 0L; onChanged(); return this; } private long delegatedFrozenBalanceForPhoton_ ; /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_photon = 42; * @return The delegatedFrozenBalanceForPhoton. */ @java.lang.Override public long getDelegatedFrozenBalanceForPhoton() { return delegatedFrozenBalanceForPhoton_; } /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_photon = 42; * @param value The delegatedFrozenBalanceForPhoton to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenBalanceForPhoton(long value) { delegatedFrozenBalanceForPhoton_ = value; onChanged(); return this; } /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_photon = 42; * @return This builder for chaining. */ public Builder clearDelegatedFrozenBalanceForPhoton() { delegatedFrozenBalanceForPhoton_ = 0L; onChanged(); return this; } private long createTime_ ; /** *
       * this account create time
       * 
* * int64 create_time = 9; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } /** *
       * this account create time
       * 
* * int64 create_time = 9; * @param value The createTime to set. * @return This builder for chaining. */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** *
       * this account create time
       * 
* * int64 create_time = 9; * @return This builder for chaining. */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private long latestOprationTime_ ; /** *
       * this last operation time, including transfer, voting and so on. //FIXME fix
       * grammar
       * 
* * int64 latest_opration_time = 10; * @return The latestOprationTime. */ @java.lang.Override public long getLatestOprationTime() { return latestOprationTime_; } /** *
       * this last operation time, including transfer, voting and so on. //FIXME fix
       * grammar
       * 
* * int64 latest_opration_time = 10; * @param value The latestOprationTime to set. * @return This builder for chaining. */ public Builder setLatestOprationTime(long value) { latestOprationTime_ = value; onChanged(); return this; } /** *
       * this last operation time, including transfer, voting and so on. //FIXME fix
       * grammar
       * 
* * int64 latest_opration_time = 10; * @return This builder for chaining. */ public Builder clearLatestOprationTime() { latestOprationTime_ = 0L; onChanged(); return this; } private long allowance_ ; /** *
       * witness block producing allowance
       * 
* * int64 allowance = 11; * @return The allowance. */ @java.lang.Override public long getAllowance() { return allowance_; } /** *
       * witness block producing allowance
       * 
* * int64 allowance = 11; * @param value The allowance to set. * @return This builder for chaining. */ public Builder setAllowance(long value) { allowance_ = value; onChanged(); return this; } /** *
       * witness block producing allowance
       * 
* * int64 allowance = 11; * @return This builder for chaining. */ public Builder clearAllowance() { allowance_ = 0L; onChanged(); return this; } private long latestWithdrawTime_ ; /** *
       * last withdraw time
       * 
* * int64 latest_withdraw_time = 12; * @return The latestWithdrawTime. */ @java.lang.Override public long getLatestWithdrawTime() { return latestWithdrawTime_; } /** *
       * last withdraw time
       * 
* * int64 latest_withdraw_time = 12; * @param value The latestWithdrawTime to set. * @return This builder for chaining. */ public Builder setLatestWithdrawTime(long value) { latestWithdrawTime_ = value; onChanged(); return this; } /** *
       * last withdraw time
       * 
* * int64 latest_withdraw_time = 12; * @return This builder for chaining. */ public Builder clearLatestWithdrawTime() { latestWithdrawTime_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; /** *
       * not used so far
       * 
* * bytes code = 13; * @return The code. */ @java.lang.Override public com.google.protobuf.ByteString getCode() { return code_; } /** *
       * not used so far
       * 
* * bytes code = 13; * @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; } /** *
       * not used so far
       * 
* * bytes code = 13; * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); onChanged(); return this; } private boolean isWitness_ ; /** * bool is_witness = 14; * @return The isWitness. */ @java.lang.Override public boolean getIsWitness() { return isWitness_; } /** * bool is_witness = 14; * @param value The isWitness to set. * @return This builder for chaining. */ public Builder setIsWitness(boolean value) { isWitness_ = value; onChanged(); return this; } /** * bool is_witness = 14; * @return This builder for chaining. */ public Builder clearIsWitness() { isWitness_ = false; onChanged(); return this; } private boolean isCommittee_ ; /** * bool is_committee = 15; * @return The isCommittee. */ @java.lang.Override public boolean getIsCommittee() { return isCommittee_; } /** * bool is_committee = 15; * @param value The isCommittee to set. * @return This builder for chaining. */ public Builder setIsCommittee(boolean value) { isCommittee_ = value; onChanged(); return this; } /** * bool is_committee = 15; * @return This builder for chaining. */ public Builder clearIsCommittee() { isCommittee_ = false; onChanged(); return this; } private java.util.List frozenSupply_ = java.util.Collections.emptyList(); private void ensureFrozenSupplyIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { frozenSupply_ = new java.util.ArrayList(frozenSupply_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> frozenSupplyBuilder_; /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return list */ public java.util.List getFrozenSupplyList() { if (frozenSupplyBuilder_ == null) { return java.util.Collections.unmodifiableList(frozenSupply_); } else { return frozenSupplyBuilder_.getMessageList(); } } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return int */ public int getFrozenSupplyCount() { if (frozenSupplyBuilder_ == null) { return frozenSupply_.size(); } else { return frozenSupplyBuilder_.getCount(); } } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return Frozen */ public org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenSupply(int index) { if (frozenSupplyBuilder_ == null) { return frozenSupply_.get(index); } else { return frozenSupplyBuilder_.getMessage(index); } } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @param value value * @return Builder */ public Builder setFrozenSupply( int index, org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.set(index, value); onChanged(); } else { frozenSupplyBuilder_.setMessage(index, value); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setFrozenSupply( int index, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.set(index, builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param value value * @return Builder */ public Builder addFrozenSupply(org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.add(value); onChanged(); } else { frozenSupplyBuilder_.addMessage(value); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @param value value * @return Builder */ public Builder addFrozenSupply( int index, org.vision.visionjsdk.proto.Response.Account.Frozen value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.add(index, value); onChanged(); } else { frozenSupplyBuilder_.addMessage(index, value); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param builderForValue builderForValue * @return Builder */ public Builder addFrozenSupply( org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addFrozenSupply( int index, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(index, builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param values values * @return Builder */ public Builder addAllFrozenSupply( java.lang.Iterable values) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frozenSupply_); onChanged(); } else { frozenSupplyBuilder_.addAllMessages(values); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return Builder */ public Builder clearFrozenSupply() { if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { frozenSupplyBuilder_.clear(); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return Builder */ public Builder removeFrozenSupply(int index) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.remove(index); onChanged(); } else { frozenSupplyBuilder_.remove(index); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder getFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().getBuilder(index); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return FrozenOrBuilder */ public org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenSupplyOrBuilder( int index) { if (frozenSupplyBuilder_ == null) { return frozenSupply_.get(index); } else { return frozenSupplyBuilder_.getMessageOrBuilder(index); } } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return list */ public java.util.List getFrozenSupplyOrBuilderList() { if (frozenSupplyBuilder_ != null) { return frozenSupplyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frozenSupply_); } } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder addFrozenSupplyBuilder() { return getFrozenSupplyFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Response.Account.Frozen.Builder addFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; * @return list */ public java.util.List getFrozenSupplyBuilderList() { return getFrozenSupplyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder> getFrozenSupplyFieldBuilder() { if (frozenSupplyBuilder_ == null) { frozenSupplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.Frozen, org.vision.visionjsdk.proto.Response.Account.Frozen.Builder, org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder>( frozenSupply_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); frozenSupply_ = null; } return frozenSupplyBuilder_; } private com.google.protobuf.ByteString assetIssuedName_ = com.google.protobuf.ByteString.EMPTY; /** *
       * asset_issued_name
       * 
* * bytes asset_issued_name = 17; * @return The assetIssuedName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssuedName() { return assetIssuedName_; } /** *
       * asset_issued_name
       * 
* * bytes asset_issued_name = 17; * @param value The assetIssuedName to set. * @return This builder for chaining. */ public Builder setAssetIssuedName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } assetIssuedName_ = value; onChanged(); return this; } /** *
       * asset_issued_name
       * 
* * bytes asset_issued_name = 17; * @return This builder for chaining. */ public Builder clearAssetIssuedName() { assetIssuedName_ = getDefaultInstance().getAssetIssuedName(); onChanged(); return this; } private com.google.protobuf.ByteString assetIssuedID_ = com.google.protobuf.ByteString.EMPTY; /** * bytes asset_issued_ID = 57; * @return The assetIssuedID. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIssuedID() { return assetIssuedID_; } /** * bytes asset_issued_ID = 57; * @param value The assetIssuedID to set. * @return This builder for chaining. */ public Builder setAssetIssuedID(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } assetIssuedID_ = value; onChanged(); return this; } /** * bytes asset_issued_ID = 57; * @return This builder for chaining. */ public Builder clearAssetIssuedID() { assetIssuedID_ = getDefaultInstance().getAssetIssuedID(); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> latestAssetOperationTime_; private com.google.protobuf.MapField internalGetLatestAssetOperationTime() { if (latestAssetOperationTime_ == null) { return com.google.protobuf.MapField.emptyMapField( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry); } return latestAssetOperationTime_; } private com.google.protobuf.MapField internalGetMutableLatestAssetOperationTime() { onChanged();; if (latestAssetOperationTime_ == null) { latestAssetOperationTime_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry); } if (!latestAssetOperationTime_.isMutable()) { latestAssetOperationTime_ = latestAssetOperationTime_.copy(); } return latestAssetOperationTime_; } public int getLatestAssetOperationTimeCount() { return internalGetLatestAssetOperationTime().getMap().size(); } @java.lang.Override public boolean containsLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLatestAssetOperationTime().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTime() { return getLatestAssetOperationTimeMap(); } @java.lang.Override public java.util.Map getLatestAssetOperationTimeMap() { return internalGetLatestAssetOperationTime().getMap(); } @java.lang.Override public long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getLatestAssetOperationTimeOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLatestAssetOperationTime() { internalGetMutableLatestAssetOperationTime().getMutableMap() .clear(); return this; } /** * map<string, int64> latest_asset_operation_time = 18; * @param key key * @return Builder */ public Builder removeLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLatestAssetOperationTime().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. * @return map */ @java.lang.Deprecated public java.util.Map getMutableLatestAssetOperationTime() { return internalGetMutableLatestAssetOperationTime().getMutableMap(); } /** * map<string, int64> latest_asset_operation_time = 18; * @param key key * @param value value * @return Builder */ public Builder putLatestAssetOperationTime( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLatestAssetOperationTime().getMutableMap() .put(key, value); return this; } /** * map<string, int64> latest_asset_operation_time = 18; * @param values values * @return Builder */ public Builder putAllLatestAssetOperationTime( java.util.Map values) { internalGetMutableLatestAssetOperationTime().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> latestAssetOperationTimeV2_; private com.google.protobuf.MapField internalGetLatestAssetOperationTimeV2() { if (latestAssetOperationTimeV2_ == null) { return com.google.protobuf.MapField.emptyMapField( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry); } return latestAssetOperationTimeV2_; } private com.google.protobuf.MapField internalGetMutableLatestAssetOperationTimeV2() { onChanged();; if (latestAssetOperationTimeV2_ == null) { latestAssetOperationTimeV2_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry); } if (!latestAssetOperationTimeV2_.isMutable()) { latestAssetOperationTimeV2_ = latestAssetOperationTimeV2_.copy(); } return latestAssetOperationTimeV2_; } public int getLatestAssetOperationTimeV2Count() { return internalGetLatestAssetOperationTimeV2().getMap().size(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @return boolean */ @java.lang.Override public boolean containsLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLatestAssetOperationTimeV2().getMap().containsKey(key); } /** * Use {@link #getLatestAssetOperationTimeV2Map()} instead. * @return map */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTimeV2() { return getLatestAssetOperationTimeV2Map(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @return map */ @java.lang.Override public java.util.Map getLatestAssetOperationTimeV2Map() { return internalGetLatestAssetOperationTimeV2().getMap(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @param defaultValue defaultValue * @return long */ @java.lang.Override public long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @return long */ @java.lang.Override public long getLatestAssetOperationTimeV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLatestAssetOperationTimeV2() { internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .clear(); return this; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @return long */ public Builder removeLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. * @return map */ @java.lang.Deprecated public java.util.Map getMutableLatestAssetOperationTimeV2() { return internalGetMutableLatestAssetOperationTimeV2().getMutableMap(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param key key * @param value value * @return Builder */ public Builder putLatestAssetOperationTimeV2( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .put(key, value); return this; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; * @param values values * @return Builder */ public Builder putAllLatestAssetOperationTimeV2( java.util.Map values) { internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .putAll(values); return this; } private long freeNetUsage_ ; /** * int64 free_net_usage = 19; * @return The freeNetUsage. */ @java.lang.Override public long getFreeNetUsage() { return freeNetUsage_; } /** * int64 free_net_usage = 19; * @param value The freeNetUsage to set. * @return This builder for chaining. */ public Builder setFreeNetUsage(long value) { freeNetUsage_ = value; onChanged(); return this; } /** * int64 free_net_usage = 19; * @return This builder for chaining. */ public Builder clearFreeNetUsage() { freeNetUsage_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> freeAssetNetUsage_; private com.google.protobuf.MapField internalGetFreeAssetNetUsage() { if (freeAssetNetUsage_ == null) { return com.google.protobuf.MapField.emptyMapField( FreeAssetNetUsageDefaultEntryHolder.defaultEntry); } return freeAssetNetUsage_; } private com.google.protobuf.MapField internalGetMutableFreeAssetNetUsage() { onChanged();; if (freeAssetNetUsage_ == null) { freeAssetNetUsage_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageDefaultEntryHolder.defaultEntry); } if (!freeAssetNetUsage_.isMutable()) { freeAssetNetUsage_ = freeAssetNetUsage_.copy(); } return freeAssetNetUsage_; } public int getFreeAssetNetUsageCount() { return internalGetFreeAssetNetUsage().getMap().size(); } @java.lang.Override public boolean containsFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFreeAssetNetUsage().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsage() { return getFreeAssetNetUsageMap(); } @java.lang.Override public java.util.Map getFreeAssetNetUsageMap() { return internalGetFreeAssetNetUsage().getMap(); } @java.lang.Override public long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getFreeAssetNetUsageOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFreeAssetNetUsage() { internalGetMutableFreeAssetNetUsage().getMutableMap() .clear(); return this; } public Builder removeFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFreeAssetNetUsage().getMutableMap() .remove(key); return this; } @java.lang.Deprecated public java.util.Map getMutableFreeAssetNetUsage() { return internalGetMutableFreeAssetNetUsage().getMutableMap(); } public Builder putFreeAssetNetUsage( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFreeAssetNetUsage().getMutableMap() .put(key, value); return this; } public Builder putAllFreeAssetNetUsage( java.util.Map values) { internalGetMutableFreeAssetNetUsage().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> freeAssetNetUsageV2_; private com.google.protobuf.MapField internalGetFreeAssetNetUsageV2() { if (freeAssetNetUsageV2_ == null) { return com.google.protobuf.MapField.emptyMapField( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry); } return freeAssetNetUsageV2_; } private com.google.protobuf.MapField internalGetMutableFreeAssetNetUsageV2() { onChanged();; if (freeAssetNetUsageV2_ == null) { freeAssetNetUsageV2_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry); } if (!freeAssetNetUsageV2_.isMutable()) { freeAssetNetUsageV2_ = freeAssetNetUsageV2_.copy(); } return freeAssetNetUsageV2_; } public int getFreeAssetNetUsageV2Count() { return internalGetFreeAssetNetUsageV2().getMap().size(); } @java.lang.Override public boolean containsFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFreeAssetNetUsageV2().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsageV2() { return getFreeAssetNetUsageV2Map(); } @java.lang.Override public java.util.Map getFreeAssetNetUsageV2Map() { return internalGetFreeAssetNetUsageV2().getMap(); } @java.lang.Override public long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getFreeAssetNetUsageV2OrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFreeAssetNetUsageV2() { internalGetMutableFreeAssetNetUsageV2().getMutableMap() .clear(); return this; } public Builder removeFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFreeAssetNetUsageV2().getMutableMap() .remove(key); return this; } @java.lang.Deprecated public java.util.Map getMutableFreeAssetNetUsageV2() { return internalGetMutableFreeAssetNetUsageV2().getMutableMap(); } public Builder putFreeAssetNetUsageV2( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFreeAssetNetUsageV2().getMutableMap() .put(key, value); return this; } public Builder putAllFreeAssetNetUsageV2( java.util.Map values) { internalGetMutableFreeAssetNetUsageV2().getMutableMap() .putAll(values); return this; } private long latestConsumeTime_ ; /** * int64 latest_consume_time = 21; * @return The latestConsumeTime. */ @java.lang.Override public long getLatestConsumeTime() { return latestConsumeTime_; } /** * int64 latest_consume_time = 21; * @param value The latestConsumeTime to set. * @return This builder for chaining. */ public Builder setLatestConsumeTime(long value) { latestConsumeTime_ = value; onChanged(); return this; } /** * int64 latest_consume_time = 21; * @return This builder for chaining. */ public Builder clearLatestConsumeTime() { latestConsumeTime_ = 0L; onChanged(); return this; } private long latestConsumeFreeTime_ ; /** * int64 latest_consume_free_time = 22; * @return The latestConsumeFreeTime. */ @java.lang.Override public long getLatestConsumeFreeTime() { return latestConsumeFreeTime_; } /** * int64 latest_consume_free_time = 22; * @param value The latestConsumeFreeTime to set. * @return This builder for chaining. */ public Builder setLatestConsumeFreeTime(long value) { latestConsumeFreeTime_ = value; onChanged(); return this; } /** * int64 latest_consume_free_time = 22; * @return This builder for chaining. */ public Builder clearLatestConsumeFreeTime() { latestConsumeFreeTime_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString accountId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the identity of this account, case insensitive
       * 
* * bytes account_id = 23; * @return The accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountId() { return accountId_; } /** *
       * the identity of this account, case insensitive
       * 
* * bytes account_id = 23; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } accountId_ = value; onChanged(); return this; } /** *
       * the identity of this account, case insensitive
       * 
* * bytes account_id = 23; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = getDefaultInstance().getAccountId(); onChanged(); return this; } private org.vision.visionjsdk.proto.Response.Account.AccountResource accountResource_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.AccountResource, org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder, org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder> accountResourceBuilder_; /** * .protocol.Account.AccountResource account_resource = 26; * @return Whether the accountResource field is set. */ public boolean hasAccountResource() { return accountResourceBuilder_ != null || accountResource_ != null; } /** * .protocol.Account.AccountResource account_resource = 26; * @return The accountResource. */ public org.vision.visionjsdk.proto.Response.Account.AccountResource getAccountResource() { if (accountResourceBuilder_ == null) { return accountResource_ == null ? org.vision.visionjsdk.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } else { return accountResourceBuilder_.getMessage(); } } public Builder setAccountResource(org.vision.visionjsdk.proto.Response.Account.AccountResource value) { if (accountResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountResource_ = value; onChanged(); } else { accountResourceBuilder_.setMessage(value); } return this; } public Builder setAccountResource( org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder builderForValue) { if (accountResourceBuilder_ == null) { accountResource_ = builderForValue.build(); onChanged(); } else { accountResourceBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeAccountResource(org.vision.visionjsdk.proto.Response.Account.AccountResource value) { if (accountResourceBuilder_ == null) { if (accountResource_ != null) { accountResource_ = org.vision.visionjsdk.proto.Response.Account.AccountResource.newBuilder(accountResource_).mergeFrom(value).buildPartial(); } else { accountResource_ = value; } onChanged(); } else { accountResourceBuilder_.mergeFrom(value); } return this; } public Builder clearAccountResource() { if (accountResourceBuilder_ == null) { accountResource_ = null; onChanged(); } else { accountResource_ = null; accountResourceBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder getAccountResourceBuilder() { onChanged(); return getAccountResourceFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder() { if (accountResourceBuilder_ != null) { return accountResourceBuilder_.getMessageOrBuilder(); } else { return accountResource_ == null ? org.vision.visionjsdk.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.AccountResource, org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder, org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder> getAccountResourceFieldBuilder() { if (accountResourceBuilder_ == null) { accountResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.Account.AccountResource, org.vision.visionjsdk.proto.Response.Account.AccountResource.Builder, org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder>( getAccountResource(), getParentForChildren(), isClean()); accountResource_ = null; } return accountResourceBuilder_; } private com.google.protobuf.ByteString codeHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes codeHash = 30; * @return The codeHash. */ @java.lang.Override public com.google.protobuf.ByteString getCodeHash() { return codeHash_; } /** * bytes codeHash = 30; * @param value The codeHash to set. * @return This builder for chaining. */ public Builder setCodeHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } codeHash_ = value; onChanged(); return this; } /** * bytes codeHash = 30; * @return This builder for chaining. */ public Builder clearCodeHash() { codeHash_ = getDefaultInstance().getCodeHash(); onChanged(); return this; } private org.vision.visionjsdk.proto.Common.Permission ownerPermission_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> ownerPermissionBuilder_; /** * .protocol.Permission owner_permission = 31; * @return Whether the ownerPermission field is set. */ public boolean hasOwnerPermission() { return ownerPermissionBuilder_ != null || ownerPermission_ != null; } /** * .protocol.Permission owner_permission = 31; * @return The ownerPermission. */ public org.vision.visionjsdk.proto.Common.Permission getOwnerPermission() { if (ownerPermissionBuilder_ == null) { return ownerPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } else { return ownerPermissionBuilder_.getMessage(); } } public Builder setOwnerPermission(org.vision.visionjsdk.proto.Common.Permission value) { if (ownerPermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerPermission_ = value; onChanged(); } else { ownerPermissionBuilder_.setMessage(value); } return this; } public Builder setOwnerPermission( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (ownerPermissionBuilder_ == null) { ownerPermission_ = builderForValue.build(); onChanged(); } else { ownerPermissionBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeOwnerPermission(org.vision.visionjsdk.proto.Common.Permission value) { if (ownerPermissionBuilder_ == null) { if (ownerPermission_ != null) { ownerPermission_ = org.vision.visionjsdk.proto.Common.Permission.newBuilder(ownerPermission_).mergeFrom(value).buildPartial(); } else { ownerPermission_ = value; } onChanged(); } else { ownerPermissionBuilder_.mergeFrom(value); } return this; } public Builder clearOwnerPermission() { if (ownerPermissionBuilder_ == null) { ownerPermission_ = null; onChanged(); } else { ownerPermission_ = null; ownerPermissionBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Common.Permission.Builder getOwnerPermissionBuilder() { onChanged(); return getOwnerPermissionFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder() { if (ownerPermissionBuilder_ != null) { return ownerPermissionBuilder_.getMessageOrBuilder(); } else { return ownerPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getOwnerPermissionFieldBuilder() { if (ownerPermissionBuilder_ == null) { ownerPermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( getOwnerPermission(), getParentForChildren(), isClean()); ownerPermission_ = null; } return ownerPermissionBuilder_; } private org.vision.visionjsdk.proto.Common.Permission witnessPermission_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> witnessPermissionBuilder_; /** * .protocol.Permission witness_permission = 32; * @return Whether the witnessPermission field is set. */ public boolean hasWitnessPermission() { return witnessPermissionBuilder_ != null || witnessPermission_ != null; } /** * .protocol.Permission witness_permission = 32; * @return The witnessPermission. */ public org.vision.visionjsdk.proto.Common.Permission getWitnessPermission() { if (witnessPermissionBuilder_ == null) { return witnessPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } else { return witnessPermissionBuilder_.getMessage(); } } public Builder setWitnessPermission(org.vision.visionjsdk.proto.Common.Permission value) { if (witnessPermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } witnessPermission_ = value; onChanged(); } else { witnessPermissionBuilder_.setMessage(value); } return this; } public Builder setWitnessPermission( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (witnessPermissionBuilder_ == null) { witnessPermission_ = builderForValue.build(); onChanged(); } else { witnessPermissionBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeWitnessPermission(org.vision.visionjsdk.proto.Common.Permission value) { if (witnessPermissionBuilder_ == null) { if (witnessPermission_ != null) { witnessPermission_ = org.vision.visionjsdk.proto.Common.Permission.newBuilder(witnessPermission_).mergeFrom(value).buildPartial(); } else { witnessPermission_ = value; } onChanged(); } else { witnessPermissionBuilder_.mergeFrom(value); } return this; } public Builder clearWitnessPermission() { if (witnessPermissionBuilder_ == null) { witnessPermission_ = null; onChanged(); } else { witnessPermission_ = null; witnessPermissionBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Common.Permission.Builder getWitnessPermissionBuilder() { onChanged(); return getWitnessPermissionFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder() { if (witnessPermissionBuilder_ != null) { return witnessPermissionBuilder_.getMessageOrBuilder(); } else { return witnessPermission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getWitnessPermissionFieldBuilder() { if (witnessPermissionBuilder_ == null) { witnessPermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( getWitnessPermission(), getParentForChildren(), isClean()); witnessPermission_ = null; } return witnessPermissionBuilder_; } private java.util.List activePermission_ = java.util.Collections.emptyList(); private void ensureActivePermissionIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { activePermission_ = new java.util.ArrayList(activePermission_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> activePermissionBuilder_; public java.util.List getActivePermissionList() { if (activePermissionBuilder_ == null) { return java.util.Collections.unmodifiableList(activePermission_); } else { return activePermissionBuilder_.getMessageList(); } } public int getActivePermissionCount() { if (activePermissionBuilder_ == null) { return activePermission_.size(); } else { return activePermissionBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Common.Permission getActivePermission(int index) { if (activePermissionBuilder_ == null) { return activePermission_.get(index); } else { return activePermissionBuilder_.getMessage(index); } } public Builder setActivePermission( int index, org.vision.visionjsdk.proto.Common.Permission value) { if (activePermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivePermissionIsMutable(); activePermission_.set(index, value); onChanged(); } else { activePermissionBuilder_.setMessage(index, value); } return this; } public Builder setActivePermission( int index, org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.set(index, builderForValue.build()); onChanged(); } else { activePermissionBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addActivePermission(org.vision.visionjsdk.proto.Common.Permission value) { if (activePermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivePermissionIsMutable(); activePermission_.add(value); onChanged(); } else { activePermissionBuilder_.addMessage(value); } return this; } public Builder addActivePermission( int index, org.vision.visionjsdk.proto.Common.Permission value) { if (activePermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivePermissionIsMutable(); activePermission_.add(index, value); onChanged(); } else { activePermissionBuilder_.addMessage(index, value); } return this; } public Builder addActivePermission( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.add(builderForValue.build()); onChanged(); } else { activePermissionBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addActivePermission( int index, org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.add(index, builderForValue.build()); onChanged(); } else { activePermissionBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllActivePermission( java.lang.Iterable values) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, activePermission_); onChanged(); } else { activePermissionBuilder_.addAllMessages(values); } return this; } public Builder clearActivePermission() { if (activePermissionBuilder_ == null) { activePermission_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { activePermissionBuilder_.clear(); } return this; } public Builder removeActivePermission(int index) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.remove(index); onChanged(); } else { activePermissionBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Common.Permission.Builder getActivePermissionBuilder( int index) { return getActivePermissionFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index) { if (activePermissionBuilder_ == null) { return activePermission_.get(index); } else { return activePermissionBuilder_.getMessageOrBuilder(index); } } public java.util.List getActivePermissionOrBuilderList() { if (activePermissionBuilder_ != null) { return activePermissionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(activePermission_); } } public org.vision.visionjsdk.proto.Common.Permission.Builder addActivePermissionBuilder() { return getActivePermissionFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance()); } public org.vision.visionjsdk.proto.Common.Permission.Builder addActivePermissionBuilder( int index) { return getActivePermissionFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance()); } public java.util.List getActivePermissionBuilderList() { return getActivePermissionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getActivePermissionFieldBuilder() { if (activePermissionBuilder_ == null) { activePermissionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( activePermission_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); activePermission_ = null; } return activePermissionBuilder_; } @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:protocol.Account) } // @@protoc_insertion_point(class_scope:protocol.Account) private static final org.vision.visionjsdk.proto.Response.Account DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Account(); } public static org.vision.visionjsdk.proto.Response.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.vision.visionjsdk.proto.Response.Account getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderDetail) com.google.protobuf.MessageOrBuilder { /** * bytes makerOrderId = 1; * @return The makerOrderId. */ com.google.protobuf.ByteString getMakerOrderId(); /** * bytes takerOrderId = 2; * @return The takerOrderId. */ com.google.protobuf.ByteString getTakerOrderId(); /** * int64 fillSellQuantity = 3; * @return The fillSellQuantity. */ long getFillSellQuantity(); /** * int64 fillBuyQuantity = 4; * @return The fillBuyQuantity. */ long getFillBuyQuantity(); } public static final class MarketOrderDetail extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketOrderDetail) MarketOrderDetailOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOrderDetail.newBuilder() to construct. private MarketOrderDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOrderDetail() { makerOrderId_ = com.google.protobuf.ByteString.EMPTY; takerOrderId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOrderDetail(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOrderDetail( 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: { makerOrderId_ = input.readBytes(); break; } case 18: { takerOrderId_ = input.readBytes(); break; } case 24: { fillSellQuantity_ = input.readInt64(); break; } case 32: { fillBuyQuantity_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderDetail.class, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder.class); } public static final int MAKERORDERID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString makerOrderId_; /** * bytes makerOrderId = 1; * @return The makerOrderId. */ @java.lang.Override public com.google.protobuf.ByteString getMakerOrderId() { return makerOrderId_; } public static final int TAKERORDERID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString takerOrderId_; /** * bytes takerOrderId = 2; * @return The takerOrderId. */ @java.lang.Override public com.google.protobuf.ByteString getTakerOrderId() { return takerOrderId_; } public static final int FILLSELLQUANTITY_FIELD_NUMBER = 3; private long fillSellQuantity_; /** * int64 fillSellQuantity = 3; * @return The fillSellQuantity. */ @java.lang.Override public long getFillSellQuantity() { return fillSellQuantity_; } public static final int FILLBUYQUANTITY_FIELD_NUMBER = 4; private long fillBuyQuantity_; /** * int64 fillBuyQuantity = 4; * @return The fillBuyQuantity. */ @java.lang.Override public long getFillBuyQuantity() { return fillBuyQuantity_; } 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 (!makerOrderId_.isEmpty()) { output.writeBytes(1, makerOrderId_); } if (!takerOrderId_.isEmpty()) { output.writeBytes(2, takerOrderId_); } if (fillSellQuantity_ != 0L) { output.writeInt64(3, fillSellQuantity_); } if (fillBuyQuantity_ != 0L) { output.writeInt64(4, fillBuyQuantity_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!makerOrderId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, makerOrderId_); } if (!takerOrderId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, takerOrderId_); } if (fillSellQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, fillSellQuantity_); } if (fillBuyQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, fillBuyQuantity_); } 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.vision.visionjsdk.proto.Response.MarketOrderDetail)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketOrderDetail other = (org.vision.visionjsdk.proto.Response.MarketOrderDetail) obj; if (!getMakerOrderId() .equals(other.getMakerOrderId())) return false; if (!getTakerOrderId() .equals(other.getTakerOrderId())) return false; if (getFillSellQuantity() != other.getFillSellQuantity()) return false; if (getFillBuyQuantity() != other.getFillBuyQuantity()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAKERORDERID_FIELD_NUMBER; hash = (53 * hash) + getMakerOrderId().hashCode(); hash = (37 * hash) + TAKERORDERID_FIELD_NUMBER; hash = (53 * hash) + getTakerOrderId().hashCode(); hash = (37 * hash) + FILLSELLQUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFillSellQuantity()); hash = (37 * hash) + FILLBUYQUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFillBuyQuantity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail 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.vision.visionjsdk.proto.Response.MarketOrderDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail 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.vision.visionjsdk.proto.Response.MarketOrderDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail 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.vision.visionjsdk.proto.Response.MarketOrderDetail 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; } public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrderDetail) org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderDetail.class, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketOrderDetail.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(); makerOrderId_ = com.google.protobuf.ByteString.EMPTY; takerOrderId_ = com.google.protobuf.ByteString.EMPTY; fillSellQuantity_ = 0L; fillBuyQuantity_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderDetail getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderDetail build() { org.vision.visionjsdk.proto.Response.MarketOrderDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderDetail buildPartial() { org.vision.visionjsdk.proto.Response.MarketOrderDetail result = new org.vision.visionjsdk.proto.Response.MarketOrderDetail(this); result.makerOrderId_ = makerOrderId_; result.takerOrderId_ = takerOrderId_; result.fillSellQuantity_ = fillSellQuantity_; result.fillBuyQuantity_ = fillBuyQuantity_; 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.vision.visionjsdk.proto.Response.MarketOrderDetail) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketOrderDetail)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketOrderDetail other) { if (other == org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance()) return this; if (other.getMakerOrderId() != com.google.protobuf.ByteString.EMPTY) { setMakerOrderId(other.getMakerOrderId()); } if (other.getTakerOrderId() != com.google.protobuf.ByteString.EMPTY) { setTakerOrderId(other.getTakerOrderId()); } if (other.getFillSellQuantity() != 0L) { setFillSellQuantity(other.getFillSellQuantity()); } if (other.getFillBuyQuantity() != 0L) { setFillBuyQuantity(other.getFillBuyQuantity()); } 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.vision.visionjsdk.proto.Response.MarketOrderDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketOrderDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString makerOrderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes makerOrderId = 1; * @return The makerOrderId. */ @java.lang.Override public com.google.protobuf.ByteString getMakerOrderId() { return makerOrderId_; } /** * bytes makerOrderId = 1; * @param value The makerOrderId to set. * @return This builder for chaining. */ public Builder setMakerOrderId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } makerOrderId_ = value; onChanged(); return this; } /** * bytes makerOrderId = 1; * @return This builder for chaining. */ public Builder clearMakerOrderId() { makerOrderId_ = getDefaultInstance().getMakerOrderId(); onChanged(); return this; } private com.google.protobuf.ByteString takerOrderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes takerOrderId = 2; * @return The takerOrderId. */ @java.lang.Override public com.google.protobuf.ByteString getTakerOrderId() { return takerOrderId_; } /** * bytes takerOrderId = 2; * @param value The takerOrderId to set. * @return This builder for chaining. */ public Builder setTakerOrderId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } takerOrderId_ = value; onChanged(); return this; } /** * bytes takerOrderId = 2; * @return This builder for chaining. */ public Builder clearTakerOrderId() { takerOrderId_ = getDefaultInstance().getTakerOrderId(); onChanged(); return this; } private long fillSellQuantity_ ; /** * int64 fillSellQuantity = 3; * @return The fillSellQuantity. */ @java.lang.Override public long getFillSellQuantity() { return fillSellQuantity_; } /** * int64 fillSellQuantity = 3; * @param value The fillSellQuantity to set. * @return This builder for chaining. */ public Builder setFillSellQuantity(long value) { fillSellQuantity_ = value; onChanged(); return this; } /** * int64 fillSellQuantity = 3; * @return This builder for chaining. */ public Builder clearFillSellQuantity() { fillSellQuantity_ = 0L; onChanged(); return this; } private long fillBuyQuantity_ ; /** * int64 fillBuyQuantity = 4; * @return The fillBuyQuantity. */ @java.lang.Override public long getFillBuyQuantity() { return fillBuyQuantity_; } /** * int64 fillBuyQuantity = 4; * @param value The fillBuyQuantity to set. * @return This builder for chaining. */ public Builder setFillBuyQuantity(long value) { fillBuyQuantity_ = value; onChanged(); return this; } /** * int64 fillBuyQuantity = 4; * @return This builder for chaining. */ public Builder clearFillBuyQuantity() { fillBuyQuantity_ = 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:protocol.MarketOrderDetail) } // @@protoc_insertion_point(class_scope:protocol.MarketOrderDetail) private static final org.vision.visionjsdk.proto.Response.MarketOrderDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketOrderDetail(); } public static org.vision.visionjsdk.proto.Response.MarketOrderDetail getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOrderDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOrderDetail(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.vision.visionjsdk.proto.Response.MarketOrderDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Proposal) com.google.protobuf.MessageOrBuilder { /** * int64 proposal_id = 1; * @return The proposalId. */ long getProposalId(); /** * bytes proposer_address = 2; * @return The proposerAddress. */ com.google.protobuf.ByteString getProposerAddress(); int getParametersCount(); boolean containsParameters( long key); @java.lang.Deprecated java.util.Map getParameters(); java.util.Map getParametersMap(); long getParametersOrDefault( long key, long defaultValue); long getParametersOrThrow( long key); /** * int64 expiration_time = 4; * @return The expirationTime. */ long getExpirationTime(); /** * int64 create_time = 5; * @return The createTime. */ long getCreateTime(); /** * repeated bytes approvals = 6; * @return A list containing the approvals. */ java.util.List getApprovalsList(); /** * repeated bytes approvals = 6; * @return The count of approvals. */ int getApprovalsCount(); /** * repeated bytes approvals = 6; * @param index The index of the element to return. * @return The approvals at the given index. */ com.google.protobuf.ByteString getApprovals(int index); /** * .protocol.Proposal.State state = 7; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** * .protocol.Proposal.State state = 7; * @return The state. */ org.vision.visionjsdk.proto.Response.Proposal.State getState(); } public static final class Proposal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Proposal) ProposalOrBuilder { private static final long serialVersionUID = 0L; // Use Proposal.newBuilder() to construct. private Proposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Proposal() { proposerAddress_ = com.google.protobuf.ByteString.EMPTY; approvals_ = java.util.Collections.emptyList(); state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Proposal(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Proposal( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { proposalId_ = input.readInt64(); break; } case 18: { proposerAddress_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); parameters_.getMutableMap().put( parameters__.getKey(), parameters__.getValue()); break; } case 32: { expirationTime_ = input.readInt64(); break; } case 40: { createTime_ = input.readInt64(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { approvals_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } approvals_.add(input.readBytes()); break; } case 56: { int rawValue = input.readEnum(); state_ = rawValue; 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_ & 0x00000002) != 0)) { approvals_ = java.util.Collections.unmodifiableList(approvals_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Proposal.class, org.vision.visionjsdk.proto.Response.Proposal.Builder.class); } /** * Protobuf enum {@code protocol.Proposal.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * PENDING = 0; */ PENDING(0), /** * DISAPPROVED = 1; */ DISAPPROVED(1), /** * APPROVED = 2; */ APPROVED(2), /** * CANCELED = 3; */ CANCELED(3), UNRECOGNIZED(-1), ; /** * PENDING = 0; */ public static final int PENDING_VALUE = 0; /** * DISAPPROVED = 1; */ public static final int DISAPPROVED_VALUE = 1; /** * APPROVED = 2; */ public static final int APPROVED_VALUE = 2; /** * CANCELED = 3; */ public static final int CANCELED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return PENDING; case 1: return DISAPPROVED; case 2: return APPROVED; case 3: return CANCELED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< State> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.Proposal.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.Proposal.State) } public static final int PROPOSAL_ID_FIELD_NUMBER = 1; private long proposalId_; /** * int64 proposal_id = 1; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } public static final int PROPOSER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString proposerAddress_; /** * bytes proposer_address = 2; * @return The proposerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getProposerAddress() { return proposerAddress_; } public static final int PARAMETERS_FIELD_NUMBER = 3; private static final class ParametersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> parameters_; private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } @java.lang.Override public boolean containsParameters( long key) { return internalGetParameters().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } @java.lang.Override public long getParametersOrDefault( long key, long defaultValue) { java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getParametersOrThrow( long key) { java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXPIRATION_TIME_FIELD_NUMBER = 4; private long expirationTime_; /** * int64 expiration_time = 4; * @return The expirationTime. */ @java.lang.Override public long getExpirationTime() { return expirationTime_; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private long createTime_; /** * int64 create_time = 5; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int APPROVALS_FIELD_NUMBER = 6; private java.util.List approvals_; /** * repeated bytes approvals = 6; * @return A list containing the approvals. */ @java.lang.Override public java.util.List getApprovalsList() { return approvals_; } /** * repeated bytes approvals = 6; * @return The count of approvals. */ public int getApprovalsCount() { return approvals_.size(); } /** * repeated bytes approvals = 6; * @param index The index of the element to return. * @return The approvals at the given index. */ public com.google.protobuf.ByteString getApprovals(int index) { return approvals_.get(index); } public static final int STATE_FIELD_NUMBER = 7; private int state_; /** * .protocol.Proposal.State state = 7; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * .protocol.Proposal.State state = 7; * @return The state. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal.State getState() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.Proposal.State result = org.vision.visionjsdk.proto.Response.Proposal.State.valueOf(state_); return result == null ? org.vision.visionjsdk.proto.Response.Proposal.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (proposalId_ != 0L) { output.writeInt64(1, proposalId_); } if (!proposerAddress_.isEmpty()) { output.writeBytes(2, proposerAddress_); } com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 3); if (expirationTime_ != 0L) { output.writeInt64(4, expirationTime_); } if (createTime_ != 0L) { output.writeInt64(5, createTime_); } for (int i = 0; i < approvals_.size(); i++) { output.writeBytes(6, approvals_.get(i)); } if (state_ != org.vision.visionjsdk.proto.Response.Proposal.State.PENDING.getNumber()) { output.writeEnum(7, state_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (proposalId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, proposalId_); } if (!proposerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, proposerAddress_); } for (java.util.Map.Entry entry : internalGetParameters().getMap().entrySet()) { com.google.protobuf.MapEntry parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, parameters__); } if (expirationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, expirationTime_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, createTime_); } { int dataSize = 0; for (int i = 0; i < approvals_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(approvals_.get(i)); } size += dataSize; size += 1 * getApprovalsList().size(); } if (state_ != org.vision.visionjsdk.proto.Response.Proposal.State.PENDING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, state_); } 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.vision.visionjsdk.proto.Response.Proposal)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Proposal other = (org.vision.visionjsdk.proto.Response.Proposal) obj; if (getProposalId() != other.getProposalId()) return false; if (!getProposerAddress() .equals(other.getProposerAddress())) return false; if (!internalGetParameters().equals( other.internalGetParameters())) return false; if (getExpirationTime() != other.getExpirationTime()) return false; if (getCreateTime() != other.getCreateTime()) return false; if (!getApprovalsList() .equals(other.getApprovalsList())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProposalId()); hash = (37 * hash) + PROPOSER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getProposerAddress().hashCode(); if (!internalGetParameters().getMap().isEmpty()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetParameters().hashCode(); } hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpirationTime()); hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); if (getApprovalsCount() > 0) { hash = (37 * hash) + APPROVALS_FIELD_NUMBER; hash = (53 * hash) + getApprovalsList().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Proposal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Proposal 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.vision.visionjsdk.proto.Response.Proposal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Proposal 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.vision.visionjsdk.proto.Response.Proposal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Proposal 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.vision.visionjsdk.proto.Response.Proposal 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; } public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Proposal) org.vision.visionjsdk.proto.Response.ProposalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Proposal.class, org.vision.visionjsdk.proto.Response.Proposal.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.Proposal.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(); proposalId_ = 0L; proposerAddress_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableParameters().clear(); expirationTime_ = 0L; createTime_ = 0L; approvals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Proposal_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal build() { org.vision.visionjsdk.proto.Response.Proposal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal buildPartial() { org.vision.visionjsdk.proto.Response.Proposal result = new org.vision.visionjsdk.proto.Response.Proposal(this); int from_bitField0_ = bitField0_; result.proposalId_ = proposalId_; result.proposerAddress_ = proposerAddress_; result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); result.expirationTime_ = expirationTime_; result.createTime_ = createTime_; if (((bitField0_ & 0x00000002) != 0)) { approvals_ = java.util.Collections.unmodifiableList(approvals_); bitField0_ = (bitField0_ & ~0x00000002); } result.approvals_ = approvals_; result.state_ = state_; 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.vision.visionjsdk.proto.Response.Proposal) { return mergeFrom((org.vision.visionjsdk.proto.Response.Proposal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Proposal other) { if (other == org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance()) return this; if (other.getProposalId() != 0L) { setProposalId(other.getProposalId()); } if (other.getProposerAddress() != com.google.protobuf.ByteString.EMPTY) { setProposerAddress(other.getProposerAddress()); } internalGetMutableParameters().mergeFrom( other.internalGetParameters()); if (other.getExpirationTime() != 0L) { setExpirationTime(other.getExpirationTime()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (!other.approvals_.isEmpty()) { if (approvals_.isEmpty()) { approvals_ = other.approvals_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureApprovalsIsMutable(); approvals_.addAll(other.approvals_); } onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } 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.vision.visionjsdk.proto.Response.Proposal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Proposal) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long proposalId_ ; /** * int64 proposal_id = 1; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } /** * int64 proposal_id = 1; * @param value The proposalId to set. * @return This builder for chaining. */ public Builder setProposalId(long value) { proposalId_ = value; onChanged(); return this; } /** * int64 proposal_id = 1; * @return This builder for chaining. */ public Builder clearProposalId() { proposalId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString proposerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes proposer_address = 2; * @return The proposerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getProposerAddress() { return proposerAddress_; } /** * bytes proposer_address = 2; * @param value The proposerAddress to set. * @return This builder for chaining. */ public Builder setProposerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposerAddress_ = value; onChanged(); return this; } /** * bytes proposer_address = 2; * @return This builder for chaining. */ public Builder clearProposerAddress() { proposerAddress_ = getDefaultInstance().getProposerAddress(); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> parameters_; private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } private com.google.protobuf.MapField internalGetMutableParameters() { onChanged();; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } @java.lang.Override public boolean containsParameters( long key) { return internalGetParameters().getMap().containsKey(key); } @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } @java.lang.Override public long getParametersOrDefault( long key, long defaultValue) { java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public long getParametersOrThrow( long key) { java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParameters() { internalGetMutableParameters().getMutableMap() .clear(); return this; } public Builder removeParameters( long key) { internalGetMutableParameters().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } public Builder putParameters( long key, long value) { internalGetMutableParameters().getMutableMap() .put(key, value); return this; } public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap() .putAll(values); return this; } private long expirationTime_ ; /** * int64 expiration_time = 4; * @return The expirationTime. */ @java.lang.Override public long getExpirationTime() { return expirationTime_; } /** * int64 expiration_time = 4; * @param value The expirationTime to set. * @return This builder for chaining. */ public Builder setExpirationTime(long value) { expirationTime_ = value; onChanged(); return this; } /** * int64 expiration_time = 4; * @return This builder for chaining. */ public Builder clearExpirationTime() { expirationTime_ = 0L; onChanged(); return this; } private long createTime_ ; /** * int64 create_time = 5; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } /** * int64 create_time = 5; * @param value The createTime to set. * @return This builder for chaining. */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** * int64 create_time = 5; * @return This builder for chaining. */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private java.util.List approvals_ = java.util.Collections.emptyList(); private void ensureApprovalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { approvals_ = new java.util.ArrayList(approvals_); bitField0_ |= 0x00000002; } } /** * repeated bytes approvals = 6; * @return A list containing the approvals. */ public java.util.List getApprovalsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(approvals_) : approvals_; } /** * repeated bytes approvals = 6; * @return The count of approvals. */ public int getApprovalsCount() { return approvals_.size(); } /** * repeated bytes approvals = 6; * @param index The index of the element to return. * @return The approvals at the given index. */ public com.google.protobuf.ByteString getApprovals(int index) { return approvals_.get(index); } /** * repeated bytes approvals = 6; * @param index The index to set the value at. * @param value The approvals to set. * @return This builder for chaining. */ public Builder setApprovals( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovalsIsMutable(); approvals_.set(index, value); onChanged(); return this; } /** * repeated bytes approvals = 6; * @param value The approvals to add. * @return This builder for chaining. */ public Builder addApprovals(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovalsIsMutable(); approvals_.add(value); onChanged(); return this; } /** * repeated bytes approvals = 6; * @param values The approvals to add. * @return This builder for chaining. */ public Builder addAllApprovals( java.lang.Iterable values) { ensureApprovalsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, approvals_); onChanged(); return this; } /** * repeated bytes approvals = 6; * @return This builder for chaining. */ public Builder clearApprovals() { approvals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private int state_ = 0; /** * .protocol.Proposal.State state = 7; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * .protocol.Proposal.State state = 7; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** * .protocol.Proposal.State state = 7; * @return The state. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.Proposal.State getState() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.Proposal.State result = org.vision.visionjsdk.proto.Response.Proposal.State.valueOf(state_); return result == null ? org.vision.visionjsdk.proto.Response.Proposal.State.UNRECOGNIZED : result; } /** * .protocol.Proposal.State state = 7; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(org.vision.visionjsdk.proto.Response.Proposal.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Proposal.State state = 7; * @return This builder for chaining. */ public Builder clearState() { state_ = 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:protocol.Proposal) } // @@protoc_insertion_point(class_scope:protocol.Proposal) private static final org.vision.visionjsdk.proto.Response.Proposal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Proposal(); } public static org.vision.visionjsdk.proto.Response.Proposal getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proposal parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Proposal(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.vision.visionjsdk.proto.Response.Proposal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Exchange) com.google.protobuf.MessageOrBuilder { /** * int64 exchange_id = 1; * @return The exchangeId. */ long getExchangeId(); /** * bytes creator_address = 2; * @return The creatorAddress. */ com.google.protobuf.ByteString getCreatorAddress(); /** * int64 create_time = 3; * @return The createTime. */ long getCreateTime(); /** * bytes first_token_id = 6; * @return The firstTokenId. */ com.google.protobuf.ByteString getFirstTokenId(); /** * int64 first_token_balance = 7; * @return The firstTokenBalance. */ long getFirstTokenBalance(); /** * bytes second_token_id = 8; * @return The secondTokenId. */ com.google.protobuf.ByteString getSecondTokenId(); /** * int64 second_token_balance = 9; * @return The secondTokenBalance. */ long getSecondTokenBalance(); } /** * Protobuf type {@code protocol.Exchange} */ public static final class Exchange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Exchange) ExchangeOrBuilder { private static final long serialVersionUID = 0L; // Use Exchange.newBuilder() to construct. private Exchange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Exchange() { creatorAddress_ = com.google.protobuf.ByteString.EMPTY; firstTokenId_ = com.google.protobuf.ByteString.EMPTY; secondTokenId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Exchange(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Exchange( 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: { exchangeId_ = input.readInt64(); break; } case 18: { creatorAddress_ = input.readBytes(); break; } case 24: { createTime_ = input.readInt64(); break; } case 50: { firstTokenId_ = input.readBytes(); break; } case 56: { firstTokenBalance_ = input.readInt64(); break; } case 66: { secondTokenId_ = input.readBytes(); break; } case 72: { secondTokenBalance_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Exchange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Exchange.class, org.vision.visionjsdk.proto.Response.Exchange.Builder.class); } public static final int EXCHANGE_ID_FIELD_NUMBER = 1; private long exchangeId_; /** * int64 exchange_id = 1; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int CREATOR_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString creatorAddress_; /** * bytes creator_address = 2; * @return The creatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorAddress() { return creatorAddress_; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private long createTime_; /** * int64 create_time = 3; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int FIRST_TOKEN_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString firstTokenId_; /** * bytes first_token_id = 6; * @return The firstTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getFirstTokenId() { return firstTokenId_; } public static final int FIRST_TOKEN_BALANCE_FIELD_NUMBER = 7; private long firstTokenBalance_; /** * int64 first_token_balance = 7; * @return The firstTokenBalance. */ @java.lang.Override public long getFirstTokenBalance() { return firstTokenBalance_; } public static final int SECOND_TOKEN_ID_FIELD_NUMBER = 8; private com.google.protobuf.ByteString secondTokenId_; /** * bytes second_token_id = 8; * @return The secondTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSecondTokenId() { return secondTokenId_; } public static final int SECOND_TOKEN_BALANCE_FIELD_NUMBER = 9; private long secondTokenBalance_; /** * int64 second_token_balance = 9; * @return The secondTokenBalance. */ @java.lang.Override public long getSecondTokenBalance() { return secondTokenBalance_; } 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 (exchangeId_ != 0L) { output.writeInt64(1, exchangeId_); } if (!creatorAddress_.isEmpty()) { output.writeBytes(2, creatorAddress_); } if (createTime_ != 0L) { output.writeInt64(3, createTime_); } if (!firstTokenId_.isEmpty()) { output.writeBytes(6, firstTokenId_); } if (firstTokenBalance_ != 0L) { output.writeInt64(7, firstTokenBalance_); } if (!secondTokenId_.isEmpty()) { output.writeBytes(8, secondTokenId_); } if (secondTokenBalance_ != 0L) { output.writeInt64(9, secondTokenBalance_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, exchangeId_); } if (!creatorAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, creatorAddress_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, createTime_); } if (!firstTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, firstTokenId_); } if (firstTokenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, firstTokenBalance_); } if (!secondTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, secondTokenId_); } if (secondTokenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, secondTokenBalance_); } 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.vision.visionjsdk.proto.Response.Exchange)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.Exchange other = (org.vision.visionjsdk.proto.Response.Exchange) obj; if (getExchangeId() != other.getExchangeId()) return false; if (!getCreatorAddress() .equals(other.getCreatorAddress())) return false; if (getCreateTime() != other.getCreateTime()) return false; if (!getFirstTokenId() .equals(other.getFirstTokenId())) return false; if (getFirstTokenBalance() != other.getFirstTokenBalance()) return false; if (!getSecondTokenId() .equals(other.getSecondTokenId())) return false; if (getSecondTokenBalance() != other.getSecondTokenBalance()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + CREATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getCreatorAddress().hashCode(); hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); hash = (37 * hash) + FIRST_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getFirstTokenId().hashCode(); hash = (37 * hash) + FIRST_TOKEN_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFirstTokenBalance()); hash = (37 * hash) + SECOND_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getSecondTokenId().hashCode(); hash = (37 * hash) + SECOND_TOKEN_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSecondTokenBalance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.Exchange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Exchange 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.vision.visionjsdk.proto.Response.Exchange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Exchange 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.vision.visionjsdk.proto.Response.Exchange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.Exchange 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.vision.visionjsdk.proto.Response.Exchange 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 protocol.Exchange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Exchange) org.vision.visionjsdk.proto.Response.ExchangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Exchange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.Exchange.class, org.vision.visionjsdk.proto.Response.Exchange.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.Exchange.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(); exchangeId_ = 0L; creatorAddress_ = com.google.protobuf.ByteString.EMPTY; createTime_ = 0L; firstTokenId_ = com.google.protobuf.ByteString.EMPTY; firstTokenBalance_ = 0L; secondTokenId_ = com.google.protobuf.ByteString.EMPTY; secondTokenBalance_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Exchange getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.Exchange build() { org.vision.visionjsdk.proto.Response.Exchange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.Exchange buildPartial() { org.vision.visionjsdk.proto.Response.Exchange result = new org.vision.visionjsdk.proto.Response.Exchange(this); result.exchangeId_ = exchangeId_; result.creatorAddress_ = creatorAddress_; result.createTime_ = createTime_; result.firstTokenId_ = firstTokenId_; result.firstTokenBalance_ = firstTokenBalance_; result.secondTokenId_ = secondTokenId_; result.secondTokenBalance_ = secondTokenBalance_; 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.vision.visionjsdk.proto.Response.Exchange) { return mergeFrom((org.vision.visionjsdk.proto.Response.Exchange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Exchange other) { if (other == org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance()) return this; if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getCreatorAddress() != com.google.protobuf.ByteString.EMPTY) { setCreatorAddress(other.getCreatorAddress()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (other.getFirstTokenId() != com.google.protobuf.ByteString.EMPTY) { setFirstTokenId(other.getFirstTokenId()); } if (other.getFirstTokenBalance() != 0L) { setFirstTokenBalance(other.getFirstTokenBalance()); } if (other.getSecondTokenId() != com.google.protobuf.ByteString.EMPTY) { setSecondTokenId(other.getSecondTokenId()); } if (other.getSecondTokenBalance() != 0L) { setSecondTokenBalance(other.getSecondTokenBalance()); } 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.vision.visionjsdk.proto.Response.Exchange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.Exchange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long exchangeId_ ; /** * int64 exchange_id = 1; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 1; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; onChanged(); return this; } /** * int64 exchange_id = 1; * @return This builder for chaining. */ public Builder clearExchangeId() { exchangeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString creatorAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes creator_address = 2; * @return The creatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorAddress() { return creatorAddress_; } /** * bytes creator_address = 2; * @param value The creatorAddress to set. * @return This builder for chaining. */ public Builder setCreatorAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creatorAddress_ = value; onChanged(); return this; } /** * bytes creator_address = 2; * @return This builder for chaining. */ public Builder clearCreatorAddress() { creatorAddress_ = getDefaultInstance().getCreatorAddress(); onChanged(); return this; } private long createTime_ ; /** * int64 create_time = 3; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } /** * int64 create_time = 3; * @param value The createTime to set. * @return This builder for chaining. */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** * int64 create_time = 3; * @return This builder for chaining. */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString firstTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes first_token_id = 6; * @return The firstTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getFirstTokenId() { return firstTokenId_; } /** * bytes first_token_id = 6; * @param value The firstTokenId to set. * @return This builder for chaining. */ public Builder setFirstTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } firstTokenId_ = value; onChanged(); return this; } /** * bytes first_token_id = 6; * @return This builder for chaining. */ public Builder clearFirstTokenId() { firstTokenId_ = getDefaultInstance().getFirstTokenId(); onChanged(); return this; } private long firstTokenBalance_ ; /** * int64 first_token_balance = 7; * @return The firstTokenBalance. */ @java.lang.Override public long getFirstTokenBalance() { return firstTokenBalance_; } /** * int64 first_token_balance = 7; * @param value The firstTokenBalance to set. * @return This builder for chaining. */ public Builder setFirstTokenBalance(long value) { firstTokenBalance_ = value; onChanged(); return this; } /** * int64 first_token_balance = 7; * @return This builder for chaining. */ public Builder clearFirstTokenBalance() { firstTokenBalance_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString secondTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes second_token_id = 8; * @return The secondTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSecondTokenId() { return secondTokenId_; } /** * bytes second_token_id = 8; * @param value The secondTokenId to set. * @return This builder for chaining. */ public Builder setSecondTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } secondTokenId_ = value; onChanged(); return this; } /** * bytes second_token_id = 8; * @return This builder for chaining. */ public Builder clearSecondTokenId() { secondTokenId_ = getDefaultInstance().getSecondTokenId(); onChanged(); return this; } private long secondTokenBalance_ ; /** * int64 second_token_balance = 9; * @return The secondTokenBalance. */ @java.lang.Override public long getSecondTokenBalance() { return secondTokenBalance_; } /** * int64 second_token_balance = 9; * @param value The secondTokenBalance to set. * @return This builder for chaining. */ public Builder setSecondTokenBalance(long value) { secondTokenBalance_ = value; onChanged(); return this; } /** * int64 second_token_balance = 9; * @return This builder for chaining. */ public Builder clearSecondTokenBalance() { secondTokenBalance_ = 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:protocol.Exchange) } // @@protoc_insertion_point(class_scope:protocol.Exchange) private static final org.vision.visionjsdk.proto.Response.Exchange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Exchange(); } public static org.vision.visionjsdk.proto.Response.Exchange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Exchange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Exchange(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.vision.visionjsdk.proto.Response.Exchange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegatedResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegatedResource) com.google.protobuf.MessageOrBuilder { /** * bytes from = 1; * @return The from. */ com.google.protobuf.ByteString getFrom(); /** * bytes to = 2; * @return The to. */ com.google.protobuf.ByteString getTo(); /** * int64 frozen_balance_for_photon = 3; * @return The frozenBalanceForPhoton. */ long getFrozenBalanceForPhoton(); /** * int64 frozen_balance_for_entropy = 4; * @return The frozenBalanceForEntropy. */ long getFrozenBalanceForEntropy(); /** * int64 expire_time_for_photon = 5; * @return The expireTimeForPhoton. */ long getExpireTimeForPhoton(); /** * int64 expire_time_for_entropy = 6; * @return The expireTimeForEntropy. */ long getExpireTimeForEntropy(); } /** * Protobuf type {@code protocol.DelegatedResource} */ public static final class DelegatedResource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DelegatedResource) DelegatedResourceOrBuilder { private static final long serialVersionUID = 0L; // Use DelegatedResource.newBuilder() to construct. private DelegatedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelegatedResource() { from_ = com.google.protobuf.ByteString.EMPTY; to_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegatedResource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DelegatedResource( 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: { from_ = input.readBytes(); break; } case 18: { to_ = input.readBytes(); break; } case 24: { frozenBalanceForPhoton_ = input.readInt64(); break; } case 32: { frozenBalanceForEntropy_ = input.readInt64(); break; } case 40: { expireTimeForPhoton_ = input.readInt64(); break; } case 48: { expireTimeForEntropy_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResource.class, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder.class); } public static final int FROM_FIELD_NUMBER = 1; private com.google.protobuf.ByteString from_; /** * bytes from = 1; * @return The from. */ @java.lang.Override public com.google.protobuf.ByteString getFrom() { return from_; } public static final int TO_FIELD_NUMBER = 2; private com.google.protobuf.ByteString to_; /** * bytes to = 2; * @return The to. */ @java.lang.Override public com.google.protobuf.ByteString getTo() { return to_; } public static final int FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER = 3; private long frozenBalanceForPhoton_; /** * int64 frozen_balance_for_photon = 3; * @return The frozenBalanceForPhoton. */ @java.lang.Override public long getFrozenBalanceForPhoton() { return frozenBalanceForPhoton_; } public static final int FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER = 4; private long frozenBalanceForEntropy_; /** * int64 frozen_balance_for_entropy = 4; * @return The frozenBalanceForEntropy. */ @java.lang.Override public long getFrozenBalanceForEntropy() { return frozenBalanceForEntropy_; } public static final int EXPIRE_TIME_FOR_PHOTON_FIELD_NUMBER = 5; private long expireTimeForPhoton_; /** * int64 expire_time_for_photon = 5; * @return The expireTimeForPhoton. */ @java.lang.Override public long getExpireTimeForPhoton() { return expireTimeForPhoton_; } public static final int EXPIRE_TIME_FOR_ENTROPY_FIELD_NUMBER = 6; private long expireTimeForEntropy_; /** * int64 expire_time_for_entropy = 6; * @return The expireTimeForEntropy. */ @java.lang.Override public long getExpireTimeForEntropy() { return expireTimeForEntropy_; } 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 (!from_.isEmpty()) { output.writeBytes(1, from_); } if (!to_.isEmpty()) { output.writeBytes(2, to_); } if (frozenBalanceForPhoton_ != 0L) { output.writeInt64(3, frozenBalanceForPhoton_); } if (frozenBalanceForEntropy_ != 0L) { output.writeInt64(4, frozenBalanceForEntropy_); } if (expireTimeForPhoton_ != 0L) { output.writeInt64(5, expireTimeForPhoton_); } if (expireTimeForEntropy_ != 0L) { output.writeInt64(6, expireTimeForEntropy_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!from_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, from_); } if (!to_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, to_); } if (frozenBalanceForPhoton_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, frozenBalanceForPhoton_); } if (frozenBalanceForEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, frozenBalanceForEntropy_); } if (expireTimeForPhoton_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, expireTimeForPhoton_); } if (expireTimeForEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, expireTimeForEntropy_); } 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.vision.visionjsdk.proto.Response.DelegatedResource)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DelegatedResource other = (org.vision.visionjsdk.proto.Response.DelegatedResource) obj; if (!getFrom() .equals(other.getFrom())) return false; if (!getTo() .equals(other.getTo())) return false; if (getFrozenBalanceForPhoton() != other.getFrozenBalanceForPhoton()) return false; if (getFrozenBalanceForEntropy() != other.getFrozenBalanceForEntropy()) return false; if (getExpireTimeForPhoton() != other.getExpireTimeForPhoton()) return false; if (getExpireTimeForEntropy() != other.getExpireTimeForEntropy()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + TO_FIELD_NUMBER; hash = (53 * hash) + getTo().hashCode(); hash = (37 * hash) + FROZEN_BALANCE_FOR_PHOTON_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalanceForPhoton()); hash = (37 * hash) + FROZEN_BALANCE_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalanceForEntropy()); hash = (37 * hash) + EXPIRE_TIME_FOR_PHOTON_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpireTimeForPhoton()); hash = (37 * hash) + EXPIRE_TIME_FOR_ENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpireTimeForEntropy()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResource 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.vision.visionjsdk.proto.Response.DelegatedResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResource 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.vision.visionjsdk.proto.Response.DelegatedResource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResource 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.vision.visionjsdk.proto.Response.DelegatedResource 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 protocol.DelegatedResource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DelegatedResource) org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResource.class, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DelegatedResource.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(); from_ = com.google.protobuf.ByteString.EMPTY; to_ = com.google.protobuf.ByteString.EMPTY; frozenBalanceForPhoton_ = 0L; frozenBalanceForEntropy_ = 0L; expireTimeForPhoton_ = 0L; expireTimeForEntropy_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResource getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResource build() { org.vision.visionjsdk.proto.Response.DelegatedResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResource buildPartial() { org.vision.visionjsdk.proto.Response.DelegatedResource result = new org.vision.visionjsdk.proto.Response.DelegatedResource(this); result.from_ = from_; result.to_ = to_; result.frozenBalanceForPhoton_ = frozenBalanceForPhoton_; result.frozenBalanceForEntropy_ = frozenBalanceForEntropy_; result.expireTimeForPhoton_ = expireTimeForPhoton_; result.expireTimeForEntropy_ = expireTimeForEntropy_; 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.vision.visionjsdk.proto.Response.DelegatedResource) { return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResource other) { if (other == org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance()) return this; if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { setFrom(other.getFrom()); } if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { setTo(other.getTo()); } if (other.getFrozenBalanceForPhoton() != 0L) { setFrozenBalanceForPhoton(other.getFrozenBalanceForPhoton()); } if (other.getFrozenBalanceForEntropy() != 0L) { setFrozenBalanceForEntropy(other.getFrozenBalanceForEntropy()); } if (other.getExpireTimeForPhoton() != 0L) { setExpireTimeForPhoton(other.getExpireTimeForPhoton()); } if (other.getExpireTimeForEntropy() != 0L) { setExpireTimeForEntropy(other.getExpireTimeForEntropy()); } 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.vision.visionjsdk.proto.Response.DelegatedResource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** * bytes from = 1; * @return The from. */ @java.lang.Override public com.google.protobuf.ByteString getFrom() { return from_; } /** * bytes from = 1; * @param value The from to set. * @return This builder for chaining. */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } from_ = value; onChanged(); return this; } /** * bytes from = 1; * @return This builder for chaining. */ public Builder clearFrom() { from_ = getDefaultInstance().getFrom(); onChanged(); return this; } private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** * bytes to = 2; * @return The to. */ @java.lang.Override public com.google.protobuf.ByteString getTo() { return to_; } /** * bytes to = 2; * @param value The to to set. * @return This builder for chaining. */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } to_ = value; onChanged(); return this; } /** * bytes to = 2; * @return This builder for chaining. */ public Builder clearTo() { to_ = getDefaultInstance().getTo(); onChanged(); return this; } private long frozenBalanceForPhoton_ ; /** * int64 frozen_balance_for_photon = 3; * @return The frozenBalanceForPhoton. */ @java.lang.Override public long getFrozenBalanceForPhoton() { return frozenBalanceForPhoton_; } /** * int64 frozen_balance_for_photon = 3; * @param value The frozenBalanceForPhoton to set. * @return This builder for chaining. */ public Builder setFrozenBalanceForPhoton(long value) { frozenBalanceForPhoton_ = value; onChanged(); return this; } /** * int64 frozen_balance_for_photon = 3; * @return This builder for chaining. */ public Builder clearFrozenBalanceForPhoton() { frozenBalanceForPhoton_ = 0L; onChanged(); return this; } private long frozenBalanceForEntropy_ ; /** * int64 frozen_balance_for_entropy = 4; * @return The frozenBalanceForEntropy. */ @java.lang.Override public long getFrozenBalanceForEntropy() { return frozenBalanceForEntropy_; } /** * int64 frozen_balance_for_entropy = 4; * @param value The frozenBalanceForEntropy to set. * @return This builder for chaining. */ public Builder setFrozenBalanceForEntropy(long value) { frozenBalanceForEntropy_ = value; onChanged(); return this; } /** * int64 frozen_balance_for_entropy = 4; * @return This builder for chaining. */ public Builder clearFrozenBalanceForEntropy() { frozenBalanceForEntropy_ = 0L; onChanged(); return this; } private long expireTimeForPhoton_ ; /** * int64 expire_time_for_photon = 5; * @return The expireTimeForPhoton. */ @java.lang.Override public long getExpireTimeForPhoton() { return expireTimeForPhoton_; } /** * int64 expire_time_for_photon = 5; * @param value The expireTimeForPhoton to set. * @return This builder for chaining. */ public Builder setExpireTimeForPhoton(long value) { expireTimeForPhoton_ = value; onChanged(); return this; } /** * int64 expire_time_for_photon = 5; * @return This builder for chaining. */ public Builder clearExpireTimeForPhoton() { expireTimeForPhoton_ = 0L; onChanged(); return this; } private long expireTimeForEntropy_ ; /** * int64 expire_time_for_entropy = 6; * @return The expireTimeForEntropy. */ @java.lang.Override public long getExpireTimeForEntropy() { return expireTimeForEntropy_; } /** * int64 expire_time_for_entropy = 6; * @param value The expireTimeForEntropy to set. * @return This builder for chaining. */ public Builder setExpireTimeForEntropy(long value) { expireTimeForEntropy_ = value; onChanged(); return this; } /** * int64 expire_time_for_entropy = 6; * @return This builder for chaining. */ public Builder clearExpireTimeForEntropy() { expireTimeForEntropy_ = 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:protocol.DelegatedResource) } // @@protoc_insertion_point(class_scope:protocol.DelegatedResource) private static final org.vision.visionjsdk.proto.Response.DelegatedResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResource(); } public static org.vision.visionjsdk.proto.Response.DelegatedResource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelegatedResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DelegatedResource(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.vision.visionjsdk.proto.Response.DelegatedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegatedResourceAccountIndexOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceAccountIndex) com.google.protobuf.MessageOrBuilder { /** * bytes account = 1; * @return The account. */ com.google.protobuf.ByteString getAccount(); /** * repeated bytes fromAccounts = 2; * @return A list containing the fromAccounts. */ java.util.List getFromAccountsList(); /** * repeated bytes fromAccounts = 2; * @return The count of fromAccounts. */ int getFromAccountsCount(); /** * repeated bytes fromAccounts = 2; * @param index The index of the element to return. * @return The fromAccounts at the given index. */ com.google.protobuf.ByteString getFromAccounts(int index); /** * repeated bytes toAccounts = 3; * @return A list containing the toAccounts. */ java.util.List getToAccountsList(); /** * repeated bytes toAccounts = 3; * @return The count of toAccounts. */ int getToAccountsCount(); /** * repeated bytes toAccounts = 3; * @param index The index of the element to return. * @return The toAccounts at the given index. */ com.google.protobuf.ByteString getToAccounts(int index); } /** * Protobuf type {@code protocol.DelegatedResourceAccountIndex} */ public static final class DelegatedResourceAccountIndex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DelegatedResourceAccountIndex) DelegatedResourceAccountIndexOrBuilder { private static final long serialVersionUID = 0L; // Use DelegatedResourceAccountIndex.newBuilder() to construct. private DelegatedResourceAccountIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelegatedResourceAccountIndex() { account_ = com.google.protobuf.ByteString.EMPTY; fromAccounts_ = java.util.Collections.emptyList(); toAccounts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegatedResourceAccountIndex(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DelegatedResourceAccountIndex( 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: { account_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fromAccounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fromAccounts_.add(input.readBytes()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { toAccounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } toAccounts_.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)) { fromAccounts_ = java.util.Collections.unmodifiableList(fromAccounts_); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { toAccounts_ = java.util.Collections.unmodifiableList(toAccounts_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.class, org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.Builder.class); } public static final int ACCOUNT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString account_; /** * bytes account = 1; * @return The account. */ @java.lang.Override public com.google.protobuf.ByteString getAccount() { return account_; } public static final int FROMACCOUNTS_FIELD_NUMBER = 2; private java.util.List fromAccounts_; /** * repeated bytes fromAccounts = 2; * @return A list containing the fromAccounts. */ @java.lang.Override public java.util.List getFromAccountsList() { return fromAccounts_; } /** * repeated bytes fromAccounts = 2; * @return The count of fromAccounts. */ public int getFromAccountsCount() { return fromAccounts_.size(); } /** * repeated bytes fromAccounts = 2; * @param index The index of the element to return. * @return The fromAccounts at the given index. */ public com.google.protobuf.ByteString getFromAccounts(int index) { return fromAccounts_.get(index); } public static final int TOACCOUNTS_FIELD_NUMBER = 3; private java.util.List toAccounts_; /** * repeated bytes toAccounts = 3; * @return A list containing the toAccounts. */ @java.lang.Override public java.util.List getToAccountsList() { return toAccounts_; } /** * repeated bytes toAccounts = 3; * @return The count of toAccounts. */ public int getToAccountsCount() { return toAccounts_.size(); } /** * repeated bytes toAccounts = 3; * @param index The index of the element to return. * @return The toAccounts at the given index. */ public com.google.protobuf.ByteString getToAccounts(int index) { return toAccounts_.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 (!account_.isEmpty()) { output.writeBytes(1, account_); } for (int i = 0; i < fromAccounts_.size(); i++) { output.writeBytes(2, fromAccounts_.get(i)); } for (int i = 0; i < toAccounts_.size(); i++) { output.writeBytes(3, toAccounts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!account_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, account_); } { int dataSize = 0; for (int i = 0; i < fromAccounts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(fromAccounts_.get(i)); } size += dataSize; size += 1 * getFromAccountsList().size(); } { int dataSize = 0; for (int i = 0; i < toAccounts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(toAccounts_.get(i)); } size += dataSize; size += 1 * getToAccountsList().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 org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex other = (org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex) obj; if (!getAccount() .equals(other.getAccount())) return false; if (!getFromAccountsList() .equals(other.getFromAccountsList())) return false; if (!getToAccountsList() .equals(other.getToAccountsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAccount().hashCode(); if (getFromAccountsCount() > 0) { hash = (37 * hash) + FROMACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getFromAccountsList().hashCode(); } if (getToAccountsCount() > 0) { hash = (37 * hash) + TOACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getToAccountsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex 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.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex 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.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex 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.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex 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 protocol.DelegatedResourceAccountIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DelegatedResourceAccountIndex) org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.class, org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.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(); account_ = com.google.protobuf.ByteString.EMPTY; fromAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); toAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex build() { org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex buildPartial() { org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex result = new org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex(this); int from_bitField0_ = bitField0_; result.account_ = account_; if (((bitField0_ & 0x00000001) != 0)) { fromAccounts_ = java.util.Collections.unmodifiableList(fromAccounts_); bitField0_ = (bitField0_ & ~0x00000001); } result.fromAccounts_ = fromAccounts_; if (((bitField0_ & 0x00000002) != 0)) { toAccounts_ = java.util.Collections.unmodifiableList(toAccounts_); bitField0_ = (bitField0_ & ~0x00000002); } result.toAccounts_ = toAccounts_; 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.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex) { return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex other) { if (other == org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance()) return this; if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { setAccount(other.getAccount()); } if (!other.fromAccounts_.isEmpty()) { if (fromAccounts_.isEmpty()) { fromAccounts_ = other.fromAccounts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFromAccountsIsMutable(); fromAccounts_.addAll(other.fromAccounts_); } onChanged(); } if (!other.toAccounts_.isEmpty()) { if (toAccounts_.isEmpty()) { toAccounts_ = other.toAccounts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureToAccountsIsMutable(); toAccounts_.addAll(other.toAccounts_); } 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 { org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; /** * bytes account = 1; * @return The account. */ @java.lang.Override public com.google.protobuf.ByteString getAccount() { return account_; } /** * bytes account = 1; * @param value The account to set. * @return This builder for chaining. */ public Builder setAccount(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } account_ = value; onChanged(); return this; } /** * bytes account = 1; * @return This builder for chaining. */ public Builder clearAccount() { account_ = getDefaultInstance().getAccount(); onChanged(); return this; } private java.util.List fromAccounts_ = java.util.Collections.emptyList(); private void ensureFromAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fromAccounts_ = new java.util.ArrayList(fromAccounts_); bitField0_ |= 0x00000001; } } /** * repeated bytes fromAccounts = 2; * @return A list containing the fromAccounts. */ public java.util.List getFromAccountsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(fromAccounts_) : fromAccounts_; } /** * repeated bytes fromAccounts = 2; * @return The count of fromAccounts. */ public int getFromAccountsCount() { return fromAccounts_.size(); } /** * repeated bytes fromAccounts = 2; * @param index The index of the element to return. * @return The fromAccounts at the given index. */ public com.google.protobuf.ByteString getFromAccounts(int index) { return fromAccounts_.get(index); } /** * repeated bytes fromAccounts = 2; * @param index The index to set the value at. * @param value The fromAccounts to set. * @return This builder for chaining. */ public Builder setFromAccounts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureFromAccountsIsMutable(); fromAccounts_.set(index, value); onChanged(); return this; } /** * repeated bytes fromAccounts = 2; * @param value The fromAccounts to add. * @return This builder for chaining. */ public Builder addFromAccounts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureFromAccountsIsMutable(); fromAccounts_.add(value); onChanged(); return this; } /** * repeated bytes fromAccounts = 2; * @param values The fromAccounts to add. * @return This builder for chaining. */ public Builder addAllFromAccounts( java.lang.Iterable values) { ensureFromAccountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fromAccounts_); onChanged(); return this; } /** * repeated bytes fromAccounts = 2; * @return This builder for chaining. */ public Builder clearFromAccounts() { fromAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List toAccounts_ = java.util.Collections.emptyList(); private void ensureToAccountsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { toAccounts_ = new java.util.ArrayList(toAccounts_); bitField0_ |= 0x00000002; } } /** * repeated bytes toAccounts = 3; * @return A list containing the toAccounts. */ public java.util.List getToAccountsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(toAccounts_) : toAccounts_; } /** * repeated bytes toAccounts = 3; * @return The count of toAccounts. */ public int getToAccountsCount() { return toAccounts_.size(); } /** * repeated bytes toAccounts = 3; * @param index The index of the element to return. * @return The toAccounts at the given index. */ public com.google.protobuf.ByteString getToAccounts(int index) { return toAccounts_.get(index); } /** * repeated bytes toAccounts = 3; * @param index The index to set the value at. * @param value The toAccounts to set. * @return This builder for chaining. */ public Builder setToAccounts( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureToAccountsIsMutable(); toAccounts_.set(index, value); onChanged(); return this; } /** * repeated bytes toAccounts = 3; * @param value The toAccounts to add. * @return This builder for chaining. */ public Builder addToAccounts(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureToAccountsIsMutable(); toAccounts_.add(value); onChanged(); return this; } /** * repeated bytes toAccounts = 3; * @param values The toAccounts to add. * @return This builder for chaining. */ public Builder addAllToAccounts( java.lang.Iterable values) { ensureToAccountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, toAccounts_); onChanged(); return this; } /** * repeated bytes toAccounts = 3; * @return This builder for chaining. */ public Builder clearToAccounts() { toAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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:protocol.DelegatedResourceAccountIndex) } // @@protoc_insertion_point(class_scope:protocol.DelegatedResourceAccountIndex) private static final org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex(); } public static org.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelegatedResourceAccountIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DelegatedResourceAccountIndex(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.vision.visionjsdk.proto.Response.DelegatedResourceAccountIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionSignOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionSign) com.google.protobuf.MessageOrBuilder { /** * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * * @return The transaction. */ org.vision.visionjsdk.proto.Chain.Transaction getTransaction(); /** * */ org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(); /** * bytes privateKey = 2; * @return The privateKey. */ com.google.protobuf.ByteString getPrivateKey(); } /** * Protobuf type {@code protocol.TransactionSign} */ public static final class TransactionSign extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionSign) TransactionSignOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionSign.newBuilder() to construct. private TransactionSign(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionSign() { privateKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionSign(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionSign( 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: { org.vision.visionjsdk.proto.Chain.Transaction.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 18: { privateKey_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSign_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSign.class, org.vision.visionjsdk.proto.Response.TransactionSign.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Chain.Transaction transaction_; /** * * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * * @return The transaction. */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * */ @java.lang.Override public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int PRIVATEKEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString privateKey_; /** * bytes privateKey = 2; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } 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 (transaction_ != null) { output.writeMessage(1, getTransaction()); } if (!privateKey_.isEmpty()) { output.writeBytes(2, privateKey_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (!privateKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, privateKey_); } 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.vision.visionjsdk.proto.Response.TransactionSign)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionSign other = (org.vision.visionjsdk.proto.Response.TransactionSign) obj; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!getPrivateKey() .equals(other.getPrivateKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSign 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.vision.visionjsdk.proto.Response.TransactionSign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSign 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.vision.visionjsdk.proto.Response.TransactionSign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSign 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.vision.visionjsdk.proto.Response.TransactionSign 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 protocol.TransactionSign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionSign) org.vision.visionjsdk.proto.Response.TransactionSignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSign_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSign.class, org.vision.visionjsdk.proto.Response.TransactionSign.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionSign.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } privateKey_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSign getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionSign.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSign build() { org.vision.visionjsdk.proto.Response.TransactionSign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSign buildPartial() { org.vision.visionjsdk.proto.Response.TransactionSign result = new org.vision.visionjsdk.proto.Response.TransactionSign(this); if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } result.privateKey_ = privateKey_; 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.vision.visionjsdk.proto.Response.TransactionSign) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionSign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionSign other) { if (other == org.vision.visionjsdk.proto.Response.TransactionSign.getDefaultInstance()) return this; if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) { setPrivateKey(other.getPrivateKey()); } 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.vision.visionjsdk.proto.Response.TransactionSign parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionSign) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * * @return The transaction. */ public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } public Builder setTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } public Builder setTransaction( org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } public Builder mergeTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = org.vision.visionjsdk.proto.Chain.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes privateKey = 2; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } /** * bytes privateKey = 2; * @param value The privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } privateKey_ = value; onChanged(); return this; } /** * bytes privateKey = 2; * @return This builder for chaining. */ public Builder clearPrivateKey() { privateKey_ = getDefaultInstance().getPrivateKey(); 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:protocol.TransactionSign) } // @@protoc_insertion_point(class_scope:protocol.TransactionSign) private static final org.vision.visionjsdk.proto.Response.TransactionSign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionSign(); } public static org.vision.visionjsdk.proto.Response.TransactionSign getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionSign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionSign(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.vision.visionjsdk.proto.Response.TransactionSign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChainParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ChainParameters) com.google.protobuf.MessageOrBuilder { java.util.List getChainParameterList(); org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getChainParameter(int index); int getChainParameterCount(); java.util.List getChainParameterOrBuilderList(); org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder getChainParameterOrBuilder( int index); } /** * Protobuf type {@code protocol.ChainParameters} */ public static final class ChainParameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ChainParameters) ChainParametersOrBuilder { private static final long serialVersionUID = 0L; // Use ChainParameters.newBuilder() to construct. private ChainParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChainParameters() { chainParameter_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChainParameters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChainParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { chainParameter_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } chainParameter_.add( input.readMessage(org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.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)) { chainParameter_ = java.util.Collections.unmodifiableList(chainParameter_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ChainParameters.class, org.vision.visionjsdk.proto.Response.ChainParameters.Builder.class); } public interface ChainParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ChainParameters.ChainParameter) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * int64 value = 2; * @return The value. */ long getValue(); } /** * Protobuf type {@code protocol.ChainParameters.ChainParameter} */ public static final class ChainParameter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ChainParameters.ChainParameter) ChainParameterOrBuilder { private static final long serialVersionUID = 0L; // Use ChainParameter.newBuilder() to construct. private ChainParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChainParameter() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChainParameter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChainParameter( 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: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 16: { value_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.class, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; * @return The key. */ @java.lang.Override 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 = 1; * @return The bytes for key. */ @java.lang.Override 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; } } public static final int VALUE_FIELD_NUMBER = 2; private long value_; /** * int64 value = 2; * @return The value. */ @java.lang.Override public long getValue() { return value_; } 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 (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (value_ != 0L) { output.writeInt64(2, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, value_); } 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter other = (org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter) obj; if (!getKey() .equals(other.getKey())) return false; if (getValue() != other.getValue()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter 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 protocol.ChainParameters.ChainParameter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ChainParameters.ChainParameter) org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.class, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.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(); key_ = ""; value_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter build() { org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter buildPartial() { org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter result = new org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter(this); result.key_ = key_; result.value_ = value_; 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter) { return mergeFrom((org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter other) { if (other == org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.getValue() != 0L) { setValue(other.getValue()); } 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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * string key = 1; * @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 = 1; * @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 = 1; * @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 = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; * @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; } private long value_ ; /** * int64 value = 2; * @return The value. */ @java.lang.Override public long getValue() { return value_; } /** * int64 value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(long value) { value_ = value; onChanged(); return this; } /** * int64 value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = 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:protocol.ChainParameters.ChainParameter) } // @@protoc_insertion_point(class_scope:protocol.ChainParameters.ChainParameter) private static final org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter(); } public static org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChainParameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChainParameter(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.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CHAINPARAMETER_FIELD_NUMBER = 1; private java.util.List chainParameter_; @java.lang.Override public java.util.List getChainParameterList() { return chainParameter_; } @java.lang.Override public java.util.List getChainParameterOrBuilderList() { return chainParameter_; } @java.lang.Override public int getChainParameterCount() { return chainParameter_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getChainParameter(int index) { return chainParameter_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder getChainParameterOrBuilder( int index) { return chainParameter_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chainParameter_.size(); i++) { output.writeMessage(1, chainParameter_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chainParameter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chainParameter_.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.vision.visionjsdk.proto.Response.ChainParameters)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.ChainParameters other = (org.vision.visionjsdk.proto.Response.ChainParameters) obj; if (!getChainParameterList() .equals(other.getChainParameterList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getChainParameterCount() > 0) { hash = (37 * hash) + CHAINPARAMETER_FIELD_NUMBER; hash = (53 * hash) + getChainParameterList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.ChainParameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters 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.vision.visionjsdk.proto.Response.ChainParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters 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.vision.visionjsdk.proto.Response.ChainParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.ChainParameters 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.vision.visionjsdk.proto.Response.ChainParameters 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 protocol.ChainParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ChainParameters) org.vision.visionjsdk.proto.Response.ChainParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.ChainParameters.class, org.vision.visionjsdk.proto.Response.ChainParameters.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.ChainParameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChainParameterFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (chainParameterBuilder_ == null) { chainParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { chainParameterBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.ChainParameters.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters build() { org.vision.visionjsdk.proto.Response.ChainParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.ChainParameters buildPartial() { org.vision.visionjsdk.proto.Response.ChainParameters result = new org.vision.visionjsdk.proto.Response.ChainParameters(this); int from_bitField0_ = bitField0_; if (chainParameterBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chainParameter_ = java.util.Collections.unmodifiableList(chainParameter_); bitField0_ = (bitField0_ & ~0x00000001); } result.chainParameter_ = chainParameter_; } else { result.chainParameter_ = chainParameterBuilder_.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.vision.visionjsdk.proto.Response.ChainParameters) { return mergeFrom((org.vision.visionjsdk.proto.Response.ChainParameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ChainParameters other) { if (other == org.vision.visionjsdk.proto.Response.ChainParameters.getDefaultInstance()) return this; if (chainParameterBuilder_ == null) { if (!other.chainParameter_.isEmpty()) { if (chainParameter_.isEmpty()) { chainParameter_ = other.chainParameter_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChainParameterIsMutable(); chainParameter_.addAll(other.chainParameter_); } onChanged(); } } else { if (!other.chainParameter_.isEmpty()) { if (chainParameterBuilder_.isEmpty()) { chainParameterBuilder_.dispose(); chainParameterBuilder_ = null; chainParameter_ = other.chainParameter_; bitField0_ = (bitField0_ & ~0x00000001); chainParameterBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChainParameterFieldBuilder() : null; } else { chainParameterBuilder_.addAllMessages(other.chainParameter_); } } } 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.vision.visionjsdk.proto.Response.ChainParameters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.ChainParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List chainParameter_ = java.util.Collections.emptyList(); private void ensureChainParameterIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chainParameter_ = new java.util.ArrayList(chainParameter_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder> chainParameterBuilder_; public java.util.List getChainParameterList() { if (chainParameterBuilder_ == null) { return java.util.Collections.unmodifiableList(chainParameter_); } else { return chainParameterBuilder_.getMessageList(); } } public int getChainParameterCount() { if (chainParameterBuilder_ == null) { return chainParameter_.size(); } else { return chainParameterBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter getChainParameter(int index) { if (chainParameterBuilder_ == null) { return chainParameter_.get(index); } else { return chainParameterBuilder_.getMessage(index); } } public Builder setChainParameter( int index, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter value) { if (chainParameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChainParameterIsMutable(); chainParameter_.set(index, value); onChanged(); } else { chainParameterBuilder_.setMessage(index, value); } return this; } public Builder setChainParameter( int index, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.set(index, builderForValue.build()); onChanged(); } else { chainParameterBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addChainParameter(org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter value) { if (chainParameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChainParameterIsMutable(); chainParameter_.add(value); onChanged(); } else { chainParameterBuilder_.addMessage(value); } return this; } public Builder addChainParameter( int index, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter value) { if (chainParameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChainParameterIsMutable(); chainParameter_.add(index, value); onChanged(); } else { chainParameterBuilder_.addMessage(index, value); } return this; } public Builder addChainParameter( org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.add(builderForValue.build()); onChanged(); } else { chainParameterBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addChainParameter( int index, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.add(index, builderForValue.build()); onChanged(); } else { chainParameterBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllChainParameter( java.lang.Iterable values) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chainParameter_); onChanged(); } else { chainParameterBuilder_.addAllMessages(values); } return this; } public Builder clearChainParameter() { if (chainParameterBuilder_ == null) { chainParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chainParameterBuilder_.clear(); } return this; } public Builder removeChainParameter(int index) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.remove(index); onChanged(); } else { chainParameterBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder getChainParameterBuilder( int index) { return getChainParameterFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder getChainParameterOrBuilder( int index) { if (chainParameterBuilder_ == null) { return chainParameter_.get(index); } else { return chainParameterBuilder_.getMessageOrBuilder(index); } } public java.util.List getChainParameterOrBuilderList() { if (chainParameterBuilder_ != null) { return chainParameterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chainParameter_); } } public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder addChainParameterBuilder() { return getChainParameterFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder addChainParameterBuilder( int index) { return getChainParameterFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()); } public java.util.List getChainParameterBuilderList() { return getChainParameterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder> getChainParameterFieldBuilder() { if (chainParameterBuilder_ == null) { chainParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameter.Builder, org.vision.visionjsdk.proto.Response.ChainParameters.ChainParameterOrBuilder>( chainParameter_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); chainParameter_ = null; } return chainParameterBuilder_; } @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:protocol.ChainParameters) } // @@protoc_insertion_point(class_scope:protocol.ChainParameters) private static final org.vision.visionjsdk.proto.Response.ChainParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ChainParameters(); } public static org.vision.visionjsdk.proto.Response.ChainParameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChainParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChainParameters(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.vision.visionjsdk.proto.Response.ChainParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo) com.google.protobuf.MessageOrBuilder { /** * int64 beginSyncNum = 1; * @return The beginSyncNum. */ long getBeginSyncNum(); /** * string block = 2; * @return The block. */ java.lang.String getBlock(); /** * string block = 2; * @return The bytes for block. */ com.google.protobuf.ByteString getBlockBytes(); /** * string solidityBlock = 3; * @return The solidityBlock. */ java.lang.String getSolidityBlock(); /** * string solidityBlock = 3; * @return The bytes for solidityBlock. */ com.google.protobuf.ByteString getSolidityBlockBytes(); /** *
     * connect information
     * 
* * int32 currentConnectCount = 4; * @return The currentConnectCount. */ int getCurrentConnectCount(); /** * int32 activeConnectCount = 5; * @return The activeConnectCount. */ int getActiveConnectCount(); /** * int32 passiveConnectCount = 6; * @return The passiveConnectCount. */ int getPassiveConnectCount(); /** * int64 totalFlow = 7; * @return The totalFlow. */ long getTotalFlow(); java.util.List getPeerInfoListList(); org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index); int getPeerInfoListCount(); java.util.List getPeerInfoListOrBuilderList(); org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder getPeerInfoListOrBuilder( int index); /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return Whether the configNodeInfo field is set. */ boolean hasConfigNodeInfo(); /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return The configNodeInfo. */ org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo(); org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder(); /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return Whether the machineInfo field is set. */ boolean hasMachineInfo(); /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return The machineInfo. */ org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getMachineInfo(); org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder(); int getCheatWitnessInfoMapCount(); boolean containsCheatWitnessInfoMap( java.lang.String key); @java.lang.Deprecated java.util.Map getCheatWitnessInfoMap(); java.util.Map getCheatWitnessInfoMapMap(); java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, java.lang.String defaultValue); java.lang.String getCheatWitnessInfoMapOrThrow( java.lang.String key); } /** * Protobuf type {@code protocol.NodeInfo} */ public static final class NodeInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo) NodeInfoOrBuilder { private static final long serialVersionUID = 0L; // Use NodeInfo.newBuilder() to construct. private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeInfo() { block_ = ""; solidityBlock_ = ""; peerInfoList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { beginSyncNum_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); block_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); solidityBlock_ = s; break; } case 32: { currentConnectCount_ = input.readInt32(); break; } case 40: { activeConnectCount_ = input.readInt32(); break; } case 48: { passiveConnectCount_ = input.readInt32(); break; } case 56: { totalFlow_ = input.readInt64(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { peerInfoList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } peerInfoList_.add( input.readMessage(org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.parser(), extensionRegistry)); break; } case 74: { org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder subBuilder = null; if (configNodeInfo_ != null) { subBuilder = configNodeInfo_.toBuilder(); } configNodeInfo_ = input.readMessage(org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configNodeInfo_); configNodeInfo_ = subBuilder.buildPartial(); } break; } case 82: { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder subBuilder = null; if (machineInfo_ != null) { subBuilder = machineInfo_.toBuilder(); } machineInfo_ = input.readMessage(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(machineInfo_); machineInfo_ = subBuilder.buildPartial(); } break; } case 90: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { cheatWitnessInfoMap_ = com.google.protobuf.MapField.newMapField( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry cheatWitnessInfoMap__ = input.readMessage( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); cheatWitnessInfoMap_.getMutableMap().put( cheatWitnessInfoMap__.getKey(), cheatWitnessInfoMap__.getValue()); 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)) { peerInfoList_ = java.util.Collections.unmodifiableList(peerInfoList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 11: return internalGetCheatWitnessInfoMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.Builder.class); } public interface PeerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo.PeerInfo) com.google.protobuf.MessageOrBuilder { /** * string lastSyncBlock = 1; * @return The lastSyncBlock. */ java.lang.String getLastSyncBlock(); /** * string lastSyncBlock = 1; * @return The bytes for lastSyncBlock. */ com.google.protobuf.ByteString getLastSyncBlockBytes(); /** * int64 remainNum = 2; * @return The remainNum. */ long getRemainNum(); /** * int64 lastBlockUpdateTime = 3; * @return The lastBlockUpdateTime. */ long getLastBlockUpdateTime(); /** * bool syncFlag = 4; * @return The syncFlag. */ boolean getSyncFlag(); /** * int64 headBlockTimeWeBothHave = 5; * @return The headBlockTimeWeBothHave. */ long getHeadBlockTimeWeBothHave(); /** * bool needSyncFromPeer = 6; * @return The needSyncFromPeer. */ boolean getNeedSyncFromPeer(); /** * bool needSyncFromUs = 7; * @return The needSyncFromUs. */ boolean getNeedSyncFromUs(); /** * string host = 8; * @return The host. */ java.lang.String getHost(); /** * string host = 8; * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** * int32 port = 9; * @return The port. */ int getPort(); /** * string nodeId = 10; * @return The nodeId. */ java.lang.String getNodeId(); /** * string nodeId = 10; * @return The bytes for nodeId. */ com.google.protobuf.ByteString getNodeIdBytes(); /** * int64 connectTime = 11; * @return The connectTime. */ long getConnectTime(); /** * double avgLatency = 12; * @return The avgLatency. */ double getAvgLatency(); /** * int32 syncToFetchSize = 13; * @return The syncToFetchSize. */ int getSyncToFetchSize(); /** * int64 syncToFetchSizePeekNum = 14; * @return The syncToFetchSizePeekNum. */ long getSyncToFetchSizePeekNum(); /** * int32 syncBlockRequestedSize = 15; * @return The syncBlockRequestedSize. */ int getSyncBlockRequestedSize(); /** * int64 unFetchSynNum = 16; * @return The unFetchSynNum. */ long getUnFetchSynNum(); /** * int32 blockInPorcSize = 17; * @return The blockInPorcSize. */ int getBlockInPorcSize(); /** * string headBlockWeBothHave = 18; * @return The headBlockWeBothHave. */ java.lang.String getHeadBlockWeBothHave(); /** * string headBlockWeBothHave = 18; * @return The bytes for headBlockWeBothHave. */ com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes(); /** * bool isActive = 19; * @return The isActive. */ boolean getIsActive(); /** * int32 score = 20; * @return The score. */ int getScore(); /** * int32 nodeCount = 21; * @return The nodeCount. */ int getNodeCount(); /** * int64 inFlow = 22; * @return The inFlow. */ long getInFlow(); /** * int32 disconnectTimes = 23; * @return The disconnectTimes. */ int getDisconnectTimes(); /** * string localDisconnectReason = 24; * @return The localDisconnectReason. */ java.lang.String getLocalDisconnectReason(); /** * string localDisconnectReason = 24; * @return The bytes for localDisconnectReason. */ com.google.protobuf.ByteString getLocalDisconnectReasonBytes(); /** * string remoteDisconnectReason = 25; * @return The remoteDisconnectReason. */ java.lang.String getRemoteDisconnectReason(); /** * string remoteDisconnectReason = 25; * @return The bytes for remoteDisconnectReason. */ com.google.protobuf.ByteString getRemoteDisconnectReasonBytes(); } /** * Protobuf type {@code protocol.NodeInfo.PeerInfo} */ public static final class PeerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo.PeerInfo) PeerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use PeerInfo.newBuilder() to construct. private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerInfo() { lastSyncBlock_ = ""; host_ = ""; nodeId_ = ""; headBlockWeBothHave_ = ""; localDisconnectReason_ = ""; remoteDisconnectReason_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PeerInfo( 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: { java.lang.String s = input.readStringRequireUtf8(); lastSyncBlock_ = s; break; } case 16: { remainNum_ = input.readInt64(); break; } case 24: { lastBlockUpdateTime_ = input.readInt64(); break; } case 32: { syncFlag_ = input.readBool(); break; } case 40: { headBlockTimeWeBothHave_ = input.readInt64(); break; } case 48: { needSyncFromPeer_ = input.readBool(); break; } case 56: { needSyncFromUs_ = input.readBool(); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); host_ = s; break; } case 72: { port_ = input.readInt32(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); nodeId_ = s; break; } case 88: { connectTime_ = input.readInt64(); break; } case 97: { avgLatency_ = input.readDouble(); break; } case 104: { syncToFetchSize_ = input.readInt32(); break; } case 112: { syncToFetchSizePeekNum_ = input.readInt64(); break; } case 120: { syncBlockRequestedSize_ = input.readInt32(); break; } case 128: { unFetchSynNum_ = input.readInt64(); break; } case 136: { blockInPorcSize_ = input.readInt32(); break; } case 146: { java.lang.String s = input.readStringRequireUtf8(); headBlockWeBothHave_ = s; break; } case 152: { isActive_ = input.readBool(); break; } case 160: { score_ = input.readInt32(); break; } case 168: { nodeCount_ = input.readInt32(); break; } case 176: { inFlow_ = input.readInt64(); break; } case 184: { disconnectTimes_ = input.readInt32(); break; } case 194: { java.lang.String s = input.readStringRequireUtf8(); localDisconnectReason_ = s; break; } case 202: { java.lang.String s = input.readStringRequireUtf8(); remoteDisconnectReason_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder.class); } public static final int LASTSYNCBLOCK_FIELD_NUMBER = 1; private volatile java.lang.Object lastSyncBlock_; /** * string lastSyncBlock = 1; * @return The lastSyncBlock. */ @java.lang.Override public java.lang.String getLastSyncBlock() { java.lang.Object ref = lastSyncBlock_; 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(); lastSyncBlock_ = s; return s; } } /** * string lastSyncBlock = 1; * @return The bytes for lastSyncBlock. */ @java.lang.Override public com.google.protobuf.ByteString getLastSyncBlockBytes() { java.lang.Object ref = lastSyncBlock_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastSyncBlock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMAINNUM_FIELD_NUMBER = 2; private long remainNum_; /** * int64 remainNum = 2; * @return The remainNum. */ @java.lang.Override public long getRemainNum() { return remainNum_; } public static final int LASTBLOCKUPDATETIME_FIELD_NUMBER = 3; private long lastBlockUpdateTime_; /** * int64 lastBlockUpdateTime = 3; * @return The lastBlockUpdateTime. */ @java.lang.Override public long getLastBlockUpdateTime() { return lastBlockUpdateTime_; } public static final int SYNCFLAG_FIELD_NUMBER = 4; private boolean syncFlag_; /** * bool syncFlag = 4; * @return The syncFlag. */ @java.lang.Override public boolean getSyncFlag() { return syncFlag_; } public static final int HEADBLOCKTIMEWEBOTHHAVE_FIELD_NUMBER = 5; private long headBlockTimeWeBothHave_; /** * int64 headBlockTimeWeBothHave = 5; * @return The headBlockTimeWeBothHave. */ @java.lang.Override public long getHeadBlockTimeWeBothHave() { return headBlockTimeWeBothHave_; } public static final int NEEDSYNCFROMPEER_FIELD_NUMBER = 6; private boolean needSyncFromPeer_; /** * bool needSyncFromPeer = 6; * @return The needSyncFromPeer. */ @java.lang.Override public boolean getNeedSyncFromPeer() { return needSyncFromPeer_; } public static final int NEEDSYNCFROMUS_FIELD_NUMBER = 7; private boolean needSyncFromUs_; /** * bool needSyncFromUs = 7; * @return The needSyncFromUs. */ @java.lang.Override public boolean getNeedSyncFromUs() { return needSyncFromUs_; } public static final int HOST_FIELD_NUMBER = 8; private volatile java.lang.Object host_; /** * string host = 8; * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; } } /** * string host = 8; * @return The bytes for host. */ @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 9; private int port_; /** * int32 port = 9; * @return The port. */ @java.lang.Override public int getPort() { return port_; } public static final int NODEID_FIELD_NUMBER = 10; private volatile java.lang.Object nodeId_; /** * string nodeId = 10; * @return The nodeId. */ @java.lang.Override public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; 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(); nodeId_ = s; return s; } } /** * string nodeId = 10; * @return The bytes for nodeId. */ @java.lang.Override public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONNECTTIME_FIELD_NUMBER = 11; private long connectTime_; /** * int64 connectTime = 11; * @return The connectTime. */ @java.lang.Override public long getConnectTime() { return connectTime_; } public static final int AVGLATENCY_FIELD_NUMBER = 12; private double avgLatency_; /** * double avgLatency = 12; * @return The avgLatency. */ @java.lang.Override public double getAvgLatency() { return avgLatency_; } public static final int SYNCTOFETCHSIZE_FIELD_NUMBER = 13; private int syncToFetchSize_; /** * int32 syncToFetchSize = 13; * @return The syncToFetchSize. */ @java.lang.Override public int getSyncToFetchSize() { return syncToFetchSize_; } public static final int SYNCTOFETCHSIZEPEEKNUM_FIELD_NUMBER = 14; private long syncToFetchSizePeekNum_; /** * int64 syncToFetchSizePeekNum = 14; * @return The syncToFetchSizePeekNum. */ @java.lang.Override public long getSyncToFetchSizePeekNum() { return syncToFetchSizePeekNum_; } public static final int SYNCBLOCKREQUESTEDSIZE_FIELD_NUMBER = 15; private int syncBlockRequestedSize_; /** * int32 syncBlockRequestedSize = 15; * @return The syncBlockRequestedSize. */ @java.lang.Override public int getSyncBlockRequestedSize() { return syncBlockRequestedSize_; } public static final int UNFETCHSYNNUM_FIELD_NUMBER = 16; private long unFetchSynNum_; /** * int64 unFetchSynNum = 16; * @return The unFetchSynNum. */ @java.lang.Override public long getUnFetchSynNum() { return unFetchSynNum_; } public static final int BLOCKINPORCSIZE_FIELD_NUMBER = 17; private int blockInPorcSize_; /** * int32 blockInPorcSize = 17; * @return The blockInPorcSize. */ @java.lang.Override public int getBlockInPorcSize() { return blockInPorcSize_; } public static final int HEADBLOCKWEBOTHHAVE_FIELD_NUMBER = 18; private volatile java.lang.Object headBlockWeBothHave_; /** * string headBlockWeBothHave = 18; * @return The headBlockWeBothHave. */ @java.lang.Override public java.lang.String getHeadBlockWeBothHave() { java.lang.Object ref = headBlockWeBothHave_; 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(); headBlockWeBothHave_ = s; return s; } } /** * string headBlockWeBothHave = 18; * @return The bytes for headBlockWeBothHave. */ @java.lang.Override public com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes() { java.lang.Object ref = headBlockWeBothHave_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headBlockWeBothHave_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISACTIVE_FIELD_NUMBER = 19; private boolean isActive_; /** * bool isActive = 19; * @return The isActive. */ @java.lang.Override public boolean getIsActive() { return isActive_; } public static final int SCORE_FIELD_NUMBER = 20; private int score_; /** * int32 score = 20; * @return The score. */ @java.lang.Override public int getScore() { return score_; } public static final int NODECOUNT_FIELD_NUMBER = 21; private int nodeCount_; /** * int32 nodeCount = 21; * @return The nodeCount. */ @java.lang.Override public int getNodeCount() { return nodeCount_; } public static final int INFLOW_FIELD_NUMBER = 22; private long inFlow_; /** * int64 inFlow = 22; * @return The inFlow. */ @java.lang.Override public long getInFlow() { return inFlow_; } public static final int DISCONNECTTIMES_FIELD_NUMBER = 23; private int disconnectTimes_; /** * int32 disconnectTimes = 23; * @return The disconnectTimes. */ @java.lang.Override public int getDisconnectTimes() { return disconnectTimes_; } public static final int LOCALDISCONNECTREASON_FIELD_NUMBER = 24; private volatile java.lang.Object localDisconnectReason_; /** * string localDisconnectReason = 24; * @return The localDisconnectReason. */ @java.lang.Override public java.lang.String getLocalDisconnectReason() { java.lang.Object ref = localDisconnectReason_; 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(); localDisconnectReason_ = s; return s; } } /** * string localDisconnectReason = 24; * @return The bytes for localDisconnectReason. */ @java.lang.Override public com.google.protobuf.ByteString getLocalDisconnectReasonBytes() { java.lang.Object ref = localDisconnectReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localDisconnectReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMOTEDISCONNECTREASON_FIELD_NUMBER = 25; private volatile java.lang.Object remoteDisconnectReason_; /** * string remoteDisconnectReason = 25; * @return The remoteDisconnectReason. */ @java.lang.Override public java.lang.String getRemoteDisconnectReason() { java.lang.Object ref = remoteDisconnectReason_; 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(); remoteDisconnectReason_ = s; return s; } } /** * string remoteDisconnectReason = 25; * @return The bytes for remoteDisconnectReason. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteDisconnectReasonBytes() { java.lang.Object ref = remoteDisconnectReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteDisconnectReason_ = 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 (!getLastSyncBlockBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastSyncBlock_); } if (remainNum_ != 0L) { output.writeInt64(2, remainNum_); } if (lastBlockUpdateTime_ != 0L) { output.writeInt64(3, lastBlockUpdateTime_); } if (syncFlag_ != false) { output.writeBool(4, syncFlag_); } if (headBlockTimeWeBothHave_ != 0L) { output.writeInt64(5, headBlockTimeWeBothHave_); } if (needSyncFromPeer_ != false) { output.writeBool(6, needSyncFromPeer_); } if (needSyncFromUs_ != false) { output.writeBool(7, needSyncFromUs_); } if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, host_); } if (port_ != 0) { output.writeInt32(9, port_); } if (!getNodeIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeId_); } if (connectTime_ != 0L) { output.writeInt64(11, connectTime_); } if (avgLatency_ != 0D) { output.writeDouble(12, avgLatency_); } if (syncToFetchSize_ != 0) { output.writeInt32(13, syncToFetchSize_); } if (syncToFetchSizePeekNum_ != 0L) { output.writeInt64(14, syncToFetchSizePeekNum_); } if (syncBlockRequestedSize_ != 0) { output.writeInt32(15, syncBlockRequestedSize_); } if (unFetchSynNum_ != 0L) { output.writeInt64(16, unFetchSynNum_); } if (blockInPorcSize_ != 0) { output.writeInt32(17, blockInPorcSize_); } if (!getHeadBlockWeBothHaveBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, headBlockWeBothHave_); } if (isActive_ != false) { output.writeBool(19, isActive_); } if (score_ != 0) { output.writeInt32(20, score_); } if (nodeCount_ != 0) { output.writeInt32(21, nodeCount_); } if (inFlow_ != 0L) { output.writeInt64(22, inFlow_); } if (disconnectTimes_ != 0) { output.writeInt32(23, disconnectTimes_); } if (!getLocalDisconnectReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, localDisconnectReason_); } if (!getRemoteDisconnectReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, remoteDisconnectReason_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLastSyncBlockBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastSyncBlock_); } if (remainNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, remainNum_); } if (lastBlockUpdateTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, lastBlockUpdateTime_); } if (syncFlag_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, syncFlag_); } if (headBlockTimeWeBothHave_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, headBlockTimeWeBothHave_); } if (needSyncFromPeer_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, needSyncFromPeer_); } if (needSyncFromUs_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, needSyncFromUs_); } if (!getHostBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, host_); } if (port_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, port_); } if (!getNodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeId_); } if (connectTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, connectTime_); } if (avgLatency_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, avgLatency_); } if (syncToFetchSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, syncToFetchSize_); } if (syncToFetchSizePeekNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, syncToFetchSizePeekNum_); } if (syncBlockRequestedSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, syncBlockRequestedSize_); } if (unFetchSynNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, unFetchSynNum_); } if (blockInPorcSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, blockInPorcSize_); } if (!getHeadBlockWeBothHaveBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, headBlockWeBothHave_); } if (isActive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, isActive_); } if (score_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(20, score_); } if (nodeCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(21, nodeCount_); } if (inFlow_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, inFlow_); } if (disconnectTimes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(23, disconnectTimes_); } if (!getLocalDisconnectReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, localDisconnectReason_); } if (!getRemoteDisconnectReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, remoteDisconnectReason_); } 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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo) obj; if (!getLastSyncBlock() .equals(other.getLastSyncBlock())) return false; if (getRemainNum() != other.getRemainNum()) return false; if (getLastBlockUpdateTime() != other.getLastBlockUpdateTime()) return false; if (getSyncFlag() != other.getSyncFlag()) return false; if (getHeadBlockTimeWeBothHave() != other.getHeadBlockTimeWeBothHave()) return false; if (getNeedSyncFromPeer() != other.getNeedSyncFromPeer()) return false; if (getNeedSyncFromUs() != other.getNeedSyncFromUs()) return false; if (!getHost() .equals(other.getHost())) return false; if (getPort() != other.getPort()) return false; if (!getNodeId() .equals(other.getNodeId())) return false; if (getConnectTime() != other.getConnectTime()) return false; if (java.lang.Double.doubleToLongBits(getAvgLatency()) != java.lang.Double.doubleToLongBits( other.getAvgLatency())) return false; if (getSyncToFetchSize() != other.getSyncToFetchSize()) return false; if (getSyncToFetchSizePeekNum() != other.getSyncToFetchSizePeekNum()) return false; if (getSyncBlockRequestedSize() != other.getSyncBlockRequestedSize()) return false; if (getUnFetchSynNum() != other.getUnFetchSynNum()) return false; if (getBlockInPorcSize() != other.getBlockInPorcSize()) return false; if (!getHeadBlockWeBothHave() .equals(other.getHeadBlockWeBothHave())) return false; if (getIsActive() != other.getIsActive()) return false; if (getScore() != other.getScore()) return false; if (getNodeCount() != other.getNodeCount()) return false; if (getInFlow() != other.getInFlow()) return false; if (getDisconnectTimes() != other.getDisconnectTimes()) return false; if (!getLocalDisconnectReason() .equals(other.getLocalDisconnectReason())) return false; if (!getRemoteDisconnectReason() .equals(other.getRemoteDisconnectReason())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LASTSYNCBLOCK_FIELD_NUMBER; hash = (53 * hash) + getLastSyncBlock().hashCode(); hash = (37 * hash) + REMAINNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRemainNum()); hash = (37 * hash) + LASTBLOCKUPDATETIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastBlockUpdateTime()); hash = (37 * hash) + SYNCFLAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncFlag()); hash = (37 * hash) + HEADBLOCKTIMEWEBOTHHAVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeadBlockTimeWeBothHave()); hash = (37 * hash) + NEEDSYNCFROMPEER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNeedSyncFromPeer()); hash = (37 * hash) + NEEDSYNCFROMUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNeedSyncFromUs()); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (37 * hash) + NODEID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); hash = (37 * hash) + CONNECTTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConnectTime()); hash = (37 * hash) + AVGLATENCY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAvgLatency())); hash = (37 * hash) + SYNCTOFETCHSIZE_FIELD_NUMBER; hash = (53 * hash) + getSyncToFetchSize(); hash = (37 * hash) + SYNCTOFETCHSIZEPEEKNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSyncToFetchSizePeekNum()); hash = (37 * hash) + SYNCBLOCKREQUESTEDSIZE_FIELD_NUMBER; hash = (53 * hash) + getSyncBlockRequestedSize(); hash = (37 * hash) + UNFETCHSYNNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnFetchSynNum()); hash = (37 * hash) + BLOCKINPORCSIZE_FIELD_NUMBER; hash = (53 * hash) + getBlockInPorcSize(); hash = (37 * hash) + HEADBLOCKWEBOTHHAVE_FIELD_NUMBER; hash = (53 * hash) + getHeadBlockWeBothHave().hashCode(); hash = (37 * hash) + ISACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsActive()); hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + getScore(); hash = (37 * hash) + NODECOUNT_FIELD_NUMBER; hash = (53 * hash) + getNodeCount(); hash = (37 * hash) + INFLOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInFlow()); hash = (37 * hash) + DISCONNECTTIMES_FIELD_NUMBER; hash = (53 * hash) + getDisconnectTimes(); hash = (37 * hash) + LOCALDISCONNECTREASON_FIELD_NUMBER; hash = (53 * hash) + getLocalDisconnectReason().hashCode(); hash = (37 * hash) + REMOTEDISCONNECTREASON_FIELD_NUMBER; hash = (53 * hash) + getRemoteDisconnectReason().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo 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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo 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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo 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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo 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 protocol.NodeInfo.PeerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo.PeerInfo) org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.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(); lastSyncBlock_ = ""; remainNum_ = 0L; lastBlockUpdateTime_ = 0L; syncFlag_ = false; headBlockTimeWeBothHave_ = 0L; needSyncFromPeer_ = false; needSyncFromUs_ = false; host_ = ""; port_ = 0; nodeId_ = ""; connectTime_ = 0L; avgLatency_ = 0D; syncToFetchSize_ = 0; syncToFetchSizePeekNum_ = 0L; syncBlockRequestedSize_ = 0; unFetchSynNum_ = 0L; blockInPorcSize_ = 0; headBlockWeBothHave_ = ""; isActive_ = false; score_ = 0; nodeCount_ = 0; inFlow_ = 0L; disconnectTimes_ = 0; localDisconnectReason_ = ""; remoteDisconnectReason_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo(this); result.lastSyncBlock_ = lastSyncBlock_; result.remainNum_ = remainNum_; result.lastBlockUpdateTime_ = lastBlockUpdateTime_; result.syncFlag_ = syncFlag_; result.headBlockTimeWeBothHave_ = headBlockTimeWeBothHave_; result.needSyncFromPeer_ = needSyncFromPeer_; result.needSyncFromUs_ = needSyncFromUs_; result.host_ = host_; result.port_ = port_; result.nodeId_ = nodeId_; result.connectTime_ = connectTime_; result.avgLatency_ = avgLatency_; result.syncToFetchSize_ = syncToFetchSize_; result.syncToFetchSizePeekNum_ = syncToFetchSizePeekNum_; result.syncBlockRequestedSize_ = syncBlockRequestedSize_; result.unFetchSynNum_ = unFetchSynNum_; result.blockInPorcSize_ = blockInPorcSize_; result.headBlockWeBothHave_ = headBlockWeBothHave_; result.isActive_ = isActive_; result.score_ = score_; result.nodeCount_ = nodeCount_; result.inFlow_ = inFlow_; result.disconnectTimes_ = disconnectTimes_; result.localDisconnectReason_ = localDisconnectReason_; result.remoteDisconnectReason_ = remoteDisconnectReason_; 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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()) return this; if (!other.getLastSyncBlock().isEmpty()) { lastSyncBlock_ = other.lastSyncBlock_; onChanged(); } if (other.getRemainNum() != 0L) { setRemainNum(other.getRemainNum()); } if (other.getLastBlockUpdateTime() != 0L) { setLastBlockUpdateTime(other.getLastBlockUpdateTime()); } if (other.getSyncFlag() != false) { setSyncFlag(other.getSyncFlag()); } if (other.getHeadBlockTimeWeBothHave() != 0L) { setHeadBlockTimeWeBothHave(other.getHeadBlockTimeWeBothHave()); } if (other.getNeedSyncFromPeer() != false) { setNeedSyncFromPeer(other.getNeedSyncFromPeer()); } if (other.getNeedSyncFromUs() != false) { setNeedSyncFromUs(other.getNeedSyncFromUs()); } if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } if (!other.getNodeId().isEmpty()) { nodeId_ = other.nodeId_; onChanged(); } if (other.getConnectTime() != 0L) { setConnectTime(other.getConnectTime()); } if (other.getAvgLatency() != 0D) { setAvgLatency(other.getAvgLatency()); } if (other.getSyncToFetchSize() != 0) { setSyncToFetchSize(other.getSyncToFetchSize()); } if (other.getSyncToFetchSizePeekNum() != 0L) { setSyncToFetchSizePeekNum(other.getSyncToFetchSizePeekNum()); } if (other.getSyncBlockRequestedSize() != 0) { setSyncBlockRequestedSize(other.getSyncBlockRequestedSize()); } if (other.getUnFetchSynNum() != 0L) { setUnFetchSynNum(other.getUnFetchSynNum()); } if (other.getBlockInPorcSize() != 0) { setBlockInPorcSize(other.getBlockInPorcSize()); } if (!other.getHeadBlockWeBothHave().isEmpty()) { headBlockWeBothHave_ = other.headBlockWeBothHave_; onChanged(); } if (other.getIsActive() != false) { setIsActive(other.getIsActive()); } if (other.getScore() != 0) { setScore(other.getScore()); } if (other.getNodeCount() != 0) { setNodeCount(other.getNodeCount()); } if (other.getInFlow() != 0L) { setInFlow(other.getInFlow()); } if (other.getDisconnectTimes() != 0) { setDisconnectTimes(other.getDisconnectTimes()); } if (!other.getLocalDisconnectReason().isEmpty()) { localDisconnectReason_ = other.localDisconnectReason_; onChanged(); } if (!other.getRemoteDisconnectReason().isEmpty()) { remoteDisconnectReason_ = other.remoteDisconnectReason_; 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 { org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object lastSyncBlock_ = ""; /** * string lastSyncBlock = 1; * @return The lastSyncBlock. */ public java.lang.String getLastSyncBlock() { java.lang.Object ref = lastSyncBlock_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSyncBlock_ = s; return s; } else { return (java.lang.String) ref; } } /** * string lastSyncBlock = 1; * @return The bytes for lastSyncBlock. */ public com.google.protobuf.ByteString getLastSyncBlockBytes() { java.lang.Object ref = lastSyncBlock_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastSyncBlock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string lastSyncBlock = 1; * @param value The lastSyncBlock to set. * @return This builder for chaining. */ public Builder setLastSyncBlock( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lastSyncBlock_ = value; onChanged(); return this; } /** * string lastSyncBlock = 1; * @return This builder for chaining. */ public Builder clearLastSyncBlock() { lastSyncBlock_ = getDefaultInstance().getLastSyncBlock(); onChanged(); return this; } /** * string lastSyncBlock = 1; * @param value The bytes for lastSyncBlock to set. * @return This builder for chaining. */ public Builder setLastSyncBlockBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastSyncBlock_ = value; onChanged(); return this; } private long remainNum_ ; /** * int64 remainNum = 2; * @return The remainNum. */ @java.lang.Override public long getRemainNum() { return remainNum_; } /** * int64 remainNum = 2; * @param value The remainNum to set. * @return This builder for chaining. */ public Builder setRemainNum(long value) { remainNum_ = value; onChanged(); return this; } /** * int64 remainNum = 2; * @return This builder for chaining. */ public Builder clearRemainNum() { remainNum_ = 0L; onChanged(); return this; } private long lastBlockUpdateTime_ ; /** * int64 lastBlockUpdateTime = 3; * @return The lastBlockUpdateTime. */ @java.lang.Override public long getLastBlockUpdateTime() { return lastBlockUpdateTime_; } /** * int64 lastBlockUpdateTime = 3; * @param value The lastBlockUpdateTime to set. * @return This builder for chaining. */ public Builder setLastBlockUpdateTime(long value) { lastBlockUpdateTime_ = value; onChanged(); return this; } /** * int64 lastBlockUpdateTime = 3; * @return This builder for chaining. */ public Builder clearLastBlockUpdateTime() { lastBlockUpdateTime_ = 0L; onChanged(); return this; } private boolean syncFlag_ ; /** * bool syncFlag = 4; * @return The syncFlag. */ @java.lang.Override public boolean getSyncFlag() { return syncFlag_; } /** * bool syncFlag = 4; * @param value The syncFlag to set. * @return This builder for chaining. */ public Builder setSyncFlag(boolean value) { syncFlag_ = value; onChanged(); return this; } /** * bool syncFlag = 4; * @return This builder for chaining. */ public Builder clearSyncFlag() { syncFlag_ = false; onChanged(); return this; } private long headBlockTimeWeBothHave_ ; /** * int64 headBlockTimeWeBothHave = 5; * @return The headBlockTimeWeBothHave. */ @java.lang.Override public long getHeadBlockTimeWeBothHave() { return headBlockTimeWeBothHave_; } /** * int64 headBlockTimeWeBothHave = 5; * @param value The headBlockTimeWeBothHave to set. * @return This builder for chaining. */ public Builder setHeadBlockTimeWeBothHave(long value) { headBlockTimeWeBothHave_ = value; onChanged(); return this; } /** * int64 headBlockTimeWeBothHave = 5; * @return This builder for chaining. */ public Builder clearHeadBlockTimeWeBothHave() { headBlockTimeWeBothHave_ = 0L; onChanged(); return this; } private boolean needSyncFromPeer_ ; /** * bool needSyncFromPeer = 6; * @return The needSyncFromPeer. */ @java.lang.Override public boolean getNeedSyncFromPeer() { return needSyncFromPeer_; } /** * bool needSyncFromPeer = 6; * @param value The needSyncFromPeer to set. * @return This builder for chaining. */ public Builder setNeedSyncFromPeer(boolean value) { needSyncFromPeer_ = value; onChanged(); return this; } /** * bool needSyncFromPeer = 6; * @return This builder for chaining. */ public Builder clearNeedSyncFromPeer() { needSyncFromPeer_ = false; onChanged(); return this; } private boolean needSyncFromUs_ ; /** * bool needSyncFromUs = 7; * @return The needSyncFromUs. */ @java.lang.Override public boolean getNeedSyncFromUs() { return needSyncFromUs_; } /** * bool needSyncFromUs = 7; * @param value The needSyncFromUs to set. * @return This builder for chaining. */ public Builder setNeedSyncFromUs(boolean value) { needSyncFromUs_ = value; onChanged(); return this; } /** * bool needSyncFromUs = 7; * @return This builder for chaining. */ public Builder clearNeedSyncFromUs() { needSyncFromUs_ = false; onChanged(); return this; } private java.lang.Object host_ = ""; /** * string host = 8; * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * string host = 8; * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string host = 8; * @param value The host to set. * @return This builder for chaining. */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /** * string host = 8; * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * string host = 8; * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; } private int port_ ; /** * int32 port = 9; * @return The port. */ @java.lang.Override public int getPort() { return port_; } /** * int32 port = 9; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { port_ = value; onChanged(); return this; } /** * int32 port = 9; * @return This builder for chaining. */ public Builder clearPort() { port_ = 0; onChanged(); return this; } private java.lang.Object nodeId_ = ""; /** * string nodeId = 10; * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string nodeId = 10; * @return The bytes for nodeId. */ public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string nodeId = 10; * @param value The nodeId to set. * @return This builder for chaining. */ public Builder setNodeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeId_ = value; onChanged(); return this; } /** * string nodeId = 10; * @return This builder for chaining. */ public Builder clearNodeId() { nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** * string nodeId = 10; * @param value The bytes for nodeId to set. * @return This builder for chaining. */ public Builder setNodeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeId_ = value; onChanged(); return this; } private long connectTime_ ; /** * int64 connectTime = 11; * @return The connectTime. */ @java.lang.Override public long getConnectTime() { return connectTime_; } /** * int64 connectTime = 11; * @param value The connectTime to set. * @return This builder for chaining. */ public Builder setConnectTime(long value) { connectTime_ = value; onChanged(); return this; } /** * int64 connectTime = 11; * @return This builder for chaining. */ public Builder clearConnectTime() { connectTime_ = 0L; onChanged(); return this; } private double avgLatency_ ; /** * double avgLatency = 12; * @return The avgLatency. */ @java.lang.Override public double getAvgLatency() { return avgLatency_; } /** * double avgLatency = 12; * @param value The avgLatency to set. * @return This builder for chaining. */ public Builder setAvgLatency(double value) { avgLatency_ = value; onChanged(); return this; } /** * double avgLatency = 12; * @return This builder for chaining. */ public Builder clearAvgLatency() { avgLatency_ = 0D; onChanged(); return this; } private int syncToFetchSize_ ; /** * int32 syncToFetchSize = 13; * @return The syncToFetchSize. */ @java.lang.Override public int getSyncToFetchSize() { return syncToFetchSize_; } /** * int32 syncToFetchSize = 13; * @param value The syncToFetchSize to set. * @return This builder for chaining. */ public Builder setSyncToFetchSize(int value) { syncToFetchSize_ = value; onChanged(); return this; } /** * int32 syncToFetchSize = 13; * @return This builder for chaining. */ public Builder clearSyncToFetchSize() { syncToFetchSize_ = 0; onChanged(); return this; } private long syncToFetchSizePeekNum_ ; /** * int64 syncToFetchSizePeekNum = 14; * @return The syncToFetchSizePeekNum. */ @java.lang.Override public long getSyncToFetchSizePeekNum() { return syncToFetchSizePeekNum_; } /** * int64 syncToFetchSizePeekNum = 14; * @param value The syncToFetchSizePeekNum to set. * @return This builder for chaining. */ public Builder setSyncToFetchSizePeekNum(long value) { syncToFetchSizePeekNum_ = value; onChanged(); return this; } /** * int64 syncToFetchSizePeekNum = 14; * @return This builder for chaining. */ public Builder clearSyncToFetchSizePeekNum() { syncToFetchSizePeekNum_ = 0L; onChanged(); return this; } private int syncBlockRequestedSize_ ; /** * int32 syncBlockRequestedSize = 15; * @return The syncBlockRequestedSize. */ @java.lang.Override public int getSyncBlockRequestedSize() { return syncBlockRequestedSize_; } /** * int32 syncBlockRequestedSize = 15; * @param value The syncBlockRequestedSize to set. * @return This builder for chaining. */ public Builder setSyncBlockRequestedSize(int value) { syncBlockRequestedSize_ = value; onChanged(); return this; } /** * int32 syncBlockRequestedSize = 15; * @return This builder for chaining. */ public Builder clearSyncBlockRequestedSize() { syncBlockRequestedSize_ = 0; onChanged(); return this; } private long unFetchSynNum_ ; /** * int64 unFetchSynNum = 16; * @return The unFetchSynNum. */ @java.lang.Override public long getUnFetchSynNum() { return unFetchSynNum_; } /** * int64 unFetchSynNum = 16; * @param value The unFetchSynNum to set. * @return This builder for chaining. */ public Builder setUnFetchSynNum(long value) { unFetchSynNum_ = value; onChanged(); return this; } /** * int64 unFetchSynNum = 16; * @return This builder for chaining. */ public Builder clearUnFetchSynNum() { unFetchSynNum_ = 0L; onChanged(); return this; } private int blockInPorcSize_ ; /** * int32 blockInPorcSize = 17; * @return The blockInPorcSize. */ @java.lang.Override public int getBlockInPorcSize() { return blockInPorcSize_; } /** * int32 blockInPorcSize = 17; * @param value The blockInPorcSize to set. * @return This builder for chaining. */ public Builder setBlockInPorcSize(int value) { blockInPorcSize_ = value; onChanged(); return this; } /** * int32 blockInPorcSize = 17; * @return This builder for chaining. */ public Builder clearBlockInPorcSize() { blockInPorcSize_ = 0; onChanged(); return this; } private java.lang.Object headBlockWeBothHave_ = ""; /** * string headBlockWeBothHave = 18; * @return The headBlockWeBothHave. */ public java.lang.String getHeadBlockWeBothHave() { java.lang.Object ref = headBlockWeBothHave_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headBlockWeBothHave_ = s; return s; } else { return (java.lang.String) ref; } } /** * string headBlockWeBothHave = 18; * @return The bytes for headBlockWeBothHave. */ public com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes() { java.lang.Object ref = headBlockWeBothHave_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headBlockWeBothHave_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string headBlockWeBothHave = 18; * @param value The headBlockWeBothHave to set. * @return This builder for chaining. */ public Builder setHeadBlockWeBothHave( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headBlockWeBothHave_ = value; onChanged(); return this; } /** * string headBlockWeBothHave = 18; * @return This builder for chaining. */ public Builder clearHeadBlockWeBothHave() { headBlockWeBothHave_ = getDefaultInstance().getHeadBlockWeBothHave(); onChanged(); return this; } /** * string headBlockWeBothHave = 18; * @param value The bytes for headBlockWeBothHave to set. * @return This builder for chaining. */ public Builder setHeadBlockWeBothHaveBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headBlockWeBothHave_ = value; onChanged(); return this; } private boolean isActive_ ; /** * bool isActive = 19; * @return The isActive. */ @java.lang.Override public boolean getIsActive() { return isActive_; } /** * bool isActive = 19; * @param value The isActive to set. * @return This builder for chaining. */ public Builder setIsActive(boolean value) { isActive_ = value; onChanged(); return this; } /** * bool isActive = 19; * @return This builder for chaining. */ public Builder clearIsActive() { isActive_ = false; onChanged(); return this; } private int score_ ; /** * int32 score = 20; * @return The score. */ @java.lang.Override public int getScore() { return score_; } /** * int32 score = 20; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(int value) { score_ = value; onChanged(); return this; } /** * int32 score = 20; * @return This builder for chaining. */ public Builder clearScore() { score_ = 0; onChanged(); return this; } private int nodeCount_ ; /** * int32 nodeCount = 21; * @return The nodeCount. */ @java.lang.Override public int getNodeCount() { return nodeCount_; } /** * int32 nodeCount = 21; * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { nodeCount_ = value; onChanged(); return this; } /** * int32 nodeCount = 21; * @return This builder for chaining. */ public Builder clearNodeCount() { nodeCount_ = 0; onChanged(); return this; } private long inFlow_ ; /** * int64 inFlow = 22; * @return The inFlow. */ @java.lang.Override public long getInFlow() { return inFlow_; } /** * int64 inFlow = 22; * @param value The inFlow to set. * @return This builder for chaining. */ public Builder setInFlow(long value) { inFlow_ = value; onChanged(); return this; } /** * int64 inFlow = 22; * @return This builder for chaining. */ public Builder clearInFlow() { inFlow_ = 0L; onChanged(); return this; } private int disconnectTimes_ ; /** * int32 disconnectTimes = 23; * @return The disconnectTimes. */ @java.lang.Override public int getDisconnectTimes() { return disconnectTimes_; } /** * int32 disconnectTimes = 23; * @param value The disconnectTimes to set. * @return This builder for chaining. */ public Builder setDisconnectTimes(int value) { disconnectTimes_ = value; onChanged(); return this; } /** * int32 disconnectTimes = 23; * @return This builder for chaining. */ public Builder clearDisconnectTimes() { disconnectTimes_ = 0; onChanged(); return this; } private java.lang.Object localDisconnectReason_ = ""; /** * string localDisconnectReason = 24; * @return The localDisconnectReason. */ public java.lang.String getLocalDisconnectReason() { java.lang.Object ref = localDisconnectReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); localDisconnectReason_ = s; return s; } else { return (java.lang.String) ref; } } /** * string localDisconnectReason = 24; * @return The bytes for localDisconnectReason. */ public com.google.protobuf.ByteString getLocalDisconnectReasonBytes() { java.lang.Object ref = localDisconnectReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localDisconnectReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string localDisconnectReason = 24; * @param value The localDisconnectReason to set. * @return This builder for chaining. */ public Builder setLocalDisconnectReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } localDisconnectReason_ = value; onChanged(); return this; } /** * string localDisconnectReason = 24; * @return This builder for chaining. */ public Builder clearLocalDisconnectReason() { localDisconnectReason_ = getDefaultInstance().getLocalDisconnectReason(); onChanged(); return this; } /** * string localDisconnectReason = 24; * @param value The bytes for localDisconnectReason to set. * @return This builder for chaining. */ public Builder setLocalDisconnectReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); localDisconnectReason_ = value; onChanged(); return this; } private java.lang.Object remoteDisconnectReason_ = ""; /** * string remoteDisconnectReason = 25; * @return The remoteDisconnectReason. */ public java.lang.String getRemoteDisconnectReason() { java.lang.Object ref = remoteDisconnectReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remoteDisconnectReason_ = s; return s; } else { return (java.lang.String) ref; } } /** * string remoteDisconnectReason = 25; * @return The bytes for remoteDisconnectReason. */ public com.google.protobuf.ByteString getRemoteDisconnectReasonBytes() { java.lang.Object ref = remoteDisconnectReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteDisconnectReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string remoteDisconnectReason = 25; * @param value The remoteDisconnectReason to set. * @return This builder for chaining. */ public Builder setRemoteDisconnectReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } remoteDisconnectReason_ = value; onChanged(); return this; } /** * string remoteDisconnectReason = 25; * @return This builder for chaining. */ public Builder clearRemoteDisconnectReason() { remoteDisconnectReason_ = getDefaultInstance().getRemoteDisconnectReason(); onChanged(); return this; } /** * string remoteDisconnectReason = 25; * @param value The bytes for remoteDisconnectReason to set. * @return This builder for chaining. */ public Builder setRemoteDisconnectReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); remoteDisconnectReason_ = 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:protocol.NodeInfo.PeerInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.PeerInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PeerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerInfo(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.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigNodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo.ConfigNodeInfo) com.google.protobuf.MessageOrBuilder { /** * string codeVersion = 1; * @return The codeVersion. */ java.lang.String getCodeVersion(); /** * string codeVersion = 1; * @return The bytes for codeVersion. */ com.google.protobuf.ByteString getCodeVersionBytes(); /** * string p2pVersion = 2; * @return The p2pVersion. */ java.lang.String getP2PVersion(); /** * string p2pVersion = 2; * @return The bytes for p2pVersion. */ com.google.protobuf.ByteString getP2PVersionBytes(); /** * int32 listenPort = 3; * @return The listenPort. */ int getListenPort(); /** * bool discoverEnable = 4; * @return The discoverEnable. */ boolean getDiscoverEnable(); /** * int32 activeNodeSize = 5; * @return The activeNodeSize. */ int getActiveNodeSize(); /** * int32 passiveNodeSize = 6; * @return The passiveNodeSize. */ int getPassiveNodeSize(); /** * int32 sendNodeSize = 7; * @return The sendNodeSize. */ int getSendNodeSize(); /** * int32 maxConnectCount = 8; * @return The maxConnectCount. */ int getMaxConnectCount(); /** * int32 sameIpMaxConnectCount = 9; * @return The sameIpMaxConnectCount. */ int getSameIpMaxConnectCount(); /** * int32 backupListenPort = 10; * @return The backupListenPort. */ int getBackupListenPort(); /** * int32 backupMemberSize = 11; * @return The backupMemberSize. */ int getBackupMemberSize(); /** * int32 backupPriority = 12; * @return The backupPriority. */ int getBackupPriority(); /** * int32 dbVersion = 13; * @return The dbVersion. */ int getDbVersion(); /** * int32 minParticipationRate = 14; * @return The minParticipationRate. */ int getMinParticipationRate(); /** * bool supportConstant = 15; * @return The supportConstant. */ boolean getSupportConstant(); /** * double minTimeRatio = 16; * @return The minTimeRatio. */ double getMinTimeRatio(); /** * double maxTimeRatio = 17; * @return The maxTimeRatio. */ double getMaxTimeRatio(); /** * int64 allowCreationOfContracts = 18; * @return The allowCreationOfContracts. */ long getAllowCreationOfContracts(); /** * int64 allowAdaptiveEntropy = 19; * @return The allowAdaptiveEntropy. */ long getAllowAdaptiveEntropy(); } /** * Protobuf type {@code protocol.NodeInfo.ConfigNodeInfo} */ public static final class ConfigNodeInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo.ConfigNodeInfo) ConfigNodeInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigNodeInfo.newBuilder() to construct. private ConfigNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigNodeInfo() { codeVersion_ = ""; p2PVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigNodeInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigNodeInfo( 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: { java.lang.String s = input.readStringRequireUtf8(); codeVersion_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); p2PVersion_ = s; break; } case 24: { listenPort_ = input.readInt32(); break; } case 32: { discoverEnable_ = input.readBool(); break; } case 40: { activeNodeSize_ = input.readInt32(); break; } case 48: { passiveNodeSize_ = input.readInt32(); break; } case 56: { sendNodeSize_ = input.readInt32(); break; } case 64: { maxConnectCount_ = input.readInt32(); break; } case 72: { sameIpMaxConnectCount_ = input.readInt32(); break; } case 80: { backupListenPort_ = input.readInt32(); break; } case 88: { backupMemberSize_ = input.readInt32(); break; } case 96: { backupPriority_ = input.readInt32(); break; } case 104: { dbVersion_ = input.readInt32(); break; } case 112: { minParticipationRate_ = input.readInt32(); break; } case 120: { supportConstant_ = input.readBool(); break; } case 129: { minTimeRatio_ = input.readDouble(); break; } case 137: { maxTimeRatio_ = input.readDouble(); break; } case 144: { allowCreationOfContracts_ = input.readInt64(); break; } case 152: { allowAdaptiveEntropy_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder.class); } public static final int CODEVERSION_FIELD_NUMBER = 1; private volatile java.lang.Object codeVersion_; /** * string codeVersion = 1; * @return The codeVersion. */ @java.lang.Override public java.lang.String getCodeVersion() { java.lang.Object ref = codeVersion_; 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(); codeVersion_ = s; return s; } } /** * string codeVersion = 1; * @return The bytes for codeVersion. */ @java.lang.Override public com.google.protobuf.ByteString getCodeVersionBytes() { java.lang.Object ref = codeVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); codeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int P2PVERSION_FIELD_NUMBER = 2; private volatile java.lang.Object p2PVersion_; /** * string p2pVersion = 2; * @return The p2pVersion. */ @java.lang.Override public java.lang.String getP2PVersion() { java.lang.Object ref = p2PVersion_; 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(); p2PVersion_ = s; return s; } } /** * string p2pVersion = 2; * @return The bytes for p2pVersion. */ @java.lang.Override public com.google.protobuf.ByteString getP2PVersionBytes() { java.lang.Object ref = p2PVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); p2PVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LISTENPORT_FIELD_NUMBER = 3; private int listenPort_; /** * int32 listenPort = 3; * @return The listenPort. */ @java.lang.Override public int getListenPort() { return listenPort_; } public static final int DISCOVERENABLE_FIELD_NUMBER = 4; private boolean discoverEnable_; /** * bool discoverEnable = 4; * @return The discoverEnable. */ @java.lang.Override public boolean getDiscoverEnable() { return discoverEnable_; } public static final int ACTIVENODESIZE_FIELD_NUMBER = 5; private int activeNodeSize_; /** * int32 activeNodeSize = 5; * @return The activeNodeSize. */ @java.lang.Override public int getActiveNodeSize() { return activeNodeSize_; } public static final int PASSIVENODESIZE_FIELD_NUMBER = 6; private int passiveNodeSize_; /** * int32 passiveNodeSize = 6; * @return The passiveNodeSize. */ @java.lang.Override public int getPassiveNodeSize() { return passiveNodeSize_; } public static final int SENDNODESIZE_FIELD_NUMBER = 7; private int sendNodeSize_; /** * int32 sendNodeSize = 7; * @return The sendNodeSize. */ @java.lang.Override public int getSendNodeSize() { return sendNodeSize_; } public static final int MAXCONNECTCOUNT_FIELD_NUMBER = 8; private int maxConnectCount_; /** * int32 maxConnectCount = 8; * @return The maxConnectCount. */ @java.lang.Override public int getMaxConnectCount() { return maxConnectCount_; } public static final int SAMEIPMAXCONNECTCOUNT_FIELD_NUMBER = 9; private int sameIpMaxConnectCount_; /** * int32 sameIpMaxConnectCount = 9; * @return The sameIpMaxConnectCount. */ @java.lang.Override public int getSameIpMaxConnectCount() { return sameIpMaxConnectCount_; } public static final int BACKUPLISTENPORT_FIELD_NUMBER = 10; private int backupListenPort_; /** * int32 backupListenPort = 10; * @return The backupListenPort. */ @java.lang.Override public int getBackupListenPort() { return backupListenPort_; } public static final int BACKUPMEMBERSIZE_FIELD_NUMBER = 11; private int backupMemberSize_; /** * int32 backupMemberSize = 11; * @return The backupMemberSize. */ @java.lang.Override public int getBackupMemberSize() { return backupMemberSize_; } public static final int BACKUPPRIORITY_FIELD_NUMBER = 12; private int backupPriority_; /** * int32 backupPriority = 12; * @return The backupPriority. */ @java.lang.Override public int getBackupPriority() { return backupPriority_; } public static final int DBVERSION_FIELD_NUMBER = 13; private int dbVersion_; /** * int32 dbVersion = 13; * @return The dbVersion. */ @java.lang.Override public int getDbVersion() { return dbVersion_; } public static final int MINPARTICIPATIONRATE_FIELD_NUMBER = 14; private int minParticipationRate_; /** * int32 minParticipationRate = 14; * @return The minParticipationRate. */ @java.lang.Override public int getMinParticipationRate() { return minParticipationRate_; } public static final int SUPPORTCONSTANT_FIELD_NUMBER = 15; private boolean supportConstant_; /** * bool supportConstant = 15; * @return The supportConstant. */ @java.lang.Override public boolean getSupportConstant() { return supportConstant_; } public static final int MINTIMERATIO_FIELD_NUMBER = 16; private double minTimeRatio_; /** * double minTimeRatio = 16; * @return The minTimeRatio. */ @java.lang.Override public double getMinTimeRatio() { return minTimeRatio_; } public static final int MAXTIMERATIO_FIELD_NUMBER = 17; private double maxTimeRatio_; /** * double maxTimeRatio = 17; * @return The maxTimeRatio. */ @java.lang.Override public double getMaxTimeRatio() { return maxTimeRatio_; } public static final int ALLOWCREATIONOFCONTRACTS_FIELD_NUMBER = 18; private long allowCreationOfContracts_; /** * int64 allowCreationOfContracts = 18; * @return The allowCreationOfContracts. */ @java.lang.Override public long getAllowCreationOfContracts() { return allowCreationOfContracts_; } public static final int ALLOWADAPTIVEENTROPY_FIELD_NUMBER = 19; private long allowAdaptiveEntropy_; /** * int64 allowAdaptiveEntropy = 19; * @return The allowAdaptiveEntropy. */ @java.lang.Override public long getAllowAdaptiveEntropy() { return allowAdaptiveEntropy_; } 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 (!getCodeVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, codeVersion_); } if (!getP2PVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, p2PVersion_); } if (listenPort_ != 0) { output.writeInt32(3, listenPort_); } if (discoverEnable_ != false) { output.writeBool(4, discoverEnable_); } if (activeNodeSize_ != 0) { output.writeInt32(5, activeNodeSize_); } if (passiveNodeSize_ != 0) { output.writeInt32(6, passiveNodeSize_); } if (sendNodeSize_ != 0) { output.writeInt32(7, sendNodeSize_); } if (maxConnectCount_ != 0) { output.writeInt32(8, maxConnectCount_); } if (sameIpMaxConnectCount_ != 0) { output.writeInt32(9, sameIpMaxConnectCount_); } if (backupListenPort_ != 0) { output.writeInt32(10, backupListenPort_); } if (backupMemberSize_ != 0) { output.writeInt32(11, backupMemberSize_); } if (backupPriority_ != 0) { output.writeInt32(12, backupPriority_); } if (dbVersion_ != 0) { output.writeInt32(13, dbVersion_); } if (minParticipationRate_ != 0) { output.writeInt32(14, minParticipationRate_); } if (supportConstant_ != false) { output.writeBool(15, supportConstant_); } if (minTimeRatio_ != 0D) { output.writeDouble(16, minTimeRatio_); } if (maxTimeRatio_ != 0D) { output.writeDouble(17, maxTimeRatio_); } if (allowCreationOfContracts_ != 0L) { output.writeInt64(18, allowCreationOfContracts_); } if (allowAdaptiveEntropy_ != 0L) { output.writeInt64(19, allowAdaptiveEntropy_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCodeVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, codeVersion_); } if (!getP2PVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, p2PVersion_); } if (listenPort_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, listenPort_); } if (discoverEnable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, discoverEnable_); } if (activeNodeSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, activeNodeSize_); } if (passiveNodeSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, passiveNodeSize_); } if (sendNodeSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, sendNodeSize_); } if (maxConnectCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, maxConnectCount_); } if (sameIpMaxConnectCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, sameIpMaxConnectCount_); } if (backupListenPort_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, backupListenPort_); } if (backupMemberSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, backupMemberSize_); } if (backupPriority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, backupPriority_); } if (dbVersion_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, dbVersion_); } if (minParticipationRate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, minParticipationRate_); } if (supportConstant_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, supportConstant_); } if (minTimeRatio_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(16, minTimeRatio_); } if (maxTimeRatio_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(17, maxTimeRatio_); } if (allowCreationOfContracts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, allowCreationOfContracts_); } if (allowAdaptiveEntropy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, allowAdaptiveEntropy_); } 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo) obj; if (!getCodeVersion() .equals(other.getCodeVersion())) return false; if (!getP2PVersion() .equals(other.getP2PVersion())) return false; if (getListenPort() != other.getListenPort()) return false; if (getDiscoverEnable() != other.getDiscoverEnable()) return false; if (getActiveNodeSize() != other.getActiveNodeSize()) return false; if (getPassiveNodeSize() != other.getPassiveNodeSize()) return false; if (getSendNodeSize() != other.getSendNodeSize()) return false; if (getMaxConnectCount() != other.getMaxConnectCount()) return false; if (getSameIpMaxConnectCount() != other.getSameIpMaxConnectCount()) return false; if (getBackupListenPort() != other.getBackupListenPort()) return false; if (getBackupMemberSize() != other.getBackupMemberSize()) return false; if (getBackupPriority() != other.getBackupPriority()) return false; if (getDbVersion() != other.getDbVersion()) return false; if (getMinParticipationRate() != other.getMinParticipationRate()) return false; if (getSupportConstant() != other.getSupportConstant()) return false; if (java.lang.Double.doubleToLongBits(getMinTimeRatio()) != java.lang.Double.doubleToLongBits( other.getMinTimeRatio())) return false; if (java.lang.Double.doubleToLongBits(getMaxTimeRatio()) != java.lang.Double.doubleToLongBits( other.getMaxTimeRatio())) return false; if (getAllowCreationOfContracts() != other.getAllowCreationOfContracts()) return false; if (getAllowAdaptiveEntropy() != other.getAllowAdaptiveEntropy()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODEVERSION_FIELD_NUMBER; hash = (53 * hash) + getCodeVersion().hashCode(); hash = (37 * hash) + P2PVERSION_FIELD_NUMBER; hash = (53 * hash) + getP2PVersion().hashCode(); hash = (37 * hash) + LISTENPORT_FIELD_NUMBER; hash = (53 * hash) + getListenPort(); hash = (37 * hash) + DISCOVERENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDiscoverEnable()); hash = (37 * hash) + ACTIVENODESIZE_FIELD_NUMBER; hash = (53 * hash) + getActiveNodeSize(); hash = (37 * hash) + PASSIVENODESIZE_FIELD_NUMBER; hash = (53 * hash) + getPassiveNodeSize(); hash = (37 * hash) + SENDNODESIZE_FIELD_NUMBER; hash = (53 * hash) + getSendNodeSize(); hash = (37 * hash) + MAXCONNECTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxConnectCount(); hash = (37 * hash) + SAMEIPMAXCONNECTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getSameIpMaxConnectCount(); hash = (37 * hash) + BACKUPLISTENPORT_FIELD_NUMBER; hash = (53 * hash) + getBackupListenPort(); hash = (37 * hash) + BACKUPMEMBERSIZE_FIELD_NUMBER; hash = (53 * hash) + getBackupMemberSize(); hash = (37 * hash) + BACKUPPRIORITY_FIELD_NUMBER; hash = (53 * hash) + getBackupPriority(); hash = (37 * hash) + DBVERSION_FIELD_NUMBER; hash = (53 * hash) + getDbVersion(); hash = (37 * hash) + MINPARTICIPATIONRATE_FIELD_NUMBER; hash = (53 * hash) + getMinParticipationRate(); hash = (37 * hash) + SUPPORTCONSTANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSupportConstant()); hash = (37 * hash) + MINTIMERATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinTimeRatio())); hash = (37 * hash) + MAXTIMERATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxTimeRatio())); hash = (37 * hash) + ALLOWCREATIONOFCONTRACTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllowCreationOfContracts()); hash = (37 * hash) + ALLOWADAPTIVEENTROPY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllowAdaptiveEntropy()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo 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 protocol.NodeInfo.ConfigNodeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo.ConfigNodeInfo) org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.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(); codeVersion_ = ""; p2PVersion_ = ""; listenPort_ = 0; discoverEnable_ = false; activeNodeSize_ = 0; passiveNodeSize_ = 0; sendNodeSize_ = 0; maxConnectCount_ = 0; sameIpMaxConnectCount_ = 0; backupListenPort_ = 0; backupMemberSize_ = 0; backupPriority_ = 0; dbVersion_ = 0; minParticipationRate_ = 0; supportConstant_ = false; minTimeRatio_ = 0D; maxTimeRatio_ = 0D; allowCreationOfContracts_ = 0L; allowAdaptiveEntropy_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo(this); result.codeVersion_ = codeVersion_; result.p2PVersion_ = p2PVersion_; result.listenPort_ = listenPort_; result.discoverEnable_ = discoverEnable_; result.activeNodeSize_ = activeNodeSize_; result.passiveNodeSize_ = passiveNodeSize_; result.sendNodeSize_ = sendNodeSize_; result.maxConnectCount_ = maxConnectCount_; result.sameIpMaxConnectCount_ = sameIpMaxConnectCount_; result.backupListenPort_ = backupListenPort_; result.backupMemberSize_ = backupMemberSize_; result.backupPriority_ = backupPriority_; result.dbVersion_ = dbVersion_; result.minParticipationRate_ = minParticipationRate_; result.supportConstant_ = supportConstant_; result.minTimeRatio_ = minTimeRatio_; result.maxTimeRatio_ = maxTimeRatio_; result.allowCreationOfContracts_ = allowCreationOfContracts_; result.allowAdaptiveEntropy_ = allowAdaptiveEntropy_; 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance()) return this; if (!other.getCodeVersion().isEmpty()) { codeVersion_ = other.codeVersion_; onChanged(); } if (!other.getP2PVersion().isEmpty()) { p2PVersion_ = other.p2PVersion_; onChanged(); } if (other.getListenPort() != 0) { setListenPort(other.getListenPort()); } if (other.getDiscoverEnable() != false) { setDiscoverEnable(other.getDiscoverEnable()); } if (other.getActiveNodeSize() != 0) { setActiveNodeSize(other.getActiveNodeSize()); } if (other.getPassiveNodeSize() != 0) { setPassiveNodeSize(other.getPassiveNodeSize()); } if (other.getSendNodeSize() != 0) { setSendNodeSize(other.getSendNodeSize()); } if (other.getMaxConnectCount() != 0) { setMaxConnectCount(other.getMaxConnectCount()); } if (other.getSameIpMaxConnectCount() != 0) { setSameIpMaxConnectCount(other.getSameIpMaxConnectCount()); } if (other.getBackupListenPort() != 0) { setBackupListenPort(other.getBackupListenPort()); } if (other.getBackupMemberSize() != 0) { setBackupMemberSize(other.getBackupMemberSize()); } if (other.getBackupPriority() != 0) { setBackupPriority(other.getBackupPriority()); } if (other.getDbVersion() != 0) { setDbVersion(other.getDbVersion()); } if (other.getMinParticipationRate() != 0) { setMinParticipationRate(other.getMinParticipationRate()); } if (other.getSupportConstant() != false) { setSupportConstant(other.getSupportConstant()); } if (other.getMinTimeRatio() != 0D) { setMinTimeRatio(other.getMinTimeRatio()); } if (other.getMaxTimeRatio() != 0D) { setMaxTimeRatio(other.getMaxTimeRatio()); } if (other.getAllowCreationOfContracts() != 0L) { setAllowCreationOfContracts(other.getAllowCreationOfContracts()); } if (other.getAllowAdaptiveEntropy() != 0L) { setAllowAdaptiveEntropy(other.getAllowAdaptiveEntropy()); } 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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object codeVersion_ = ""; /** * string codeVersion = 1; * @return The codeVersion. */ public java.lang.String getCodeVersion() { java.lang.Object ref = codeVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); codeVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string codeVersion = 1; * @return The bytes for codeVersion. */ public com.google.protobuf.ByteString getCodeVersionBytes() { java.lang.Object ref = codeVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); codeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string codeVersion = 1; * @param value The codeVersion to set. * @return This builder for chaining. */ public Builder setCodeVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } codeVersion_ = value; onChanged(); return this; } /** * string codeVersion = 1; * @return This builder for chaining. */ public Builder clearCodeVersion() { codeVersion_ = getDefaultInstance().getCodeVersion(); onChanged(); return this; } /** * string codeVersion = 1; * @param value The bytes for codeVersion to set. * @return This builder for chaining. */ public Builder setCodeVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); codeVersion_ = value; onChanged(); return this; } private java.lang.Object p2PVersion_ = ""; /** * string p2pVersion = 2; * @return The p2pVersion. */ public java.lang.String getP2PVersion() { java.lang.Object ref = p2PVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); p2PVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string p2pVersion = 2; * @return The bytes for p2pVersion. */ public com.google.protobuf.ByteString getP2PVersionBytes() { java.lang.Object ref = p2PVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); p2PVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string p2pVersion = 2; * @param value The p2pVersion to set. * @return This builder for chaining. */ public Builder setP2PVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } p2PVersion_ = value; onChanged(); return this; } /** * string p2pVersion = 2; * @return This builder for chaining. */ public Builder clearP2PVersion() { p2PVersion_ = getDefaultInstance().getP2PVersion(); onChanged(); return this; } /** * string p2pVersion = 2; * @param value The bytes for p2pVersion to set. * @return This builder for chaining. */ public Builder setP2PVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); p2PVersion_ = value; onChanged(); return this; } private int listenPort_ ; /** * int32 listenPort = 3; * @return The listenPort. */ @java.lang.Override public int getListenPort() { return listenPort_; } /** * int32 listenPort = 3; * @param value The listenPort to set. * @return This builder for chaining. */ public Builder setListenPort(int value) { listenPort_ = value; onChanged(); return this; } /** * int32 listenPort = 3; * @return This builder for chaining. */ public Builder clearListenPort() { listenPort_ = 0; onChanged(); return this; } private boolean discoverEnable_ ; /** * bool discoverEnable = 4; * @return The discoverEnable. */ @java.lang.Override public boolean getDiscoverEnable() { return discoverEnable_; } /** * bool discoverEnable = 4; * @param value The discoverEnable to set. * @return This builder for chaining. */ public Builder setDiscoverEnable(boolean value) { discoverEnable_ = value; onChanged(); return this; } /** * bool discoverEnable = 4; * @return This builder for chaining. */ public Builder clearDiscoverEnable() { discoverEnable_ = false; onChanged(); return this; } private int activeNodeSize_ ; /** * int32 activeNodeSize = 5; * @return The activeNodeSize. */ @java.lang.Override public int getActiveNodeSize() { return activeNodeSize_; } /** * int32 activeNodeSize = 5; * @param value The activeNodeSize to set. * @return This builder for chaining. */ public Builder setActiveNodeSize(int value) { activeNodeSize_ = value; onChanged(); return this; } /** * int32 activeNodeSize = 5; * @return This builder for chaining. */ public Builder clearActiveNodeSize() { activeNodeSize_ = 0; onChanged(); return this; } private int passiveNodeSize_ ; /** * int32 passiveNodeSize = 6; * @return The passiveNodeSize. */ @java.lang.Override public int getPassiveNodeSize() { return passiveNodeSize_; } /** * int32 passiveNodeSize = 6; * @param value The passiveNodeSize to set. * @return This builder for chaining. */ public Builder setPassiveNodeSize(int value) { passiveNodeSize_ = value; onChanged(); return this; } /** * int32 passiveNodeSize = 6; * @return This builder for chaining. */ public Builder clearPassiveNodeSize() { passiveNodeSize_ = 0; onChanged(); return this; } private int sendNodeSize_ ; /** * int32 sendNodeSize = 7; * @return The sendNodeSize. */ @java.lang.Override public int getSendNodeSize() { return sendNodeSize_; } /** * int32 sendNodeSize = 7; * @param value The sendNodeSize to set. * @return This builder for chaining. */ public Builder setSendNodeSize(int value) { sendNodeSize_ = value; onChanged(); return this; } /** * int32 sendNodeSize = 7; * @return This builder for chaining. */ public Builder clearSendNodeSize() { sendNodeSize_ = 0; onChanged(); return this; } private int maxConnectCount_ ; /** * int32 maxConnectCount = 8; * @return The maxConnectCount. */ @java.lang.Override public int getMaxConnectCount() { return maxConnectCount_; } /** * int32 maxConnectCount = 8; * @param value The maxConnectCount to set. * @return This builder for chaining. */ public Builder setMaxConnectCount(int value) { maxConnectCount_ = value; onChanged(); return this; } /** * int32 maxConnectCount = 8; * @return This builder for chaining. */ public Builder clearMaxConnectCount() { maxConnectCount_ = 0; onChanged(); return this; } private int sameIpMaxConnectCount_ ; /** * int32 sameIpMaxConnectCount = 9; * @return The sameIpMaxConnectCount. */ @java.lang.Override public int getSameIpMaxConnectCount() { return sameIpMaxConnectCount_; } /** * int32 sameIpMaxConnectCount = 9; * @param value The sameIpMaxConnectCount to set. * @return This builder for chaining. */ public Builder setSameIpMaxConnectCount(int value) { sameIpMaxConnectCount_ = value; onChanged(); return this; } /** * int32 sameIpMaxConnectCount = 9; * @return This builder for chaining. */ public Builder clearSameIpMaxConnectCount() { sameIpMaxConnectCount_ = 0; onChanged(); return this; } private int backupListenPort_ ; /** * int32 backupListenPort = 10; * @return The backupListenPort. */ @java.lang.Override public int getBackupListenPort() { return backupListenPort_; } /** * int32 backupListenPort = 10; * @param value The backupListenPort to set. * @return This builder for chaining. */ public Builder setBackupListenPort(int value) { backupListenPort_ = value; onChanged(); return this; } /** * int32 backupListenPort = 10; * @return This builder for chaining. */ public Builder clearBackupListenPort() { backupListenPort_ = 0; onChanged(); return this; } private int backupMemberSize_ ; /** * int32 backupMemberSize = 11; * @return The backupMemberSize. */ @java.lang.Override public int getBackupMemberSize() { return backupMemberSize_; } /** * int32 backupMemberSize = 11; * @param value The backupMemberSize to set. * @return This builder for chaining. */ public Builder setBackupMemberSize(int value) { backupMemberSize_ = value; onChanged(); return this; } /** * int32 backupMemberSize = 11; * @return This builder for chaining. */ public Builder clearBackupMemberSize() { backupMemberSize_ = 0; onChanged(); return this; } private int backupPriority_ ; /** * int32 backupPriority = 12; * @return The backupPriority. */ @java.lang.Override public int getBackupPriority() { return backupPriority_; } /** * int32 backupPriority = 12; * @param value The backupPriority to set. * @return This builder for chaining. */ public Builder setBackupPriority(int value) { backupPriority_ = value; onChanged(); return this; } /** * int32 backupPriority = 12; * @return This builder for chaining. */ public Builder clearBackupPriority() { backupPriority_ = 0; onChanged(); return this; } private int dbVersion_ ; /** * int32 dbVersion = 13; * @return The dbVersion. */ @java.lang.Override public int getDbVersion() { return dbVersion_; } /** * int32 dbVersion = 13; * @param value The dbVersion to set. * @return This builder for chaining. */ public Builder setDbVersion(int value) { dbVersion_ = value; onChanged(); return this; } /** * int32 dbVersion = 13; * @return This builder for chaining. */ public Builder clearDbVersion() { dbVersion_ = 0; onChanged(); return this; } private int minParticipationRate_ ; /** * int32 minParticipationRate = 14; * @return The minParticipationRate. */ @java.lang.Override public int getMinParticipationRate() { return minParticipationRate_; } /** * int32 minParticipationRate = 14; * @param value The minParticipationRate to set. * @return This builder for chaining. */ public Builder setMinParticipationRate(int value) { minParticipationRate_ = value; onChanged(); return this; } /** * int32 minParticipationRate = 14; * @return This builder for chaining. */ public Builder clearMinParticipationRate() { minParticipationRate_ = 0; onChanged(); return this; } private boolean supportConstant_ ; /** * bool supportConstant = 15; * @return The supportConstant. */ @java.lang.Override public boolean getSupportConstant() { return supportConstant_; } /** * bool supportConstant = 15; * @param value The supportConstant to set. * @return This builder for chaining. */ public Builder setSupportConstant(boolean value) { supportConstant_ = value; onChanged(); return this; } /** * bool supportConstant = 15; * @return This builder for chaining. */ public Builder clearSupportConstant() { supportConstant_ = false; onChanged(); return this; } private double minTimeRatio_ ; /** * double minTimeRatio = 16; * @return The minTimeRatio. */ @java.lang.Override public double getMinTimeRatio() { return minTimeRatio_; } /** * double minTimeRatio = 16; * @param value The minTimeRatio to set. * @return This builder for chaining. */ public Builder setMinTimeRatio(double value) { minTimeRatio_ = value; onChanged(); return this; } /** * double minTimeRatio = 16; * @return This builder for chaining. */ public Builder clearMinTimeRatio() { minTimeRatio_ = 0D; onChanged(); return this; } private double maxTimeRatio_ ; /** * double maxTimeRatio = 17; * @return The maxTimeRatio. */ @java.lang.Override public double getMaxTimeRatio() { return maxTimeRatio_; } /** * double maxTimeRatio = 17; * @param value The maxTimeRatio to set. * @return This builder for chaining. */ public Builder setMaxTimeRatio(double value) { maxTimeRatio_ = value; onChanged(); return this; } /** * double maxTimeRatio = 17; * @return This builder for chaining. */ public Builder clearMaxTimeRatio() { maxTimeRatio_ = 0D; onChanged(); return this; } private long allowCreationOfContracts_ ; /** * int64 allowCreationOfContracts = 18; * @return The allowCreationOfContracts. */ @java.lang.Override public long getAllowCreationOfContracts() { return allowCreationOfContracts_; } /** * int64 allowCreationOfContracts = 18; * @param value The allowCreationOfContracts to set. * @return This builder for chaining. */ public Builder setAllowCreationOfContracts(long value) { allowCreationOfContracts_ = value; onChanged(); return this; } /** * int64 allowCreationOfContracts = 18; * @return This builder for chaining. */ public Builder clearAllowCreationOfContracts() { allowCreationOfContracts_ = 0L; onChanged(); return this; } private long allowAdaptiveEntropy_ ; /** * int64 allowAdaptiveEntropy = 19; * @return The allowAdaptiveEntropy. */ @java.lang.Override public long getAllowAdaptiveEntropy() { return allowAdaptiveEntropy_; } /** * int64 allowAdaptiveEntropy = 19; * @param value The allowAdaptiveEntropy to set. * @return This builder for chaining. */ public Builder setAllowAdaptiveEntropy(long value) { allowAdaptiveEntropy_ = value; onChanged(); return this; } /** * int64 allowAdaptiveEntropy = 19; * @return This builder for chaining. */ public Builder clearAllowAdaptiveEntropy() { allowAdaptiveEntropy_ = 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:protocol.NodeInfo.ConfigNodeInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.ConfigNodeInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigNodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigNodeInfo(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.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MachineInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo.MachineInfo) com.google.protobuf.MessageOrBuilder { /** * int32 threadCount = 1; * @return The threadCount. */ int getThreadCount(); /** * int32 deadLockThreadCount = 2; * @return The deadLockThreadCount. */ int getDeadLockThreadCount(); /** * int32 cpuCount = 3; * @return The cpuCount. */ int getCpuCount(); /** * int64 totalMemory = 4; * @return The totalMemory. */ long getTotalMemory(); /** * int64 freeMemory = 5; * @return The freeMemory. */ long getFreeMemory(); /** * double cpuRate = 6; * @return The cpuRate. */ double getCpuRate(); /** * string javaVersion = 7; * @return The javaVersion. */ java.lang.String getJavaVersion(); /** * string javaVersion = 7; * @return The bytes for javaVersion. */ com.google.protobuf.ByteString getJavaVersionBytes(); /** * string osName = 8; * @return The osName. */ java.lang.String getOsName(); /** * string osName = 8; * @return The bytes for osName. */ com.google.protobuf.ByteString getOsNameBytes(); /** * int64 jvmTotalMemoery = 9; * @return The jvmTotalMemoery. */ long getJvmTotalMemoery(); /** * int64 jvmFreeMemory = 10; * @return The jvmFreeMemory. */ long getJvmFreeMemory(); /** * double processCpuRate = 11; * @return The processCpuRate. */ double getProcessCpuRate(); java.util.List getMemoryDescInfoListList(); org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index); int getMemoryDescInfoListCount(); java.util.List getMemoryDescInfoListOrBuilderList(); org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index); java.util.List getDeadLockThreadInfoListList(); org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index); int getDeadLockThreadInfoListCount(); java.util.List getDeadLockThreadInfoListOrBuilderList(); org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder getDeadLockThreadInfoListOrBuilder( int index); } /** * Protobuf type {@code protocol.NodeInfo.MachineInfo} */ public static final class MachineInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo.MachineInfo) MachineInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MachineInfo.newBuilder() to construct. private MachineInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MachineInfo() { javaVersion_ = ""; osName_ = ""; memoryDescInfoList_ = java.util.Collections.emptyList(); deadLockThreadInfoList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MachineInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MachineInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { threadCount_ = input.readInt32(); break; } case 16: { deadLockThreadCount_ = input.readInt32(); break; } case 24: { cpuCount_ = input.readInt32(); break; } case 32: { totalMemory_ = input.readInt64(); break; } case 40: { freeMemory_ = input.readInt64(); break; } case 49: { cpuRate_ = input.readDouble(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); javaVersion_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); osName_ = s; break; } case 72: { jvmTotalMemoery_ = input.readInt64(); break; } case 80: { jvmFreeMemory_ = input.readInt64(); break; } case 89: { processCpuRate_ = input.readDouble(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { memoryDescInfoList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } memoryDescInfoList_.add( input.readMessage(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.parser(), extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { deadLockThreadInfoList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } deadLockThreadInfoList_.add( input.readMessage(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.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)) { memoryDescInfoList_ = java.util.Collections.unmodifiableList(memoryDescInfoList_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { deadLockThreadInfoList_ = java.util.Collections.unmodifiableList(deadLockThreadInfoList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder.class); } public interface MemoryDescInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo.MachineInfo.MemoryDescInfo) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * int64 initSize = 2; * @return The initSize. */ long getInitSize(); /** * int64 useSize = 3; * @return The useSize. */ long getUseSize(); /** * int64 maxSize = 4; * @return The maxSize. */ long getMaxSize(); /** * double useRate = 5; * @return The useRate. */ double getUseRate(); } /** * Protobuf type {@code protocol.NodeInfo.MachineInfo.MemoryDescInfo} */ public static final class MemoryDescInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo.MachineInfo.MemoryDescInfo) MemoryDescInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MemoryDescInfo.newBuilder() to construct. private MemoryDescInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemoryDescInfo() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MemoryDescInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemoryDescInfo( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { initSize_ = input.readInt64(); break; } case 24: { useSize_ = input.readInt64(); break; } case 32: { maxSize_ = input.readInt64(); break; } case 41: { useRate_ = input.readDouble(); 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.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INITSIZE_FIELD_NUMBER = 2; private long initSize_; /** * int64 initSize = 2; * @return The initSize. */ @java.lang.Override public long getInitSize() { return initSize_; } public static final int USESIZE_FIELD_NUMBER = 3; private long useSize_; /** * int64 useSize = 3; * @return The useSize. */ @java.lang.Override public long getUseSize() { return useSize_; } public static final int MAXSIZE_FIELD_NUMBER = 4; private long maxSize_; /** * int64 maxSize = 4; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } public static final int USERATE_FIELD_NUMBER = 5; private double useRate_; /** * double useRate = 5; * @return The useRate. */ @java.lang.Override public double getUseRate() { return useRate_; } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (initSize_ != 0L) { output.writeInt64(2, initSize_); } if (useSize_ != 0L) { output.writeInt64(3, useSize_); } if (maxSize_ != 0L) { output.writeInt64(4, maxSize_); } if (useRate_ != 0D) { output.writeDouble(5, useRate_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (initSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, initSize_); } if (useSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, useSize_); } if (maxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, maxSize_); } if (useRate_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, useRate_); } 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo) obj; if (!getName() .equals(other.getName())) return false; if (getInitSize() != other.getInitSize()) return false; if (getUseSize() != other.getUseSize()) return false; if (getMaxSize() != other.getMaxSize()) return false; if (java.lang.Double.doubleToLongBits(getUseRate()) != java.lang.Double.doubleToLongBits( other.getUseRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + INITSIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInitSize()); hash = (37 * hash) + USESIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUseSize()); hash = (37 * hash) + MAXSIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSize()); hash = (37 * hash) + USERATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUseRate())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo 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 protocol.NodeInfo.MachineInfo.MemoryDescInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo.MachineInfo.MemoryDescInfo) org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.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(); name_ = ""; initSize_ = 0L; useSize_ = 0L; maxSize_ = 0L; useRate_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo(this); result.name_ = name_; result.initSize_ = initSize_; result.useSize_ = useSize_; result.maxSize_ = maxSize_; result.useRate_ = useRate_; 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getInitSize() != 0L) { setInitSize(other.getInitSize()); } if (other.getUseSize() != 0L) { setUseSize(other.getUseSize()); } if (other.getMaxSize() != 0L) { setMaxSize(other.getMaxSize()); } if (other.getUseRate() != 0D) { setUseRate(other.getUseRate()); } 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private long initSize_ ; /** * int64 initSize = 2; * @return The initSize. */ @java.lang.Override public long getInitSize() { return initSize_; } /** * int64 initSize = 2; * @param value The initSize to set. * @return This builder for chaining. */ public Builder setInitSize(long value) { initSize_ = value; onChanged(); return this; } /** * int64 initSize = 2; * @return This builder for chaining. */ public Builder clearInitSize() { initSize_ = 0L; onChanged(); return this; } private long useSize_ ; /** * int64 useSize = 3; * @return The useSize. */ @java.lang.Override public long getUseSize() { return useSize_; } /** * int64 useSize = 3; * @param value The useSize to set. * @return This builder for chaining. */ public Builder setUseSize(long value) { useSize_ = value; onChanged(); return this; } /** * int64 useSize = 3; * @return This builder for chaining. */ public Builder clearUseSize() { useSize_ = 0L; onChanged(); return this; } private long maxSize_ ; /** * int64 maxSize = 4; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } /** * int64 maxSize = 4; * @param value The maxSize to set. * @return This builder for chaining. */ public Builder setMaxSize(long value) { maxSize_ = value; onChanged(); return this; } /** * int64 maxSize = 4; * @return This builder for chaining. */ public Builder clearMaxSize() { maxSize_ = 0L; onChanged(); return this; } private double useRate_ ; /** * double useRate = 5; * @return The useRate. */ @java.lang.Override public double getUseRate() { return useRate_; } /** * double useRate = 5; * @param value The useRate to set. * @return This builder for chaining. */ public Builder setUseRate(double value) { useRate_ = value; onChanged(); return this; } /** * double useRate = 5; * @return This builder for chaining. */ public Builder clearUseRate() { useRate_ = 0D; 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:protocol.NodeInfo.MachineInfo.MemoryDescInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.MachineInfo.MemoryDescInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MemoryDescInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemoryDescInfo(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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeadLockThreadInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string lockName = 2; * @return The lockName. */ java.lang.String getLockName(); /** * string lockName = 2; * @return The bytes for lockName. */ com.google.protobuf.ByteString getLockNameBytes(); /** * string lockOwner = 3; * @return The lockOwner. */ java.lang.String getLockOwner(); /** * string lockOwner = 3; * @return The bytes for lockOwner. */ com.google.protobuf.ByteString getLockOwnerBytes(); /** * string state = 4; * @return The state. */ java.lang.String getState(); /** * string state = 4; * @return The bytes for state. */ com.google.protobuf.ByteString getStateBytes(); /** * int64 blockTime = 5; * @return The blockTime. */ long getBlockTime(); /** * int64 waitTime = 6; * @return The waitTime. */ long getWaitTime(); /** * string stackTrace = 7; * @return The stackTrace. */ java.lang.String getStackTrace(); /** * string stackTrace = 7; * @return The bytes for stackTrace. */ com.google.protobuf.ByteString getStackTraceBytes(); } /** * Protobuf type {@code protocol.NodeInfo.MachineInfo.DeadLockThreadInfo} */ public static final class DeadLockThreadInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) DeadLockThreadInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DeadLockThreadInfo.newBuilder() to construct. private DeadLockThreadInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeadLockThreadInfo() { name_ = ""; lockName_ = ""; lockOwner_ = ""; state_ = ""; stackTrace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeadLockThreadInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeadLockThreadInfo( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); lockName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); lockOwner_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); state_ = s; break; } case 40: { blockTime_ = input.readInt64(); break; } case 48: { waitTime_ = input.readInt64(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); stackTrace_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCKNAME_FIELD_NUMBER = 2; private volatile java.lang.Object lockName_; /** * string lockName = 2; * @return The lockName. */ @java.lang.Override public java.lang.String getLockName() { java.lang.Object ref = lockName_; 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(); lockName_ = s; return s; } } /** * string lockName = 2; * @return The bytes for lockName. */ @java.lang.Override public com.google.protobuf.ByteString getLockNameBytes() { java.lang.Object ref = lockName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lockName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCKOWNER_FIELD_NUMBER = 3; private volatile java.lang.Object lockOwner_; /** * string lockOwner = 3; * @return The lockOwner. */ @java.lang.Override public java.lang.String getLockOwner() { java.lang.Object ref = lockOwner_; 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(); lockOwner_ = s; return s; } } /** * string lockOwner = 3; * @return The bytes for lockOwner. */ @java.lang.Override public com.google.protobuf.ByteString getLockOwnerBytes() { java.lang.Object ref = lockOwner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lockOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 4; private volatile java.lang.Object state_; /** * string state = 4; * @return The state. */ @java.lang.Override public java.lang.String getState() { java.lang.Object ref = state_; 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(); state_ = s; return s; } } /** * string state = 4; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); state_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCKTIME_FIELD_NUMBER = 5; private long blockTime_; /** * int64 blockTime = 5; * @return The blockTime. */ @java.lang.Override public long getBlockTime() { return blockTime_; } public static final int WAITTIME_FIELD_NUMBER = 6; private long waitTime_; /** * int64 waitTime = 6; * @return The waitTime. */ @java.lang.Override public long getWaitTime() { return waitTime_; } public static final int STACKTRACE_FIELD_NUMBER = 7; private volatile java.lang.Object stackTrace_; /** * string stackTrace = 7; * @return The stackTrace. */ @java.lang.Override public java.lang.String getStackTrace() { java.lang.Object ref = stackTrace_; 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(); stackTrace_ = s; return s; } } /** * string stackTrace = 7; * @return The bytes for stackTrace. */ @java.lang.Override public com.google.protobuf.ByteString getStackTraceBytes() { java.lang.Object ref = stackTrace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stackTrace_ = 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getLockNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lockName_); } if (!getLockOwnerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lockOwner_); } if (!getStateBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, state_); } if (blockTime_ != 0L) { output.writeInt64(5, blockTime_); } if (waitTime_ != 0L) { output.writeInt64(6, waitTime_); } if (!getStackTraceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stackTrace_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getLockNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lockName_); } if (!getLockOwnerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lockOwner_); } if (!getStateBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, state_); } if (blockTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, blockTime_); } if (waitTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, waitTime_); } if (!getStackTraceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stackTrace_); } 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo) obj; if (!getName() .equals(other.getName())) return false; if (!getLockName() .equals(other.getLockName())) return false; if (!getLockOwner() .equals(other.getLockOwner())) return false; if (!getState() .equals(other.getState())) return false; if (getBlockTime() != other.getBlockTime()) return false; if (getWaitTime() != other.getWaitTime()) return false; if (!getStackTrace() .equals(other.getStackTrace())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LOCKNAME_FIELD_NUMBER; hash = (53 * hash) + getLockName().hashCode(); hash = (37 * hash) + LOCKOWNER_FIELD_NUMBER; hash = (53 * hash) + getLockOwner().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockTime()); hash = (37 * hash) + WAITTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWaitTime()); hash = (37 * hash) + STACKTRACE_FIELD_NUMBER; hash = (53 * hash) + getStackTrace().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo 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 protocol.NodeInfo.MachineInfo.DeadLockThreadInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.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(); name_ = ""; lockName_ = ""; lockOwner_ = ""; state_ = ""; blockTime_ = 0L; waitTime_ = 0L; stackTrace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo(this); result.name_ = name_; result.lockName_ = lockName_; result.lockOwner_ = lockOwner_; result.state_ = state_; result.blockTime_ = blockTime_; result.waitTime_ = waitTime_; result.stackTrace_ = stackTrace_; 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getLockName().isEmpty()) { lockName_ = other.lockName_; onChanged(); } if (!other.getLockOwner().isEmpty()) { lockOwner_ = other.lockOwner_; onChanged(); } if (!other.getState().isEmpty()) { state_ = other.state_; onChanged(); } if (other.getBlockTime() != 0L) { setBlockTime(other.getBlockTime()); } if (other.getWaitTime() != 0L) { setWaitTime(other.getWaitTime()); } if (!other.getStackTrace().isEmpty()) { stackTrace_ = other.stackTrace_; 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 { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object lockName_ = ""; /** * string lockName = 2; * @return The lockName. */ public java.lang.String getLockName() { java.lang.Object ref = lockName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lockName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string lockName = 2; * @return The bytes for lockName. */ public com.google.protobuf.ByteString getLockNameBytes() { java.lang.Object ref = lockName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lockName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string lockName = 2; * @param value The lockName to set. * @return This builder for chaining. */ public Builder setLockName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lockName_ = value; onChanged(); return this; } /** * string lockName = 2; * @return This builder for chaining. */ public Builder clearLockName() { lockName_ = getDefaultInstance().getLockName(); onChanged(); return this; } /** * string lockName = 2; * @param value The bytes for lockName to set. * @return This builder for chaining. */ public Builder setLockNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lockName_ = value; onChanged(); return this; } private java.lang.Object lockOwner_ = ""; /** * string lockOwner = 3; * @return The lockOwner. */ public java.lang.String getLockOwner() { java.lang.Object ref = lockOwner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lockOwner_ = s; return s; } else { return (java.lang.String) ref; } } /** * string lockOwner = 3; * @return The bytes for lockOwner. */ public com.google.protobuf.ByteString getLockOwnerBytes() { java.lang.Object ref = lockOwner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lockOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string lockOwner = 3; * @param value The lockOwner to set. * @return This builder for chaining. */ public Builder setLockOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lockOwner_ = value; onChanged(); return this; } /** * string lockOwner = 3; * @return This builder for chaining. */ public Builder clearLockOwner() { lockOwner_ = getDefaultInstance().getLockOwner(); onChanged(); return this; } /** * string lockOwner = 3; * @param value The bytes for lockOwner to set. * @return This builder for chaining. */ public Builder setLockOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lockOwner_ = value; onChanged(); return this; } private java.lang.Object state_ = ""; /** * string state = 4; * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; } else { return (java.lang.String) ref; } } /** * string state = 4; * @return The bytes for state. */ public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); state_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string state = 4; * @param value The state to set. * @return This builder for chaining. */ public Builder setState( java.lang.String value) { if (value == null) { throw new NullPointerException(); } state_ = value; onChanged(); return this; } /** * string state = 4; * @return This builder for chaining. */ public Builder clearState() { state_ = getDefaultInstance().getState(); onChanged(); return this; } /** * string state = 4; * @param value The bytes for state to set. * @return This builder for chaining. */ public Builder setStateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); state_ = value; onChanged(); return this; } private long blockTime_ ; /** * int64 blockTime = 5; * @return The blockTime. */ @java.lang.Override public long getBlockTime() { return blockTime_; } /** * int64 blockTime = 5; * @param value The blockTime to set. * @return This builder for chaining. */ public Builder setBlockTime(long value) { blockTime_ = value; onChanged(); return this; } /** * int64 blockTime = 5; * @return This builder for chaining. */ public Builder clearBlockTime() { blockTime_ = 0L; onChanged(); return this; } private long waitTime_ ; /** * int64 waitTime = 6; * @return The waitTime. */ @java.lang.Override public long getWaitTime() { return waitTime_; } /** * int64 waitTime = 6; * @param value The waitTime to set. * @return This builder for chaining. */ public Builder setWaitTime(long value) { waitTime_ = value; onChanged(); return this; } /** * int64 waitTime = 6; * @return This builder for chaining. */ public Builder clearWaitTime() { waitTime_ = 0L; onChanged(); return this; } private java.lang.Object stackTrace_ = ""; /** * string stackTrace = 7; * @return The stackTrace. */ public java.lang.String getStackTrace() { java.lang.Object ref = stackTrace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stackTrace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string stackTrace = 7; * @return The bytes for stackTrace. */ public com.google.protobuf.ByteString getStackTraceBytes() { java.lang.Object ref = stackTrace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stackTrace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string stackTrace = 7; * @param value The stackTrace to set. * @return This builder for chaining. */ public Builder setStackTrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } stackTrace_ = value; onChanged(); return this; } /** * string stackTrace = 7; * @return This builder for chaining. */ public Builder clearStackTrace() { stackTrace_ = getDefaultInstance().getStackTrace(); onChanged(); return this; } /** * string stackTrace = 7; * @param value The bytes for stackTrace to set. * @return This builder for chaining. */ public Builder setStackTraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stackTrace_ = 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:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeadLockThreadInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeadLockThreadInfo(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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int THREADCOUNT_FIELD_NUMBER = 1; private int threadCount_; /** * int32 threadCount = 1; * @return The threadCount. */ @java.lang.Override public int getThreadCount() { return threadCount_; } public static final int DEADLOCKTHREADCOUNT_FIELD_NUMBER = 2; private int deadLockThreadCount_; /** * int32 deadLockThreadCount = 2; * @return The deadLockThreadCount. */ @java.lang.Override public int getDeadLockThreadCount() { return deadLockThreadCount_; } public static final int CPUCOUNT_FIELD_NUMBER = 3; private int cpuCount_; /** * int32 cpuCount = 3; * @return The cpuCount. */ @java.lang.Override public int getCpuCount() { return cpuCount_; } public static final int TOTALMEMORY_FIELD_NUMBER = 4; private long totalMemory_; /** * int64 totalMemory = 4; * @return The totalMemory. */ @java.lang.Override public long getTotalMemory() { return totalMemory_; } public static final int FREEMEMORY_FIELD_NUMBER = 5; private long freeMemory_; /** * int64 freeMemory = 5; * @return The freeMemory. */ @java.lang.Override public long getFreeMemory() { return freeMemory_; } public static final int CPURATE_FIELD_NUMBER = 6; private double cpuRate_; /** * double cpuRate = 6; * @return The cpuRate. */ @java.lang.Override public double getCpuRate() { return cpuRate_; } public static final int JAVAVERSION_FIELD_NUMBER = 7; private volatile java.lang.Object javaVersion_; /** * string javaVersion = 7; * @return The javaVersion. */ @java.lang.Override public java.lang.String getJavaVersion() { java.lang.Object ref = javaVersion_; 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(); javaVersion_ = s; return s; } } /** * string javaVersion = 7; * @return The bytes for javaVersion. */ @java.lang.Override public com.google.protobuf.ByteString getJavaVersionBytes() { java.lang.Object ref = javaVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OSNAME_FIELD_NUMBER = 8; private volatile java.lang.Object osName_; /** * string osName = 8; * @return The osName. */ @java.lang.Override public java.lang.String getOsName() { java.lang.Object ref = osName_; 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(); osName_ = s; return s; } } /** * string osName = 8; * @return The bytes for osName. */ @java.lang.Override public com.google.protobuf.ByteString getOsNameBytes() { java.lang.Object ref = osName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); osName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JVMTOTALMEMOERY_FIELD_NUMBER = 9; private long jvmTotalMemoery_; /** * int64 jvmTotalMemoery = 9; * @return The jvmTotalMemoery. */ @java.lang.Override public long getJvmTotalMemoery() { return jvmTotalMemoery_; } public static final int JVMFREEMEMORY_FIELD_NUMBER = 10; private long jvmFreeMemory_; /** * int64 jvmFreeMemory = 10; * @return The jvmFreeMemory. */ @java.lang.Override public long getJvmFreeMemory() { return jvmFreeMemory_; } public static final int PROCESSCPURATE_FIELD_NUMBER = 11; private double processCpuRate_; /** * double processCpuRate = 11; * @return The processCpuRate. */ @java.lang.Override public double getProcessCpuRate() { return processCpuRate_; } public static final int MEMORYDESCINFOLIST_FIELD_NUMBER = 12; private java.util.List memoryDescInfoList_; @java.lang.Override public java.util.List getMemoryDescInfoListList() { return memoryDescInfoList_; } @java.lang.Override public java.util.List getMemoryDescInfoListOrBuilderList() { return memoryDescInfoList_; } @java.lang.Override public int getMemoryDescInfoListCount() { return memoryDescInfoList_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index) { return memoryDescInfoList_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index) { return memoryDescInfoList_.get(index); } public static final int DEADLOCKTHREADINFOLIST_FIELD_NUMBER = 13; private java.util.List deadLockThreadInfoList_; @java.lang.Override public java.util.List getDeadLockThreadInfoListList() { return deadLockThreadInfoList_; } @java.lang.Override public java.util.List getDeadLockThreadInfoListOrBuilderList() { return deadLockThreadInfoList_; } @java.lang.Override public int getDeadLockThreadInfoListCount() { return deadLockThreadInfoList_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index) { return deadLockThreadInfoList_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder getDeadLockThreadInfoListOrBuilder( int index) { return deadLockThreadInfoList_.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 (threadCount_ != 0) { output.writeInt32(1, threadCount_); } if (deadLockThreadCount_ != 0) { output.writeInt32(2, deadLockThreadCount_); } if (cpuCount_ != 0) { output.writeInt32(3, cpuCount_); } if (totalMemory_ != 0L) { output.writeInt64(4, totalMemory_); } if (freeMemory_ != 0L) { output.writeInt64(5, freeMemory_); } if (cpuRate_ != 0D) { output.writeDouble(6, cpuRate_); } if (!getJavaVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, javaVersion_); } if (!getOsNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, osName_); } if (jvmTotalMemoery_ != 0L) { output.writeInt64(9, jvmTotalMemoery_); } if (jvmFreeMemory_ != 0L) { output.writeInt64(10, jvmFreeMemory_); } if (processCpuRate_ != 0D) { output.writeDouble(11, processCpuRate_); } for (int i = 0; i < memoryDescInfoList_.size(); i++) { output.writeMessage(12, memoryDescInfoList_.get(i)); } for (int i = 0; i < deadLockThreadInfoList_.size(); i++) { output.writeMessage(13, deadLockThreadInfoList_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (threadCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, threadCount_); } if (deadLockThreadCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, deadLockThreadCount_); } if (cpuCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, cpuCount_); } if (totalMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, totalMemory_); } if (freeMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, freeMemory_); } if (cpuRate_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, cpuRate_); } if (!getJavaVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, javaVersion_); } if (!getOsNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, osName_); } if (jvmTotalMemoery_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, jvmTotalMemoery_); } if (jvmFreeMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, jvmFreeMemory_); } if (processCpuRate_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, processCpuRate_); } for (int i = 0; i < memoryDescInfoList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, memoryDescInfoList_.get(i)); } for (int i = 0; i < deadLockThreadInfoList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, deadLockThreadInfoList_.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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo) obj; if (getThreadCount() != other.getThreadCount()) return false; if (getDeadLockThreadCount() != other.getDeadLockThreadCount()) return false; if (getCpuCount() != other.getCpuCount()) return false; if (getTotalMemory() != other.getTotalMemory()) return false; if (getFreeMemory() != other.getFreeMemory()) return false; if (java.lang.Double.doubleToLongBits(getCpuRate()) != java.lang.Double.doubleToLongBits( other.getCpuRate())) return false; if (!getJavaVersion() .equals(other.getJavaVersion())) return false; if (!getOsName() .equals(other.getOsName())) return false; if (getJvmTotalMemoery() != other.getJvmTotalMemoery()) return false; if (getJvmFreeMemory() != other.getJvmFreeMemory()) return false; if (java.lang.Double.doubleToLongBits(getProcessCpuRate()) != java.lang.Double.doubleToLongBits( other.getProcessCpuRate())) return false; if (!getMemoryDescInfoListList() .equals(other.getMemoryDescInfoListList())) return false; if (!getDeadLockThreadInfoListList() .equals(other.getDeadLockThreadInfoListList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THREADCOUNT_FIELD_NUMBER; hash = (53 * hash) + getThreadCount(); hash = (37 * hash) + DEADLOCKTHREADCOUNT_FIELD_NUMBER; hash = (53 * hash) + getDeadLockThreadCount(); hash = (37 * hash) + CPUCOUNT_FIELD_NUMBER; hash = (53 * hash) + getCpuCount(); hash = (37 * hash) + TOTALMEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalMemory()); hash = (37 * hash) + FREEMEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeMemory()); hash = (37 * hash) + CPURATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpuRate())); hash = (37 * hash) + JAVAVERSION_FIELD_NUMBER; hash = (53 * hash) + getJavaVersion().hashCode(); hash = (37 * hash) + OSNAME_FIELD_NUMBER; hash = (53 * hash) + getOsName().hashCode(); hash = (37 * hash) + JVMTOTALMEMOERY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getJvmTotalMemoery()); hash = (37 * hash) + JVMFREEMEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getJvmFreeMemory()); hash = (37 * hash) + PROCESSCPURATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getProcessCpuRate())); if (getMemoryDescInfoListCount() > 0) { hash = (37 * hash) + MEMORYDESCINFOLIST_FIELD_NUMBER; hash = (53 * hash) + getMemoryDescInfoListList().hashCode(); } if (getDeadLockThreadInfoListCount() > 0) { hash = (37 * hash) + DEADLOCKTHREADINFOLIST_FIELD_NUMBER; hash = (53 * hash) + getDeadLockThreadInfoListList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo 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 protocol.NodeInfo.MachineInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo.MachineInfo) org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMemoryDescInfoListFieldBuilder(); getDeadLockThreadInfoListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); threadCount_ = 0; deadLockThreadCount_ = 0; cpuCount_ = 0; totalMemory_ = 0L; freeMemory_ = 0L; cpuRate_ = 0D; javaVersion_ = ""; osName_ = ""; jvmTotalMemoery_ = 0L; jvmFreeMemory_ = 0L; processCpuRate_ = 0D; if (memoryDescInfoListBuilder_ == null) { memoryDescInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { memoryDescInfoListBuilder_.clear(); } if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { deadLockThreadInfoListBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo(this); int from_bitField0_ = bitField0_; result.threadCount_ = threadCount_; result.deadLockThreadCount_ = deadLockThreadCount_; result.cpuCount_ = cpuCount_; result.totalMemory_ = totalMemory_; result.freeMemory_ = freeMemory_; result.cpuRate_ = cpuRate_; result.javaVersion_ = javaVersion_; result.osName_ = osName_; result.jvmTotalMemoery_ = jvmTotalMemoery_; result.jvmFreeMemory_ = jvmFreeMemory_; result.processCpuRate_ = processCpuRate_; if (memoryDescInfoListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { memoryDescInfoList_ = java.util.Collections.unmodifiableList(memoryDescInfoList_); bitField0_ = (bitField0_ & ~0x00000001); } result.memoryDescInfoList_ = memoryDescInfoList_; } else { result.memoryDescInfoList_ = memoryDescInfoListBuilder_.build(); } if (deadLockThreadInfoListBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { deadLockThreadInfoList_ = java.util.Collections.unmodifiableList(deadLockThreadInfoList_); bitField0_ = (bitField0_ & ~0x00000002); } result.deadLockThreadInfoList_ = deadLockThreadInfoList_; } else { result.deadLockThreadInfoList_ = deadLockThreadInfoListBuilder_.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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.getDefaultInstance()) return this; if (other.getThreadCount() != 0) { setThreadCount(other.getThreadCount()); } if (other.getDeadLockThreadCount() != 0) { setDeadLockThreadCount(other.getDeadLockThreadCount()); } if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } if (other.getTotalMemory() != 0L) { setTotalMemory(other.getTotalMemory()); } if (other.getFreeMemory() != 0L) { setFreeMemory(other.getFreeMemory()); } if (other.getCpuRate() != 0D) { setCpuRate(other.getCpuRate()); } if (!other.getJavaVersion().isEmpty()) { javaVersion_ = other.javaVersion_; onChanged(); } if (!other.getOsName().isEmpty()) { osName_ = other.osName_; onChanged(); } if (other.getJvmTotalMemoery() != 0L) { setJvmTotalMemoery(other.getJvmTotalMemoery()); } if (other.getJvmFreeMemory() != 0L) { setJvmFreeMemory(other.getJvmFreeMemory()); } if (other.getProcessCpuRate() != 0D) { setProcessCpuRate(other.getProcessCpuRate()); } if (memoryDescInfoListBuilder_ == null) { if (!other.memoryDescInfoList_.isEmpty()) { if (memoryDescInfoList_.isEmpty()) { memoryDescInfoList_ = other.memoryDescInfoList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.addAll(other.memoryDescInfoList_); } onChanged(); } } else { if (!other.memoryDescInfoList_.isEmpty()) { if (memoryDescInfoListBuilder_.isEmpty()) { memoryDescInfoListBuilder_.dispose(); memoryDescInfoListBuilder_ = null; memoryDescInfoList_ = other.memoryDescInfoList_; bitField0_ = (bitField0_ & ~0x00000001); memoryDescInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMemoryDescInfoListFieldBuilder() : null; } else { memoryDescInfoListBuilder_.addAllMessages(other.memoryDescInfoList_); } } } if (deadLockThreadInfoListBuilder_ == null) { if (!other.deadLockThreadInfoList_.isEmpty()) { if (deadLockThreadInfoList_.isEmpty()) { deadLockThreadInfoList_ = other.deadLockThreadInfoList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.addAll(other.deadLockThreadInfoList_); } onChanged(); } } else { if (!other.deadLockThreadInfoList_.isEmpty()) { if (deadLockThreadInfoListBuilder_.isEmpty()) { deadLockThreadInfoListBuilder_.dispose(); deadLockThreadInfoListBuilder_ = null; deadLockThreadInfoList_ = other.deadLockThreadInfoList_; bitField0_ = (bitField0_ & ~0x00000002); deadLockThreadInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeadLockThreadInfoListFieldBuilder() : null; } else { deadLockThreadInfoListBuilder_.addAllMessages(other.deadLockThreadInfoList_); } } } 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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int threadCount_ ; /** * int32 threadCount = 1; * @return The threadCount. */ @java.lang.Override public int getThreadCount() { return threadCount_; } /** * int32 threadCount = 1; * @param value The threadCount to set. * @return This builder for chaining. */ public Builder setThreadCount(int value) { threadCount_ = value; onChanged(); return this; } /** * int32 threadCount = 1; * @return This builder for chaining. */ public Builder clearThreadCount() { threadCount_ = 0; onChanged(); return this; } private int deadLockThreadCount_ ; /** * int32 deadLockThreadCount = 2; * @return The deadLockThreadCount. */ @java.lang.Override public int getDeadLockThreadCount() { return deadLockThreadCount_; } /** * int32 deadLockThreadCount = 2; * @param value The deadLockThreadCount to set. * @return This builder for chaining. */ public Builder setDeadLockThreadCount(int value) { deadLockThreadCount_ = value; onChanged(); return this; } /** * int32 deadLockThreadCount = 2; * @return This builder for chaining. */ public Builder clearDeadLockThreadCount() { deadLockThreadCount_ = 0; onChanged(); return this; } private int cpuCount_ ; /** * int32 cpuCount = 3; * @return The cpuCount. */ @java.lang.Override public int getCpuCount() { return cpuCount_; } /** * int32 cpuCount = 3; * @param value The cpuCount to set. * @return This builder for chaining. */ public Builder setCpuCount(int value) { cpuCount_ = value; onChanged(); return this; } /** * int32 cpuCount = 3; * @return This builder for chaining. */ public Builder clearCpuCount() { cpuCount_ = 0; onChanged(); return this; } private long totalMemory_ ; /** * int64 totalMemory = 4; * @return The totalMemory. */ @java.lang.Override public long getTotalMemory() { return totalMemory_; } /** * int64 totalMemory = 4; * @param value The totalMemory to set. * @return This builder for chaining. */ public Builder setTotalMemory(long value) { totalMemory_ = value; onChanged(); return this; } /** * int64 totalMemory = 4; * @return This builder for chaining. */ public Builder clearTotalMemory() { totalMemory_ = 0L; onChanged(); return this; } private long freeMemory_ ; /** * int64 freeMemory = 5; * @return The freeMemory. */ @java.lang.Override public long getFreeMemory() { return freeMemory_; } /** * int64 freeMemory = 5; * @param value The freeMemory to set. * @return This builder for chaining. */ public Builder setFreeMemory(long value) { freeMemory_ = value; onChanged(); return this; } /** * int64 freeMemory = 5; * @return This builder for chaining. */ public Builder clearFreeMemory() { freeMemory_ = 0L; onChanged(); return this; } private double cpuRate_ ; /** * double cpuRate = 6; * @return The cpuRate. */ @java.lang.Override public double getCpuRate() { return cpuRate_; } /** * double cpuRate = 6; * @param value The cpuRate to set. * @return This builder for chaining. */ public Builder setCpuRate(double value) { cpuRate_ = value; onChanged(); return this; } /** * double cpuRate = 6; * @return This builder for chaining. */ public Builder clearCpuRate() { cpuRate_ = 0D; onChanged(); return this; } private java.lang.Object javaVersion_ = ""; /** * string javaVersion = 7; * @return The javaVersion. */ public java.lang.String getJavaVersion() { java.lang.Object ref = javaVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); javaVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string javaVersion = 7; * @return The bytes for javaVersion. */ public com.google.protobuf.ByteString getJavaVersionBytes() { java.lang.Object ref = javaVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string javaVersion = 7; * @param value The javaVersion to set. * @return This builder for chaining. */ public Builder setJavaVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } javaVersion_ = value; onChanged(); return this; } /** * string javaVersion = 7; * @return This builder for chaining. */ public Builder clearJavaVersion() { javaVersion_ = getDefaultInstance().getJavaVersion(); onChanged(); return this; } /** * string javaVersion = 7; * @param value The bytes for javaVersion to set. * @return This builder for chaining. */ public Builder setJavaVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); javaVersion_ = value; onChanged(); return this; } private java.lang.Object osName_ = ""; /** * string osName = 8; * @return The osName. */ public java.lang.String getOsName() { java.lang.Object ref = osName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string osName = 8; * @return The bytes for osName. */ public com.google.protobuf.ByteString getOsNameBytes() { java.lang.Object ref = osName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); osName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string osName = 8; * @param value The osName to set. * @return This builder for chaining. */ public Builder setOsName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } osName_ = value; onChanged(); return this; } /** * string osName = 8; * @return This builder for chaining. */ public Builder clearOsName() { osName_ = getDefaultInstance().getOsName(); onChanged(); return this; } /** * string osName = 8; * @param value The bytes for osName to set. * @return This builder for chaining. */ public Builder setOsNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); osName_ = value; onChanged(); return this; } private long jvmTotalMemoery_ ; /** * int64 jvmTotalMemoery = 9; * @return The jvmTotalMemoery. */ @java.lang.Override public long getJvmTotalMemoery() { return jvmTotalMemoery_; } /** * int64 jvmTotalMemoery = 9; * @param value The jvmTotalMemoery to set. * @return This builder for chaining. */ public Builder setJvmTotalMemoery(long value) { jvmTotalMemoery_ = value; onChanged(); return this; } /** * int64 jvmTotalMemoery = 9; * @return This builder for chaining. */ public Builder clearJvmTotalMemoery() { jvmTotalMemoery_ = 0L; onChanged(); return this; } private long jvmFreeMemory_ ; /** * int64 jvmFreeMemory = 10; * @return The jvmFreeMemory. */ @java.lang.Override public long getJvmFreeMemory() { return jvmFreeMemory_; } /** * int64 jvmFreeMemory = 10; * @param value The jvmFreeMemory to set. * @return This builder for chaining. */ public Builder setJvmFreeMemory(long value) { jvmFreeMemory_ = value; onChanged(); return this; } /** * int64 jvmFreeMemory = 10; * @return This builder for chaining. */ public Builder clearJvmFreeMemory() { jvmFreeMemory_ = 0L; onChanged(); return this; } private double processCpuRate_ ; /** * double processCpuRate = 11; * @return The processCpuRate. */ @java.lang.Override public double getProcessCpuRate() { return processCpuRate_; } /** * double processCpuRate = 11; * @param value The processCpuRate to set. * @return This builder for chaining. */ public Builder setProcessCpuRate(double value) { processCpuRate_ = value; onChanged(); return this; } /** * double processCpuRate = 11; * @return This builder for chaining. */ public Builder clearProcessCpuRate() { processCpuRate_ = 0D; onChanged(); return this; } private java.util.List memoryDescInfoList_ = java.util.Collections.emptyList(); private void ensureMemoryDescInfoListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { memoryDescInfoList_ = new java.util.ArrayList(memoryDescInfoList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder> memoryDescInfoListBuilder_; public java.util.List getMemoryDescInfoListList() { if (memoryDescInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(memoryDescInfoList_); } else { return memoryDescInfoListBuilder_.getMessageList(); } } public int getMemoryDescInfoListCount() { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.size(); } else { return memoryDescInfoListBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index) { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.get(index); } else { return memoryDescInfoListBuilder_.getMessage(index); } } public Builder setMemoryDescInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo value) { if (memoryDescInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.set(index, value); onChanged(); } else { memoryDescInfoListBuilder_.setMessage(index, value); } return this; } public Builder setMemoryDescInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder builderForValue) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.set(index, builderForValue.build()); onChanged(); } else { memoryDescInfoListBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addMemoryDescInfoList(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo value) { if (memoryDescInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(value); onChanged(); } else { memoryDescInfoListBuilder_.addMessage(value); } return this; } public Builder addMemoryDescInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo value) { if (memoryDescInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(index, value); onChanged(); } else { memoryDescInfoListBuilder_.addMessage(index, value); } return this; } public Builder addMemoryDescInfoList( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder builderForValue) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(builderForValue.build()); onChanged(); } else { memoryDescInfoListBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addMemoryDescInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder builderForValue) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(index, builderForValue.build()); onChanged(); } else { memoryDescInfoListBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllMemoryDescInfoList( java.lang.Iterable values) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, memoryDescInfoList_); onChanged(); } else { memoryDescInfoListBuilder_.addAllMessages(values); } return this; } public Builder clearMemoryDescInfoList() { if (memoryDescInfoListBuilder_ == null) { memoryDescInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { memoryDescInfoListBuilder_.clear(); } return this; } public Builder removeMemoryDescInfoList(int index) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.remove(index); onChanged(); } else { memoryDescInfoListBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder getMemoryDescInfoListBuilder( int index) { return getMemoryDescInfoListFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index) { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.get(index); } else { return memoryDescInfoListBuilder_.getMessageOrBuilder(index); } } public java.util.List getMemoryDescInfoListOrBuilderList() { if (memoryDescInfoListBuilder_ != null) { return memoryDescInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(memoryDescInfoList_); } } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder addMemoryDescInfoListBuilder() { return getMemoryDescInfoListFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder addMemoryDescInfoListBuilder( int index) { return getMemoryDescInfoListFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()); } public java.util.List getMemoryDescInfoListBuilderList() { return getMemoryDescInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder> getMemoryDescInfoListFieldBuilder() { if (memoryDescInfoListBuilder_ == null) { memoryDescInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder>( memoryDescInfoList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); memoryDescInfoList_ = null; } return memoryDescInfoListBuilder_; } private java.util.List deadLockThreadInfoList_ = java.util.Collections.emptyList(); private void ensureDeadLockThreadInfoListIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { deadLockThreadInfoList_ = new java.util.ArrayList(deadLockThreadInfoList_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder> deadLockThreadInfoListBuilder_; public java.util.List getDeadLockThreadInfoListList() { if (deadLockThreadInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(deadLockThreadInfoList_); } else { return deadLockThreadInfoListBuilder_.getMessageList(); } } public int getDeadLockThreadInfoListCount() { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.size(); } else { return deadLockThreadInfoListBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index) { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.get(index); } else { return deadLockThreadInfoListBuilder_.getMessage(index); } } public Builder setDeadLockThreadInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo value) { if (deadLockThreadInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.set(index, value); onChanged(); } else { deadLockThreadInfoListBuilder_.setMessage(index, value); } return this; } public Builder setDeadLockThreadInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder builderForValue) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.set(index, builderForValue.build()); onChanged(); } else { deadLockThreadInfoListBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addDeadLockThreadInfoList(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo value) { if (deadLockThreadInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(value); onChanged(); } else { deadLockThreadInfoListBuilder_.addMessage(value); } return this; } public Builder addDeadLockThreadInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo value) { if (deadLockThreadInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(index, value); onChanged(); } else { deadLockThreadInfoListBuilder_.addMessage(index, value); } return this; } public Builder addDeadLockThreadInfoList( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder builderForValue) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(builderForValue.build()); onChanged(); } else { deadLockThreadInfoListBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addDeadLockThreadInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder builderForValue) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(index, builderForValue.build()); onChanged(); } else { deadLockThreadInfoListBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllDeadLockThreadInfoList( java.lang.Iterable values) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, deadLockThreadInfoList_); onChanged(); } else { deadLockThreadInfoListBuilder_.addAllMessages(values); } return this; } public Builder clearDeadLockThreadInfoList() { if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { deadLockThreadInfoListBuilder_.clear(); } return this; } public Builder removeDeadLockThreadInfoList(int index) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.remove(index); onChanged(); } else { deadLockThreadInfoListBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder getDeadLockThreadInfoListBuilder( int index) { return getDeadLockThreadInfoListFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder getDeadLockThreadInfoListOrBuilder( int index) { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.get(index); } else { return deadLockThreadInfoListBuilder_.getMessageOrBuilder(index); } } public java.util.List getDeadLockThreadInfoListOrBuilderList() { if (deadLockThreadInfoListBuilder_ != null) { return deadLockThreadInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(deadLockThreadInfoList_); } } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder addDeadLockThreadInfoListBuilder() { return getDeadLockThreadInfoListFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder addDeadLockThreadInfoListBuilder( int index) { return getDeadLockThreadInfoListFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()); } public java.util.List getDeadLockThreadInfoListBuilderList() { return getDeadLockThreadInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder> getDeadLockThreadInfoListFieldBuilder() { if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder>( deadLockThreadInfoList_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); deadLockThreadInfoList_ = null; } return deadLockThreadInfoListBuilder_; } @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:protocol.NodeInfo.MachineInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.MachineInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MachineInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MachineInfo(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.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int BEGINSYNCNUM_FIELD_NUMBER = 1; private long beginSyncNum_; /** * int64 beginSyncNum = 1; * @return The beginSyncNum. */ @java.lang.Override public long getBeginSyncNum() { return beginSyncNum_; } public static final int BLOCK_FIELD_NUMBER = 2; private volatile java.lang.Object block_; /** * string block = 2; * @return The block. */ @java.lang.Override public java.lang.String getBlock() { java.lang.Object ref = block_; 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(); block_ = s; return s; } } /** * string block = 2; * @return The bytes for block. */ @java.lang.Override public com.google.protobuf.ByteString getBlockBytes() { java.lang.Object ref = block_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); block_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOLIDITYBLOCK_FIELD_NUMBER = 3; private volatile java.lang.Object solidityBlock_; /** * string solidityBlock = 3; * @return The solidityBlock. */ @java.lang.Override public java.lang.String getSolidityBlock() { java.lang.Object ref = solidityBlock_; 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(); solidityBlock_ = s; return s; } } /** * string solidityBlock = 3; * @return The bytes for solidityBlock. */ @java.lang.Override public com.google.protobuf.ByteString getSolidityBlockBytes() { java.lang.Object ref = solidityBlock_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); solidityBlock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENTCONNECTCOUNT_FIELD_NUMBER = 4; private int currentConnectCount_; /** *
     * connect information
     * 
* * int32 currentConnectCount = 4; * @return The currentConnectCount. */ @java.lang.Override public int getCurrentConnectCount() { return currentConnectCount_; } public static final int ACTIVECONNECTCOUNT_FIELD_NUMBER = 5; private int activeConnectCount_; /** * int32 activeConnectCount = 5; * @return The activeConnectCount. */ @java.lang.Override public int getActiveConnectCount() { return activeConnectCount_; } public static final int PASSIVECONNECTCOUNT_FIELD_NUMBER = 6; private int passiveConnectCount_; /** * int32 passiveConnectCount = 6; * @return The passiveConnectCount. */ @java.lang.Override public int getPassiveConnectCount() { return passiveConnectCount_; } public static final int TOTALFLOW_FIELD_NUMBER = 7; private long totalFlow_; /** * int64 totalFlow = 7; * @return The totalFlow. */ @java.lang.Override public long getTotalFlow() { return totalFlow_; } public static final int PEERINFOLIST_FIELD_NUMBER = 8; private java.util.List peerInfoList_; @java.lang.Override public java.util.List getPeerInfoListList() { return peerInfoList_; } @java.lang.Override public java.util.List getPeerInfoListOrBuilderList() { return peerInfoList_; } @java.lang.Override public int getPeerInfoListCount() { return peerInfoList_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index) { return peerInfoList_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder getPeerInfoListOrBuilder( int index) { return peerInfoList_.get(index); } public static final int CONFIGNODEINFO_FIELD_NUMBER = 9; private org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo configNodeInfo_; /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return Whether the configNodeInfo field is set. */ @java.lang.Override public boolean hasConfigNodeInfo() { return configNodeInfo_ != null; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return The configNodeInfo. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo() { return configNodeInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder() { return getConfigNodeInfo(); } public static final int MACHINEINFO_FIELD_NUMBER = 10; private org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo machineInfo_; /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return Whether the machineInfo field is set. */ @java.lang.Override public boolean hasMachineInfo() { return machineInfo_ != null; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return The machineInfo. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getMachineInfo() { return machineInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder() { return getMachineInfo(); } public static final int CHEATWITNESSINFOMAP_FIELD_NUMBER = 11; private static final class CheatWitnessInfoMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> cheatWitnessInfoMap_; private com.google.protobuf.MapField internalGetCheatWitnessInfoMap() { if (cheatWitnessInfoMap_ == null) { return com.google.protobuf.MapField.emptyMapField( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry); } return cheatWitnessInfoMap_; } public int getCheatWitnessInfoMapCount() { return internalGetCheatWitnessInfoMap().getMap().size(); } @java.lang.Override public boolean containsCheatWitnessInfoMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCheatWitnessInfoMap().getMap().containsKey(key); } /** * Use {@link #getCheatWitnessInfoMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCheatWitnessInfoMap() { return getCheatWitnessInfoMapMap(); } @java.lang.Override public java.util.Map getCheatWitnessInfoMapMap() { return internalGetCheatWitnessInfoMap().getMap(); } @java.lang.Override public java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCheatWitnessInfoMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @java.lang.Override public java.lang.String getCheatWitnessInfoMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCheatWitnessInfoMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (beginSyncNum_ != 0L) { output.writeInt64(1, beginSyncNum_); } if (!getBlockBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, block_); } if (!getSolidityBlockBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, solidityBlock_); } if (currentConnectCount_ != 0) { output.writeInt32(4, currentConnectCount_); } if (activeConnectCount_ != 0) { output.writeInt32(5, activeConnectCount_); } if (passiveConnectCount_ != 0) { output.writeInt32(6, passiveConnectCount_); } if (totalFlow_ != 0L) { output.writeInt64(7, totalFlow_); } for (int i = 0; i < peerInfoList_.size(); i++) { output.writeMessage(8, peerInfoList_.get(i)); } if (configNodeInfo_ != null) { output.writeMessage(9, getConfigNodeInfo()); } if (machineInfo_ != null) { output.writeMessage(10, getMachineInfo()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCheatWitnessInfoMap(), CheatWitnessInfoMapDefaultEntryHolder.defaultEntry, 11); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (beginSyncNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, beginSyncNum_); } if (!getBlockBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, block_); } if (!getSolidityBlockBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, solidityBlock_); } if (currentConnectCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, currentConnectCount_); } if (activeConnectCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, activeConnectCount_); } if (passiveConnectCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, passiveConnectCount_); } if (totalFlow_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, totalFlow_); } for (int i = 0; i < peerInfoList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, peerInfoList_.get(i)); } if (configNodeInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getConfigNodeInfo()); } if (machineInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMachineInfo()); } for (java.util.Map.Entry entry : internalGetCheatWitnessInfoMap().getMap().entrySet()) { com.google.protobuf.MapEntry cheatWitnessInfoMap__ = CheatWitnessInfoMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, cheatWitnessInfoMap__); } 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.vision.visionjsdk.proto.Response.NodeInfo)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeInfo other = (org.vision.visionjsdk.proto.Response.NodeInfo) obj; if (getBeginSyncNum() != other.getBeginSyncNum()) return false; if (!getBlock() .equals(other.getBlock())) return false; if (!getSolidityBlock() .equals(other.getSolidityBlock())) return false; if (getCurrentConnectCount() != other.getCurrentConnectCount()) return false; if (getActiveConnectCount() != other.getActiveConnectCount()) return false; if (getPassiveConnectCount() != other.getPassiveConnectCount()) return false; if (getTotalFlow() != other.getTotalFlow()) return false; if (!getPeerInfoListList() .equals(other.getPeerInfoListList())) return false; if (hasConfigNodeInfo() != other.hasConfigNodeInfo()) return false; if (hasConfigNodeInfo()) { if (!getConfigNodeInfo() .equals(other.getConfigNodeInfo())) return false; } if (hasMachineInfo() != other.hasMachineInfo()) return false; if (hasMachineInfo()) { if (!getMachineInfo() .equals(other.getMachineInfo())) return false; } if (!internalGetCheatWitnessInfoMap().equals( other.internalGetCheatWitnessInfoMap())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BEGINSYNCNUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBeginSyncNum()); hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); hash = (37 * hash) + SOLIDITYBLOCK_FIELD_NUMBER; hash = (53 * hash) + getSolidityBlock().hashCode(); hash = (37 * hash) + CURRENTCONNECTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getCurrentConnectCount(); hash = (37 * hash) + ACTIVECONNECTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getActiveConnectCount(); hash = (37 * hash) + PASSIVECONNECTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getPassiveConnectCount(); hash = (37 * hash) + TOTALFLOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalFlow()); if (getPeerInfoListCount() > 0) { hash = (37 * hash) + PEERINFOLIST_FIELD_NUMBER; hash = (53 * hash) + getPeerInfoListList().hashCode(); } if (hasConfigNodeInfo()) { hash = (37 * hash) + CONFIGNODEINFO_FIELD_NUMBER; hash = (53 * hash) + getConfigNodeInfo().hashCode(); } if (hasMachineInfo()) { hash = (37 * hash) + MACHINEINFO_FIELD_NUMBER; hash = (53 * hash) + getMachineInfo().hashCode(); } if (!internalGetCheatWitnessInfoMap().getMap().isEmpty()) { hash = (37 * hash) + CHEATWITNESSINFOMAP_FIELD_NUMBER; hash = (53 * hash) + internalGetCheatWitnessInfoMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeInfo 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.vision.visionjsdk.proto.Response.NodeInfo 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 protocol.NodeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeInfo) org.vision.visionjsdk.proto.Response.NodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 11: return internalGetCheatWitnessInfoMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 11: return internalGetMutableCheatWitnessInfoMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeInfo.class, org.vision.visionjsdk.proto.Response.NodeInfo.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPeerInfoListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); beginSyncNum_ = 0L; block_ = ""; solidityBlock_ = ""; currentConnectCount_ = 0; activeConnectCount_ = 0; passiveConnectCount_ = 0; totalFlow_ = 0L; if (peerInfoListBuilder_ == null) { peerInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { peerInfoListBuilder_.clear(); } if (configNodeInfoBuilder_ == null) { configNodeInfo_ = null; } else { configNodeInfo_ = null; configNodeInfoBuilder_ = null; } if (machineInfoBuilder_ == null) { machineInfo_ = null; } else { machineInfo_ = null; machineInfoBuilder_ = null; } internalGetMutableCheatWitnessInfoMap().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeInfo.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo build() { org.vision.visionjsdk.proto.Response.NodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeInfo buildPartial() { org.vision.visionjsdk.proto.Response.NodeInfo result = new org.vision.visionjsdk.proto.Response.NodeInfo(this); int from_bitField0_ = bitField0_; result.beginSyncNum_ = beginSyncNum_; result.block_ = block_; result.solidityBlock_ = solidityBlock_; result.currentConnectCount_ = currentConnectCount_; result.activeConnectCount_ = activeConnectCount_; result.passiveConnectCount_ = passiveConnectCount_; result.totalFlow_ = totalFlow_; if (peerInfoListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { peerInfoList_ = java.util.Collections.unmodifiableList(peerInfoList_); bitField0_ = (bitField0_ & ~0x00000001); } result.peerInfoList_ = peerInfoList_; } else { result.peerInfoList_ = peerInfoListBuilder_.build(); } if (configNodeInfoBuilder_ == null) { result.configNodeInfo_ = configNodeInfo_; } else { result.configNodeInfo_ = configNodeInfoBuilder_.build(); } if (machineInfoBuilder_ == null) { result.machineInfo_ = machineInfo_; } else { result.machineInfo_ = machineInfoBuilder_.build(); } result.cheatWitnessInfoMap_ = internalGetCheatWitnessInfoMap(); result.cheatWitnessInfoMap_.makeImmutable(); 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.vision.visionjsdk.proto.Response.NodeInfo) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeInfo other) { if (other == org.vision.visionjsdk.proto.Response.NodeInfo.getDefaultInstance()) return this; if (other.getBeginSyncNum() != 0L) { setBeginSyncNum(other.getBeginSyncNum()); } if (!other.getBlock().isEmpty()) { block_ = other.block_; onChanged(); } if (!other.getSolidityBlock().isEmpty()) { solidityBlock_ = other.solidityBlock_; onChanged(); } if (other.getCurrentConnectCount() != 0) { setCurrentConnectCount(other.getCurrentConnectCount()); } if (other.getActiveConnectCount() != 0) { setActiveConnectCount(other.getActiveConnectCount()); } if (other.getPassiveConnectCount() != 0) { setPassiveConnectCount(other.getPassiveConnectCount()); } if (other.getTotalFlow() != 0L) { setTotalFlow(other.getTotalFlow()); } if (peerInfoListBuilder_ == null) { if (!other.peerInfoList_.isEmpty()) { if (peerInfoList_.isEmpty()) { peerInfoList_ = other.peerInfoList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePeerInfoListIsMutable(); peerInfoList_.addAll(other.peerInfoList_); } onChanged(); } } else { if (!other.peerInfoList_.isEmpty()) { if (peerInfoListBuilder_.isEmpty()) { peerInfoListBuilder_.dispose(); peerInfoListBuilder_ = null; peerInfoList_ = other.peerInfoList_; bitField0_ = (bitField0_ & ~0x00000001); peerInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPeerInfoListFieldBuilder() : null; } else { peerInfoListBuilder_.addAllMessages(other.peerInfoList_); } } } if (other.hasConfigNodeInfo()) { mergeConfigNodeInfo(other.getConfigNodeInfo()); } if (other.hasMachineInfo()) { mergeMachineInfo(other.getMachineInfo()); } internalGetMutableCheatWitnessInfoMap().mergeFrom( other.internalGetCheatWitnessInfoMap()); 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.vision.visionjsdk.proto.Response.NodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long beginSyncNum_ ; /** * int64 beginSyncNum = 1; * @return The beginSyncNum. */ @java.lang.Override public long getBeginSyncNum() { return beginSyncNum_; } /** * int64 beginSyncNum = 1; * @param value The beginSyncNum to set. * @return This builder for chaining. */ public Builder setBeginSyncNum(long value) { beginSyncNum_ = value; onChanged(); return this; } /** * int64 beginSyncNum = 1; * @return This builder for chaining. */ public Builder clearBeginSyncNum() { beginSyncNum_ = 0L; onChanged(); return this; } private java.lang.Object block_ = ""; /** * string block = 2; * @return The block. */ public java.lang.String getBlock() { java.lang.Object ref = block_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); block_ = s; return s; } else { return (java.lang.String) ref; } } /** * string block = 2; * @return The bytes for block. */ public com.google.protobuf.ByteString getBlockBytes() { java.lang.Object ref = block_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); block_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string block = 2; * @param value The block to set. * @return This builder for chaining. */ public Builder setBlock( java.lang.String value) { if (value == null) { throw new NullPointerException(); } block_ = value; onChanged(); return this; } /** * string block = 2; * @return This builder for chaining. */ public Builder clearBlock() { block_ = getDefaultInstance().getBlock(); onChanged(); return this; } /** * string block = 2; * @param value The bytes for block to set. * @return This builder for chaining. */ public Builder setBlockBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); block_ = value; onChanged(); return this; } private java.lang.Object solidityBlock_ = ""; /** * string solidityBlock = 3; * @return The solidityBlock. */ public java.lang.String getSolidityBlock() { java.lang.Object ref = solidityBlock_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); solidityBlock_ = s; return s; } else { return (java.lang.String) ref; } } /** * string solidityBlock = 3; * @return The bytes for solidityBlock. */ public com.google.protobuf.ByteString getSolidityBlockBytes() { java.lang.Object ref = solidityBlock_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); solidityBlock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string solidityBlock = 3; * @param value The solidityBlock to set. * @return This builder for chaining. */ public Builder setSolidityBlock( java.lang.String value) { if (value == null) { throw new NullPointerException(); } solidityBlock_ = value; onChanged(); return this; } /** * string solidityBlock = 3; * @return This builder for chaining. */ public Builder clearSolidityBlock() { solidityBlock_ = getDefaultInstance().getSolidityBlock(); onChanged(); return this; } /** * string solidityBlock = 3; * @param value The bytes for solidityBlock to set. * @return This builder for chaining. */ public Builder setSolidityBlockBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); solidityBlock_ = value; onChanged(); return this; } private int currentConnectCount_ ; /** *
       * connect information
       * 
* * int32 currentConnectCount = 4; * @return The currentConnectCount. */ @java.lang.Override public int getCurrentConnectCount() { return currentConnectCount_; } /** *
       * connect information
       * 
* * int32 currentConnectCount = 4; * @param value The currentConnectCount to set. * @return This builder for chaining. */ public Builder setCurrentConnectCount(int value) { currentConnectCount_ = value; onChanged(); return this; } /** *
       * connect information
       * 
* * int32 currentConnectCount = 4; * @return This builder for chaining. */ public Builder clearCurrentConnectCount() { currentConnectCount_ = 0; onChanged(); return this; } private int activeConnectCount_ ; /** * int32 activeConnectCount = 5; * @return The activeConnectCount. */ @java.lang.Override public int getActiveConnectCount() { return activeConnectCount_; } /** * int32 activeConnectCount = 5; * @param value The activeConnectCount to set. * @return This builder for chaining. */ public Builder setActiveConnectCount(int value) { activeConnectCount_ = value; onChanged(); return this; } /** * int32 activeConnectCount = 5; * @return This builder for chaining. */ public Builder clearActiveConnectCount() { activeConnectCount_ = 0; onChanged(); return this; } private int passiveConnectCount_ ; /** * int32 passiveConnectCount = 6; * @return The passiveConnectCount. */ @java.lang.Override public int getPassiveConnectCount() { return passiveConnectCount_; } /** * int32 passiveConnectCount = 6; * @param value The passiveConnectCount to set. * @return This builder for chaining. */ public Builder setPassiveConnectCount(int value) { passiveConnectCount_ = value; onChanged(); return this; } /** * int32 passiveConnectCount = 6; * @return This builder for chaining. */ public Builder clearPassiveConnectCount() { passiveConnectCount_ = 0; onChanged(); return this; } private long totalFlow_ ; /** * int64 totalFlow = 7; * @return The totalFlow. */ @java.lang.Override public long getTotalFlow() { return totalFlow_; } /** * int64 totalFlow = 7; * @param value The totalFlow to set. * @return This builder for chaining. */ public Builder setTotalFlow(long value) { totalFlow_ = value; onChanged(); return this; } /** * int64 totalFlow = 7; * @return This builder for chaining. */ public Builder clearTotalFlow() { totalFlow_ = 0L; onChanged(); return this; } private java.util.List peerInfoList_ = java.util.Collections.emptyList(); private void ensurePeerInfoListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { peerInfoList_ = new java.util.ArrayList(peerInfoList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder> peerInfoListBuilder_; public java.util.List getPeerInfoListList() { if (peerInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(peerInfoList_); } else { return peerInfoListBuilder_.getMessageList(); } } public int getPeerInfoListCount() { if (peerInfoListBuilder_ == null) { return peerInfoList_.size(); } else { return peerInfoListBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index) { if (peerInfoListBuilder_ == null) { return peerInfoList_.get(index); } else { return peerInfoListBuilder_.getMessage(index); } } public Builder setPeerInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo value) { if (peerInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeerInfoListIsMutable(); peerInfoList_.set(index, value); onChanged(); } else { peerInfoListBuilder_.setMessage(index, value); } return this; } public Builder setPeerInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.set(index, builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addPeerInfoList(org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo value) { if (peerInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeerInfoListIsMutable(); peerInfoList_.add(value); onChanged(); } else { peerInfoListBuilder_.addMessage(value); } return this; } public Builder addPeerInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo value) { if (peerInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeerInfoListIsMutable(); peerInfoList_.add(index, value); onChanged(); } else { peerInfoListBuilder_.addMessage(index, value); } return this; } public Builder addPeerInfoList( org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.add(builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addPeerInfoList( int index, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.add(index, builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllPeerInfoList( java.lang.Iterable values) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peerInfoList_); onChanged(); } else { peerInfoListBuilder_.addAllMessages(values); } return this; } public Builder clearPeerInfoList() { if (peerInfoListBuilder_ == null) { peerInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { peerInfoListBuilder_.clear(); } return this; } public Builder removePeerInfoList(int index) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.remove(index); onChanged(); } else { peerInfoListBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder getPeerInfoListBuilder( int index) { return getPeerInfoListFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder getPeerInfoListOrBuilder( int index) { if (peerInfoListBuilder_ == null) { return peerInfoList_.get(index); } else { return peerInfoListBuilder_.getMessageOrBuilder(index); } } public java.util.List getPeerInfoListOrBuilderList() { if (peerInfoListBuilder_ != null) { return peerInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(peerInfoList_); } } public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder addPeerInfoListBuilder() { return getPeerInfoListFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder addPeerInfoListBuilder( int index) { return getPeerInfoListFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()); } public java.util.List getPeerInfoListBuilderList() { return getPeerInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder> getPeerInfoListFieldBuilder() { if (peerInfoListBuilder_ == null) { peerInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.PeerInfoOrBuilder>( peerInfoList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); peerInfoList_ = null; } return peerInfoListBuilder_; } private org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo configNodeInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder> configNodeInfoBuilder_; /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return Whether the configNodeInfo field is set. */ public boolean hasConfigNodeInfo() { return configNodeInfoBuilder_ != null || configNodeInfo_ != null; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return The configNodeInfo. */ public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo() { if (configNodeInfoBuilder_ == null) { return configNodeInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } else { return configNodeInfoBuilder_.getMessage(); } } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder setConfigNodeInfo(org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo value) { if (configNodeInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configNodeInfo_ = value; onChanged(); } else { configNodeInfoBuilder_.setMessage(value); } return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder setConfigNodeInfo( org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder builderForValue) { if (configNodeInfoBuilder_ == null) { configNodeInfo_ = builderForValue.build(); onChanged(); } else { configNodeInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder mergeConfigNodeInfo(org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo value) { if (configNodeInfoBuilder_ == null) { if (configNodeInfo_ != null) { configNodeInfo_ = org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.newBuilder(configNodeInfo_).mergeFrom(value).buildPartial(); } else { configNodeInfo_ = value; } onChanged(); } else { configNodeInfoBuilder_.mergeFrom(value); } return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder clearConfigNodeInfo() { if (configNodeInfoBuilder_ == null) { configNodeInfo_ = null; onChanged(); } else { configNodeInfo_ = null; configNodeInfoBuilder_ = null; } return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder getConfigNodeInfoBuilder() { onChanged(); return getConfigNodeInfoFieldBuilder().getBuilder(); } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder() { if (configNodeInfoBuilder_ != null) { return configNodeInfoBuilder_.getMessageOrBuilder(); } else { return configNodeInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder> getConfigNodeInfoFieldBuilder() { if (configNodeInfoBuilder_ == null) { configNodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder>( getConfigNodeInfo(), getParentForChildren(), isClean()); configNodeInfo_ = null; } return configNodeInfoBuilder_; } private org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo machineInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder> machineInfoBuilder_; /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return Whether the machineInfo field is set. */ public boolean hasMachineInfo() { return machineInfoBuilder_ != null || machineInfo_ != null; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return The machineInfo. */ public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo getMachineInfo() { if (machineInfoBuilder_ == null) { return machineInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } else { return machineInfoBuilder_.getMessage(); } } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder setMachineInfo(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo value) { if (machineInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } machineInfo_ = value; onChanged(); } else { machineInfoBuilder_.setMessage(value); } return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder setMachineInfo( org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder builderForValue) { if (machineInfoBuilder_ == null) { machineInfo_ = builderForValue.build(); onChanged(); } else { machineInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder mergeMachineInfo(org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo value) { if (machineInfoBuilder_ == null) { if (machineInfo_ != null) { machineInfo_ = org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.newBuilder(machineInfo_).mergeFrom(value).buildPartial(); } else { machineInfo_ = value; } onChanged(); } else { machineInfoBuilder_.mergeFrom(value); } return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder clearMachineInfo() { if (machineInfoBuilder_ == null) { machineInfo_ = null; onChanged(); } else { machineInfo_ = null; machineInfoBuilder_ = null; } return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder getMachineInfoBuilder() { onChanged(); return getMachineInfoFieldBuilder().getBuilder(); } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder() { if (machineInfoBuilder_ != null) { return machineInfoBuilder_.getMessageOrBuilder(); } else { return machineInfo_ == null ? org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder> getMachineInfoFieldBuilder() { if (machineInfoBuilder_ == null) { machineInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfo.Builder, org.vision.visionjsdk.proto.Response.NodeInfo.MachineInfoOrBuilder>( getMachineInfo(), getParentForChildren(), isClean()); machineInfo_ = null; } return machineInfoBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> cheatWitnessInfoMap_; private com.google.protobuf.MapField internalGetCheatWitnessInfoMap() { if (cheatWitnessInfoMap_ == null) { return com.google.protobuf.MapField.emptyMapField( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry); } return cheatWitnessInfoMap_; } private com.google.protobuf.MapField internalGetMutableCheatWitnessInfoMap() { onChanged();; if (cheatWitnessInfoMap_ == null) { cheatWitnessInfoMap_ = com.google.protobuf.MapField.newMapField( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry); } if (!cheatWitnessInfoMap_.isMutable()) { cheatWitnessInfoMap_ = cheatWitnessInfoMap_.copy(); } return cheatWitnessInfoMap_; } public int getCheatWitnessInfoMapCount() { return internalGetCheatWitnessInfoMap().getMap().size(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ @java.lang.Override public boolean containsCheatWitnessInfoMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCheatWitnessInfoMap().getMap().containsKey(key); } /** * Use {@link #getCheatWitnessInfoMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCheatWitnessInfoMap() { return getCheatWitnessInfoMapMap(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ @java.lang.Override public java.util.Map getCheatWitnessInfoMapMap() { return internalGetCheatWitnessInfoMap().getMap(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ @java.lang.Override public java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCheatWitnessInfoMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> cheatWitnessInfoMap = 11; */ @java.lang.Override public java.lang.String getCheatWitnessInfoMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCheatWitnessInfoMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCheatWitnessInfoMap() { internalGetMutableCheatWitnessInfoMap().getMutableMap() .clear(); return this; } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder removeCheatWitnessInfoMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCheatWitnessInfoMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCheatWitnessInfoMap() { return internalGetMutableCheatWitnessInfoMap().getMutableMap(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder putCheatWitnessInfoMap( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCheatWitnessInfoMap().getMutableMap() .put(key, value); return this; } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder putAllCheatWitnessInfoMap( java.util.Map values) { internalGetMutableCheatWitnessInfoMap().getMutableMap() .putAll(values); 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:protocol.NodeInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo) private static final org.vision.visionjsdk.proto.Response.NodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeInfo(); } public static org.vision.visionjsdk.proto.Response.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeInfo(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.vision.visionjsdk.proto.Response.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrder) com.google.protobuf.MessageOrBuilder { /** * bytes order_id = 1; * @return The orderId. */ com.google.protobuf.ByteString getOrderId(); /** * bytes owner_address = 2; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 create_time = 3; * @return The createTime. */ long getCreateTime(); /** * bytes sell_token_id = 4; * @return The sellTokenId. */ com.google.protobuf.ByteString getSellTokenId(); /** * int64 sell_token_quantity = 5; * @return The sellTokenQuantity. */ long getSellTokenQuantity(); /** * bytes buy_token_id = 6; * @return The buyTokenId. */ com.google.protobuf.ByteString getBuyTokenId(); /** *
     * min to receive
     * 
* * int64 buy_token_quantity = 7; * @return The buyTokenQuantity. */ long getBuyTokenQuantity(); /** * int64 sell_token_quantity_remain = 9; * @return The sellTokenQuantityRemain. */ long getSellTokenQuantityRemain(); /** *
     * When state != ACTIVE and sell_token_quantity_return !=0,
     * it means that some sell tokens are returned to the account due to
     * insufficient remaining amount
     * 
* * int64 sell_token_quantity_return = 10; * @return The sellTokenQuantityReturn. */ long getSellTokenQuantityReturn(); /** * .protocol.MarketOrder.State state = 11; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** * .protocol.MarketOrder.State state = 11; * @return The state. */ org.vision.visionjsdk.proto.Response.MarketOrder.State getState(); /** * bytes prev = 12; * @return The prev. */ com.google.protobuf.ByteString getPrev(); /** * bytes next = 13; * @return The next. */ com.google.protobuf.ByteString getNext(); } /** * Protobuf type {@code protocol.MarketOrder} */ public static final class MarketOrder extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketOrder) MarketOrderOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOrder.newBuilder() to construct. private MarketOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOrder() { orderId_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; state_ = 0; prev_ = com.google.protobuf.ByteString.EMPTY; next_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOrder(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOrder( 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: { orderId_ = input.readBytes(); break; } case 18: { ownerAddress_ = input.readBytes(); break; } case 24: { createTime_ = input.readInt64(); break; } case 34: { sellTokenId_ = input.readBytes(); break; } case 40: { sellTokenQuantity_ = input.readInt64(); break; } case 50: { buyTokenId_ = input.readBytes(); break; } case 56: { buyTokenQuantity_ = input.readInt64(); break; } case 72: { sellTokenQuantityRemain_ = input.readInt64(); break; } case 80: { sellTokenQuantityReturn_ = input.readInt64(); break; } case 88: { int rawValue = input.readEnum(); state_ = rawValue; break; } case 98: { prev_ = input.readBytes(); break; } case 106: { next_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrder.class, org.vision.visionjsdk.proto.Response.MarketOrder.Builder.class); } /** * Protobuf enum {@code protocol.MarketOrder.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * ACTIVE = 0; */ ACTIVE(0), /** * INACTIVE = 1; */ INACTIVE(1), /** * CANCELED = 2; */ CANCELED(2), UNRECOGNIZED(-1), ; /** * ACTIVE = 0; */ public static final int ACTIVE_VALUE = 0; /** * INACTIVE = 1; */ public static final int INACTIVE_VALUE = 1; /** * CANCELED = 2; */ public static final int CANCELED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return ACTIVE; case 1: return INACTIVE; case 2: return CANCELED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< State> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.MarketOrder.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.MarketOrder.State) } public static final int ORDER_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString orderId_; /** * bytes order_id = 1; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } public static final int OWNER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ownerAddress_; /** * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private long createTime_; /** * int64 create_time = 3; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString sellTokenId_; /** * bytes sell_token_id = 4; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } public static final int SELL_TOKEN_QUANTITY_FIELD_NUMBER = 5; private long sellTokenQuantity_; /** * int64 sell_token_quantity = 5; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString buyTokenId_; /** * bytes buy_token_id = 6; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } public static final int BUY_TOKEN_QUANTITY_FIELD_NUMBER = 7; private long buyTokenQuantity_; /** *
     * min to receive
     * 
* * int64 buy_token_quantity = 7; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } public static final int SELL_TOKEN_QUANTITY_REMAIN_FIELD_NUMBER = 9; private long sellTokenQuantityRemain_; /** * int64 sell_token_quantity_remain = 9; * @return The sellTokenQuantityRemain. */ @java.lang.Override public long getSellTokenQuantityRemain() { return sellTokenQuantityRemain_; } public static final int SELL_TOKEN_QUANTITY_RETURN_FIELD_NUMBER = 10; private long sellTokenQuantityReturn_; /** *
     * When state != ACTIVE and sell_token_quantity_return !=0,
     * it means that some sell tokens are returned to the account due to
     * insufficient remaining amount
     * 
* * int64 sell_token_quantity_return = 10; * @return The sellTokenQuantityReturn. */ @java.lang.Override public long getSellTokenQuantityReturn() { return sellTokenQuantityReturn_; } public static final int STATE_FIELD_NUMBER = 11; private int state_; /** * .protocol.MarketOrder.State state = 11; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * .protocol.MarketOrder.State state = 11; * @return The state. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder.State getState() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.MarketOrder.State result = org.vision.visionjsdk.proto.Response.MarketOrder.State.valueOf(state_); return result == null ? org.vision.visionjsdk.proto.Response.MarketOrder.State.UNRECOGNIZED : result; } public static final int PREV_FIELD_NUMBER = 12; private com.google.protobuf.ByteString prev_; /** * bytes prev = 12; * @return The prev. */ @java.lang.Override public com.google.protobuf.ByteString getPrev() { return prev_; } public static final int NEXT_FIELD_NUMBER = 13; private com.google.protobuf.ByteString next_; /** * bytes next = 13; * @return The next. */ @java.lang.Override public com.google.protobuf.ByteString getNext() { return next_; } 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 (!orderId_.isEmpty()) { output.writeBytes(1, orderId_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } if (createTime_ != 0L) { output.writeInt64(3, createTime_); } if (!sellTokenId_.isEmpty()) { output.writeBytes(4, sellTokenId_); } if (sellTokenQuantity_ != 0L) { output.writeInt64(5, sellTokenQuantity_); } if (!buyTokenId_.isEmpty()) { output.writeBytes(6, buyTokenId_); } if (buyTokenQuantity_ != 0L) { output.writeInt64(7, buyTokenQuantity_); } if (sellTokenQuantityRemain_ != 0L) { output.writeInt64(9, sellTokenQuantityRemain_); } if (sellTokenQuantityReturn_ != 0L) { output.writeInt64(10, sellTokenQuantityReturn_); } if (state_ != org.vision.visionjsdk.proto.Response.MarketOrder.State.ACTIVE.getNumber()) { output.writeEnum(11, state_); } if (!prev_.isEmpty()) { output.writeBytes(12, prev_); } if (!next_.isEmpty()) { output.writeBytes(13, next_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!orderId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, orderId_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, createTime_); } if (!sellTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, sellTokenId_); } if (sellTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, sellTokenQuantity_); } if (!buyTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, buyTokenId_); } if (buyTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, buyTokenQuantity_); } if (sellTokenQuantityRemain_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, sellTokenQuantityRemain_); } if (sellTokenQuantityReturn_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, sellTokenQuantityReturn_); } if (state_ != org.vision.visionjsdk.proto.Response.MarketOrder.State.ACTIVE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, state_); } if (!prev_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, prev_); } if (!next_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, next_); } 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.vision.visionjsdk.proto.Response.MarketOrder)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketOrder other = (org.vision.visionjsdk.proto.Response.MarketOrder) obj; if (!getOrderId() .equals(other.getOrderId())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getCreateTime() != other.getCreateTime()) return false; if (!getSellTokenId() .equals(other.getSellTokenId())) return false; if (getSellTokenQuantity() != other.getSellTokenQuantity()) return false; if (!getBuyTokenId() .equals(other.getBuyTokenId())) return false; if (getBuyTokenQuantity() != other.getBuyTokenQuantity()) return false; if (getSellTokenQuantityRemain() != other.getSellTokenQuantityRemain()) return false; if (getSellTokenQuantityReturn() != other.getSellTokenQuantityReturn()) return false; if (state_ != other.state_) return false; if (!getPrev() .equals(other.getPrev())) return false; if (!getNext() .equals(other.getNext())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; hash = (53 * hash) + getOrderId().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); hash = (37 * hash) + SELL_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getSellTokenId().hashCode(); hash = (37 * hash) + SELL_TOKEN_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSellTokenQuantity()); hash = (37 * hash) + BUY_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getBuyTokenId().hashCode(); hash = (37 * hash) + BUY_TOKEN_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBuyTokenQuantity()); hash = (37 * hash) + SELL_TOKEN_QUANTITY_REMAIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSellTokenQuantityRemain()); hash = (37 * hash) + SELL_TOKEN_QUANTITY_RETURN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSellTokenQuantityReturn()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + PREV_FIELD_NUMBER; hash = (53 * hash) + getPrev().hashCode(); hash = (37 * hash) + NEXT_FIELD_NUMBER; hash = (53 * hash) + getNext().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrder 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.vision.visionjsdk.proto.Response.MarketOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrder 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.vision.visionjsdk.proto.Response.MarketOrder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrder 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.vision.visionjsdk.proto.Response.MarketOrder 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 protocol.MarketOrder} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrder) org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrder.class, org.vision.visionjsdk.proto.Response.MarketOrder.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketOrder.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(); orderId_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; createTime_ = 0L; sellTokenId_ = com.google.protobuf.ByteString.EMPTY; sellTokenQuantity_ = 0L; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenQuantity_ = 0L; sellTokenQuantityRemain_ = 0L; sellTokenQuantityReturn_ = 0L; state_ = 0; prev_ = com.google.protobuf.ByteString.EMPTY; next_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketOrder.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder build() { org.vision.visionjsdk.proto.Response.MarketOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder buildPartial() { org.vision.visionjsdk.proto.Response.MarketOrder result = new org.vision.visionjsdk.proto.Response.MarketOrder(this); result.orderId_ = orderId_; result.ownerAddress_ = ownerAddress_; result.createTime_ = createTime_; result.sellTokenId_ = sellTokenId_; result.sellTokenQuantity_ = sellTokenQuantity_; result.buyTokenId_ = buyTokenId_; result.buyTokenQuantity_ = buyTokenQuantity_; result.sellTokenQuantityRemain_ = sellTokenQuantityRemain_; result.sellTokenQuantityReturn_ = sellTokenQuantityReturn_; result.state_ = state_; result.prev_ = prev_; result.next_ = next_; 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.vision.visionjsdk.proto.Response.MarketOrder) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketOrder other) { if (other == org.vision.visionjsdk.proto.Response.MarketOrder.getDefaultInstance()) return this; if (other.getOrderId() != com.google.protobuf.ByteString.EMPTY) { setOrderId(other.getOrderId()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (other.getSellTokenId() != com.google.protobuf.ByteString.EMPTY) { setSellTokenId(other.getSellTokenId()); } if (other.getSellTokenQuantity() != 0L) { setSellTokenQuantity(other.getSellTokenQuantity()); } if (other.getBuyTokenId() != com.google.protobuf.ByteString.EMPTY) { setBuyTokenId(other.getBuyTokenId()); } if (other.getBuyTokenQuantity() != 0L) { setBuyTokenQuantity(other.getBuyTokenQuantity()); } if (other.getSellTokenQuantityRemain() != 0L) { setSellTokenQuantityRemain(other.getSellTokenQuantityRemain()); } if (other.getSellTokenQuantityReturn() != 0L) { setSellTokenQuantityReturn(other.getSellTokenQuantityReturn()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.getPrev() != com.google.protobuf.ByteString.EMPTY) { setPrev(other.getPrev()); } if (other.getNext() != com.google.protobuf.ByteString.EMPTY) { setNext(other.getNext()); } 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.vision.visionjsdk.proto.Response.MarketOrder parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketOrder) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes order_id = 1; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } /** * bytes order_id = 1; * @param value The orderId to set. * @return This builder for chaining. */ public Builder setOrderId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } orderId_ = value; onChanged(); return this; } /** * bytes order_id = 1; * @return This builder for chaining. */ public Builder clearOrderId() { orderId_ = getDefaultInstance().getOrderId(); onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 2; * @param value The ownerAddress to set. * @return This builder for chaining. */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; onChanged(); return this; } /** * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long createTime_ ; /** * int64 create_time = 3; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } /** * int64 create_time = 3; * @param value The createTime to set. * @return This builder for chaining. */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** * int64 create_time = 3; * @return This builder for chaining. */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString sellTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sell_token_id = 4; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } /** * bytes sell_token_id = 4; * @param value The sellTokenId to set. * @return This builder for chaining. */ public Builder setSellTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sellTokenId_ = value; onChanged(); return this; } /** * bytes sell_token_id = 4; * @return This builder for chaining. */ public Builder clearSellTokenId() { sellTokenId_ = getDefaultInstance().getSellTokenId(); onChanged(); return this; } private long sellTokenQuantity_ ; /** * int64 sell_token_quantity = 5; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } /** * int64 sell_token_quantity = 5; * @param value The sellTokenQuantity to set. * @return This builder for chaining. */ public Builder setSellTokenQuantity(long value) { sellTokenQuantity_ = value; onChanged(); return this; } /** * int64 sell_token_quantity = 5; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { sellTokenQuantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 6; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } /** * bytes buy_token_id = 6; * @param value The buyTokenId to set. * @return This builder for chaining. */ public Builder setBuyTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } buyTokenId_ = value; onChanged(); return this; } /** * bytes buy_token_id = 6; * @return This builder for chaining. */ public Builder clearBuyTokenId() { buyTokenId_ = getDefaultInstance().getBuyTokenId(); onChanged(); return this; } private long buyTokenQuantity_ ; /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 7; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 7; * @param value The buyTokenQuantity to set. * @return This builder for chaining. */ public Builder setBuyTokenQuantity(long value) { buyTokenQuantity_ = value; onChanged(); return this; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 7; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { buyTokenQuantity_ = 0L; onChanged(); return this; } private long sellTokenQuantityRemain_ ; /** * int64 sell_token_quantity_remain = 9; * @return The sellTokenQuantityRemain. */ @java.lang.Override public long getSellTokenQuantityRemain() { return sellTokenQuantityRemain_; } /** * int64 sell_token_quantity_remain = 9; * @param value The sellTokenQuantityRemain to set. * @return This builder for chaining. */ public Builder setSellTokenQuantityRemain(long value) { sellTokenQuantityRemain_ = value; onChanged(); return this; } /** * int64 sell_token_quantity_remain = 9; * @return This builder for chaining. */ public Builder clearSellTokenQuantityRemain() { sellTokenQuantityRemain_ = 0L; onChanged(); return this; } private long sellTokenQuantityReturn_ ; /** *
       * When state != ACTIVE and sell_token_quantity_return !=0,
       * it means that some sell tokens are returned to the account due to
       * insufficient remaining amount
       * 
* * int64 sell_token_quantity_return = 10; * @return The sellTokenQuantityReturn. */ @java.lang.Override public long getSellTokenQuantityReturn() { return sellTokenQuantityReturn_; } /** *
       * When state != ACTIVE and sell_token_quantity_return !=0,
       * it means that some sell tokens are returned to the account due to
       * insufficient remaining amount
       * 
* * int64 sell_token_quantity_return = 10; * @param value The sellTokenQuantityReturn to set. * @return This builder for chaining. */ public Builder setSellTokenQuantityReturn(long value) { sellTokenQuantityReturn_ = value; onChanged(); return this; } /** *
       * When state != ACTIVE and sell_token_quantity_return !=0,
       * it means that some sell tokens are returned to the account due to
       * insufficient remaining amount
       * 
* * int64 sell_token_quantity_return = 10; * @return This builder for chaining. */ public Builder clearSellTokenQuantityReturn() { sellTokenQuantityReturn_ = 0L; onChanged(); return this; } private int state_ = 0; /** * .protocol.MarketOrder.State state = 11; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * .protocol.MarketOrder.State state = 11; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** * .protocol.MarketOrder.State state = 11; * @return The state. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder.State getState() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.MarketOrder.State result = org.vision.visionjsdk.proto.Response.MarketOrder.State.valueOf(state_); return result == null ? org.vision.visionjsdk.proto.Response.MarketOrder.State.UNRECOGNIZED : result; } /** * .protocol.MarketOrder.State state = 11; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(org.vision.visionjsdk.proto.Response.MarketOrder.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** * .protocol.MarketOrder.State state = 11; * @return This builder for chaining. */ public Builder clearState() { state_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString prev_ = com.google.protobuf.ByteString.EMPTY; /** * bytes prev = 12; * @return The prev. */ @java.lang.Override public com.google.protobuf.ByteString getPrev() { return prev_; } /** * bytes prev = 12; * @param value The prev to set. * @return This builder for chaining. */ public Builder setPrev(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } prev_ = value; onChanged(); return this; } /** * bytes prev = 12; * @return This builder for chaining. */ public Builder clearPrev() { prev_ = getDefaultInstance().getPrev(); onChanged(); return this; } private com.google.protobuf.ByteString next_ = com.google.protobuf.ByteString.EMPTY; /** * bytes next = 13; * @return The next. */ @java.lang.Override public com.google.protobuf.ByteString getNext() { return next_; } /** * bytes next = 13; * @param value The next to set. * @return This builder for chaining. */ public Builder setNext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } next_ = value; onChanged(); return this; } /** * bytes next = 13; * @return This builder for chaining. */ public Builder clearNext() { next_ = getDefaultInstance().getNext(); 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:protocol.MarketOrder) } // @@protoc_insertion_point(class_scope:protocol.MarketOrder) private static final org.vision.visionjsdk.proto.Response.MarketOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketOrder(); } public static org.vision.visionjsdk.proto.Response.MarketOrder getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOrder parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOrder(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.vision.visionjsdk.proto.Response.MarketOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderList) com.google.protobuf.MessageOrBuilder { java.util.List getOrdersList(); org.vision.visionjsdk.proto.Response.MarketOrder getOrders(int index); int getOrdersCount(); java.util.List getOrdersOrBuilderList(); org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder getOrdersOrBuilder( int index); } /** * Protobuf type {@code protocol.MarketOrderList} */ public static final class MarketOrderList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketOrderList) MarketOrderListOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOrderList.newBuilder() to construct. private MarketOrderList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOrderList() { orders_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOrderList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOrderList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { orders_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } orders_.add( input.readMessage(org.vision.visionjsdk.proto.Response.MarketOrder.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)) { orders_ = java.util.Collections.unmodifiableList(orders_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderList.class, org.vision.visionjsdk.proto.Response.MarketOrderList.Builder.class); } public static final int ORDERS_FIELD_NUMBER = 1; private java.util.List orders_; @java.lang.Override public java.util.List getOrdersList() { return orders_; } @java.lang.Override public java.util.List getOrdersOrBuilderList() { return orders_; } @java.lang.Override public int getOrdersCount() { return orders_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrder getOrders(int index) { return orders_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder getOrdersOrBuilder( int index) { return orders_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < orders_.size(); i++) { output.writeMessage(1, orders_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < orders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, orders_.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.vision.visionjsdk.proto.Response.MarketOrderList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketOrderList other = (org.vision.visionjsdk.proto.Response.MarketOrderList) obj; if (!getOrdersList() .equals(other.getOrdersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getOrdersCount() > 0) { hash = (37 * hash) + ORDERS_FIELD_NUMBER; hash = (53 * hash) + getOrdersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderList 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.vision.visionjsdk.proto.Response.MarketOrderList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderList 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.vision.visionjsdk.proto.Response.MarketOrderList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderList 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.vision.visionjsdk.proto.Response.MarketOrderList 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 protocol.MarketOrderList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrderList) org.vision.visionjsdk.proto.Response.MarketOrderListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderList.class, org.vision.visionjsdk.proto.Response.MarketOrderList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketOrderList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOrdersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { ordersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketOrderList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderList build() { org.vision.visionjsdk.proto.Response.MarketOrderList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderList buildPartial() { org.vision.visionjsdk.proto.Response.MarketOrderList result = new org.vision.visionjsdk.proto.Response.MarketOrderList(this); int from_bitField0_ = bitField0_; if (ordersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orders_ = java.util.Collections.unmodifiableList(orders_); bitField0_ = (bitField0_ & ~0x00000001); } result.orders_ = orders_; } else { result.orders_ = ordersBuilder_.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.vision.visionjsdk.proto.Response.MarketOrderList) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketOrderList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketOrderList other) { if (other == org.vision.visionjsdk.proto.Response.MarketOrderList.getDefaultInstance()) return this; if (ordersBuilder_ == null) { if (!other.orders_.isEmpty()) { if (orders_.isEmpty()) { orders_ = other.orders_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOrdersIsMutable(); orders_.addAll(other.orders_); } onChanged(); } } else { if (!other.orders_.isEmpty()) { if (ordersBuilder_.isEmpty()) { ordersBuilder_.dispose(); ordersBuilder_ = null; orders_ = other.orders_; bitField0_ = (bitField0_ & ~0x00000001); ordersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrdersFieldBuilder() : null; } else { ordersBuilder_.addAllMessages(other.orders_); } } } 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.vision.visionjsdk.proto.Response.MarketOrderList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketOrderList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List orders_ = java.util.Collections.emptyList(); private void ensureOrdersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { orders_ = new java.util.ArrayList(orders_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrder, org.vision.visionjsdk.proto.Response.MarketOrder.Builder, org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder> ordersBuilder_; public java.util.List getOrdersList() { if (ordersBuilder_ == null) { return java.util.Collections.unmodifiableList(orders_); } else { return ordersBuilder_.getMessageList(); } } public int getOrdersCount() { if (ordersBuilder_ == null) { return orders_.size(); } else { return ordersBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.MarketOrder getOrders(int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessage(index); } } public Builder setOrders( int index, org.vision.visionjsdk.proto.Response.MarketOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.set(index, value); onChanged(); } else { ordersBuilder_.setMessage(index, value); } return this; } public Builder setOrders( int index, org.vision.visionjsdk.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.set(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addOrders(org.vision.visionjsdk.proto.Response.MarketOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.add(value); onChanged(); } else { ordersBuilder_.addMessage(value); } return this; } public Builder addOrders( int index, org.vision.visionjsdk.proto.Response.MarketOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.add(index, value); onChanged(); } else { ordersBuilder_.addMessage(index, value); } return this; } public Builder addOrders( org.vision.visionjsdk.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addOrders( int index, org.vision.visionjsdk.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllOrders( java.lang.Iterable values) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orders_); onChanged(); } else { ordersBuilder_.addAllMessages(values); } return this; } public Builder clearOrders() { if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ordersBuilder_.clear(); } return this; } public Builder removeOrders(int index) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.remove(index); onChanged(); } else { ordersBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.MarketOrder.Builder getOrdersBuilder( int index) { return getOrdersFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder getOrdersOrBuilder( int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessageOrBuilder(index); } } public java.util.List getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orders_); } } public org.vision.visionjsdk.proto.Response.MarketOrder.Builder addOrdersBuilder() { return getOrdersFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.MarketOrder.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.MarketOrder.Builder addOrdersBuilder( int index) { return getOrdersFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.MarketOrder.getDefaultInstance()); } public java.util.List getOrdersBuilderList() { return getOrdersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrder, org.vision.visionjsdk.proto.Response.MarketOrder.Builder, org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder> getOrdersFieldBuilder() { if (ordersBuilder_ == null) { ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrder, org.vision.visionjsdk.proto.Response.MarketOrder.Builder, org.vision.visionjsdk.proto.Response.MarketOrderOrBuilder>( orders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); orders_ = null; } return ordersBuilder_; } @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:protocol.MarketOrderList) } // @@protoc_insertion_point(class_scope:protocol.MarketOrderList) private static final org.vision.visionjsdk.proto.Response.MarketOrderList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketOrderList(); } public static org.vision.visionjsdk.proto.Response.MarketOrderList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOrderList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOrderList(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.vision.visionjsdk.proto.Response.MarketOrderList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderPairOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderPair) com.google.protobuf.MessageOrBuilder { /** * bytes sell_token_id = 1; * @return The sellTokenId. */ com.google.protobuf.ByteString getSellTokenId(); /** * bytes buy_token_id = 2; * @return The buyTokenId. */ com.google.protobuf.ByteString getBuyTokenId(); } /** * Protobuf type {@code protocol.MarketOrderPair} */ public static final class MarketOrderPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketOrderPair) MarketOrderPairOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOrderPair.newBuilder() to construct. private MarketOrderPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOrderPair() { sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOrderPair(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOrderPair( 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: { sellTokenId_ = input.readBytes(); break; } case 18: { buyTokenId_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderPair.class, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder.class); } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString sellTokenId_; /** * bytes sell_token_id = 1; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString buyTokenId_; /** * bytes buy_token_id = 2; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } 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 (!sellTokenId_.isEmpty()) { output.writeBytes(1, sellTokenId_); } if (!buyTokenId_.isEmpty()) { output.writeBytes(2, buyTokenId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!sellTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, sellTokenId_); } if (!buyTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, buyTokenId_); } 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.vision.visionjsdk.proto.Response.MarketOrderPair)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketOrderPair other = (org.vision.visionjsdk.proto.Response.MarketOrderPair) obj; if (!getSellTokenId() .equals(other.getSellTokenId())) return false; if (!getBuyTokenId() .equals(other.getBuyTokenId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SELL_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getSellTokenId().hashCode(); hash = (37 * hash) + BUY_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getBuyTokenId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair 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.vision.visionjsdk.proto.Response.MarketOrderPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair 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.vision.visionjsdk.proto.Response.MarketOrderPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair 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.vision.visionjsdk.proto.Response.MarketOrderPair 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 protocol.MarketOrderPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrderPair) org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderPair.class, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketOrderPair.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(); sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPair getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketOrderPair.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPair build() { org.vision.visionjsdk.proto.Response.MarketOrderPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPair buildPartial() { org.vision.visionjsdk.proto.Response.MarketOrderPair result = new org.vision.visionjsdk.proto.Response.MarketOrderPair(this); result.sellTokenId_ = sellTokenId_; result.buyTokenId_ = buyTokenId_; 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.vision.visionjsdk.proto.Response.MarketOrderPair) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketOrderPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketOrderPair other) { if (other == org.vision.visionjsdk.proto.Response.MarketOrderPair.getDefaultInstance()) return this; if (other.getSellTokenId() != com.google.protobuf.ByteString.EMPTY) { setSellTokenId(other.getSellTokenId()); } if (other.getBuyTokenId() != com.google.protobuf.ByteString.EMPTY) { setBuyTokenId(other.getBuyTokenId()); } 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.vision.visionjsdk.proto.Response.MarketOrderPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketOrderPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString sellTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sell_token_id = 1; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } /** * bytes sell_token_id = 1; * @param value The sellTokenId to set. * @return This builder for chaining. */ public Builder setSellTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sellTokenId_ = value; onChanged(); return this; } /** * bytes sell_token_id = 1; * @return This builder for chaining. */ public Builder clearSellTokenId() { sellTokenId_ = getDefaultInstance().getSellTokenId(); onChanged(); return this; } private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 2; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } /** * bytes buy_token_id = 2; * @param value The buyTokenId to set. * @return This builder for chaining. */ public Builder setBuyTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } buyTokenId_ = value; onChanged(); return this; } /** * bytes buy_token_id = 2; * @return This builder for chaining. */ public Builder clearBuyTokenId() { buyTokenId_ = getDefaultInstance().getBuyTokenId(); 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:protocol.MarketOrderPair) } // @@protoc_insertion_point(class_scope:protocol.MarketOrderPair) private static final org.vision.visionjsdk.proto.Response.MarketOrderPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketOrderPair(); } public static org.vision.visionjsdk.proto.Response.MarketOrderPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOrderPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOrderPair(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.vision.visionjsdk.proto.Response.MarketOrderPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderPairListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderPairList) com.google.protobuf.MessageOrBuilder { java.util.List getOrderPairList(); org.vision.visionjsdk.proto.Response.MarketOrderPair getOrderPair(int index); int getOrderPairCount(); java.util.List getOrderPairOrBuilderList(); org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder getOrderPairOrBuilder( int index); } /** * Protobuf type {@code protocol.MarketOrderPairList} */ public static final class MarketOrderPairList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketOrderPairList) MarketOrderPairListOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOrderPairList.newBuilder() to construct. private MarketOrderPairList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOrderPairList() { orderPair_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOrderPairList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOrderPairList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { orderPair_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } orderPair_.add( input.readMessage(org.vision.visionjsdk.proto.Response.MarketOrderPair.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)) { orderPair_ = java.util.Collections.unmodifiableList(orderPair_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPairList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderPairList.class, org.vision.visionjsdk.proto.Response.MarketOrderPairList.Builder.class); } public static final int ORDERPAIR_FIELD_NUMBER = 1; private java.util.List orderPair_; @java.lang.Override public java.util.List getOrderPairList() { return orderPair_; } @java.lang.Override public java.util.List getOrderPairOrBuilderList() { return orderPair_; } @java.lang.Override public int getOrderPairCount() { return orderPair_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPair getOrderPair(int index) { return orderPair_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder getOrderPairOrBuilder( int index) { return orderPair_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < orderPair_.size(); i++) { output.writeMessage(1, orderPair_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < orderPair_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, orderPair_.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.vision.visionjsdk.proto.Response.MarketOrderPairList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketOrderPairList other = (org.vision.visionjsdk.proto.Response.MarketOrderPairList) obj; if (!getOrderPairList() .equals(other.getOrderPairList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getOrderPairCount() > 0) { hash = (37 * hash) + ORDERPAIR_FIELD_NUMBER; hash = (53 * hash) + getOrderPairList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList 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.vision.visionjsdk.proto.Response.MarketOrderPairList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList 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.vision.visionjsdk.proto.Response.MarketOrderPairList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList 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.vision.visionjsdk.proto.Response.MarketOrderPairList 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 protocol.MarketOrderPairList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrderPairList) org.vision.visionjsdk.proto.Response.MarketOrderPairListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPairList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketOrderPairList.class, org.vision.visionjsdk.proto.Response.MarketOrderPairList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketOrderPairList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOrderPairFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (orderPairBuilder_ == null) { orderPair_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { orderPairBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPairList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketOrderPairList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPairList build() { org.vision.visionjsdk.proto.Response.MarketOrderPairList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketOrderPairList buildPartial() { org.vision.visionjsdk.proto.Response.MarketOrderPairList result = new org.vision.visionjsdk.proto.Response.MarketOrderPairList(this); int from_bitField0_ = bitField0_; if (orderPairBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orderPair_ = java.util.Collections.unmodifiableList(orderPair_); bitField0_ = (bitField0_ & ~0x00000001); } result.orderPair_ = orderPair_; } else { result.orderPair_ = orderPairBuilder_.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.vision.visionjsdk.proto.Response.MarketOrderPairList) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketOrderPairList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketOrderPairList other) { if (other == org.vision.visionjsdk.proto.Response.MarketOrderPairList.getDefaultInstance()) return this; if (orderPairBuilder_ == null) { if (!other.orderPair_.isEmpty()) { if (orderPair_.isEmpty()) { orderPair_ = other.orderPair_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOrderPairIsMutable(); orderPair_.addAll(other.orderPair_); } onChanged(); } } else { if (!other.orderPair_.isEmpty()) { if (orderPairBuilder_.isEmpty()) { orderPairBuilder_.dispose(); orderPairBuilder_ = null; orderPair_ = other.orderPair_; bitField0_ = (bitField0_ & ~0x00000001); orderPairBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderPairFieldBuilder() : null; } else { orderPairBuilder_.addAllMessages(other.orderPair_); } } } 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.vision.visionjsdk.proto.Response.MarketOrderPairList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketOrderPairList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List orderPair_ = java.util.Collections.emptyList(); private void ensureOrderPairIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { orderPair_ = new java.util.ArrayList(orderPair_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderPair, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder, org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder> orderPairBuilder_; public java.util.List getOrderPairList() { if (orderPairBuilder_ == null) { return java.util.Collections.unmodifiableList(orderPair_); } else { return orderPairBuilder_.getMessageList(); } } public int getOrderPairCount() { if (orderPairBuilder_ == null) { return orderPair_.size(); } else { return orderPairBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.MarketOrderPair getOrderPair(int index) { if (orderPairBuilder_ == null) { return orderPair_.get(index); } else { return orderPairBuilder_.getMessage(index); } } public Builder setOrderPair( int index, org.vision.visionjsdk.proto.Response.MarketOrderPair value) { if (orderPairBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderPairIsMutable(); orderPair_.set(index, value); onChanged(); } else { orderPairBuilder_.setMessage(index, value); } return this; } public Builder setOrderPair( int index, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.set(index, builderForValue.build()); onChanged(); } else { orderPairBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addOrderPair(org.vision.visionjsdk.proto.Response.MarketOrderPair value) { if (orderPairBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderPairIsMutable(); orderPair_.add(value); onChanged(); } else { orderPairBuilder_.addMessage(value); } return this; } public Builder addOrderPair( int index, org.vision.visionjsdk.proto.Response.MarketOrderPair value) { if (orderPairBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderPairIsMutable(); orderPair_.add(index, value); onChanged(); } else { orderPairBuilder_.addMessage(index, value); } return this; } public Builder addOrderPair( org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.add(builderForValue.build()); onChanged(); } else { orderPairBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addOrderPair( int index, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.add(index, builderForValue.build()); onChanged(); } else { orderPairBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllOrderPair( java.lang.Iterable values) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderPair_); onChanged(); } else { orderPairBuilder_.addAllMessages(values); } return this; } public Builder clearOrderPair() { if (orderPairBuilder_ == null) { orderPair_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { orderPairBuilder_.clear(); } return this; } public Builder removeOrderPair(int index) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.remove(index); onChanged(); } else { orderPairBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder getOrderPairBuilder( int index) { return getOrderPairFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder getOrderPairOrBuilder( int index) { if (orderPairBuilder_ == null) { return orderPair_.get(index); } else { return orderPairBuilder_.getMessageOrBuilder(index); } } public java.util.List getOrderPairOrBuilderList() { if (orderPairBuilder_ != null) { return orderPairBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orderPair_); } } public org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder addOrderPairBuilder() { return getOrderPairFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.MarketOrderPair.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder addOrderPairBuilder( int index) { return getOrderPairFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.MarketOrderPair.getDefaultInstance()); } public java.util.List getOrderPairBuilderList() { return getOrderPairFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderPair, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder, org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder> getOrderPairFieldBuilder() { if (orderPairBuilder_ == null) { orderPairBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketOrderPair, org.vision.visionjsdk.proto.Response.MarketOrderPair.Builder, org.vision.visionjsdk.proto.Response.MarketOrderPairOrBuilder>( orderPair_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); orderPair_ = null; } return orderPairBuilder_; } @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:protocol.MarketOrderPairList) } // @@protoc_insertion_point(class_scope:protocol.MarketOrderPairList) private static final org.vision.visionjsdk.proto.Response.MarketOrderPairList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketOrderPairList(); } public static org.vision.visionjsdk.proto.Response.MarketOrderPairList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOrderPairList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOrderPairList(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.vision.visionjsdk.proto.Response.MarketOrderPairList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketPriceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketPrice) com.google.protobuf.MessageOrBuilder { /** * int64 sell_token_quantity = 1; * @return The sellTokenQuantity. */ long getSellTokenQuantity(); /** * int64 buy_token_quantity = 2; * @return The buyTokenQuantity. */ long getBuyTokenQuantity(); } /** * Protobuf type {@code protocol.MarketPrice} */ public static final class MarketPrice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketPrice) MarketPriceOrBuilder { private static final long serialVersionUID = 0L; // Use MarketPrice.newBuilder() to construct. private MarketPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketPrice() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketPrice(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketPrice( 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: { sellTokenQuantity_ = input.readInt64(); break; } case 16: { buyTokenQuantity_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketPrice.class, org.vision.visionjsdk.proto.Response.MarketPrice.Builder.class); } public static final int SELL_TOKEN_QUANTITY_FIELD_NUMBER = 1; private long sellTokenQuantity_; /** * int64 sell_token_quantity = 1; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } public static final int BUY_TOKEN_QUANTITY_FIELD_NUMBER = 2; private long buyTokenQuantity_; /** * int64 buy_token_quantity = 2; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } 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 (sellTokenQuantity_ != 0L) { output.writeInt64(1, sellTokenQuantity_); } if (buyTokenQuantity_ != 0L) { output.writeInt64(2, buyTokenQuantity_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sellTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, sellTokenQuantity_); } if (buyTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, buyTokenQuantity_); } 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.vision.visionjsdk.proto.Response.MarketPrice)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketPrice other = (org.vision.visionjsdk.proto.Response.MarketPrice) obj; if (getSellTokenQuantity() != other.getSellTokenQuantity()) return false; if (getBuyTokenQuantity() != other.getBuyTokenQuantity()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SELL_TOKEN_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSellTokenQuantity()); hash = (37 * hash) + BUY_TOKEN_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBuyTokenQuantity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPrice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPrice 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.vision.visionjsdk.proto.Response.MarketPrice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPrice 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.vision.visionjsdk.proto.Response.MarketPrice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPrice 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.vision.visionjsdk.proto.Response.MarketPrice 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 protocol.MarketPrice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketPrice) org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketPrice.class, org.vision.visionjsdk.proto.Response.MarketPrice.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketPrice.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(); sellTokenQuantity_ = 0L; buyTokenQuantity_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPrice getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketPrice.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPrice build() { org.vision.visionjsdk.proto.Response.MarketPrice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPrice buildPartial() { org.vision.visionjsdk.proto.Response.MarketPrice result = new org.vision.visionjsdk.proto.Response.MarketPrice(this); result.sellTokenQuantity_ = sellTokenQuantity_; result.buyTokenQuantity_ = buyTokenQuantity_; 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.vision.visionjsdk.proto.Response.MarketPrice) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketPrice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketPrice other) { if (other == org.vision.visionjsdk.proto.Response.MarketPrice.getDefaultInstance()) return this; if (other.getSellTokenQuantity() != 0L) { setSellTokenQuantity(other.getSellTokenQuantity()); } if (other.getBuyTokenQuantity() != 0L) { setBuyTokenQuantity(other.getBuyTokenQuantity()); } 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.vision.visionjsdk.proto.Response.MarketPrice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketPrice) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long sellTokenQuantity_ ; /** * int64 sell_token_quantity = 1; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } /** * int64 sell_token_quantity = 1; * @param value The sellTokenQuantity to set. * @return This builder for chaining. */ public Builder setSellTokenQuantity(long value) { sellTokenQuantity_ = value; onChanged(); return this; } /** * int64 sell_token_quantity = 1; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { sellTokenQuantity_ = 0L; onChanged(); return this; } private long buyTokenQuantity_ ; /** * int64 buy_token_quantity = 2; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } /** * int64 buy_token_quantity = 2; * @param value The buyTokenQuantity to set. * @return This builder for chaining. */ public Builder setBuyTokenQuantity(long value) { buyTokenQuantity_ = value; onChanged(); return this; } /** * int64 buy_token_quantity = 2; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { buyTokenQuantity_ = 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:protocol.MarketPrice) } // @@protoc_insertion_point(class_scope:protocol.MarketPrice) private static final org.vision.visionjsdk.proto.Response.MarketPrice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketPrice(); } public static org.vision.visionjsdk.proto.Response.MarketPrice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketPrice parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketPrice(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.vision.visionjsdk.proto.Response.MarketPrice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketPriceListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketPriceList) com.google.protobuf.MessageOrBuilder { /** * bytes sell_token_id = 1; * @return The sellTokenId. */ com.google.protobuf.ByteString getSellTokenId(); /** * bytes buy_token_id = 2; * @return The buyTokenId. */ com.google.protobuf.ByteString getBuyTokenId(); java.util.List getPricesList(); org.vision.visionjsdk.proto.Response.MarketPrice getPrices(int index); int getPricesCount(); java.util.List getPricesOrBuilderList(); org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder getPricesOrBuilder( int index); } /** * Protobuf type {@code protocol.MarketPriceList} */ public static final class MarketPriceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketPriceList) MarketPriceListOrBuilder { private static final long serialVersionUID = 0L; // Use MarketPriceList.newBuilder() to construct. private MarketPriceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketPriceList() { sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; prices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketPriceList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketPriceList( 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: { sellTokenId_ = input.readBytes(); break; } case 18: { buyTokenId_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { prices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } prices_.add( input.readMessage(org.vision.visionjsdk.proto.Response.MarketPrice.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)) { prices_ = java.util.Collections.unmodifiableList(prices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPriceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketPriceList.class, org.vision.visionjsdk.proto.Response.MarketPriceList.Builder.class); } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString sellTokenId_; /** * bytes sell_token_id = 1; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString buyTokenId_; /** * bytes buy_token_id = 2; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } public static final int PRICES_FIELD_NUMBER = 3; private java.util.List prices_; @java.lang.Override public java.util.List getPricesList() { return prices_; } @java.lang.Override public java.util.List getPricesOrBuilderList() { return prices_; } @java.lang.Override public int getPricesCount() { return prices_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPrice getPrices(int index) { return prices_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder getPricesOrBuilder( int index) { return prices_.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 (!sellTokenId_.isEmpty()) { output.writeBytes(1, sellTokenId_); } if (!buyTokenId_.isEmpty()) { output.writeBytes(2, buyTokenId_); } for (int i = 0; i < prices_.size(); i++) { output.writeMessage(3, prices_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!sellTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, sellTokenId_); } if (!buyTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, buyTokenId_); } for (int i = 0; i < prices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, prices_.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.vision.visionjsdk.proto.Response.MarketPriceList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.MarketPriceList other = (org.vision.visionjsdk.proto.Response.MarketPriceList) obj; if (!getSellTokenId() .equals(other.getSellTokenId())) return false; if (!getBuyTokenId() .equals(other.getBuyTokenId())) return false; if (!getPricesList() .equals(other.getPricesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SELL_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getSellTokenId().hashCode(); hash = (37 * hash) + BUY_TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getBuyTokenId().hashCode(); if (getPricesCount() > 0) { hash = (37 * hash) + PRICES_FIELD_NUMBER; hash = (53 * hash) + getPricesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.MarketPriceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPriceList 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.vision.visionjsdk.proto.Response.MarketPriceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPriceList 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.vision.visionjsdk.proto.Response.MarketPriceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.MarketPriceList 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.vision.visionjsdk.proto.Response.MarketPriceList 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 protocol.MarketPriceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketPriceList) org.vision.visionjsdk.proto.Response.MarketPriceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPriceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.MarketPriceList.class, org.vision.visionjsdk.proto.Response.MarketPriceList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.MarketPriceList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPricesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; if (pricesBuilder_ == null) { prices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { pricesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPriceList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.MarketPriceList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPriceList build() { org.vision.visionjsdk.proto.Response.MarketPriceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.MarketPriceList buildPartial() { org.vision.visionjsdk.proto.Response.MarketPriceList result = new org.vision.visionjsdk.proto.Response.MarketPriceList(this); int from_bitField0_ = bitField0_; result.sellTokenId_ = sellTokenId_; result.buyTokenId_ = buyTokenId_; if (pricesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { prices_ = java.util.Collections.unmodifiableList(prices_); bitField0_ = (bitField0_ & ~0x00000001); } result.prices_ = prices_; } else { result.prices_ = pricesBuilder_.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.vision.visionjsdk.proto.Response.MarketPriceList) { return mergeFrom((org.vision.visionjsdk.proto.Response.MarketPriceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.MarketPriceList other) { if (other == org.vision.visionjsdk.proto.Response.MarketPriceList.getDefaultInstance()) return this; if (other.getSellTokenId() != com.google.protobuf.ByteString.EMPTY) { setSellTokenId(other.getSellTokenId()); } if (other.getBuyTokenId() != com.google.protobuf.ByteString.EMPTY) { setBuyTokenId(other.getBuyTokenId()); } if (pricesBuilder_ == null) { if (!other.prices_.isEmpty()) { if (prices_.isEmpty()) { prices_ = other.prices_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePricesIsMutable(); prices_.addAll(other.prices_); } onChanged(); } } else { if (!other.prices_.isEmpty()) { if (pricesBuilder_.isEmpty()) { pricesBuilder_.dispose(); pricesBuilder_ = null; prices_ = other.prices_; bitField0_ = (bitField0_ & ~0x00000001); pricesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPricesFieldBuilder() : null; } else { pricesBuilder_.addAllMessages(other.prices_); } } } 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.vision.visionjsdk.proto.Response.MarketPriceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.MarketPriceList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString sellTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sell_token_id = 1; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } /** * bytes sell_token_id = 1; * @param value The sellTokenId to set. * @return This builder for chaining. */ public Builder setSellTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sellTokenId_ = value; onChanged(); return this; } /** * bytes sell_token_id = 1; * @return This builder for chaining. */ public Builder clearSellTokenId() { sellTokenId_ = getDefaultInstance().getSellTokenId(); onChanged(); return this; } private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 2; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } /** * bytes buy_token_id = 2; * @param value The buyTokenId to set. * @return This builder for chaining. */ public Builder setBuyTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } buyTokenId_ = value; onChanged(); return this; } /** * bytes buy_token_id = 2; * @return This builder for chaining. */ public Builder clearBuyTokenId() { buyTokenId_ = getDefaultInstance().getBuyTokenId(); onChanged(); return this; } private java.util.List prices_ = java.util.Collections.emptyList(); private void ensurePricesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { prices_ = new java.util.ArrayList(prices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketPrice, org.vision.visionjsdk.proto.Response.MarketPrice.Builder, org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder> pricesBuilder_; public java.util.List getPricesList() { if (pricesBuilder_ == null) { return java.util.Collections.unmodifiableList(prices_); } else { return pricesBuilder_.getMessageList(); } } public int getPricesCount() { if (pricesBuilder_ == null) { return prices_.size(); } else { return pricesBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.MarketPrice getPrices(int index) { if (pricesBuilder_ == null) { return prices_.get(index); } else { return pricesBuilder_.getMessage(index); } } public Builder setPrices( int index, org.vision.visionjsdk.proto.Response.MarketPrice value) { if (pricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricesIsMutable(); prices_.set(index, value); onChanged(); } else { pricesBuilder_.setMessage(index, value); } return this; } public Builder setPrices( int index, org.vision.visionjsdk.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.set(index, builderForValue.build()); onChanged(); } else { pricesBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addPrices(org.vision.visionjsdk.proto.Response.MarketPrice value) { if (pricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricesIsMutable(); prices_.add(value); onChanged(); } else { pricesBuilder_.addMessage(value); } return this; } public Builder addPrices( int index, org.vision.visionjsdk.proto.Response.MarketPrice value) { if (pricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricesIsMutable(); prices_.add(index, value); onChanged(); } else { pricesBuilder_.addMessage(index, value); } return this; } public Builder addPrices( org.vision.visionjsdk.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.add(builderForValue.build()); onChanged(); } else { pricesBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addPrices( int index, org.vision.visionjsdk.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.add(index, builderForValue.build()); onChanged(); } else { pricesBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllPrices( java.lang.Iterable values) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, prices_); onChanged(); } else { pricesBuilder_.addAllMessages(values); } return this; } public Builder clearPrices() { if (pricesBuilder_ == null) { prices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pricesBuilder_.clear(); } return this; } public Builder removePrices(int index) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.remove(index); onChanged(); } else { pricesBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.MarketPrice.Builder getPricesBuilder( int index) { return getPricesFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder getPricesOrBuilder( int index) { if (pricesBuilder_ == null) { return prices_.get(index); } else { return pricesBuilder_.getMessageOrBuilder(index); } } public java.util.List getPricesOrBuilderList() { if (pricesBuilder_ != null) { return pricesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(prices_); } } public org.vision.visionjsdk.proto.Response.MarketPrice.Builder addPricesBuilder() { return getPricesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.MarketPrice.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.MarketPrice.Builder addPricesBuilder( int index) { return getPricesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.MarketPrice.getDefaultInstance()); } public java.util.List getPricesBuilderList() { return getPricesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketPrice, org.vision.visionjsdk.proto.Response.MarketPrice.Builder, org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder> getPricesFieldBuilder() { if (pricesBuilder_ == null) { pricesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.MarketPrice, org.vision.visionjsdk.proto.Response.MarketPrice.Builder, org.vision.visionjsdk.proto.Response.MarketPriceOrBuilder>( prices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); prices_ = null; } return pricesBuilder_; } @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:protocol.MarketPriceList) } // @@protoc_insertion_point(class_scope:protocol.MarketPriceList) private static final org.vision.visionjsdk.proto.Response.MarketPriceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.MarketPriceList(); } public static org.vision.visionjsdk.proto.Response.MarketPriceList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketPriceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketPriceList(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.vision.visionjsdk.proto.Response.MarketPriceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NullifierResultOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NullifierResult) com.google.protobuf.MessageOrBuilder { /** * bool is_spent = 1; * @return The isSpent. */ boolean getIsSpent(); } /** * Protobuf type {@code protocol.NullifierResult} */ public static final class NullifierResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NullifierResult) NullifierResultOrBuilder { private static final long serialVersionUID = 0L; // Use NullifierResult.newBuilder() to construct. private NullifierResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NullifierResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NullifierResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NullifierResult( 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: { isSpent_ = input.readBool(); 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.vision.visionjsdk.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NullifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NullifierResult.class, org.vision.visionjsdk.proto.Response.NullifierResult.Builder.class); } public static final int IS_SPENT_FIELD_NUMBER = 1; private boolean isSpent_; /** * bool is_spent = 1; * @return The isSpent. */ @java.lang.Override public boolean getIsSpent() { return isSpent_; } 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 (isSpent_ != false) { output.writeBool(1, isSpent_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (isSpent_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isSpent_); } 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.vision.visionjsdk.proto.Response.NullifierResult)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NullifierResult other = (org.vision.visionjsdk.proto.Response.NullifierResult) obj; if (getIsSpent() != other.getIsSpent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_SPENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsSpent()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NullifierResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NullifierResult 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.vision.visionjsdk.proto.Response.NullifierResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NullifierResult 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.vision.visionjsdk.proto.Response.NullifierResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NullifierResult 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.vision.visionjsdk.proto.Response.NullifierResult 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 protocol.NullifierResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NullifierResult) org.vision.visionjsdk.proto.Response.NullifierResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NullifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NullifierResult.class, org.vision.visionjsdk.proto.Response.NullifierResult.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NullifierResult.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(); isSpent_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NullifierResult getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NullifierResult.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NullifierResult build() { org.vision.visionjsdk.proto.Response.NullifierResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NullifierResult buildPartial() { org.vision.visionjsdk.proto.Response.NullifierResult result = new org.vision.visionjsdk.proto.Response.NullifierResult(this); result.isSpent_ = isSpent_; 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.vision.visionjsdk.proto.Response.NullifierResult) { return mergeFrom((org.vision.visionjsdk.proto.Response.NullifierResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NullifierResult other) { if (other == org.vision.visionjsdk.proto.Response.NullifierResult.getDefaultInstance()) return this; if (other.getIsSpent() != false) { setIsSpent(other.getIsSpent()); } 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.vision.visionjsdk.proto.Response.NullifierResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NullifierResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean isSpent_ ; /** * bool is_spent = 1; * @return The isSpent. */ @java.lang.Override public boolean getIsSpent() { return isSpent_; } /** * bool is_spent = 1; * @param value The isSpent to set. * @return This builder for chaining. */ public Builder setIsSpent(boolean value) { isSpent_ = value; onChanged(); return this; } /** * bool is_spent = 1; * @return This builder for chaining. */ public Builder clearIsSpent() { isSpent_ = false; 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:protocol.NullifierResult) } // @@protoc_insertion_point(class_scope:protocol.NullifierResult) private static final org.vision.visionjsdk.proto.Response.NullifierResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NullifierResult(); } public static org.vision.visionjsdk.proto.Response.NullifierResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NullifierResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NullifierResult(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.vision.visionjsdk.proto.Response.NullifierResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DecryptNotesVRC20OrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DecryptNotesVRC20) com.google.protobuf.MessageOrBuilder { java.util.List getNoteTxsList(); org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getNoteTxs(int index); int getNoteTxsCount(); java.util.List getNoteTxsOrBuilderList(); org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder getNoteTxsOrBuilder( int index); } /** * Protobuf type {@code protocol.DecryptNotesVRC20} */ public static final class DecryptNotesVRC20 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DecryptNotesVRC20) DecryptNotesVRC20OrBuilder { private static final long serialVersionUID = 0L; // Use DecryptNotesVRC20.newBuilder() to construct. private DecryptNotesVRC20(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecryptNotesVRC20() { noteTxs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DecryptNotesVRC20(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DecryptNotesVRC20( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { noteTxs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } noteTxs_.add( input.readMessage(org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.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)) { noteTxs_ = java.util.Collections.unmodifiableList(noteTxs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.class, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.Builder.class); } public interface NoteTxOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DecryptNotesVRC20.NoteTx) com.google.protobuf.MessageOrBuilder { /** * .protocol.Note note = 1; * @return Whether the note field is set. */ boolean hasNote(); /** * .protocol.Note note = 1; * @return The note. */ org.vision.visionjsdk.proto.Common.Note getNote(); /** * .protocol.Note note = 1; */ org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder(); /** * int64 position = 2; * @return The position. */ long getPosition(); /** * bool is_spent = 3; * @return The isSpent. */ boolean getIsSpent(); /** * bytes txid = 4; * @return The txid. */ com.google.protobuf.ByteString getTxid(); /** *
       * the index of note in txid
       * 
* * int32 index = 5; * @return The index. */ int getIndex(); /** * string to_amount = 6; * @return The toAmount. */ java.lang.String getToAmount(); /** * string to_amount = 6; * @return The bytes for toAmount. */ com.google.protobuf.ByteString getToAmountBytes(); /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ com.google.protobuf.ByteString getTransparentToAddress(); } /** * Protobuf type {@code protocol.DecryptNotesVRC20.NoteTx} */ public static final class NoteTx extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DecryptNotesVRC20.NoteTx) NoteTxOrBuilder { private static final long serialVersionUID = 0L; // Use NoteTx.newBuilder() to construct. private NoteTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NoteTx() { txid_ = com.google.protobuf.ByteString.EMPTY; toAmount_ = ""; transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NoteTx(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NoteTx( 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: { org.vision.visionjsdk.proto.Common.Note.Builder subBuilder = null; if (note_ != null) { subBuilder = note_.toBuilder(); } note_ = input.readMessage(org.vision.visionjsdk.proto.Common.Note.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(note_); note_ = subBuilder.buildPartial(); } break; } case 16: { position_ = input.readInt64(); break; } case 24: { isSpent_ = input.readBool(); break; } case 34: { txid_ = input.readBytes(); break; } case 40: { index_ = input.readInt32(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); toAmount_ = s; break; } case 58: { transparentToAddress_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_NoteTx_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.class, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder.class); } public static final int NOTE_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Common.Note note_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ @java.lang.Override public boolean hasNote() { return note_ != null; } /** * .protocol.Note note = 1; * @return The note. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Note getNote() { return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_; } /** * .protocol.Note note = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() { return getNote(); } public static final int POSITION_FIELD_NUMBER = 2; private long position_; /** * int64 position = 2; * @return The position. */ @java.lang.Override public long getPosition() { return position_; } public static final int IS_SPENT_FIELD_NUMBER = 3; private boolean isSpent_; /** * bool is_spent = 3; * @return The isSpent. */ @java.lang.Override public boolean getIsSpent() { return isSpent_; } public static final int TXID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString txid_; /** * bytes txid = 4; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } public static final int INDEX_FIELD_NUMBER = 5; private int index_; /** *
       * the index of note in txid
       * 
* * int32 index = 5; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } public static final int TO_AMOUNT_FIELD_NUMBER = 6; private volatile java.lang.Object toAmount_; /** * string to_amount = 6; * @return The toAmount. */ @java.lang.Override public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; 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(); toAmount_ = s; return s; } } /** * string to_amount = 6; * @return The bytes for toAmount. */ @java.lang.Override public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString transparentToAddress_; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } 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 (note_ != null) { output.writeMessage(1, getNote()); } if (position_ != 0L) { output.writeInt64(2, position_); } if (isSpent_ != false) { output.writeBool(3, isSpent_); } if (!txid_.isEmpty()) { output.writeBytes(4, txid_); } if (index_ != 0) { output.writeInt32(5, index_); } if (!getToAmountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, toAmount_); } if (!transparentToAddress_.isEmpty()) { output.writeBytes(7, transparentToAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (note_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNote()); } if (position_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, position_); } if (isSpent_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isSpent_); } if (!txid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, txid_); } if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, index_); } if (!getToAmountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, toAmount_); } if (!transparentToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, transparentToAddress_); } 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx other = (org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx) obj; if (hasNote() != other.hasNote()) return false; if (hasNote()) { if (!getNote() .equals(other.getNote())) return false; } if (getPosition() != other.getPosition()) return false; if (getIsSpent() != other.getIsSpent()) return false; if (!getTxid() .equals(other.getTxid())) return false; if (getIndex() != other.getIndex()) return false; if (!getToAmount() .equals(other.getToAmount())) return false; if (!getTransparentToAddress() .equals(other.getTransparentToAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNote()) { hash = (37 * hash) + NOTE_FIELD_NUMBER; hash = (53 * hash) + getNote().hashCode(); } hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPosition()); hash = (37 * hash) + IS_SPENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsSpent()); hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); hash = (37 * hash) + TO_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getToAmount().hashCode(); hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTransparentToAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx 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 protocol.DecryptNotesVRC20.NoteTx} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DecryptNotesVRC20.NoteTx) org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_NoteTx_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.class, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (noteBuilder_ == null) { note_ = null; } else { note_ = null; noteBuilder_ = null; } position_ = 0L; isSpent_ = false; txid_ = com.google.protobuf.ByteString.EMPTY; index_ = 0; toAmount_ = ""; transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx build() { org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx buildPartial() { org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx result = new org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx(this); if (noteBuilder_ == null) { result.note_ = note_; } else { result.note_ = noteBuilder_.build(); } result.position_ = position_; result.isSpent_ = isSpent_; result.txid_ = txid_; result.index_ = index_; result.toAmount_ = toAmount_; result.transparentToAddress_ = transparentToAddress_; 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx) { return mergeFrom((org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx other) { if (other == org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.getDefaultInstance()) return this; if (other.hasNote()) { mergeNote(other.getNote()); } if (other.getPosition() != 0L) { setPosition(other.getPosition()); } if (other.getIsSpent() != false) { setIsSpent(other.getIsSpent()); } if (other.getTxid() != com.google.protobuf.ByteString.EMPTY) { setTxid(other.getTxid()); } if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (!other.getToAmount().isEmpty()) { toAmount_ = other.toAmount_; onChanged(); } if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransparentToAddress(other.getTransparentToAddress()); } 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Common.Note note_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder> noteBuilder_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ public boolean hasNote() { return noteBuilder_ != null || note_ != null; } /** * .protocol.Note note = 1; * @return The note. */ public org.vision.visionjsdk.proto.Common.Note getNote() { if (noteBuilder_ == null) { return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_; } else { return noteBuilder_.getMessage(); } } /** * .protocol.Note note = 1; */ public Builder setNote(org.vision.visionjsdk.proto.Common.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; onChanged(); } else { noteBuilder_.setMessage(value); } return this; } /** * .protocol.Note note = 1; */ public Builder setNote( org.vision.visionjsdk.proto.Common.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); onChanged(); } else { noteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.Note note = 1; */ public Builder mergeNote(org.vision.visionjsdk.proto.Common.Note value) { if (noteBuilder_ == null) { if (note_ != null) { note_ = org.vision.visionjsdk.proto.Common.Note.newBuilder(note_).mergeFrom(value).buildPartial(); } else { note_ = value; } onChanged(); } else { noteBuilder_.mergeFrom(value); } return this; } /** * .protocol.Note note = 1; */ public Builder clearNote() { if (noteBuilder_ == null) { note_ = null; onChanged(); } else { note_ = null; noteBuilder_ = null; } return this; } /** * .protocol.Note note = 1; */ public org.vision.visionjsdk.proto.Common.Note.Builder getNoteBuilder() { onChanged(); return getNoteFieldBuilder().getBuilder(); } /** * .protocol.Note note = 1; */ public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() { if (noteBuilder_ != null) { return noteBuilder_.getMessageOrBuilder(); } else { return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_; } } /** * .protocol.Note note = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder> getNoteFieldBuilder() { if (noteBuilder_ == null) { noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>( getNote(), getParentForChildren(), isClean()); note_ = null; } return noteBuilder_; } private long position_ ; /** * int64 position = 2; * @return The position. */ @java.lang.Override public long getPosition() { return position_; } /** * int64 position = 2; * @param value The position to set. * @return This builder for chaining. */ public Builder setPosition(long value) { position_ = value; onChanged(); return this; } /** * int64 position = 2; * @return This builder for chaining. */ public Builder clearPosition() { position_ = 0L; onChanged(); return this; } private boolean isSpent_ ; /** * bool is_spent = 3; * @return The isSpent. */ @java.lang.Override public boolean getIsSpent() { return isSpent_; } /** * bool is_spent = 3; * @param value The isSpent to set. * @return This builder for chaining. */ public Builder setIsSpent(boolean value) { isSpent_ = value; onChanged(); return this; } /** * bool is_spent = 3; * @return This builder for chaining. */ public Builder clearIsSpent() { isSpent_ = false; onChanged(); return this; } private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY; /** * bytes txid = 4; * @return The txid. */ @java.lang.Override public com.google.protobuf.ByteString getTxid() { return txid_; } /** * bytes txid = 4; * @param value The txid to set. * @return This builder for chaining. */ public Builder setTxid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } txid_ = value; onChanged(); return this; } /** * bytes txid = 4; * @return This builder for chaining. */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } private int index_ ; /** *
         * the index of note in txid
         * 
* * int32 index = 5; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } /** *
         * the index of note in txid
         * 
* * int32 index = 5; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** *
         * the index of note in txid
         * 
* * int32 index = 5; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private java.lang.Object toAmount_ = ""; /** * string to_amount = 6; * @return The toAmount. */ public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAmount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string to_amount = 6; * @return The bytes for toAmount. */ public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string to_amount = 6; * @param value The toAmount to set. * @return This builder for chaining. */ public Builder setToAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } toAmount_ = value; onChanged(); return this; } /** * string to_amount = 6; * @return This builder for chaining. */ public Builder clearToAmount() { toAmount_ = getDefaultInstance().getToAmount(); onChanged(); return this; } /** * string to_amount = 6; * @param value The bytes for toAmount to set. * @return This builder for chaining. */ public Builder setToAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); toAmount_ = value; onChanged(); return this; } private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } /** * bytes transparent_to_address = 7; * @param value The transparentToAddress to set. * @return This builder for chaining. */ public Builder setTransparentToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transparentToAddress_ = value; onChanged(); return this; } /** * bytes transparent_to_address = 7; * @return This builder for chaining. */ public Builder clearTransparentToAddress() { transparentToAddress_ = getDefaultInstance().getTransparentToAddress(); 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:protocol.DecryptNotesVRC20.NoteTx) } // @@protoc_insertion_point(class_scope:protocol.DecryptNotesVRC20.NoteTx) private static final org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx(); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NoteTx parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NoteTx(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.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NOTETXS_FIELD_NUMBER = 1; private java.util.List noteTxs_; @java.lang.Override public java.util.List getNoteTxsList() { return noteTxs_; } @java.lang.Override public java.util.List getNoteTxsOrBuilderList() { return noteTxs_; } @java.lang.Override public int getNoteTxsCount() { return noteTxs_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getNoteTxs(int index) { return noteTxs_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder getNoteTxsOrBuilder( int index) { return noteTxs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < noteTxs_.size(); i++) { output.writeMessage(1, noteTxs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < noteTxs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, noteTxs_.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.vision.visionjsdk.proto.Response.DecryptNotesVRC20)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 other = (org.vision.visionjsdk.proto.Response.DecryptNotesVRC20) obj; if (!getNoteTxsList() .equals(other.getNoteTxsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getNoteTxsCount() > 0) { hash = (37 * hash) + NOTETXS_FIELD_NUMBER; hash = (53 * hash) + getNoteTxsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20 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 protocol.DecryptNotesVRC20} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DecryptNotesVRC20) org.vision.visionjsdk.proto.Response.DecryptNotesVRC20OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.class, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNoteTxsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (noteTxsBuilder_ == null) { noteTxs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { noteTxsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_DecryptNotesVRC20_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 build() { org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 buildPartial() { org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 result = new org.vision.visionjsdk.proto.Response.DecryptNotesVRC20(this); int from_bitField0_ = bitField0_; if (noteTxsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { noteTxs_ = java.util.Collections.unmodifiableList(noteTxs_); bitField0_ = (bitField0_ & ~0x00000001); } result.noteTxs_ = noteTxs_; } else { result.noteTxs_ = noteTxsBuilder_.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.vision.visionjsdk.proto.Response.DecryptNotesVRC20) { return mergeFrom((org.vision.visionjsdk.proto.Response.DecryptNotesVRC20)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 other) { if (other == org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.getDefaultInstance()) return this; if (noteTxsBuilder_ == null) { if (!other.noteTxs_.isEmpty()) { if (noteTxs_.isEmpty()) { noteTxs_ = other.noteTxs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNoteTxsIsMutable(); noteTxs_.addAll(other.noteTxs_); } onChanged(); } } else { if (!other.noteTxs_.isEmpty()) { if (noteTxsBuilder_.isEmpty()) { noteTxsBuilder_.dispose(); noteTxsBuilder_ = null; noteTxs_ = other.noteTxs_; bitField0_ = (bitField0_ & ~0x00000001); noteTxsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNoteTxsFieldBuilder() : null; } else { noteTxsBuilder_.addAllMessages(other.noteTxs_); } } } 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.vision.visionjsdk.proto.Response.DecryptNotesVRC20 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.DecryptNotesVRC20) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List noteTxs_ = java.util.Collections.emptyList(); private void ensureNoteTxsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { noteTxs_ = new java.util.ArrayList(noteTxs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder> noteTxsBuilder_; public java.util.List getNoteTxsList() { if (noteTxsBuilder_ == null) { return java.util.Collections.unmodifiableList(noteTxs_); } else { return noteTxsBuilder_.getMessageList(); } } public int getNoteTxsCount() { if (noteTxsBuilder_ == null) { return noteTxs_.size(); } else { return noteTxsBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx getNoteTxs(int index) { if (noteTxsBuilder_ == null) { return noteTxs_.get(index); } else { return noteTxsBuilder_.getMessage(index); } } public Builder setNoteTxs( int index, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.set(index, value); onChanged(); } else { noteTxsBuilder_.setMessage(index, value); } return this; } public Builder setNoteTxs( int index, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.set(index, builderForValue.build()); onChanged(); } else { noteTxsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addNoteTxs(org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.add(value); onChanged(); } else { noteTxsBuilder_.addMessage(value); } return this; } public Builder addNoteTxs( int index, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.add(index, value); onChanged(); } else { noteTxsBuilder_.addMessage(index, value); } return this; } public Builder addNoteTxs( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.add(builderForValue.build()); onChanged(); } else { noteTxsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addNoteTxs( int index, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.add(index, builderForValue.build()); onChanged(); } else { noteTxsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllNoteTxs( java.lang.Iterable values) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, noteTxs_); onChanged(); } else { noteTxsBuilder_.addAllMessages(values); } return this; } public Builder clearNoteTxs() { if (noteTxsBuilder_ == null) { noteTxs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { noteTxsBuilder_.clear(); } return this; } public Builder removeNoteTxs(int index) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.remove(index); onChanged(); } else { noteTxsBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder getNoteTxsBuilder( int index) { return getNoteTxsFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder getNoteTxsOrBuilder( int index) { if (noteTxsBuilder_ == null) { return noteTxs_.get(index); } else { return noteTxsBuilder_.getMessageOrBuilder(index); } } public java.util.List getNoteTxsOrBuilderList() { if (noteTxsBuilder_ != null) { return noteTxsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(noteTxs_); } } public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder addNoteTxsBuilder() { return getNoteTxsFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder addNoteTxsBuilder( int index) { return getNoteTxsFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.getDefaultInstance()); } public java.util.List getNoteTxsBuilderList() { return getNoteTxsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder> getNoteTxsFieldBuilder() { if (noteTxsBuilder_ == null) { noteTxsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTx.Builder, org.vision.visionjsdk.proto.Response.DecryptNotesVRC20.NoteTxOrBuilder>( noteTxs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); noteTxs_ = null; } return noteTxsBuilder_; } @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:protocol.DecryptNotesVRC20) } // @@protoc_insertion_point(class_scope:protocol.DecryptNotesVRC20) private static final org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DecryptNotesVRC20(); } public static org.vision.visionjsdk.proto.Response.DecryptNotesVRC20 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DecryptNotesVRC20 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DecryptNotesVRC20(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.vision.visionjsdk.proto.Response.DecryptNotesVRC20 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionInfoListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionInfoList) com.google.protobuf.MessageOrBuilder { java.util.List getTransactionInfoList(); org.vision.visionjsdk.proto.Response.TransactionInfo getTransactionInfo(int index); int getTransactionInfoCount(); java.util.List getTransactionInfoOrBuilderList(); org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder getTransactionInfoOrBuilder( int index); } /** * Protobuf type {@code protocol.TransactionInfoList} */ public static final class TransactionInfoList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionInfoList) TransactionInfoListOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionInfoList.newBuilder() to construct. private TransactionInfoList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionInfoList() { transactionInfo_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionInfoList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionInfoList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transactionInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } transactionInfo_.add( input.readMessage(org.vision.visionjsdk.proto.Response.TransactionInfo.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)) { transactionInfo_ = java.util.Collections.unmodifiableList(transactionInfo_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfoList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfoList.class, org.vision.visionjsdk.proto.Response.TransactionInfoList.Builder.class); } public static final int TRANSACTIONINFO_FIELD_NUMBER = 1; private java.util.List transactionInfo_; @java.lang.Override public java.util.List getTransactionInfoList() { return transactionInfo_; } @java.lang.Override public java.util.List getTransactionInfoOrBuilderList() { return transactionInfo_; } @java.lang.Override public int getTransactionInfoCount() { return transactionInfo_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfo getTransactionInfo(int index) { return transactionInfo_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder getTransactionInfoOrBuilder( int index) { return transactionInfo_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transactionInfo_.size(); i++) { output.writeMessage(1, transactionInfo_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < transactionInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transactionInfo_.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.vision.visionjsdk.proto.Response.TransactionInfoList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionInfoList other = (org.vision.visionjsdk.proto.Response.TransactionInfoList) obj; if (!getTransactionInfoList() .equals(other.getTransactionInfoList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionInfoCount() > 0) { hash = (37 * hash) + TRANSACTIONINFO_FIELD_NUMBER; hash = (53 * hash) + getTransactionInfoList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList 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.vision.visionjsdk.proto.Response.TransactionInfoList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList 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.vision.visionjsdk.proto.Response.TransactionInfoList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList 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.vision.visionjsdk.proto.Response.TransactionInfoList 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 protocol.TransactionInfoList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionInfoList) org.vision.visionjsdk.proto.Response.TransactionInfoListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfoList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionInfoList.class, org.vision.visionjsdk.proto.Response.TransactionInfoList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionInfoList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransactionInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (transactionInfoBuilder_ == null) { transactionInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transactionInfoBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfoList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionInfoList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfoList build() { org.vision.visionjsdk.proto.Response.TransactionInfoList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionInfoList buildPartial() { org.vision.visionjsdk.proto.Response.TransactionInfoList result = new org.vision.visionjsdk.proto.Response.TransactionInfoList(this); int from_bitField0_ = bitField0_; if (transactionInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transactionInfo_ = java.util.Collections.unmodifiableList(transactionInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.transactionInfo_ = transactionInfo_; } else { result.transactionInfo_ = transactionInfoBuilder_.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.vision.visionjsdk.proto.Response.TransactionInfoList) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionInfoList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionInfoList other) { if (other == org.vision.visionjsdk.proto.Response.TransactionInfoList.getDefaultInstance()) return this; if (transactionInfoBuilder_ == null) { if (!other.transactionInfo_.isEmpty()) { if (transactionInfo_.isEmpty()) { transactionInfo_ = other.transactionInfo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransactionInfoIsMutable(); transactionInfo_.addAll(other.transactionInfo_); } onChanged(); } } else { if (!other.transactionInfo_.isEmpty()) { if (transactionInfoBuilder_.isEmpty()) { transactionInfoBuilder_.dispose(); transactionInfoBuilder_ = null; transactionInfo_ = other.transactionInfo_; bitField0_ = (bitField0_ & ~0x00000001); transactionInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionInfoFieldBuilder() : null; } else { transactionInfoBuilder_.addAllMessages(other.transactionInfo_); } } } 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.vision.visionjsdk.proto.Response.TransactionInfoList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionInfoList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List transactionInfo_ = java.util.Collections.emptyList(); private void ensureTransactionInfoIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transactionInfo_ = new java.util.ArrayList(transactionInfo_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder, org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder> transactionInfoBuilder_; public java.util.List getTransactionInfoList() { if (transactionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionInfo_); } else { return transactionInfoBuilder_.getMessageList(); } } public int getTransactionInfoCount() { if (transactionInfoBuilder_ == null) { return transactionInfo_.size(); } else { return transactionInfoBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.TransactionInfo getTransactionInfo(int index) { if (transactionInfoBuilder_ == null) { return transactionInfo_.get(index); } else { return transactionInfoBuilder_.getMessage(index); } } public Builder setTransactionInfo( int index, org.vision.visionjsdk.proto.Response.TransactionInfo value) { if (transactionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInfoIsMutable(); transactionInfo_.set(index, value); onChanged(); } else { transactionInfoBuilder_.setMessage(index, value); } return this; } public Builder setTransactionInfo( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.set(index, builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addTransactionInfo(org.vision.visionjsdk.proto.Response.TransactionInfo value) { if (transactionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInfoIsMutable(); transactionInfo_.add(value); onChanged(); } else { transactionInfoBuilder_.addMessage(value); } return this; } public Builder addTransactionInfo( int index, org.vision.visionjsdk.proto.Response.TransactionInfo value) { if (transactionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInfoIsMutable(); transactionInfo_.add(index, value); onChanged(); } else { transactionInfoBuilder_.addMessage(index, value); } return this; } public Builder addTransactionInfo( org.vision.visionjsdk.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.add(builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addTransactionInfo( int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.add(index, builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllTransactionInfo( java.lang.Iterable values) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactionInfo_); onChanged(); } else { transactionInfoBuilder_.addAllMessages(values); } return this; } public Builder clearTransactionInfo() { if (transactionInfoBuilder_ == null) { transactionInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionInfoBuilder_.clear(); } return this; } public Builder removeTransactionInfo(int index) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.remove(index); onChanged(); } else { transactionInfoBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.TransactionInfo.Builder getTransactionInfoBuilder( int index) { return getTransactionInfoFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder getTransactionInfoOrBuilder( int index) { if (transactionInfoBuilder_ == null) { return transactionInfo_.get(index); } else { return transactionInfoBuilder_.getMessageOrBuilder(index); } } public java.util.List getTransactionInfoOrBuilderList() { if (transactionInfoBuilder_ != null) { return transactionInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionInfo_); } } public org.vision.visionjsdk.proto.Response.TransactionInfo.Builder addTransactionInfoBuilder() { return getTransactionInfoFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.TransactionInfo.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.TransactionInfo.Builder addTransactionInfoBuilder( int index) { return getTransactionInfoFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.TransactionInfo.getDefaultInstance()); } public java.util.List getTransactionInfoBuilderList() { return getTransactionInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder, org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder> getTransactionInfoFieldBuilder() { if (transactionInfoBuilder_ == null) { transactionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionInfo, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder, org.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder>( transactionInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transactionInfo_ = null; } return transactionInfoBuilder_; } @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:protocol.TransactionInfoList) } // @@protoc_insertion_point(class_scope:protocol.TransactionInfoList) private static final org.vision.visionjsdk.proto.Response.TransactionInfoList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionInfoList(); } public static org.vision.visionjsdk.proto.Response.TransactionInfoList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionInfoList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionInfoList(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.vision.visionjsdk.proto.Response.TransactionInfoList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionApprovedListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionApprovedList) com.google.protobuf.MessageOrBuilder { /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ java.util.List getApprovedListList(); /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ int getApprovedListCount(); /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ com.google.protobuf.ByteString getApprovedList(int index); /** * .protocol.TransactionApprovedList.Result result = 4; * @return Whether the result field is set. */ boolean hasResult(); /** * .protocol.TransactionApprovedList.Result result = 4; * @return The result. */ org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getResult(); /** * .protocol.TransactionApprovedList.Result result = 4; */ org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder getResultOrBuilder(); /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction(); /** * .protocol.TransactionExtention transaction = 5; */ org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder(); } /** * Protobuf type {@code protocol.TransactionApprovedList} */ public static final class TransactionApprovedList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionApprovedList) TransactionApprovedListOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionApprovedList.newBuilder() to construct. private TransactionApprovedList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionApprovedList() { approvedList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionApprovedList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionApprovedList( 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 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { approvedList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } approvedList_.add(input.readBytes()); break; } case 34: { org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } case 42: { org.vision.visionjsdk.proto.Response.TransactionExtention.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionExtention.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { approvedList_ = java.util.Collections.unmodifiableList(approvedList_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionApprovedList.class, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionApprovedList.Result) com.google.protobuf.MessageOrBuilder { /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The code. */ org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code getCode(); /** * string message = 2; * @return The message. */ java.lang.String getMessage(); /** * string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code protocol.TransactionApprovedList.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionApprovedList.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { code_ = 0; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Result( 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: { int rawValue = input.readEnum(); code_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.class, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder.class); } /** * Protobuf enum {@code protocol.TransactionApprovedList.Result.response_code} */ public enum response_code implements com.google.protobuf.ProtocolMessageEnum { /** * SUCCESS = 0; */ SUCCESS(0), /** * SIGNATURE_FORMAT_ERROR = 1; */ SIGNATURE_FORMAT_ERROR(1), /** * COMPUTE_ADDRESS_ERROR = 2; */ COMPUTE_ADDRESS_ERROR(2), /** * OTHER_ERROR = 20; */ OTHER_ERROR(20), UNRECOGNIZED(-1), ; /** * SUCCESS = 0; */ public static final int SUCCESS_VALUE = 0; /** * SIGNATURE_FORMAT_ERROR = 1; */ public static final int SIGNATURE_FORMAT_ERROR_VALUE = 1; /** * COMPUTE_ADDRESS_ERROR = 2; */ public static final int COMPUTE_ADDRESS_ERROR_VALUE = 2; /** * OTHER_ERROR = 20; */ public static final int OTHER_ERROR_VALUE = 20; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static response_code valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static response_code forNumber(int value) { switch (value) { case 0: return SUCCESS; case 1: return SIGNATURE_FORMAT_ERROR; case 2: return COMPUTE_ADDRESS_ERROR; case 20: return OTHER_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< response_code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public response_code findValueByNumber(int number) { return response_code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDescriptor().getEnumTypes().get(0); } private static final response_code[] VALUES = values(); public static response_code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private response_code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.TransactionApprovedList.Result.response_code) } public static final int CODE_FIELD_NUMBER = 1; private int code_; /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code result = org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = 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 (code_ != org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.SUCCESS.getNumber()) { output.writeEnum(1, code_); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result other = (org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result) obj; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result 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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result 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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result 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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result 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 protocol.TransactionApprovedList.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionApprovedList.Result) org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.class, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.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(); code_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result build() { org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result buildPartial() { org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result result = new org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result(this); result.code_ = code_; result.message_ = message_; 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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result other) { if (other == org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; 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 { org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int code_ = 0; /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code result = org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code.UNRECOGNIZED : result; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.response_code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = 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:protocol.TransactionApprovedList.Result) } // @@protoc_insertion_point(class_scope:protocol.TransactionApprovedList.Result) private static final org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result(); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Result(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.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int APPROVED_LIST_FIELD_NUMBER = 2; private java.util.List approvedList_; /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ @java.lang.Override public java.util.List getApprovedListList() { return approvedList_; } /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ public int getApprovedListCount() { return approvedList_.size(); } /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ public com.google.protobuf.ByteString getApprovedList(int index) { return approvedList_.get(index); } public static final int RESULT_FIELD_NUMBER = 4; private org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result result_; /** * .protocol.TransactionApprovedList.Result result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .protocol.TransactionApprovedList.Result result = 4; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getResult() { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } /** * .protocol.TransactionApprovedList.Result result = 4; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder getResultOrBuilder() { return getResult(); } public static final int TRANSACTION_FIELD_NUMBER = 5; private org.vision.visionjsdk.proto.Response.TransactionExtention transaction_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction() { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } /** * .protocol.TransactionExtention transaction = 5; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { return getTransaction(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < approvedList_.size(); i++) { output.writeBytes(2, approvedList_.get(i)); } if (result_ != null) { output.writeMessage(4, getResult()); } if (transaction_ != null) { output.writeMessage(5, getTransaction()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < approvedList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(approvedList_.get(i)); } size += dataSize; size += 1 * getApprovedListList().size(); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransaction()); } 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.vision.visionjsdk.proto.Response.TransactionApprovedList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionApprovedList other = (org.vision.visionjsdk.proto.Response.TransactionApprovedList) obj; if (!getApprovedListList() .equals(other.getApprovedListList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getApprovedListCount() > 0) { hash = (37 * hash) + APPROVED_LIST_FIELD_NUMBER; hash = (53 * hash) + getApprovedListList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList 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.vision.visionjsdk.proto.Response.TransactionApprovedList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList 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.vision.visionjsdk.proto.Response.TransactionApprovedList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList 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.vision.visionjsdk.proto.Response.TransactionApprovedList 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 protocol.TransactionApprovedList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionApprovedList) org.vision.visionjsdk.proto.Response.TransactionApprovedListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionApprovedList.class, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionApprovedList.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(); approvedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionApprovedList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList build() { org.vision.visionjsdk.proto.Response.TransactionApprovedList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionApprovedList buildPartial() { org.vision.visionjsdk.proto.Response.TransactionApprovedList result = new org.vision.visionjsdk.proto.Response.TransactionApprovedList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { approvedList_ = java.util.Collections.unmodifiableList(approvedList_); bitField0_ = (bitField0_ & ~0x00000001); } result.approvedList_ = approvedList_; if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.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.vision.visionjsdk.proto.Response.TransactionApprovedList) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionApprovedList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionApprovedList other) { if (other == org.vision.visionjsdk.proto.Response.TransactionApprovedList.getDefaultInstance()) return this; if (!other.approvedList_.isEmpty()) { if (approvedList_.isEmpty()) { approvedList_ = other.approvedList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureApprovedListIsMutable(); approvedList_.addAll(other.approvedList_); } onChanged(); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } 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.vision.visionjsdk.proto.Response.TransactionApprovedList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionApprovedList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List approvedList_ = java.util.Collections.emptyList(); private void ensureApprovedListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { approvedList_ = new java.util.ArrayList(approvedList_); bitField0_ |= 0x00000001; } } /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ public java.util.List getApprovedListList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(approvedList_) : approvedList_; } /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ public int getApprovedListCount() { return approvedList_.size(); } /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ public com.google.protobuf.ByteString getApprovedList(int index) { return approvedList_.get(index); } /** * repeated bytes approved_list = 2; * @param index The index to set the value at. * @param value The approvedList to set. * @return This builder for chaining. */ public Builder setApprovedList( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovedListIsMutable(); approvedList_.set(index, value); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @param value The approvedList to add. * @return This builder for chaining. */ public Builder addApprovedList(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovedListIsMutable(); approvedList_.add(value); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @param values The approvedList to add. * @return This builder for chaining. */ public Builder addAllApprovedList( java.lang.Iterable values) { ensureApprovedListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, approvedList_); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @return This builder for chaining. */ public Builder clearApprovedList() { approvedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result result_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder> resultBuilder_; /** * .protocol.TransactionApprovedList.Result result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .protocol.TransactionApprovedList.Result result = 4; * @return The result. */ public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder setResult( org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionApprovedList.Result result = 4; */ public org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } } /** * .protocol.TransactionApprovedList.Result result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result, org.vision.visionjsdk.proto.Response.TransactionApprovedList.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionApprovedList.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private org.vision.visionjsdk.proto.Response.TransactionExtention transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> transactionBuilder_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ public org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction(org.vision.visionjsdk.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction( org.vision.visionjsdk.proto.Response.TransactionExtention.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder mergeTransaction(org.vision.visionjsdk.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = org.vision.visionjsdk.proto.Response.TransactionExtention.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.TransactionExtention transaction = 5; */ public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } } /** * .protocol.TransactionExtention transaction = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } @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:protocol.TransactionApprovedList) } // @@protoc_insertion_point(class_scope:protocol.TransactionApprovedList) private static final org.vision.visionjsdk.proto.Response.TransactionApprovedList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionApprovedList(); } public static org.vision.visionjsdk.proto.Response.TransactionApprovedList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionApprovedList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionApprovedList(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.vision.visionjsdk.proto.Response.TransactionApprovedList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionSignWeightOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionSignWeight) com.google.protobuf.MessageOrBuilder { /** * .protocol.Permission permission = 1; * @return Whether the permission field is set. */ boolean hasPermission(); /** * .protocol.Permission permission = 1; * @return The permission. */ org.vision.visionjsdk.proto.Common.Permission getPermission(); /** * .protocol.Permission permission = 1; */ org.vision.visionjsdk.proto.Common.PermissionOrBuilder getPermissionOrBuilder(); /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ java.util.List getApprovedListList(); /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ int getApprovedListCount(); /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ com.google.protobuf.ByteString getApprovedList(int index); /** * int64 current_weight = 3; * @return The currentWeight. */ long getCurrentWeight(); /** * .protocol.TransactionSignWeight.Result result = 4; * @return Whether the result field is set. */ boolean hasResult(); /** * .protocol.TransactionSignWeight.Result result = 4; * @return The result. */ org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getResult(); /** * .protocol.TransactionSignWeight.Result result = 4; */ org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder getResultOrBuilder(); /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction(); /** * .protocol.TransactionExtention transaction = 5; */ org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder(); } /** * Protobuf type {@code protocol.TransactionSignWeight} */ public static final class TransactionSignWeight extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionSignWeight) TransactionSignWeightOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionSignWeight.newBuilder() to construct. private TransactionSignWeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionSignWeight() { approvedList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionSignWeight(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionSignWeight( 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: { org.vision.visionjsdk.proto.Common.Permission.Builder subBuilder = null; if (permission_ != null) { subBuilder = permission_.toBuilder(); } permission_ = input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(permission_); permission_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { approvedList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } approvedList_.add(input.readBytes()); break; } case 24: { currentWeight_ = input.readInt64(); break; } case 34: { org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } case 42: { org.vision.visionjsdk.proto.Response.TransactionExtention.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionExtention.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { approvedList_ = java.util.Collections.unmodifiableList(approvedList_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSignWeight.class, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionSignWeight.Result) com.google.protobuf.MessageOrBuilder { /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The code. */ org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code getCode(); /** * string message = 2; * @return The message. */ java.lang.String getMessage(); /** * string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code protocol.TransactionSignWeight.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionSignWeight.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { code_ = 0; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Result( 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: { int rawValue = input.readEnum(); code_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.class, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder.class); } /** * Protobuf enum {@code protocol.TransactionSignWeight.Result.response_code} */ public enum response_code implements com.google.protobuf.ProtocolMessageEnum { /** * ENOUGH_PERMISSION = 0; */ ENOUGH_PERMISSION(0), /** *
         * error in
         * 
* * NOT_ENOUGH_PERMISSION = 1; */ NOT_ENOUGH_PERMISSION(1), /** * SIGNATURE_FORMAT_ERROR = 2; */ SIGNATURE_FORMAT_ERROR(2), /** * COMPUTE_ADDRESS_ERROR = 3; */ COMPUTE_ADDRESS_ERROR(3), /** *
         * The key is not in permission
         * 
* * PERMISSION_ERROR = 4; */ PERMISSION_ERROR(4), /** * OTHER_ERROR = 20; */ OTHER_ERROR(20), UNRECOGNIZED(-1), ; /** * ENOUGH_PERMISSION = 0; */ public static final int ENOUGH_PERMISSION_VALUE = 0; /** *
         * error in
         * 
* * NOT_ENOUGH_PERMISSION = 1; */ public static final int NOT_ENOUGH_PERMISSION_VALUE = 1; /** * SIGNATURE_FORMAT_ERROR = 2; */ public static final int SIGNATURE_FORMAT_ERROR_VALUE = 2; /** * COMPUTE_ADDRESS_ERROR = 3; */ public static final int COMPUTE_ADDRESS_ERROR_VALUE = 3; /** *
         * The key is not in permission
         * 
* * PERMISSION_ERROR = 4; */ public static final int PERMISSION_ERROR_VALUE = 4; /** * OTHER_ERROR = 20; */ public static final int OTHER_ERROR_VALUE = 20; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static response_code valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static response_code forNumber(int value) { switch (value) { case 0: return ENOUGH_PERMISSION; case 1: return NOT_ENOUGH_PERMISSION; case 2: return SIGNATURE_FORMAT_ERROR; case 3: return COMPUTE_ADDRESS_ERROR; case 4: return PERMISSION_ERROR; case 20: return OTHER_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< response_code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public response_code findValueByNumber(int number) { return response_code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDescriptor().getEnumTypes().get(0); } private static final response_code[] VALUES = values(); public static response_code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private response_code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.TransactionSignWeight.Result.response_code) } public static final int CODE_FIELD_NUMBER = 1; private int code_; /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code result = org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = 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 (code_ != org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.ENOUGH_PERMISSION.getNumber()) { output.writeEnum(1, code_); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.ENOUGH_PERMISSION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result other = (org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result) obj; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result 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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result 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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result 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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result 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 protocol.TransactionSignWeight.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionSignWeight.Result) org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.class, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.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(); code_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result build() { org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result buildPartial() { org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result result = new org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result(this); result.code_ = code_; result.message_ = message_; 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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result other) { if (other == org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; 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 { org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int code_ = 0; /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code getCode() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code result = org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.valueOf(code_); return result == null ? org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code.UNRECOGNIZED : result; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.response_code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = 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:protocol.TransactionSignWeight.Result) } // @@protoc_insertion_point(class_scope:protocol.TransactionSignWeight.Result) private static final org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result(); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Result(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.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PERMISSION_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Common.Permission permission_; /** * .protocol.Permission permission = 1; * @return Whether the permission field is set. */ @java.lang.Override public boolean hasPermission() { return permission_ != null; } /** * .protocol.Permission permission = 1; * @return The permission. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getPermission() { return permission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : permission_; } /** * .protocol.Permission permission = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getPermissionOrBuilder() { return getPermission(); } public static final int APPROVED_LIST_FIELD_NUMBER = 2; private java.util.List approvedList_; /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ @java.lang.Override public java.util.List getApprovedListList() { return approvedList_; } /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ public int getApprovedListCount() { return approvedList_.size(); } /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ public com.google.protobuf.ByteString getApprovedList(int index) { return approvedList_.get(index); } public static final int CURRENT_WEIGHT_FIELD_NUMBER = 3; private long currentWeight_; /** * int64 current_weight = 3; * @return The currentWeight. */ @java.lang.Override public long getCurrentWeight() { return currentWeight_; } public static final int RESULT_FIELD_NUMBER = 4; private org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result result_; /** * .protocol.TransactionSignWeight.Result result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .protocol.TransactionSignWeight.Result result = 4; * @return The result. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getResult() { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } /** * .protocol.TransactionSignWeight.Result result = 4; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder getResultOrBuilder() { return getResult(); } public static final int TRANSACTION_FIELD_NUMBER = 5; private org.vision.visionjsdk.proto.Response.TransactionExtention transaction_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction() { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } /** * .protocol.TransactionExtention transaction = 5; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { return getTransaction(); } 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 (permission_ != null) { output.writeMessage(1, getPermission()); } for (int i = 0; i < approvedList_.size(); i++) { output.writeBytes(2, approvedList_.get(i)); } if (currentWeight_ != 0L) { output.writeInt64(3, currentWeight_); } if (result_ != null) { output.writeMessage(4, getResult()); } if (transaction_ != null) { output.writeMessage(5, getTransaction()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (permission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPermission()); } { int dataSize = 0; for (int i = 0; i < approvedList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(approvedList_.get(i)); } size += dataSize; size += 1 * getApprovedListList().size(); } if (currentWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, currentWeight_); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransaction()); } 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.vision.visionjsdk.proto.Response.TransactionSignWeight)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.TransactionSignWeight other = (org.vision.visionjsdk.proto.Response.TransactionSignWeight) obj; if (hasPermission() != other.hasPermission()) return false; if (hasPermission()) { if (!getPermission() .equals(other.getPermission())) return false; } if (!getApprovedListList() .equals(other.getApprovedListList())) return false; if (getCurrentWeight() != other.getCurrentWeight()) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPermission()) { hash = (37 * hash) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getPermission().hashCode(); } if (getApprovedListCount() > 0) { hash = (37 * hash) + APPROVED_LIST_FIELD_NUMBER; hash = (53 * hash) + getApprovedListList().hashCode(); } hash = (37 * hash) + CURRENT_WEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentWeight()); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight 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.vision.visionjsdk.proto.Response.TransactionSignWeight parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight 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.vision.visionjsdk.proto.Response.TransactionSignWeight parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight 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.vision.visionjsdk.proto.Response.TransactionSignWeight 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 protocol.TransactionSignWeight} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionSignWeight) org.vision.visionjsdk.proto.Response.TransactionSignWeightOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.TransactionSignWeight.class, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.TransactionSignWeight.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (permissionBuilder_ == null) { permission_ = null; } else { permission_ = null; permissionBuilder_ = null; } approvedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); currentWeight_ = 0L; if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.TransactionSignWeight.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight build() { org.vision.visionjsdk.proto.Response.TransactionSignWeight result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.TransactionSignWeight buildPartial() { org.vision.visionjsdk.proto.Response.TransactionSignWeight result = new org.vision.visionjsdk.proto.Response.TransactionSignWeight(this); int from_bitField0_ = bitField0_; if (permissionBuilder_ == null) { result.permission_ = permission_; } else { result.permission_ = permissionBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { approvedList_ = java.util.Collections.unmodifiableList(approvedList_); bitField0_ = (bitField0_ & ~0x00000001); } result.approvedList_ = approvedList_; result.currentWeight_ = currentWeight_; if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.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.vision.visionjsdk.proto.Response.TransactionSignWeight) { return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionSignWeight)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionSignWeight other) { if (other == org.vision.visionjsdk.proto.Response.TransactionSignWeight.getDefaultInstance()) return this; if (other.hasPermission()) { mergePermission(other.getPermission()); } if (!other.approvedList_.isEmpty()) { if (approvedList_.isEmpty()) { approvedList_ = other.approvedList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureApprovedListIsMutable(); approvedList_.addAll(other.approvedList_); } onChanged(); } if (other.getCurrentWeight() != 0L) { setCurrentWeight(other.getCurrentWeight()); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } 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.vision.visionjsdk.proto.Response.TransactionSignWeight parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionSignWeight) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.vision.visionjsdk.proto.Common.Permission permission_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> permissionBuilder_; /** * .protocol.Permission permission = 1; * @return Whether the permission field is set. */ public boolean hasPermission() { return permissionBuilder_ != null || permission_ != null; } /** * .protocol.Permission permission = 1; * @return The permission. */ public org.vision.visionjsdk.proto.Common.Permission getPermission() { if (permissionBuilder_ == null) { return permission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : permission_; } else { return permissionBuilder_.getMessage(); } } /** * .protocol.Permission permission = 1; */ public Builder setPermission(org.vision.visionjsdk.proto.Common.Permission value) { if (permissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } permission_ = value; onChanged(); } else { permissionBuilder_.setMessage(value); } return this; } /** * .protocol.Permission permission = 1; */ public Builder setPermission( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (permissionBuilder_ == null) { permission_ = builderForValue.build(); onChanged(); } else { permissionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.Permission permission = 1; */ public Builder mergePermission(org.vision.visionjsdk.proto.Common.Permission value) { if (permissionBuilder_ == null) { if (permission_ != null) { permission_ = org.vision.visionjsdk.proto.Common.Permission.newBuilder(permission_).mergeFrom(value).buildPartial(); } else { permission_ = value; } onChanged(); } else { permissionBuilder_.mergeFrom(value); } return this; } /** * .protocol.Permission permission = 1; */ public Builder clearPermission() { if (permissionBuilder_ == null) { permission_ = null; onChanged(); } else { permission_ = null; permissionBuilder_ = null; } return this; } /** * .protocol.Permission permission = 1; */ public org.vision.visionjsdk.proto.Common.Permission.Builder getPermissionBuilder() { onChanged(); return getPermissionFieldBuilder().getBuilder(); } /** * .protocol.Permission permission = 1; */ public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getPermissionOrBuilder() { if (permissionBuilder_ != null) { return permissionBuilder_.getMessageOrBuilder(); } else { return permission_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : permission_; } } /** * .protocol.Permission permission = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getPermissionFieldBuilder() { if (permissionBuilder_ == null) { permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( getPermission(), getParentForChildren(), isClean()); permission_ = null; } return permissionBuilder_; } private java.util.List approvedList_ = java.util.Collections.emptyList(); private void ensureApprovedListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { approvedList_ = new java.util.ArrayList(approvedList_); bitField0_ |= 0x00000001; } } /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ public java.util.List getApprovedListList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(approvedList_) : approvedList_; } /** * repeated bytes approved_list = 2; * @return The count of approvedList. */ public int getApprovedListCount() { return approvedList_.size(); } /** * repeated bytes approved_list = 2; * @param index The index of the element to return. * @return The approvedList at the given index. */ public com.google.protobuf.ByteString getApprovedList(int index) { return approvedList_.get(index); } /** * repeated bytes approved_list = 2; * @param index The index to set the value at. * @param value The approvedList to set. * @return This builder for chaining. */ public Builder setApprovedList( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovedListIsMutable(); approvedList_.set(index, value); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @param value The approvedList to add. * @return This builder for chaining. */ public Builder addApprovedList(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApprovedListIsMutable(); approvedList_.add(value); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @param values The approvedList to add. * @return This builder for chaining. */ public Builder addAllApprovedList( java.lang.Iterable values) { ensureApprovedListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, approvedList_); onChanged(); return this; } /** * repeated bytes approved_list = 2; * @return This builder for chaining. */ public Builder clearApprovedList() { approvedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private long currentWeight_ ; /** * int64 current_weight = 3; * @return The currentWeight. */ @java.lang.Override public long getCurrentWeight() { return currentWeight_; } /** * int64 current_weight = 3; * @param value The currentWeight to set. * @return This builder for chaining. */ public Builder setCurrentWeight(long value) { currentWeight_ = value; onChanged(); return this; } /** * int64 current_weight = 3; * @return This builder for chaining. */ public Builder clearCurrentWeight() { currentWeight_ = 0L; onChanged(); return this; } private org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result result_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder> resultBuilder_; /** * .protocol.TransactionSignWeight.Result result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .protocol.TransactionSignWeight.Result result = 4; * @return The result. */ public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder setResult( org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionSignWeight.Result result = 4; */ public org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } } /** * .protocol.TransactionSignWeight.Result result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result, org.vision.visionjsdk.proto.Response.TransactionSignWeight.Result.Builder, org.vision.visionjsdk.proto.Response.TransactionSignWeight.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private org.vision.visionjsdk.proto.Response.TransactionExtention transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> transactionBuilder_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ public org.vision.visionjsdk.proto.Response.TransactionExtention getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction(org.vision.visionjsdk.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction( org.vision.visionjsdk.proto.Response.TransactionExtention.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder mergeTransaction(org.vision.visionjsdk.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = org.vision.visionjsdk.proto.Response.TransactionExtention.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.TransactionExtention transaction = 5; */ public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } } /** * .protocol.TransactionExtention transaction = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } @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:protocol.TransactionSignWeight) } // @@protoc_insertion_point(class_scope:protocol.TransactionSignWeight) private static final org.vision.visionjsdk.proto.Response.TransactionSignWeight DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionSignWeight(); } public static org.vision.visionjsdk.proto.Response.TransactionSignWeight getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionSignWeight parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionSignWeight(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.vision.visionjsdk.proto.Response.TransactionSignWeight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeList) com.google.protobuf.MessageOrBuilder { java.util.List getNodesList(); org.vision.visionjsdk.proto.Response.NodeList.Node getNodes(int index); int getNodesCount(); java.util.List getNodesOrBuilderList(); org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder getNodesOrBuilder( int index); } /** *
   * Gossip node list
   * 
* * Protobuf type {@code protocol.NodeList} */ public static final class NodeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeList) NodeListOrBuilder { private static final long serialVersionUID = 0L; // Use NodeList.newBuilder() to construct. private NodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeList() { nodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nodes_.add( input.readMessage(org.vision.visionjsdk.proto.Response.NodeList.Node.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)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.class, org.vision.visionjsdk.proto.Response.NodeList.Builder.class); } public interface NodeOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeList.Node) com.google.protobuf.MessageOrBuilder { /** * .protocol.NodeList.Node.Address address = 1; * @return Whether the address field is set. */ boolean hasAddress(); /** * .protocol.NodeList.Node.Address address = 1; * @return The address. */ org.vision.visionjsdk.proto.Response.NodeList.Node.Address getAddress(); /** * .protocol.NodeList.Node.Address address = 1; */ org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder(); } /** *
     * Gossip node
     * 
* * Protobuf type {@code protocol.NodeList.Node} */ public static final class Node extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeList.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Node() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Node( 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: { org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder subBuilder = null; if (address_ != null) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(org.vision.visionjsdk.proto.Response.NodeList.Node.Address.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.Node.class, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder.class); } public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeList.Node.Address) com.google.protobuf.MessageOrBuilder { /** * bytes host = 1; * @return The host. */ com.google.protobuf.ByteString getHost(); /** * int32 port = 2; * @return The port. */ int getPort(); } /** *
       * Gossip node address
       * 
* * Protobuf type {@code protocol.NodeList.Node.Address} */ public static final class Address extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NodeList.Node.Address) AddressOrBuilder { private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Address() { host_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Address(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Address( 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: { host_ = input.readBytes(); break; } case 16: { port_ = input.readInt32(); 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.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.Node.Address.class, org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; private com.google.protobuf.ByteString host_; /** * bytes host = 1; * @return The host. */ @java.lang.Override public com.google.protobuf.ByteString getHost() { return host_; } public static final int PORT_FIELD_NUMBER = 2; private int port_; /** * int32 port = 2; * @return The port. */ @java.lang.Override public int getPort() { return port_; } 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 (!host_.isEmpty()) { output.writeBytes(1, host_); } if (port_ != 0) { output.writeInt32(2, port_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!host_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, host_); } if (port_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, port_); } 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.vision.visionjsdk.proto.Response.NodeList.Node.Address)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeList.Node.Address other = (org.vision.visionjsdk.proto.Response.NodeList.Node.Address) obj; if (!getHost() .equals(other.getHost())) return false; if (getPort() != other.getPort()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address 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.vision.visionjsdk.proto.Response.NodeList.Node.Address parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address 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.vision.visionjsdk.proto.Response.NodeList.Node.Address parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address 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.vision.visionjsdk.proto.Response.NodeList.Node.Address 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; } /** *
         * Gossip node address
         * 
* * Protobuf type {@code protocol.NodeList.Node.Address} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeList.Node.Address) org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.Node.Address.class, org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeList.Node.Address.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(); host_ = com.google.protobuf.ByteString.EMPTY; port_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node.Address getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeList.Node.Address.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node.Address build() { org.vision.visionjsdk.proto.Response.NodeList.Node.Address result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node.Address buildPartial() { org.vision.visionjsdk.proto.Response.NodeList.Node.Address result = new org.vision.visionjsdk.proto.Response.NodeList.Node.Address(this); result.host_ = host_; result.port_ = port_; 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.vision.visionjsdk.proto.Response.NodeList.Node.Address) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeList.Node.Address)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeList.Node.Address other) { if (other == org.vision.visionjsdk.proto.Response.NodeList.Node.Address.getDefaultInstance()) return this; if (other.getHost() != com.google.protobuf.ByteString.EMPTY) { setHost(other.getHost()); } if (other.getPort() != 0) { setPort(other.getPort()); } 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.vision.visionjsdk.proto.Response.NodeList.Node.Address parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeList.Node.Address) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString host_ = com.google.protobuf.ByteString.EMPTY; /** * bytes host = 1; * @return The host. */ @java.lang.Override public com.google.protobuf.ByteString getHost() { return host_; } /** * bytes host = 1; * @param value The host to set. * @return This builder for chaining. */ public Builder setHost(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /** * bytes host = 1; * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } private int port_ ; /** * int32 port = 2; * @return The port. */ @java.lang.Override public int getPort() { return port_; } /** * int32 port = 2; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { port_ = value; onChanged(); return this; } /** * int32 port = 2; * @return This builder for chaining. */ public Builder clearPort() { port_ = 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:protocol.NodeList.Node.Address) } // @@protoc_insertion_point(class_scope:protocol.NodeList.Node.Address) private static final org.vision.visionjsdk.proto.Response.NodeList.Node.Address DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeList.Node.Address(); } public static org.vision.visionjsdk.proto.Response.NodeList.Node.Address getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Address parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Address(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.vision.visionjsdk.proto.Response.NodeList.Node.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ADDRESS_FIELD_NUMBER = 1; private org.vision.visionjsdk.proto.Response.NodeList.Node.Address address_; /** * .protocol.NodeList.Node.Address address = 1; * @return Whether the address field is set. */ @java.lang.Override public boolean hasAddress() { return address_ != null; } /** * .protocol.NodeList.Node.Address address = 1; * @return The address. */ @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node.Address getAddress() { return address_ == null ? org.vision.visionjsdk.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } /** * .protocol.NodeList.Node.Address address = 1; */ @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder() { return getAddress(); } 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_ != null) { output.writeMessage(1, getAddress()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } 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.vision.visionjsdk.proto.Response.NodeList.Node)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeList.Node other = (org.vision.visionjsdk.proto.Response.NodeList.Node) obj; if (hasAddress() != other.hasAddress()) return false; if (hasAddress()) { 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 = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node 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.vision.visionjsdk.proto.Response.NodeList.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node 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.vision.visionjsdk.proto.Response.NodeList.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList.Node 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.vision.visionjsdk.proto.Response.NodeList.Node 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; } /** *
       * Gossip node
       * 
* * Protobuf type {@code protocol.NodeList.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeList.Node) org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.Node.class, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeList.Node.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (addressBuilder_ == null) { address_ = null; } else { address_ = null; addressBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeList.Node.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node build() { org.vision.visionjsdk.proto.Response.NodeList.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node buildPartial() { org.vision.visionjsdk.proto.Response.NodeList.Node result = new org.vision.visionjsdk.proto.Response.NodeList.Node(this); if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.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.vision.visionjsdk.proto.Response.NodeList.Node) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeList.Node)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeList.Node other) { if (other == org.vision.visionjsdk.proto.Response.NodeList.Node.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(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 { org.vision.visionjsdk.proto.Response.NodeList.Node parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeList.Node) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.vision.visionjsdk.proto.Response.NodeList.Node.Address address_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node.Address, org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder, org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder> addressBuilder_; /** * .protocol.NodeList.Node.Address address = 1; * @return Whether the address field is set. */ public boolean hasAddress() { return addressBuilder_ != null || address_ != null; } /** * .protocol.NodeList.Node.Address address = 1; * @return The address. */ public org.vision.visionjsdk.proto.Response.NodeList.Node.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? org.vision.visionjsdk.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder setAddress(org.vision.visionjsdk.proto.Response.NodeList.Node.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder setAddress( org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder mergeAddress(org.vision.visionjsdk.proto.Response.NodeList.Node.Address value) { if (addressBuilder_ == null) { if (address_ != null) { address_ = org.vision.visionjsdk.proto.Response.NodeList.Node.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { address_ = null; addressBuilder_ = null; } return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder getAddressBuilder() { onChanged(); return getAddressFieldBuilder().getBuilder(); } /** * .protocol.NodeList.Node.Address address = 1; */ public org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? org.vision.visionjsdk.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } } /** * .protocol.NodeList.Node.Address address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node.Address, org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder, org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node.Address, org.vision.visionjsdk.proto.Response.NodeList.Node.Address.Builder, org.vision.visionjsdk.proto.Response.NodeList.Node.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } @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:protocol.NodeList.Node) } // @@protoc_insertion_point(class_scope:protocol.NodeList.Node) private static final org.vision.visionjsdk.proto.Response.NodeList.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeList.Node(); } public static org.vision.visionjsdk.proto.Response.NodeList.Node getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Node parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Node(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.vision.visionjsdk.proto.Response.NodeList.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; @java.lang.Override public java.util.List getNodesList() { return nodes_; } @java.lang.Override public java.util.List getNodesOrBuilderList() { return nodes_; } @java.lang.Override public int getNodesCount() { return nodes_.size(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.Node getNodes(int index) { return nodes_.get(index); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder getNodesOrBuilder( int index) { return nodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < nodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, nodes_.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.vision.visionjsdk.proto.Response.NodeList)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.NodeList other = (org.vision.visionjsdk.proto.Response.NodeList) obj; if (!getNodesList() .equals(other.getNodesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodesCount() > 0) { hash = (37 * hash) + NODES_FIELD_NUMBER; hash = (53 * hash) + getNodesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.NodeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList 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.vision.visionjsdk.proto.Response.NodeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList 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.vision.visionjsdk.proto.Response.NodeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.NodeList 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.vision.visionjsdk.proto.Response.NodeList 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; } /** *
     * Gossip node list
     * 
* * Protobuf type {@code protocol.NodeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NodeList) org.vision.visionjsdk.proto.Response.NodeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.NodeList.class, org.vision.visionjsdk.proto.Response.NodeList.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.NodeList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNodesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nodesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.NodeList.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList build() { org.vision.visionjsdk.proto.Response.NodeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.NodeList buildPartial() { org.vision.visionjsdk.proto.Response.NodeList result = new org.vision.visionjsdk.proto.Response.NodeList(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.nodes_ = nodes_; } else { result.nodes_ = nodesBuilder_.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.vision.visionjsdk.proto.Response.NodeList) { return mergeFrom((org.vision.visionjsdk.proto.Response.NodeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.NodeList other) { if (other == org.vision.visionjsdk.proto.Response.NodeList.getDefaultInstance()) return this; if (nodesBuilder_ == null) { if (!other.nodes_.isEmpty()) { if (nodes_.isEmpty()) { nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodesIsMutable(); nodes_.addAll(other.nodes_); } onChanged(); } } else { if (!other.nodes_.isEmpty()) { if (nodesBuilder_.isEmpty()) { nodesBuilder_.dispose(); nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); nodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } } } 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.vision.visionjsdk.proto.Response.NodeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.NodeList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List nodes_ = java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder, org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder> nodesBuilder_; public java.util.List getNodesList() { if (nodesBuilder_ == null) { return java.util.Collections.unmodifiableList(nodes_); } else { return nodesBuilder_.getMessageList(); } } public int getNodesCount() { if (nodesBuilder_ == null) { return nodes_.size(); } else { return nodesBuilder_.getCount(); } } public org.vision.visionjsdk.proto.Response.NodeList.Node getNodes(int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessage(index); } } public Builder setNodes( int index, org.vision.visionjsdk.proto.Response.NodeList.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.set(index, value); onChanged(); } else { nodesBuilder_.setMessage(index, value); } return this; } public Builder setNodes( int index, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addNodes(org.vision.visionjsdk.proto.Response.NodeList.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(value); onChanged(); } else { nodesBuilder_.addMessage(value); } return this; } public Builder addNodes( int index, org.vision.visionjsdk.proto.Response.NodeList.Node value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(index, value); onChanged(); } else { nodesBuilder_.addMessage(index, value); } return this; } public Builder addNodes( org.vision.visionjsdk.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addNodes( int index, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); } return this; } public Builder clearNodes() { if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodesBuilder_.clear(); } return this; } public Builder removeNodes(int index) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.remove(index); onChanged(); } else { nodesBuilder_.remove(index); } return this; } public org.vision.visionjsdk.proto.Response.NodeList.Node.Builder getNodesBuilder( int index) { return getNodesFieldBuilder().getBuilder(index); } public org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder getNodesOrBuilder( int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodes_); } } public org.vision.visionjsdk.proto.Response.NodeList.Node.Builder addNodesBuilder() { return getNodesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Response.NodeList.Node.getDefaultInstance()); } public org.vision.visionjsdk.proto.Response.NodeList.Node.Builder addNodesBuilder( int index) { return getNodesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Response.NodeList.Node.getDefaultInstance()); } public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder, org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Response.NodeList.Node, org.vision.visionjsdk.proto.Response.NodeList.Node.Builder, org.vision.visionjsdk.proto.Response.NodeList.NodeOrBuilder>( nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; } @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:protocol.NodeList) } // @@protoc_insertion_point(class_scope:protocol.NodeList) private static final org.vision.visionjsdk.proto.Response.NodeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.NodeList(); } public static org.vision.visionjsdk.proto.Response.NodeList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeList(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.vision.visionjsdk.proto.Response.NodeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountNetMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AccountNetMessage) com.google.protobuf.MessageOrBuilder { /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ long getFreeNetUsed(); /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ long getFreeNetLimit(); /** * int64 NetUsed = 3; * @return The netUsed. */ long getNetUsed(); /** * int64 NetLimit = 4; * @return The netLimit. */ long getNetLimit(); /** * map<string, int64> assetNetUsed = 5; */ int getAssetNetUsedCount(); /** * map<string, int64> assetNetUsed = 5; */ boolean containsAssetNetUsed( java.lang.String key); /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Deprecated java.util.Map getAssetNetUsed(); /** * map<string, int64> assetNetUsed = 5; */ java.util.Map getAssetNetUsedMap(); /** * map<string, int64> assetNetUsed = 5; */ long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> assetNetUsed = 5; */ long getAssetNetUsedOrThrow( java.lang.String key); /** * map<string, int64> assetNetLimit = 6; */ int getAssetNetLimitCount(); /** * map<string, int64> assetNetLimit = 6; */ boolean containsAssetNetLimit( java.lang.String key); /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Deprecated java.util.Map getAssetNetLimit(); /** * map<string, int64> assetNetLimit = 6; */ java.util.Map getAssetNetLimitMap(); /** * map<string, int64> assetNetLimit = 6; */ long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> assetNetLimit = 6; */ long getAssetNetLimitOrThrow( java.lang.String key); /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ long getTotalNetLimit(); /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ long getTotalNetWeight(); } /** *
   * deprecated
   * 
* * Protobuf type {@code protocol.AccountNetMessage} */ public static final class AccountNetMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountNetMessage) AccountNetMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AccountNetMessage.newBuilder() to construct. private AccountNetMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountNetMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountNetMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountNetMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { freeNetUsed_ = input.readInt64(); break; } case 16: { freeNetLimit_ = input.readInt64(); break; } case 24: { netUsed_ = input.readInt64(); break; } case 32: { netLimit_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry assetNetUsed__ = input.readMessage( AssetNetUsedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); assetNetUsed_.getMutableMap().put( assetNetUsed__.getKey(), assetNetUsed__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry assetNetLimit__ = input.readMessage( AssetNetLimitDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); assetNetLimit_.getMutableMap().put( assetNetLimit__.getKey(), assetNetLimit__.getValue()); break; } case 56: { totalNetLimit_ = input.readInt64(); break; } case 64: { totalNetWeight_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAssetNetUsed(); case 6: return internalGetAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AccountNetMessage.class, org.vision.visionjsdk.proto.Response.AccountNetMessage.Builder.class); } public static final int FREENETUSED_FIELD_NUMBER = 1; private long freeNetUsed_; /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ @java.lang.Override public long getFreeNetUsed() { return freeNetUsed_; } public static final int FREENETLIMIT_FIELD_NUMBER = 2; private long freeNetLimit_; /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ @java.lang.Override public long getFreeNetLimit() { return freeNetLimit_; } public static final int NETUSED_FIELD_NUMBER = 3; private long netUsed_; /** * int64 NetUsed = 3; * @return The netUsed. */ @java.lang.Override public long getNetUsed() { return netUsed_; } public static final int NETLIMIT_FIELD_NUMBER = 4; private long netLimit_; /** * int64 NetLimit = 4; * @return The netLimit. */ @java.lang.Override public long getNetLimit() { return netLimit_; } public static final int ASSETNETUSED_FIELD_NUMBER = 5; private static final class AssetNetUsedDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetUsed_; private com.google.protobuf.MapField internalGetAssetNetUsed() { if (assetNetUsed_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } return assetNetUsed_; } public int getAssetNetUsedCount() { return internalGetAssetNetUsed().getMap().size(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public boolean containsAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetUsed().getMap().containsKey(key); } /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetUsed() { return getAssetNetUsedMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public java.util.Map getAssetNetUsedMap() { return internalGetAssetNetUsed().getMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASSETNETLIMIT_FIELD_NUMBER = 6; private static final class AssetNetLimitDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetLimit_; private com.google.protobuf.MapField internalGetAssetNetLimit() { if (assetNetLimit_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } return assetNetLimit_; } public int getAssetNetLimitCount() { return internalGetAssetNetLimit().getMap().size(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public boolean containsAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetLimit().getMap().containsKey(key); } /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetLimit() { return getAssetNetLimitMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public java.util.Map getAssetNetLimitMap() { return internalGetAssetNetLimit().getMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TOTALNETLIMIT_FIELD_NUMBER = 7; private long totalNetLimit_; /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ @java.lang.Override public long getTotalNetLimit() { return totalNetLimit_; } public static final int TOTALNETWEIGHT_FIELD_NUMBER = 8; private long totalNetWeight_; /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ @java.lang.Override public long getTotalNetWeight() { return totalNetWeight_; } 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 (freeNetUsed_ != 0L) { output.writeInt64(1, freeNetUsed_); } if (freeNetLimit_ != 0L) { output.writeInt64(2, freeNetLimit_); } if (netUsed_ != 0L) { output.writeInt64(3, netUsed_); } if (netLimit_ != 0L) { output.writeInt64(4, netLimit_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAssetNetUsed(), AssetNetUsedDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAssetNetLimit(), AssetNetLimitDefaultEntryHolder.defaultEntry, 6); if (totalNetLimit_ != 0L) { output.writeInt64(7, totalNetLimit_); } if (totalNetWeight_ != 0L) { output.writeInt64(8, totalNetWeight_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (freeNetUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, freeNetUsed_); } if (freeNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, freeNetLimit_); } if (netUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, netUsed_); } if (netLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, netLimit_); } for (java.util.Map.Entry entry : internalGetAssetNetUsed().getMap().entrySet()) { com.google.protobuf.MapEntry assetNetUsed__ = AssetNetUsedDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, assetNetUsed__); } for (java.util.Map.Entry entry : internalGetAssetNetLimit().getMap().entrySet()) { com.google.protobuf.MapEntry assetNetLimit__ = AssetNetLimitDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, assetNetLimit__); } if (totalNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, totalNetLimit_); } if (totalNetWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, totalNetWeight_); } 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.vision.visionjsdk.proto.Response.AccountNetMessage)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.AccountNetMessage other = (org.vision.visionjsdk.proto.Response.AccountNetMessage) obj; if (getFreeNetUsed() != other.getFreeNetUsed()) return false; if (getFreeNetLimit() != other.getFreeNetLimit()) return false; if (getNetUsed() != other.getNetUsed()) return false; if (getNetLimit() != other.getNetLimit()) return false; if (!internalGetAssetNetUsed().equals( other.internalGetAssetNetUsed())) return false; if (!internalGetAssetNetLimit().equals( other.internalGetAssetNetLimit())) return false; if (getTotalNetLimit() != other.getTotalNetLimit()) return false; if (getTotalNetWeight() != other.getTotalNetWeight()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FREENETUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeNetUsed()); hash = (37 * hash) + FREENETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeNetLimit()); hash = (37 * hash) + NETUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetUsed()); hash = (37 * hash) + NETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetLimit()); if (!internalGetAssetNetUsed().getMap().isEmpty()) { hash = (37 * hash) + ASSETNETUSED_FIELD_NUMBER; hash = (53 * hash) + internalGetAssetNetUsed().hashCode(); } if (!internalGetAssetNetLimit().getMap().isEmpty()) { hash = (37 * hash) + ASSETNETLIMIT_FIELD_NUMBER; hash = (53 * hash) + internalGetAssetNetLimit().hashCode(); } hash = (37 * hash) + TOTALNETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNetLimit()); hash = (37 * hash) + TOTALNETWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNetWeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage 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.vision.visionjsdk.proto.Response.AccountNetMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage 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.vision.visionjsdk.proto.Response.AccountNetMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage 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.vision.visionjsdk.proto.Response.AccountNetMessage 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; } /** *
     * deprecated
     * 
* * Protobuf type {@code protocol.AccountNetMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountNetMessage) org.vision.visionjsdk.proto.Response.AccountNetMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAssetNetUsed(); case 6: return internalGetAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableAssetNetUsed(); case 6: return internalGetMutableAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AccountNetMessage.class, org.vision.visionjsdk.proto.Response.AccountNetMessage.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.AccountNetMessage.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(); freeNetUsed_ = 0L; freeNetLimit_ = 0L; netUsed_ = 0L; netLimit_ = 0L; internalGetMutableAssetNetUsed().clear(); internalGetMutableAssetNetLimit().clear(); totalNetLimit_ = 0L; totalNetWeight_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountNetMessage getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.AccountNetMessage.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountNetMessage build() { org.vision.visionjsdk.proto.Response.AccountNetMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountNetMessage buildPartial() { org.vision.visionjsdk.proto.Response.AccountNetMessage result = new org.vision.visionjsdk.proto.Response.AccountNetMessage(this); int from_bitField0_ = bitField0_; result.freeNetUsed_ = freeNetUsed_; result.freeNetLimit_ = freeNetLimit_; result.netUsed_ = netUsed_; result.netLimit_ = netLimit_; result.assetNetUsed_ = internalGetAssetNetUsed(); result.assetNetUsed_.makeImmutable(); result.assetNetLimit_ = internalGetAssetNetLimit(); result.assetNetLimit_.makeImmutable(); result.totalNetLimit_ = totalNetLimit_; result.totalNetWeight_ = totalNetWeight_; 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.vision.visionjsdk.proto.Response.AccountNetMessage) { return mergeFrom((org.vision.visionjsdk.proto.Response.AccountNetMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AccountNetMessage other) { if (other == org.vision.visionjsdk.proto.Response.AccountNetMessage.getDefaultInstance()) return this; if (other.getFreeNetUsed() != 0L) { setFreeNetUsed(other.getFreeNetUsed()); } if (other.getFreeNetLimit() != 0L) { setFreeNetLimit(other.getFreeNetLimit()); } if (other.getNetUsed() != 0L) { setNetUsed(other.getNetUsed()); } if (other.getNetLimit() != 0L) { setNetLimit(other.getNetLimit()); } internalGetMutableAssetNetUsed().mergeFrom( other.internalGetAssetNetUsed()); internalGetMutableAssetNetLimit().mergeFrom( other.internalGetAssetNetLimit()); if (other.getTotalNetLimit() != 0L) { setTotalNetLimit(other.getTotalNetLimit()); } if (other.getTotalNetWeight() != 0L) { setTotalNetWeight(other.getTotalNetWeight()); } 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.vision.visionjsdk.proto.Response.AccountNetMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.AccountNetMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long freeNetUsed_ ; /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ @java.lang.Override public long getFreeNetUsed() { return freeNetUsed_; } /** * int64 freeNetUsed = 1; * @param value The freeNetUsed to set. * @return This builder for chaining. */ public Builder setFreeNetUsed(long value) { freeNetUsed_ = value; onChanged(); return this; } /** * int64 freeNetUsed = 1; * @return This builder for chaining. */ public Builder clearFreeNetUsed() { freeNetUsed_ = 0L; onChanged(); return this; } private long freeNetLimit_ ; /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ @java.lang.Override public long getFreeNetLimit() { return freeNetLimit_; } /** * int64 freeNetLimit = 2; * @param value The freeNetLimit to set. * @return This builder for chaining. */ public Builder setFreeNetLimit(long value) { freeNetLimit_ = value; onChanged(); return this; } /** * int64 freeNetLimit = 2; * @return This builder for chaining. */ public Builder clearFreeNetLimit() { freeNetLimit_ = 0L; onChanged(); return this; } private long netUsed_ ; /** * int64 NetUsed = 3; * @return The netUsed. */ @java.lang.Override public long getNetUsed() { return netUsed_; } /** * int64 NetUsed = 3; * @param value The netUsed to set. * @return This builder for chaining. */ public Builder setNetUsed(long value) { netUsed_ = value; onChanged(); return this; } /** * int64 NetUsed = 3; * @return This builder for chaining. */ public Builder clearNetUsed() { netUsed_ = 0L; onChanged(); return this; } private long netLimit_ ; /** * int64 NetLimit = 4; * @return The netLimit. */ @java.lang.Override public long getNetLimit() { return netLimit_; } /** * int64 NetLimit = 4; * @param value The netLimit to set. * @return This builder for chaining. */ public Builder setNetLimit(long value) { netLimit_ = value; onChanged(); return this; } /** * int64 NetLimit = 4; * @return This builder for chaining. */ public Builder clearNetLimit() { netLimit_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetUsed_; private com.google.protobuf.MapField internalGetAssetNetUsed() { if (assetNetUsed_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } return assetNetUsed_; } private com.google.protobuf.MapField internalGetMutableAssetNetUsed() { onChanged();; if (assetNetUsed_ == null) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } if (!assetNetUsed_.isMutable()) { assetNetUsed_ = assetNetUsed_.copy(); } return assetNetUsed_; } public int getAssetNetUsedCount() { return internalGetAssetNetUsed().getMap().size(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public boolean containsAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetUsed().getMap().containsKey(key); } /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetUsed() { return getAssetNetUsedMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public java.util.Map getAssetNetUsedMap() { return internalGetAssetNetUsed().getMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetUsed() { internalGetMutableAssetNetUsed().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder removeAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetUsed().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetUsed() { return internalGetMutableAssetNetUsed().getMutableMap(); } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAssetNetUsed( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetUsed().getMutableMap() .put(key, value); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAllAssetNetUsed( java.util.Map values) { internalGetMutableAssetNetUsed().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetLimit_; private com.google.protobuf.MapField internalGetAssetNetLimit() { if (assetNetLimit_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } return assetNetLimit_; } private com.google.protobuf.MapField internalGetMutableAssetNetLimit() { onChanged();; if (assetNetLimit_ == null) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } if (!assetNetLimit_.isMutable()) { assetNetLimit_ = assetNetLimit_.copy(); } return assetNetLimit_; } public int getAssetNetLimitCount() { return internalGetAssetNetLimit().getMap().size(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public boolean containsAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetLimit().getMap().containsKey(key); } /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetLimit() { return getAssetNetLimitMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public java.util.Map getAssetNetLimitMap() { return internalGetAssetNetLimit().getMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetLimit() { internalGetMutableAssetNetLimit().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder removeAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetLimit().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetLimit() { return internalGetMutableAssetNetLimit().getMutableMap(); } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAssetNetLimit( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetLimit().getMutableMap() .put(key, value); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAllAssetNetLimit( java.util.Map values) { internalGetMutableAssetNetLimit().getMutableMap() .putAll(values); return this; } private long totalNetLimit_ ; /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ @java.lang.Override public long getTotalNetLimit() { return totalNetLimit_; } /** * int64 TotalNetLimit = 7; * @param value The totalNetLimit to set. * @return This builder for chaining. */ public Builder setTotalNetLimit(long value) { totalNetLimit_ = value; onChanged(); return this; } /** * int64 TotalNetLimit = 7; * @return This builder for chaining. */ public Builder clearTotalNetLimit() { totalNetLimit_ = 0L; onChanged(); return this; } private long totalNetWeight_ ; /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ @java.lang.Override public long getTotalNetWeight() { return totalNetWeight_; } /** * int64 TotalNetWeight = 8; * @param value The totalNetWeight to set. * @return This builder for chaining. */ public Builder setTotalNetWeight(long value) { totalNetWeight_ = value; onChanged(); return this; } /** * int64 TotalNetWeight = 8; * @return This builder for chaining. */ public Builder clearTotalNetWeight() { totalNetWeight_ = 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:protocol.AccountNetMessage) } // @@protoc_insertion_point(class_scope:protocol.AccountNetMessage) private static final org.vision.visionjsdk.proto.Response.AccountNetMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AccountNetMessage(); } public static org.vision.visionjsdk.proto.Response.AccountNetMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountNetMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountNetMessage(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.vision.visionjsdk.proto.Response.AccountNetMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountResourceMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AccountResourceMessage) com.google.protobuf.MessageOrBuilder { /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ long getFreeNetUsed(); /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ long getFreeNetLimit(); /** * int64 NetUsed = 3; * @return The netUsed. */ long getNetUsed(); /** * int64 NetLimit = 4; * @return The netLimit. */ long getNetLimit(); /** * map<string, int64> assetNetUsed = 5; */ int getAssetNetUsedCount(); /** * map<string, int64> assetNetUsed = 5; */ boolean containsAssetNetUsed( java.lang.String key); /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Deprecated java.util.Map getAssetNetUsed(); /** * map<string, int64> assetNetUsed = 5; */ java.util.Map getAssetNetUsedMap(); /** * map<string, int64> assetNetUsed = 5; */ long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> assetNetUsed = 5; */ long getAssetNetUsedOrThrow( java.lang.String key); /** * map<string, int64> assetNetLimit = 6; */ int getAssetNetLimitCount(); /** * map<string, int64> assetNetLimit = 6; */ boolean containsAssetNetLimit( java.lang.String key); /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Deprecated java.util.Map getAssetNetLimit(); /** * map<string, int64> assetNetLimit = 6; */ java.util.Map getAssetNetLimitMap(); /** * map<string, int64> assetNetLimit = 6; */ long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> assetNetLimit = 6; */ long getAssetNetLimitOrThrow( java.lang.String key); /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ long getTotalNetLimit(); /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ long getTotalNetWeight(); /** * int64 EntropyUsed = 13; * @return The entropyUsed. */ long getEntropyUsed(); /** * int64 EntropyLimit = 14; * @return The entropyLimit. */ long getEntropyLimit(); /** * int64 TotalEntropyLimit = 15; * @return The totalEntropyLimit. */ long getTotalEntropyLimit(); /** * int64 TotalEntropyWeight = 16; * @return The totalEntropyWeight. */ long getTotalEntropyWeight(); /** * int64 storageUsed = 21; * @return The storageUsed. */ long getStorageUsed(); /** * int64 storageLimit = 22; * @return The storageLimit. */ long getStorageLimit(); } /** * Protobuf type {@code protocol.AccountResourceMessage} */ public static final class AccountResourceMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountResourceMessage) AccountResourceMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AccountResourceMessage.newBuilder() to construct. private AccountResourceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountResourceMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountResourceMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountResourceMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { freeNetUsed_ = input.readInt64(); break; } case 16: { freeNetLimit_ = input.readInt64(); break; } case 24: { netUsed_ = input.readInt64(); break; } case 32: { netLimit_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry assetNetUsed__ = input.readMessage( AssetNetUsedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); assetNetUsed_.getMutableMap().put( assetNetUsed__.getKey(), assetNetUsed__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry assetNetLimit__ = input.readMessage( AssetNetLimitDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); assetNetLimit_.getMutableMap().put( assetNetLimit__.getKey(), assetNetLimit__.getValue()); break; } case 56: { totalNetLimit_ = input.readInt64(); break; } case 64: { totalNetWeight_ = input.readInt64(); break; } case 104: { entropyUsed_ = input.readInt64(); break; } case 112: { entropyLimit_ = input.readInt64(); break; } case 120: { totalEntropyLimit_ = input.readInt64(); break; } case 128: { totalEntropyWeight_ = input.readInt64(); break; } case 168: { storageUsed_ = input.readInt64(); break; } case 176: { storageLimit_ = 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 org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAssetNetUsed(); case 6: return internalGetAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AccountResourceMessage.class, org.vision.visionjsdk.proto.Response.AccountResourceMessage.Builder.class); } public static final int FREENETUSED_FIELD_NUMBER = 1; private long freeNetUsed_; /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ @java.lang.Override public long getFreeNetUsed() { return freeNetUsed_; } public static final int FREENETLIMIT_FIELD_NUMBER = 2; private long freeNetLimit_; /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ @java.lang.Override public long getFreeNetLimit() { return freeNetLimit_; } public static final int NETUSED_FIELD_NUMBER = 3; private long netUsed_; /** * int64 NetUsed = 3; * @return The netUsed. */ @java.lang.Override public long getNetUsed() { return netUsed_; } public static final int NETLIMIT_FIELD_NUMBER = 4; private long netLimit_; /** * int64 NetLimit = 4; * @return The netLimit. */ @java.lang.Override public long getNetLimit() { return netLimit_; } public static final int ASSETNETUSED_FIELD_NUMBER = 5; private static final class AssetNetUsedDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetUsed_; private com.google.protobuf.MapField internalGetAssetNetUsed() { if (assetNetUsed_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } return assetNetUsed_; } public int getAssetNetUsedCount() { return internalGetAssetNetUsed().getMap().size(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public boolean containsAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetUsed().getMap().containsKey(key); } /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetUsed() { return getAssetNetUsedMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public java.util.Map getAssetNetUsedMap() { return internalGetAssetNetUsed().getMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASSETNETLIMIT_FIELD_NUMBER = 6; private static final class AssetNetLimitDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetLimit_; private com.google.protobuf.MapField internalGetAssetNetLimit() { if (assetNetLimit_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } return assetNetLimit_; } public int getAssetNetLimitCount() { return internalGetAssetNetLimit().getMap().size(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public boolean containsAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetLimit().getMap().containsKey(key); } /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetLimit() { return getAssetNetLimitMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public java.util.Map getAssetNetLimitMap() { return internalGetAssetNetLimit().getMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TOTALNETLIMIT_FIELD_NUMBER = 7; private long totalNetLimit_; /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ @java.lang.Override public long getTotalNetLimit() { return totalNetLimit_; } public static final int TOTALNETWEIGHT_FIELD_NUMBER = 8; private long totalNetWeight_; /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ @java.lang.Override public long getTotalNetWeight() { return totalNetWeight_; } public static final int ENTROPYUSED_FIELD_NUMBER = 13; private long entropyUsed_; /** * int64 EntropyUsed = 13; * @return The entropyUsed. */ @java.lang.Override public long getEntropyUsed() { return entropyUsed_; } public static final int ENTROPYLIMIT_FIELD_NUMBER = 14; private long entropyLimit_; /** * int64 EntropyLimit = 14; * @return The entropyLimit. */ @java.lang.Override public long getEntropyLimit() { return entropyLimit_; } public static final int TOTALENTROPYLIMIT_FIELD_NUMBER = 15; private long totalEntropyLimit_; /** * int64 TotalEntropyLimit = 15; * @return The totalEntropyLimit. */ @java.lang.Override public long getTotalEntropyLimit() { return totalEntropyLimit_; } public static final int TOTALENTROPYWEIGHT_FIELD_NUMBER = 16; private long totalEntropyWeight_; /** * int64 TotalEntropyWeight = 16; * @return The totalEntropyWeight. */ @java.lang.Override public long getTotalEntropyWeight() { return totalEntropyWeight_; } public static final int STORAGEUSED_FIELD_NUMBER = 21; private long storageUsed_; /** * int64 storageUsed = 21; * @return The storageUsed. */ @java.lang.Override public long getStorageUsed() { return storageUsed_; } public static final int STORAGELIMIT_FIELD_NUMBER = 22; private long storageLimit_; /** * int64 storageLimit = 22; * @return The storageLimit. */ @java.lang.Override public long getStorageLimit() { return storageLimit_; } 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 (freeNetUsed_ != 0L) { output.writeInt64(1, freeNetUsed_); } if (freeNetLimit_ != 0L) { output.writeInt64(2, freeNetLimit_); } if (netUsed_ != 0L) { output.writeInt64(3, netUsed_); } if (netLimit_ != 0L) { output.writeInt64(4, netLimit_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAssetNetUsed(), AssetNetUsedDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAssetNetLimit(), AssetNetLimitDefaultEntryHolder.defaultEntry, 6); if (totalNetLimit_ != 0L) { output.writeInt64(7, totalNetLimit_); } if (totalNetWeight_ != 0L) { output.writeInt64(8, totalNetWeight_); } if (entropyUsed_ != 0L) { output.writeInt64(13, entropyUsed_); } if (entropyLimit_ != 0L) { output.writeInt64(14, entropyLimit_); } if (totalEntropyLimit_ != 0L) { output.writeInt64(15, totalEntropyLimit_); } if (totalEntropyWeight_ != 0L) { output.writeInt64(16, totalEntropyWeight_); } if (storageUsed_ != 0L) { output.writeInt64(21, storageUsed_); } if (storageLimit_ != 0L) { output.writeInt64(22, storageLimit_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (freeNetUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, freeNetUsed_); } if (freeNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, freeNetLimit_); } if (netUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, netUsed_); } if (netLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, netLimit_); } for (java.util.Map.Entry entry : internalGetAssetNetUsed().getMap().entrySet()) { com.google.protobuf.MapEntry assetNetUsed__ = AssetNetUsedDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, assetNetUsed__); } for (java.util.Map.Entry entry : internalGetAssetNetLimit().getMap().entrySet()) { com.google.protobuf.MapEntry assetNetLimit__ = AssetNetLimitDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, assetNetLimit__); } if (totalNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, totalNetLimit_); } if (totalNetWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, totalNetWeight_); } if (entropyUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, entropyUsed_); } if (entropyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, entropyLimit_); } if (totalEntropyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, totalEntropyLimit_); } if (totalEntropyWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, totalEntropyWeight_); } if (storageUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, storageUsed_); } if (storageLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, storageLimit_); } 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.vision.visionjsdk.proto.Response.AccountResourceMessage)) { return super.equals(obj); } org.vision.visionjsdk.proto.Response.AccountResourceMessage other = (org.vision.visionjsdk.proto.Response.AccountResourceMessage) obj; if (getFreeNetUsed() != other.getFreeNetUsed()) return false; if (getFreeNetLimit() != other.getFreeNetLimit()) return false; if (getNetUsed() != other.getNetUsed()) return false; if (getNetLimit() != other.getNetLimit()) return false; if (!internalGetAssetNetUsed().equals( other.internalGetAssetNetUsed())) return false; if (!internalGetAssetNetLimit().equals( other.internalGetAssetNetLimit())) return false; if (getTotalNetLimit() != other.getTotalNetLimit()) return false; if (getTotalNetWeight() != other.getTotalNetWeight()) return false; if (getEntropyUsed() != other.getEntropyUsed()) return false; if (getEntropyLimit() != other.getEntropyLimit()) return false; if (getTotalEntropyLimit() != other.getTotalEntropyLimit()) return false; if (getTotalEntropyWeight() != other.getTotalEntropyWeight()) return false; if (getStorageUsed() != other.getStorageUsed()) return false; if (getStorageLimit() != other.getStorageLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FREENETUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeNetUsed()); hash = (37 * hash) + FREENETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeNetLimit()); hash = (37 * hash) + NETUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetUsed()); hash = (37 * hash) + NETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetLimit()); if (!internalGetAssetNetUsed().getMap().isEmpty()) { hash = (37 * hash) + ASSETNETUSED_FIELD_NUMBER; hash = (53 * hash) + internalGetAssetNetUsed().hashCode(); } if (!internalGetAssetNetLimit().getMap().isEmpty()) { hash = (37 * hash) + ASSETNETLIMIT_FIELD_NUMBER; hash = (53 * hash) + internalGetAssetNetLimit().hashCode(); } hash = (37 * hash) + TOTALNETLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNetLimit()); hash = (37 * hash) + TOTALNETWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNetWeight()); hash = (37 * hash) + ENTROPYUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyUsed()); hash = (37 * hash) + ENTROPYLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntropyLimit()); hash = (37 * hash) + TOTALENTROPYLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalEntropyLimit()); hash = (37 * hash) + TOTALENTROPYWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalEntropyWeight()); hash = (37 * hash) + STORAGEUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStorageUsed()); hash = (37 * hash) + STORAGELIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStorageLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage 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.vision.visionjsdk.proto.Response.AccountResourceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage 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.vision.visionjsdk.proto.Response.AccountResourceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage 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.vision.visionjsdk.proto.Response.AccountResourceMessage 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 protocol.AccountResourceMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountResourceMessage) org.vision.visionjsdk.proto.Response.AccountResourceMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAssetNetUsed(); case 6: return internalGetAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableAssetNetUsed(); case 6: return internalGetMutableAssetNetLimit(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Response.AccountResourceMessage.class, org.vision.visionjsdk.proto.Response.AccountResourceMessage.Builder.class); } // Construct using org.vision.visionjsdk.proto.Response.AccountResourceMessage.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(); freeNetUsed_ = 0L; freeNetLimit_ = 0L; netUsed_ = 0L; netLimit_ = 0L; internalGetMutableAssetNetUsed().clear(); internalGetMutableAssetNetLimit().clear(); totalNetLimit_ = 0L; totalNetWeight_ = 0L; entropyUsed_ = 0L; entropyLimit_ = 0L; totalEntropyLimit_ = 0L; totalEntropyWeight_ = 0L; storageUsed_ = 0L; storageLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountResourceMessage getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Response.AccountResourceMessage.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountResourceMessage build() { org.vision.visionjsdk.proto.Response.AccountResourceMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Response.AccountResourceMessage buildPartial() { org.vision.visionjsdk.proto.Response.AccountResourceMessage result = new org.vision.visionjsdk.proto.Response.AccountResourceMessage(this); int from_bitField0_ = bitField0_; result.freeNetUsed_ = freeNetUsed_; result.freeNetLimit_ = freeNetLimit_; result.netUsed_ = netUsed_; result.netLimit_ = netLimit_; result.assetNetUsed_ = internalGetAssetNetUsed(); result.assetNetUsed_.makeImmutable(); result.assetNetLimit_ = internalGetAssetNetLimit(); result.assetNetLimit_.makeImmutable(); result.totalNetLimit_ = totalNetLimit_; result.totalNetWeight_ = totalNetWeight_; result.entropyUsed_ = entropyUsed_; result.entropyLimit_ = entropyLimit_; result.totalEntropyLimit_ = totalEntropyLimit_; result.totalEntropyWeight_ = totalEntropyWeight_; result.storageUsed_ = storageUsed_; result.storageLimit_ = storageLimit_; 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.vision.visionjsdk.proto.Response.AccountResourceMessage) { return mergeFrom((org.vision.visionjsdk.proto.Response.AccountResourceMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AccountResourceMessage other) { if (other == org.vision.visionjsdk.proto.Response.AccountResourceMessage.getDefaultInstance()) return this; if (other.getFreeNetUsed() != 0L) { setFreeNetUsed(other.getFreeNetUsed()); } if (other.getFreeNetLimit() != 0L) { setFreeNetLimit(other.getFreeNetLimit()); } if (other.getNetUsed() != 0L) { setNetUsed(other.getNetUsed()); } if (other.getNetLimit() != 0L) { setNetLimit(other.getNetLimit()); } internalGetMutableAssetNetUsed().mergeFrom( other.internalGetAssetNetUsed()); internalGetMutableAssetNetLimit().mergeFrom( other.internalGetAssetNetLimit()); if (other.getTotalNetLimit() != 0L) { setTotalNetLimit(other.getTotalNetLimit()); } if (other.getTotalNetWeight() != 0L) { setTotalNetWeight(other.getTotalNetWeight()); } if (other.getEntropyUsed() != 0L) { setEntropyUsed(other.getEntropyUsed()); } if (other.getEntropyLimit() != 0L) { setEntropyLimit(other.getEntropyLimit()); } if (other.getTotalEntropyLimit() != 0L) { setTotalEntropyLimit(other.getTotalEntropyLimit()); } if (other.getTotalEntropyWeight() != 0L) { setTotalEntropyWeight(other.getTotalEntropyWeight()); } if (other.getStorageUsed() != 0L) { setStorageUsed(other.getStorageUsed()); } if (other.getStorageLimit() != 0L) { setStorageLimit(other.getStorageLimit()); } 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.vision.visionjsdk.proto.Response.AccountResourceMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Response.AccountResourceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long freeNetUsed_ ; /** * int64 freeNetUsed = 1; * @return The freeNetUsed. */ @java.lang.Override public long getFreeNetUsed() { return freeNetUsed_; } /** * int64 freeNetUsed = 1; * @param value The freeNetUsed to set. * @return This builder for chaining. */ public Builder setFreeNetUsed(long value) { freeNetUsed_ = value; onChanged(); return this; } /** * int64 freeNetUsed = 1; * @return This builder for chaining. */ public Builder clearFreeNetUsed() { freeNetUsed_ = 0L; onChanged(); return this; } private long freeNetLimit_ ; /** * int64 freeNetLimit = 2; * @return The freeNetLimit. */ @java.lang.Override public long getFreeNetLimit() { return freeNetLimit_; } /** * int64 freeNetLimit = 2; * @param value The freeNetLimit to set. * @return This builder for chaining. */ public Builder setFreeNetLimit(long value) { freeNetLimit_ = value; onChanged(); return this; } /** * int64 freeNetLimit = 2; * @return This builder for chaining. */ public Builder clearFreeNetLimit() { freeNetLimit_ = 0L; onChanged(); return this; } private long netUsed_ ; /** * int64 NetUsed = 3; * @return The netUsed. */ @java.lang.Override public long getNetUsed() { return netUsed_; } /** * int64 NetUsed = 3; * @param value The netUsed to set. * @return This builder for chaining. */ public Builder setNetUsed(long value) { netUsed_ = value; onChanged(); return this; } /** * int64 NetUsed = 3; * @return This builder for chaining. */ public Builder clearNetUsed() { netUsed_ = 0L; onChanged(); return this; } private long netLimit_ ; /** * int64 NetLimit = 4; * @return The netLimit. */ @java.lang.Override public long getNetLimit() { return netLimit_; } /** * int64 NetLimit = 4; * @param value The netLimit to set. * @return This builder for chaining. */ public Builder setNetLimit(long value) { netLimit_ = value; onChanged(); return this; } /** * int64 NetLimit = 4; * @return This builder for chaining. */ public Builder clearNetLimit() { netLimit_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetUsed_; private com.google.protobuf.MapField internalGetAssetNetUsed() { if (assetNetUsed_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } return assetNetUsed_; } private com.google.protobuf.MapField internalGetMutableAssetNetUsed() { onChanged();; if (assetNetUsed_ == null) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } if (!assetNetUsed_.isMutable()) { assetNetUsed_ = assetNetUsed_.copy(); } return assetNetUsed_; } public int getAssetNetUsedCount() { return internalGetAssetNetUsed().getMap().size(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public boolean containsAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetUsed().getMap().containsKey(key); } /** * Use {@link #getAssetNetUsedMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetUsed() { return getAssetNetUsedMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public java.util.Map getAssetNetUsedMap() { return internalGetAssetNetUsed().getMap(); } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetUsed = 5; */ @java.lang.Override public long getAssetNetUsedOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetUsed() { internalGetMutableAssetNetUsed().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder removeAssetNetUsed( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetUsed().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetUsed() { return internalGetMutableAssetNetUsed().getMutableMap(); } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAssetNetUsed( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetUsed().getMutableMap() .put(key, value); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAllAssetNetUsed( java.util.Map values) { internalGetMutableAssetNetUsed().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> assetNetLimit_; private com.google.protobuf.MapField internalGetAssetNetLimit() { if (assetNetLimit_ == null) { return com.google.protobuf.MapField.emptyMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } return assetNetLimit_; } private com.google.protobuf.MapField internalGetMutableAssetNetLimit() { onChanged();; if (assetNetLimit_ == null) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } if (!assetNetLimit_.isMutable()) { assetNetLimit_ = assetNetLimit_.copy(); } return assetNetLimit_; } public int getAssetNetLimitCount() { return internalGetAssetNetLimit().getMap().size(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public boolean containsAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAssetNetLimit().getMap().containsKey(key); } /** * Use {@link #getAssetNetLimitMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAssetNetLimit() { return getAssetNetLimitMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public java.util.Map getAssetNetLimitMap() { return internalGetAssetNetLimit().getMap(); } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> assetNetLimit = 6; */ @java.lang.Override public long getAssetNetLimitOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetLimit() { internalGetMutableAssetNetLimit().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder removeAssetNetLimit( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetLimit().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetLimit() { return internalGetMutableAssetNetLimit().getMutableMap(); } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAssetNetLimit( java.lang.String key, long value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAssetNetLimit().getMutableMap() .put(key, value); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAllAssetNetLimit( java.util.Map values) { internalGetMutableAssetNetLimit().getMutableMap() .putAll(values); return this; } private long totalNetLimit_ ; /** * int64 TotalNetLimit = 7; * @return The totalNetLimit. */ @java.lang.Override public long getTotalNetLimit() { return totalNetLimit_; } /** * int64 TotalNetLimit = 7; * @param value The totalNetLimit to set. * @return This builder for chaining. */ public Builder setTotalNetLimit(long value) { totalNetLimit_ = value; onChanged(); return this; } /** * int64 TotalNetLimit = 7; * @return This builder for chaining. */ public Builder clearTotalNetLimit() { totalNetLimit_ = 0L; onChanged(); return this; } private long totalNetWeight_ ; /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ @java.lang.Override public long getTotalNetWeight() { return totalNetWeight_; } /** * int64 TotalNetWeight = 8; * @param value The totalNetWeight to set. * @return This builder for chaining. */ public Builder setTotalNetWeight(long value) { totalNetWeight_ = value; onChanged(); return this; } /** * int64 TotalNetWeight = 8; * @return This builder for chaining. */ public Builder clearTotalNetWeight() { totalNetWeight_ = 0L; onChanged(); return this; } private long entropyUsed_ ; /** * int64 EntropyUsed = 13; * @return The entropyUsed. */ @java.lang.Override public long getEntropyUsed() { return entropyUsed_; } /** * int64 EntropyUsed = 13; * @param value The entropyUsed to set. * @return This builder for chaining. */ public Builder setEntropyUsed(long value) { entropyUsed_ = value; onChanged(); return this; } /** * int64 EntropyUsed = 13; * @return This builder for chaining. */ public Builder clearEntropyUsed() { entropyUsed_ = 0L; onChanged(); return this; } private long entropyLimit_ ; /** * int64 EntropyLimit = 14; * @return The entropyLimit. */ @java.lang.Override public long getEntropyLimit() { return entropyLimit_; } /** * int64 EntropyLimit = 14; * @param value The entropyLimit to set. * @return This builder for chaining. */ public Builder setEntropyLimit(long value) { entropyLimit_ = value; onChanged(); return this; } /** * int64 EntropyLimit = 14; * @return This builder for chaining. */ public Builder clearEntropyLimit() { entropyLimit_ = 0L; onChanged(); return this; } private long totalEntropyLimit_ ; /** * int64 TotalEntropyLimit = 15; * @return The totalEntropyLimit. */ @java.lang.Override public long getTotalEntropyLimit() { return totalEntropyLimit_; } /** * int64 TotalEntropyLimit = 15; * @param value The totalEntropyLimit to set. * @return This builder for chaining. */ public Builder setTotalEntropyLimit(long value) { totalEntropyLimit_ = value; onChanged(); return this; } /** * int64 TotalEntropyLimit = 15; * @return This builder for chaining. */ public Builder clearTotalEntropyLimit() { totalEntropyLimit_ = 0L; onChanged(); return this; } private long totalEntropyWeight_ ; /** * int64 TotalEntropyWeight = 16; * @return The totalEntropyWeight. */ @java.lang.Override public long getTotalEntropyWeight() { return totalEntropyWeight_; } /** * int64 TotalEntropyWeight = 16; * @param value The totalEntropyWeight to set. * @return This builder for chaining. */ public Builder setTotalEntropyWeight(long value) { totalEntropyWeight_ = value; onChanged(); return this; } /** * int64 TotalEntropyWeight = 16; * @return This builder for chaining. */ public Builder clearTotalEntropyWeight() { totalEntropyWeight_ = 0L; onChanged(); return this; } private long storageUsed_ ; /** * int64 storageUsed = 21; * @return The storageUsed. */ @java.lang.Override public long getStorageUsed() { return storageUsed_; } /** * int64 storageUsed = 21; * @param value The storageUsed to set. * @return This builder for chaining. */ public Builder setStorageUsed(long value) { storageUsed_ = value; onChanged(); return this; } /** * int64 storageUsed = 21; * @return This builder for chaining. */ public Builder clearStorageUsed() { storageUsed_ = 0L; onChanged(); return this; } private long storageLimit_ ; /** * int64 storageLimit = 22; * @return The storageLimit. */ @java.lang.Override public long getStorageLimit() { return storageLimit_; } /** * int64 storageLimit = 22; * @param value The storageLimit to set. * @return This builder for chaining. */ public Builder setStorageLimit(long value) { storageLimit_ = value; onChanged(); return this; } /** * int64 storageLimit = 22; * @return This builder for chaining. */ public Builder clearStorageLimit() { storageLimit_ = 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:protocol.AccountResourceMessage) } // @@protoc_insertion_point(class_scope:protocol.AccountResourceMessage) private static final org.vision.visionjsdk.proto.Response.AccountResourceMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AccountResourceMessage(); } public static org.vision.visionjsdk.proto.Response.AccountResourceMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountResourceMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountResourceMessage(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.vision.visionjsdk.proto.Response.AccountResourceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockExtention_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockExtention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockListExtention_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockListExtention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionReturn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionReturn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionExtention_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionExtention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WitnessList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WitnessList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ProposalList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ProposalList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExchangeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExchangeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AssetIssueList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AssetIssueList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DelegatedResourceMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DelegatedResourceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DelegatedResourceList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AddressPrKeyPairMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EasyTransferResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EasyTransferResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_SmartContractDataWrapper_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_InternalTransaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_InternalTransaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ResourceReceipt_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ResourceReceipt_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionInfo_Log_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionInfo_Log_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Witness_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Witness_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_Frozen_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_Frozen_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_AssetEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_AssetEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_AssetV2Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_AssetV2Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_LatestAssetOperationTimeEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_LatestAssetOperationTimeEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_FreeAssetNetUsageEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_FreeAssetNetUsageEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_FreeAssetNetUsageV2Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_FreeAssetNetUsageV2Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_AccountResource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_AccountResource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketOrderDetail_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketOrderDetail_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Proposal_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Proposal_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Proposal_ParametersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Proposal_ParametersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Exchange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Exchange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DelegatedResource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DelegatedResource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DelegatedResourceAccountIndex_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionSign_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionSign_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ChainParameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ChainParameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ChainParameters_ChainParameter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_PeerInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_MachineInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketOrder_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketOrder_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketOrderList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketOrderList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketOrderPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketOrderPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketOrderPairList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketOrderPairList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketPrice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketPrice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketPriceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketPriceList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NullifierResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NullifierResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DecryptNotesVRC20_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DecryptNotesVRC20_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DecryptNotesVRC20_NoteTx_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionInfoList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionInfoList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionApprovedList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionApprovedList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionApprovedList_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionSignWeight_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionSignWeight_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionSignWeight_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeList_Node_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeList_Node_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NodeList_Node_Address_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NodeList_Node_Address_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountNetMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountNetMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountResourceMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountResourceMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_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\023core/response.proto\022\010protocol\032\021core/co" + "mmon.proto\032\020core/chain.proto\032\023core/contr" + "act.proto\"\204\001\n\016BlockExtention\0224\n\014transact" + "ions\030\001 \003(\0132\036.protocol.TransactionExtenti" + "on\022+\n\014block_header\030\002 \001(\0132\025.protocol.Bloc" + "kHeader\022\017\n\007blockid\030\003 \001(\014\"=\n\022BlockListExt" + "ention\022\'\n\005block\030\001 \003(\0132\030.protocol.BlockEx" + "tention\"\252\003\n\021TransactionReturn\022\016\n\006result\030" + "\001 \001(\010\0227\n\004code\030\002 \001(\0162).protocol.Transacti" + "onReturn.response_code\022\017\n\007message\030\003 \001(\014\"" + "\272\002\n\rresponse_code\022\013\n\007SUCCESS\020\000\022\014\n\010SIGERR" + "OR\020\001\022\033\n\027CONTRACT_VALIDATE_ERROR\020\002\022\026\n\022CON" + "TRACT_EXE_ERROR\020\003\022\022\n\016BANDWITH_ERROR\020\004\022\031\n" + "\025DUP_TRANSACTION_ERROR\020\005\022\017\n\013TAPOS_ERROR\020" + "\006\022\035\n\031TOO_BIG_TRANSACTION_ERROR\020\007\022 \n\034TRAN" + "SACTION_EXPIRATION_ERROR\020\010\022\017\n\013SERVER_BUS" + "Y\020\t\022\021\n\rNO_CONNECTION\020\n\022#\n\037NOT_ENOUGH_EFF" + "ECTIVE_CONNECTION\020\013\022\017\n\013OTHER_ERROR\020\024\"\226\001\n" + "\024TransactionExtention\022*\n\013transaction\030\001 \001" + "(\0132\025.protocol.Transaction\022\014\n\004txid\030\002 \001(\014\022" + "\027\n\017constant_result\030\003 \003(\014\022+\n\006result\030\004 \001(\013" + "2\033.protocol.TransactionReturn\"3\n\013Witness" + "List\022$\n\twitnesses\030\001 \003(\0132\021.protocol.Witne" + "ss\"5\n\014ProposalList\022%\n\tproposals\030\001 \003(\0132\022." + "protocol.Proposal\"5\n\014ExchangeList\022%\n\texc" + "hanges\030\001 \003(\0132\022.protocol.Exchange\">\n\016Asse" + "tIssueList\022,\n\006assets\030\001 \003(\0132\034.protocol.As" + "setIssueContract\"+\n\tBlockList\022\036\n\005block\030\001" + " \003(\0132\017.protocol.Block\"=\n\017TransactionList" + "\022*\n\013transaction\030\001 \003(\0132\025.protocol.Transac" + "tion\"D\n\030DelegatedResourceMessage\022\024\n\014from" + "_address\030\001 \001(\014\022\022\n\nto_address\030\002 \001(\014\"O\n\025De" + "legatedResourceList\0226\n\021delegatedResource" + "\030\001 \003(\0132\033.protocol.DelegatedResource\">\n\027A" + "ddressPrKeyPairMessage\022\017\n\007address\030\001 \001(\t\022" + "\022\n\nprivateKey\030\002 \001(\t\"}\n\024EasyTransferRespo" + "nse\022*\n\013transaction\030\001 \001(\0132\025.protocol.Tran" + "saction\022+\n\006result\030\002 \001(\0132\033.protocol.Trans" + "actionReturn\022\014\n\004txid\030\003 \001(\014\"a\n\030SmartContr" + "actDataWrapper\022/\n\016smart_contract\030\001 \001(\0132\027" + ".protocol.SmartContract\022\024\n\014runtime_code\030" + "\002 \001(\014\"\360\001\n\023InternalTransaction\022\014\n\004hash\030\001 " + "\001(\014\022\026\n\016caller_address\030\002 \001(\014\022\032\n\022transferT" + "o_address\030\003 \001(\014\022B\n\rcallValueInfo\030\004 \003(\0132+" + ".protocol.InternalTransaction.CallValueI" + "nfo\022\014\n\004note\030\005 \001(\014\022\020\n\010rejected\030\006 \001(\010\0323\n\rC" + "allValueInfo\022\021\n\tcallValue\030\001 \001(\003\022\017\n\007token" + "Id\030\002 \001(\t\"\325\001\n\017ResourceReceipt\022\024\n\014entropy_u" + "sage\030\001 \001(\003\022\022\n\nentropy_fee\030\002 \001(\003\022\033\n\023origin" + "_entropy_usage\030\003 \001(\003\022\032\n\022entropy_usage_tota" + "l\030\004 \001(\003\022\021\n\tnet_usage\030\005 \001(\003\022\017\n\007net_fee\030\006 " + "\001(\003\022;\n\006result\030\007 \001(\0162+.protocol.Transacti" + "on.Result.contractResult\"\360\005\n\017Transaction" + "Info\022\n\n\002id\030\001 \001(\014\022\013\n\003fee\030\002 \001(\003\022\023\n\013blockNu" + "mber\030\003 \001(\003\022\026\n\016blockTimeStamp\030\004 \001(\003\022\026\n\016co" + "ntractResult\030\005 \003(\014\022\030\n\020contract_address\030\006" + " \001(\014\022*\n\007receipt\030\007 \001(\0132\031.protocol.Resourc" + "eReceipt\022*\n\003log\030\010 \003(\0132\035.protocol.Transac" + "tionInfo.Log\022.\n\006result\030\t \001(\0162\036.protocol." + "TransactionInfo.code\022\022\n\nresMessage\030\n \001(\014" + "\022\024\n\014assetIssueID\030\016 \001(\t\022\027\n\017withdraw_amoun" + "t\030\017 \001(\003\022\027\n\017unfreeze_amount\030\020 \001(\003\022<\n\025inte" + "rnal_transactions\030\021 \003(\0132\035.protocol.Inter" + "nalTransaction\022 \n\030exchange_received_amou" + "nt\030\022 \001(\003\022&\n\036exchange_inject_another_amou" + "nt\030\023 \001(\003\022(\n exchange_withdraw_another_am" + "ount\030\024 \001(\003\022\023\n\013exchange_id\030\025 \001(\003\022 \n\030shiel" + "ded_transaction_fee\030\026 \001(\003\022\017\n\007orderId\030\031 \001" + "(\014\0221\n\014orderDetails\030\032 \003(\0132\033.protocol.Mark" + "etOrderDetail\0324\n\003Log\022\017\n\007address\030\001 \001(\014\022\016\n" + "\006topics\030\002 \003(\014\022\014\n\004data\030\003 \001(\014\"\036\n\004code\022\n\n\006S" + "UCESS\020\000\022\n\n\006FAILED\020\001\"\265\001\n\007Witness\022\017\n\007addre" + "ss\030\001 \001(\014\022\021\n\tvoteCount\030\002 \001(\003\022\016\n\006pubKey\030\003 " + "\001(\014\022\013\n\003url\030\004 \001(\t\022\025\n\rtotalProduced\030\005 \001(\003\022" + "\023\n\013totalMissed\030\006 \001(\003\022\026\n\016latestBlockNum\030\007" + " \001(\003\022\025\n\rlatestSlotNum\030\010 \001(\003\022\016\n\006isJobs\030\t " + "\001(\010\"\360\017\n\007Account\022\024\n\014account_name\030\001 \001(\014\022#\n" + "\004type\030\002 \001(\0162\025.protocol.AccountType\022\017\n\007ad" + "dress\030\003 \001(\014\022\017\n\007balance\030\004 \001(\003\022\035\n\005votes\030\005 " + "\003(\0132\016.protocol.Vote\022+\n\005asset\030\006 \003(\0132\034.pro" + "tocol.Account.AssetEntry\022/\n\007assetV2\0308 \003(" + "\0132\036.protocol.Account.AssetV2Entry\022(\n\006fro" + "zen\030\007 \003(\0132\030.protocol.Account.Frozen\022\021\n\tn" + "et_usage\030\010 \001(\003\0227\n/acquired_delegated_fro" + "zen_balance_for_photon\030) \001(\003\022.\n&deleg" + "ated_frozen_balance_for_photon\030* \001(\003\022" + "\023\n\013create_time\030\t \001(\003\022\034\n\024latest_opration_" + "time\030\n \001(\003\022\021\n\tallowance\030\013 \001(\003\022\034\n\024latest_" + "withdraw_time\030\014 \001(\003\022\014\n\004code\030\r \001(\014\022\022\n\nis_" + "witness\030\016 \001(\010\022\024\n\014is_committee\030\017 \001(\010\022/\n\rf" + "rozen_supply\030\020 \003(\0132\030.protocol.Account.Fr" + "ozen\022\031\n\021asset_issued_name\030\021 \001(\014\022\027\n\017asset" + "_issued_ID\0309 \001(\014\022T\n\033latest_asset_operati" + "on_time\030\022 \003(\0132/.protocol.Account.LatestA" + "ssetOperationTimeEntry\022X\n\035latest_asset_o" + "peration_timeV2\030: \003(\01321.protocol.Account" + ".LatestAssetOperationTimeV2Entry\022\026\n\016free" + "_net_usage\030\023 \001(\003\022F\n\024free_asset_net_usage" + "\030\024 \003(\0132(.protocol.Account.FreeAssetNetUs" + "ageEntry\022J\n\026free_asset_net_usageV2\030; \003(\013" + "2*.protocol.Account.FreeAssetNetUsageV2E" + "ntry\022\033\n\023latest_consume_time\030\025 \001(\003\022 \n\030lat" + "est_consume_free_time\030\026 \001(\003\022\022\n\naccount_i" + "d\030\027 \001(\014\022;\n\020account_resource\030\032 \001(\0132!.prot" + "ocol.Account.AccountResource\022\020\n\010codeHash" + "\030\036 \001(\014\022.\n\020owner_permission\030\037 \001(\0132\024.proto" + "col.Permission\0220\n\022witness_permission\030 \001" + "(\0132\024.protocol.Permission\022/\n\021active_permi" + "ssion\030! \003(\0132\024.protocol.Permission\0325\n\006Fro" + "zen\022\026\n\016frozen_balance\030\001 \001(\003\022\023\n\013expire_ti" + "me\030\002 \001(\003\032,\n\nAssetEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\003:\0028\001\032.\n\014AssetV2Entry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032?\n\035LatestAssetOpe" + "rationTimeEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\003:\0028\001\032A\n\037LatestAssetOperationTimeV2Ent" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0328\n\026Fr" + "eeAssetNetUsageEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\003:\0028\001\032:\n\030FreeAssetNetUsageV2Entry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032\303\002\n\017Acc" + "ountResource\022\024\n\014entropy_usage\030\001 \001(\003\022;\n\031fr" + "ozen_balance_for_entropy\030\002 \001(\0132\030.protocol" + ".Account.Frozen\022&\n\036latest_consume_time_f" + "or_entropy\030\003 \001(\003\0224\n,acquired_delegated_fr" + "ozen_balance_for_entropy\030\004 \001(\003\022+\n#delegat" + "ed_frozen_balance_for_entropy\030\005 \001(\003\022\025\n\rst" + "orage_limit\030\006 \001(\003\022\025\n\rstorage_usage\030\007 \001(\003" + "\022$\n\034latest_exchange_storage_time\030\010 \001(\003\"r" + "\n\021MarketOrderDetail\022\024\n\014makerOrderId\030\001 \001(" + "\014\022\024\n\014takerOrderId\030\002 \001(\014\022\030\n\020fillSellQuant" + "ity\030\003 \001(\003\022\027\n\017fillBuyQuantity\030\004 \001(\003\"\321\002\n\010P" + "roposal\022\023\n\013proposal_id\030\001 \001(\003\022\030\n\020proposer" + "_address\030\002 \001(\014\0226\n\nparameters\030\003 \003(\0132\".pro" + "tocol.Proposal.ParametersEntry\022\027\n\017expira" + "tion_time\030\004 \001(\003\022\023\n\013create_time\030\005 \001(\003\022\021\n\t" + "approvals\030\006 \003(\014\022\'\n\005state\030\007 \001(\0162\030.protoco" + "l.Proposal.State\0321\n\017ParametersEntry\022\013\n\003k" + "ey\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\"A\n\005State\022\013\n\007" + "PENDING\020\000\022\017\n\013DISAPPROVED\020\001\022\014\n\010APPROVED\020\002" + "\022\014\n\010CANCELED\020\003\"\271\001\n\010Exchange\022\023\n\013exchange_" + "id\030\001 \001(\003\022\027\n\017creator_address\030\002 \001(\014\022\023\n\013cre" + "ate_time\030\003 \001(\003\022\026\n\016first_token_id\030\006 \001(\014\022\033" + "\n\023first_token_balance\030\007 \001(\003\022\027\n\017second_to" + "ken_id\030\010 \001(\014\022\034\n\024second_token_balance\030\t \001" + "(\003\"\271\001\n\021DelegatedResource\022\014\n\004from\030\001 \001(\014\022\n" + "\n\002to\030\002 \001(\014\022$\n\034frozen_balance_for_bandwid" + "th\030\003 \001(\003\022!\n\031frozen_balance_for_entropy\030\004 " + "\001(\003\022!\n\031expire_time_for_photon\030\005 \001(\003\022\036" + "\n\026expire_time_for_entropy\030\006 \001(\003\"Z\n\035Delega" + "tedResourceAccountIndex\022\017\n\007account\030\001 \001(\014" + "\022\024\n\014fromAccounts\030\002 \003(\014\022\022\n\ntoAccounts\030\003 \003" + "(\014\"Q\n\017TransactionSign\022*\n\013transaction\030\001 \001" + "(\0132\025.protocol.Transaction\022\022\n\nprivateKey\030" + "\002 \001(\014\"\201\001\n\017ChainParameters\022@\n\016chainParame" + "ter\030\001 \003(\0132(.protocol.ChainParameters.Cha" + "inParameter\032,\n\016ChainParameter\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\003\"\240\021\n\010NodeInfo\022\024\n\014beginS" + "yncNum\030\001 \001(\003\022\r\n\005block\030\002 \001(\t\022\025\n\rsolidityB" + "lock\030\003 \001(\t\022\033\n\023currentConnectCount\030\004 \001(\005\022" + "\032\n\022activeConnectCount\030\005 \001(\005\022\033\n\023passiveCo" + "nnectCount\030\006 \001(\005\022\021\n\ttotalFlow\030\007 \001(\003\0221\n\014p" + "eerInfoList\030\010 \003(\0132\033.protocol.NodeInfo.Pe" + "erInfo\0229\n\016configNodeInfo\030\t \001(\0132!.protoco" + "l.NodeInfo.ConfigNodeInfo\0223\n\013machineInfo" + "\030\n \001(\0132\036.protocol.NodeInfo.MachineInfo\022H" + "\n\023cheatWitnessInfoMap\030\013 \003(\0132+.protocol.N" + "odeInfo.CheatWitnessInfoMapEntry\032:\n\030Chea" + "tWitnessInfoMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\032\315\004\n\010PeerInfo\022\025\n\rlastSyncBlo" + "ck\030\001 \001(\t\022\021\n\tremainNum\030\002 \001(\003\022\033\n\023lastBlock" + "UpdateTime\030\003 \001(\003\022\020\n\010syncFlag\030\004 \001(\010\022\037\n\027he" + "adBlockTimeWeBothHave\030\005 \001(\003\022\030\n\020needSyncF" + "romPeer\030\006 \001(\010\022\026\n\016needSyncFromUs\030\007 \001(\010\022\014\n" + "\004host\030\010 \001(\t\022\014\n\004port\030\t \001(\005\022\016\n\006nodeId\030\n \001(" + "\t\022\023\n\013connectTime\030\013 \001(\003\022\022\n\navgLatency\030\014 \001" + "(\001\022\027\n\017syncToFetchSize\030\r \001(\005\022\036\n\026syncToFet" + "chSizePeekNum\030\016 \001(\003\022\036\n\026syncBlockRequeste" + "dSize\030\017 \001(\005\022\025\n\runFetchSynNum\030\020 \001(\003\022\027\n\017bl" + "ockInPorcSize\030\021 \001(\005\022\033\n\023headBlockWeBothHa" + "ve\030\022 \001(\t\022\020\n\010isActive\030\023 \001(\010\022\r\n\005score\030\024 \001(" + "\005\022\021\n\tnodeCount\030\025 \001(\005\022\016\n\006inFlow\030\026 \001(\003\022\027\n\017" + "disconnectTimes\030\027 \001(\005\022\035\n\025localDisconnect" + "Reason\030\030 \001(\t\022\036\n\026remoteDisconnectReason\030\031" + " \001(\t\032\345\003\n\016ConfigNodeInfo\022\023\n\013codeVersion\030\001" + " \001(\t\022\022\n\np2pVersion\030\002 \001(\t\022\022\n\nlistenPort\030\003" + " \001(\005\022\026\n\016discoverEnable\030\004 \001(\010\022\026\n\016activeNo" + "deSize\030\005 \001(\005\022\027\n\017passiveNodeSize\030\006 \001(\005\022\024\n" + "\014sendNodeSize\030\007 \001(\005\022\027\n\017maxConnectCount\030\010" + " \001(\005\022\035\n\025sameIpMaxConnectCount\030\t \001(\005\022\030\n\020b" + "ackupListenPort\030\n \001(\005\022\030\n\020backupMemberSiz" + "e\030\013 \001(\005\022\026\n\016backupPriority\030\014 \001(\005\022\021\n\tdbVer" + "sion\030\r \001(\005\022\034\n\024minParticipationRate\030\016 \001(\005" + "\022\027\n\017supportConstant\030\017 \001(\010\022\024\n\014minTimeRati" + "o\030\020 \001(\001\022\024\n\014maxTimeRatio\030\021 \001(\001\022 \n\030allowCr" + "eationOfContracts\030\022 \001(\003\022\033\n\023allowAdaptive" + "Entropy\030\023 \001(\003\032\215\005\n\013MachineInfo\022\023\n\013threadCo" + "unt\030\001 \001(\005\022\033\n\023deadLockThreadCount\030\002 \001(\005\022\020" + "\n\010cpuCount\030\003 \001(\005\022\023\n\013totalMemory\030\004 \001(\003\022\022\n" + "\nfreeMemory\030\005 \001(\003\022\017\n\007cpuRate\030\006 \001(\001\022\023\n\013ja" + "vaVersion\030\007 \001(\t\022\016\n\006osName\030\010 \001(\t\022\027\n\017jvmTo" + "talMemoery\030\t \001(\003\022\025\n\rjvmFreeMemory\030\n \001(\003\022" + "\026\n\016processCpuRate\030\013 \001(\001\022I\n\022memoryDescInf" + "oList\030\014 \003(\0132-.protocol.NodeInfo.MachineI" + "nfo.MemoryDescInfo\022Q\n\026deadLockThreadInfo" + "List\030\r \003(\01321.protocol.NodeInfo.MachineIn" + "fo.DeadLockThreadInfo\032c\n\016MemoryDescInfo\022" + "\014\n\004name\030\001 \001(\t\022\020\n\010initSize\030\002 \001(\003\022\017\n\007useSi" + "ze\030\003 \001(\003\022\017\n\007maxSize\030\004 \001(\003\022\017\n\007useRate\030\005 \001" + "(\001\032\217\001\n\022DeadLockThreadInfo\022\014\n\004name\030\001 \001(\t\022" + "\020\n\010lockName\030\002 \001(\t\022\021\n\tlockOwner\030\003 \001(\t\022\r\n\005" + "state\030\004 \001(\t\022\021\n\tblockTime\030\005 \001(\003\022\020\n\010waitTi" + "me\030\006 \001(\003\022\022\n\nstackTrace\030\007 \001(\t\"\362\002\n\013MarketO" + "rder\022\020\n\010order_id\030\001 \001(\014\022\025\n\rowner_address\030" + "\002 \001(\014\022\023\n\013create_time\030\003 \001(\003\022\025\n\rsell_token" + "_id\030\004 \001(\014\022\033\n\023sell_token_quantity\030\005 \001(\003\022\024" + "\n\014buy_token_id\030\006 \001(\014\022\032\n\022buy_token_quanti" + "ty\030\007 \001(\003\022\"\n\032sell_token_quantity_remain\030\t" + " \001(\003\022\"\n\032sell_token_quantity_return\030\n \001(\003" + "\022*\n\005state\030\013 \001(\0162\033.protocol.MarketOrder.S" + "tate\022\014\n\004prev\030\014 \001(\014\022\014\n\004next\030\r \001(\014\"/\n\005Stat" + "e\022\n\n\006ACTIVE\020\000\022\014\n\010INACTIVE\020\001\022\014\n\010CANCELED\020" + "\002\"8\n\017MarketOrderList\022%\n\006orders\030\001 \003(\0132\025.p" + "rotocol.MarketOrder\">\n\017MarketOrderPair\022\025" + "\n\rsell_token_id\030\001 \001(\014\022\024\n\014buy_token_id\030\002 " + "\001(\014\"C\n\023MarketOrderPairList\022,\n\torderPair\030" + "\001 \003(\0132\031.protocol.MarketOrderPair\"F\n\013Mark" + "etPrice\022\033\n\023sell_token_quantity\030\001 \001(\003\022\032\n\022" + "buy_token_quantity\030\002 \001(\003\"e\n\017MarketPriceL" + "ist\022\025\n\rsell_token_id\030\001 \001(\014\022\024\n\014buy_token_" + "id\030\002 \001(\014\022%\n\006prices\030\003 \003(\0132\025.protocol.Mark" + "etPrice\"#\n\017NullifierResult\022\020\n\010is_spent\030\001" + " \001(\010\"\345\001\n\021DecryptNotesVRC20\0223\n\007noteTxs\030\001 " + "\003(\0132\".protocol.DecryptNotesVRC20.NoteTx\032" + "\232\001\n\006NoteTx\022\034\n\004note\030\001 \001(\0132\016.protocol.Note" + "\022\020\n\010position\030\002 \001(\003\022\020\n\010is_spent\030\003 \001(\010\022\014\n\004" + "txid\030\004 \001(\014\022\r\n\005index\030\005 \001(\005\022\021\n\tto_amount\030\006" + " \001(\t\022\036\n\026transparent_to_address\030\007 \001(\014\"I\n\023" + "TransactionInfoList\0222\n\017transactionInfo\030\001" + " \003(\0132\031.protocol.TransactionInfo\"\347\002\n\027Tran" + "sactionApprovedList\022\025\n\rapproved_list\030\002 \003" + "(\014\0228\n\006result\030\004 \001(\0132(.protocol.Transactio" + "nApprovedList.Result\0223\n\013transaction\030\005 \001(" + "\0132\036.protocol.TransactionExtention\032\305\001\n\006Re" + "sult\022D\n\004code\030\001 \001(\01626.protocol.Transactio" + "nApprovedList.Result.response_code\022\017\n\007me" + "ssage\030\002 \001(\t\"d\n\rresponse_code\022\013\n\007SUCCESS\020" + "\000\022\032\n\026SIGNATURE_FORMAT_ERROR\020\001\022\031\n\025COMPUTE" + "_ADDRESS_ERROR\020\002\022\017\n\013OTHER_ERROR\020\024\"\337\003\n\025Tr" + "ansactionSignWeight\022(\n\npermission\030\001 \001(\0132" + "\024.protocol.Permission\022\025\n\rapproved_list\030\002" + " \003(\014\022\026\n\016current_weight\030\003 \001(\003\0226\n\006result\030\004" + " \001(\0132&.protocol.TransactionSignWeight.Re" + "sult\0223\n\013transaction\030\005 \001(\0132\036.protocol.Tra" + "nsactionExtention\032\377\001\n\006Result\022B\n\004code\030\001 \001" + "(\01624.protocol.TransactionSignWeight.Resu" + "lt.response_code\022\017\n\007message\030\002 \001(\t\"\237\001\n\rre" + "sponse_code\022\025\n\021ENOUGH_PERMISSION\020\000\022\031\n\025NO" + "T_ENOUGH_PERMISSION\020\001\022\032\n\026SIGNATURE_FORMA" + "T_ERROR\020\002\022\031\n\025COMPUTE_ADDRESS_ERROR\020\003\022\024\n\020" + "PERMISSION_ERROR\020\004\022\017\n\013OTHER_ERROR\020\024\"\223\001\n\010" + "NodeList\022&\n\005nodes\030\001 \003(\0132\027.protocol.NodeL" + "ist.Node\032_\n\004Node\0220\n\007address\030\001 \001(\0132\037.prot" + "ocol.NodeList.Node.Address\032%\n\007Address\022\014\n" + "\004host\030\001 \001(\014\022\014\n\004port\030\002 \001(\005\"\207\003\n\021AccountNet" + "Message\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNetL" + "imit\030\002 \001(\003\022\017\n\007NetUsed\030\003 \001(\003\022\020\n\010NetLimit\030" + "\004 \001(\003\022C\n\014assetNetUsed\030\005 \003(\0132-.protocol.A" + "ccountNetMessage.AssetNetUsedEntry\022E\n\ras" + "setNetLimit\030\006 \003(\0132..protocol.AccountNetM" + "essage.AssetNetLimitEntry\022\025\n\rTotalNetLim" + "it\030\007 \001(\003\022\026\n\016TotalNetWeight\030\010 \001(\003\0323\n\021Asse" + "tNetUsedEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\003:\0028\001\0324\n\022AssetNetLimitEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\003:\0028\001\"\237\004\n\026AccountResourceM" + "essage\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNetLi" + "mit\030\002 \001(\003\022\017\n\007NetUsed\030\003 \001(\003\022\020\n\010NetLimit\030\004" + " \001(\003\022H\n\014assetNetUsed\030\005 \003(\01322.protocol.Ac" + "countResourceMessage.AssetNetUsedEntry\022J" + "\n\rassetNetLimit\030\006 \003(\01323.protocol.Account" + "ResourceMessage.AssetNetLimitEntry\022\025\n\rTo" + "talNetLimit\030\007 \001(\003\022\026\n\016TotalNetWeight\030\010 \001(" + "\003\022\022\n\nEntropyUsed\030\r \001(\003\022\023\n\013EntropyLimit\030\016 \001" + "(\003\022\030\n\020TotalEntropyLimit\030\017 \001(\003\022\031\n\021TotalEne" + "rgyWeight\030\020 \001(\003\022\023\n\013storageUsed\030\025 \001(\003\022\024\n\014" + "storageLimit\030\026 \001(\003\0323\n\021AssetNetUsedEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Asset" + "NetLimitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\003:\0028\001B\035\n\033org.vision.visionjsdk.protob\006pr" + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.vision.visionjsdk.proto.Common.getDescriptor(), org.vision.visionjsdk.proto.Chain.getDescriptor(), org.vision.visionjsdk.proto.Contract.getDescriptor(), }); internal_static_protocol_BlockExtention_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_BlockExtention_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockExtention_descriptor, new java.lang.String[] { "Transactions", "BlockHeader", "Blockid", }); internal_static_protocol_BlockListExtention_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_BlockListExtention_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockListExtention_descriptor, new java.lang.String[] { "Block", }); internal_static_protocol_TransactionReturn_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_TransactionReturn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionReturn_descriptor, new java.lang.String[] { "Result", "Code", "Message", }); internal_static_protocol_TransactionExtention_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protocol_TransactionExtention_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionExtention_descriptor, new java.lang.String[] { "Transaction", "Txid", "ConstantResult", "Result", }); internal_static_protocol_WitnessList_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protocol_WitnessList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WitnessList_descriptor, new java.lang.String[] { "Witnesses", }); internal_static_protocol_ProposalList_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protocol_ProposalList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ProposalList_descriptor, new java.lang.String[] { "Proposals", }); internal_static_protocol_ExchangeList_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protocol_ExchangeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExchangeList_descriptor, new java.lang.String[] { "Exchanges", }); internal_static_protocol_AssetIssueList_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protocol_AssetIssueList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AssetIssueList_descriptor, new java.lang.String[] { "Assets", }); internal_static_protocol_BlockList_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protocol_BlockList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockList_descriptor, new java.lang.String[] { "Block", }); internal_static_protocol_TransactionList_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protocol_TransactionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionList_descriptor, new java.lang.String[] { "Transaction", }); internal_static_protocol_DelegatedResourceMessage_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResourceMessage_descriptor, new java.lang.String[] { "FromAddress", "ToAddress", }); internal_static_protocol_DelegatedResourceList_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protocol_DelegatedResourceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResourceList_descriptor, new java.lang.String[] { "DelegatedResource", }); internal_static_protocol_AddressPrKeyPairMessage_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AddressPrKeyPairMessage_descriptor, new java.lang.String[] { "Address", "PrivateKey", }); internal_static_protocol_EasyTransferResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protocol_EasyTransferResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EasyTransferResponse_descriptor, new java.lang.String[] { "Transaction", "Result", "Txid", }); internal_static_protocol_SmartContractDataWrapper_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_SmartContractDataWrapper_descriptor, new java.lang.String[] { "SmartContract", "RuntimeCode", }); internal_static_protocol_InternalTransaction_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protocol_InternalTransaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_InternalTransaction_descriptor, new java.lang.String[] { "Hash", "CallerAddress", "TransferToAddress", "CallValueInfo", "Note", "Rejected", }); internal_static_protocol_InternalTransaction_CallValueInfo_descriptor = internal_static_protocol_InternalTransaction_descriptor.getNestedTypes().get(0); internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_InternalTransaction_CallValueInfo_descriptor, new java.lang.String[] { "CallValue", "TokenId", }); internal_static_protocol_ResourceReceipt_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protocol_ResourceReceipt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ResourceReceipt_descriptor, new java.lang.String[] { "EntropyUsage", "EntropyFee", "OriginEntropyUsage", "EntropyUsageTotal", "NetUsage", "NetFee", "Result", }); internal_static_protocol_TransactionInfo_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protocol_TransactionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionInfo_descriptor, new java.lang.String[] { "Id", "Fee", "BlockNumber", "BlockTimeStamp", "ContractResult", "ContractAddress", "Receipt", "Log", "Result", "ResMessage", "AssetIssueID", "WithdrawAmount", "UnfreezeAmount", "InternalTransactions", "ExchangeReceivedAmount", "ExchangeInjectAnotherAmount", "ExchangeWithdrawAnotherAmount", "ExchangeId", "ShieldedTransactionFee", "OrderId", "OrderDetails", }); internal_static_protocol_TransactionInfo_Log_descriptor = internal_static_protocol_TransactionInfo_descriptor.getNestedTypes().get(0); internal_static_protocol_TransactionInfo_Log_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionInfo_Log_descriptor, new java.lang.String[] { "Address", "Topics", "Data", }); internal_static_protocol_Witness_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protocol_Witness_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Witness_descriptor, new java.lang.String[] { "Address", "VoteCount", "PubKey", "Url", "TotalProduced", "TotalMissed", "LatestBlockNum", "LatestSlotNum", "IsJobs", }); internal_static_protocol_Account_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protocol_Account_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_descriptor, new java.lang.String[] { "AccountName", "Type", "Address", "Balance", "Votes", "Asset", "AssetV2", "Frozen", "NetUsage", "AcquiredDelegatedFrozenBalanceForPhoton", "DelegatedFrozenBalanceForPhoton", "CreateTime", "LatestOprationTime", "Allowance", "LatestWithdrawTime", "Code", "IsWitness", "IsCommittee", "FrozenSupply", "AssetIssuedName", "AssetIssuedID", "LatestAssetOperationTime", "LatestAssetOperationTimeV2", "FreeNetUsage", "FreeAssetNetUsage", "FreeAssetNetUsageV2", "LatestConsumeTime", "LatestConsumeFreeTime", "AccountId", "AccountResource", "CodeHash", "OwnerPermission", "WitnessPermission", "ActivePermission", }); internal_static_protocol_Account_Frozen_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(0); internal_static_protocol_Account_Frozen_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_Frozen_descriptor, new java.lang.String[] { "FrozenBalance", "ExpireTime", }); internal_static_protocol_Account_AssetEntry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(1); internal_static_protocol_Account_AssetEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_AssetEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_AssetV2Entry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(2); internal_static_protocol_Account_AssetV2Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_AssetV2Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_LatestAssetOperationTimeEntry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(3); internal_static_protocol_Account_LatestAssetOperationTimeEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_LatestAssetOperationTimeEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(4); internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_FreeAssetNetUsageEntry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(5); internal_static_protocol_Account_FreeAssetNetUsageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_FreeAssetNetUsageEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_FreeAssetNetUsageV2Entry_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(6); internal_static_protocol_Account_FreeAssetNetUsageV2Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_FreeAssetNetUsageV2Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Account_AccountResource_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(7); internal_static_protocol_Account_AccountResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_AccountResource_descriptor, new java.lang.String[] { "EntropyUsage", "FrozenBalanceForEntropy", "LatestConsumeTimeForEntropy", "AcquiredDelegatedFrozenBalanceForEntropy", "DelegatedFrozenBalanceForEntropy", "StorageLimit", "StorageUsage", "LatestExchangeStorageTime", }); internal_static_protocol_MarketOrderDetail_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protocol_MarketOrderDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketOrderDetail_descriptor, new java.lang.String[] { "MakerOrderId", "TakerOrderId", "FillSellQuantity", "FillBuyQuantity", }); internal_static_protocol_Proposal_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protocol_Proposal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Proposal_descriptor, new java.lang.String[] { "ProposalId", "ProposerAddress", "Parameters", "ExpirationTime", "CreateTime", "Approvals", "State", }); internal_static_protocol_Proposal_ParametersEntry_descriptor = internal_static_protocol_Proposal_descriptor.getNestedTypes().get(0); internal_static_protocol_Proposal_ParametersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Proposal_ParametersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Exchange_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protocol_Exchange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Exchange_descriptor, new java.lang.String[] { "ExchangeId", "CreatorAddress", "CreateTime", "FirstTokenId", "FirstTokenBalance", "SecondTokenId", "SecondTokenBalance", }); internal_static_protocol_DelegatedResource_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_protocol_DelegatedResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResource_descriptor, new java.lang.String[] { "From", "To", "FrozenBalanceForPhoton", "FrozenBalanceForEntropy", "ExpireTimeForPhoton", "ExpireTimeForEntropy", }); internal_static_protocol_DelegatedResourceAccountIndex_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResourceAccountIndex_descriptor, new java.lang.String[] { "Account", "FromAccounts", "ToAccounts", }); internal_static_protocol_TransactionSign_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protocol_TransactionSign_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionSign_descriptor, new java.lang.String[] { "Transaction", "PrivateKey", }); internal_static_protocol_ChainParameters_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_protocol_ChainParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ChainParameters_descriptor, new java.lang.String[] { "ChainParameter", }); internal_static_protocol_ChainParameters_ChainParameter_descriptor = internal_static_protocol_ChainParameters_descriptor.getNestedTypes().get(0); internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ChainParameters_ChainParameter_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_NodeInfo_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_protocol_NodeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_descriptor, new java.lang.String[] { "BeginSyncNum", "Block", "SolidityBlock", "CurrentConnectCount", "ActiveConnectCount", "PassiveConnectCount", "TotalFlow", "PeerInfoList", "ConfigNodeInfo", "MachineInfo", "CheatWitnessInfoMap", }); internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_descriptor = internal_static_protocol_NodeInfo_descriptor.getNestedTypes().get(0); internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_NodeInfo_PeerInfo_descriptor = internal_static_protocol_NodeInfo_descriptor.getNestedTypes().get(1); internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_PeerInfo_descriptor, new java.lang.String[] { "LastSyncBlock", "RemainNum", "LastBlockUpdateTime", "SyncFlag", "HeadBlockTimeWeBothHave", "NeedSyncFromPeer", "NeedSyncFromUs", "Host", "Port", "NodeId", "ConnectTime", "AvgLatency", "SyncToFetchSize", "SyncToFetchSizePeekNum", "SyncBlockRequestedSize", "UnFetchSynNum", "BlockInPorcSize", "HeadBlockWeBothHave", "IsActive", "Score", "NodeCount", "InFlow", "DisconnectTimes", "LocalDisconnectReason", "RemoteDisconnectReason", }); internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor = internal_static_protocol_NodeInfo_descriptor.getNestedTypes().get(2); internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor, new java.lang.String[] { "CodeVersion", "P2PVersion", "ListenPort", "DiscoverEnable", "ActiveNodeSize", "PassiveNodeSize", "SendNodeSize", "MaxConnectCount", "SameIpMaxConnectCount", "BackupListenPort", "BackupMemberSize", "BackupPriority", "DbVersion", "MinParticipationRate", "SupportConstant", "MinTimeRatio", "MaxTimeRatio", "AllowCreationOfContracts", "AllowAdaptiveEntropy", }); internal_static_protocol_NodeInfo_MachineInfo_descriptor = internal_static_protocol_NodeInfo_descriptor.getNestedTypes().get(3); internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_MachineInfo_descriptor, new java.lang.String[] { "ThreadCount", "DeadLockThreadCount", "CpuCount", "TotalMemory", "FreeMemory", "CpuRate", "JavaVersion", "OsName", "JvmTotalMemoery", "JvmFreeMemory", "ProcessCpuRate", "MemoryDescInfoList", "DeadLockThreadInfoList", }); internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor = internal_static_protocol_NodeInfo_MachineInfo_descriptor.getNestedTypes().get(0); internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor, new java.lang.String[] { "Name", "InitSize", "UseSize", "MaxSize", "UseRate", }); internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor = internal_static_protocol_NodeInfo_MachineInfo_descriptor.getNestedTypes().get(1); internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor, new java.lang.String[] { "Name", "LockName", "LockOwner", "State", "BlockTime", "WaitTime", "StackTrace", }); internal_static_protocol_MarketOrder_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_protocol_MarketOrder_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketOrder_descriptor, new java.lang.String[] { "OrderId", "OwnerAddress", "CreateTime", "SellTokenId", "SellTokenQuantity", "BuyTokenId", "BuyTokenQuantity", "SellTokenQuantityRemain", "SellTokenQuantityReturn", "State", "Prev", "Next", }); internal_static_protocol_MarketOrderList_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_protocol_MarketOrderList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketOrderList_descriptor, new java.lang.String[] { "Orders", }); internal_static_protocol_MarketOrderPair_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_protocol_MarketOrderPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketOrderPair_descriptor, new java.lang.String[] { "SellTokenId", "BuyTokenId", }); internal_static_protocol_MarketOrderPairList_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_protocol_MarketOrderPairList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketOrderPairList_descriptor, new java.lang.String[] { "OrderPair", }); internal_static_protocol_MarketPrice_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_protocol_MarketPrice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketPrice_descriptor, new java.lang.String[] { "SellTokenQuantity", "BuyTokenQuantity", }); internal_static_protocol_MarketPriceList_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_protocol_MarketPriceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketPriceList_descriptor, new java.lang.String[] { "SellTokenId", "BuyTokenId", "Prices", }); internal_static_protocol_NullifierResult_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_protocol_NullifierResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NullifierResult_descriptor, new java.lang.String[] { "IsSpent", }); internal_static_protocol_DecryptNotesVRC20_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_protocol_DecryptNotesVRC20_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DecryptNotesVRC20_descriptor, new java.lang.String[] { "NoteTxs", }); internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor = internal_static_protocol_DecryptNotesVRC20_descriptor.getNestedTypes().get(0); internal_static_protocol_DecryptNotesVRC20_NoteTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DecryptNotesVRC20_NoteTx_descriptor, new java.lang.String[] { "Note", "Position", "IsSpent", "Txid", "Index", "ToAmount", "TransparentToAddress", }); internal_static_protocol_TransactionInfoList_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_protocol_TransactionInfoList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionInfoList_descriptor, new java.lang.String[] { "TransactionInfo", }); internal_static_protocol_TransactionApprovedList_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_protocol_TransactionApprovedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionApprovedList_descriptor, new java.lang.String[] { "ApprovedList", "Result", "Transaction", }); internal_static_protocol_TransactionApprovedList_Result_descriptor = internal_static_protocol_TransactionApprovedList_descriptor.getNestedTypes().get(0); internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionApprovedList_Result_descriptor, new java.lang.String[] { "Code", "Message", }); internal_static_protocol_TransactionSignWeight_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_protocol_TransactionSignWeight_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionSignWeight_descriptor, new java.lang.String[] { "Permission", "ApprovedList", "CurrentWeight", "Result", "Transaction", }); internal_static_protocol_TransactionSignWeight_Result_descriptor = internal_static_protocol_TransactionSignWeight_descriptor.getNestedTypes().get(0); internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionSignWeight_Result_descriptor, new java.lang.String[] { "Code", "Message", }); internal_static_protocol_NodeList_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_protocol_NodeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeList_descriptor, new java.lang.String[] { "Nodes", }); internal_static_protocol_NodeList_Node_descriptor = internal_static_protocol_NodeList_descriptor.getNestedTypes().get(0); internal_static_protocol_NodeList_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeList_Node_descriptor, new java.lang.String[] { "Address", }); internal_static_protocol_NodeList_Node_Address_descriptor = internal_static_protocol_NodeList_Node_descriptor.getNestedTypes().get(0); internal_static_protocol_NodeList_Node_Address_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NodeList_Node_Address_descriptor, new java.lang.String[] { "Host", "Port", }); internal_static_protocol_AccountNetMessage_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_protocol_AccountNetMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountNetMessage_descriptor, new java.lang.String[] { "FreeNetUsed", "FreeNetLimit", "NetUsed", "NetLimit", "AssetNetUsed", "AssetNetLimit", "TotalNetLimit", "TotalNetWeight", }); internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_descriptor = internal_static_protocol_AccountNetMessage_descriptor.getNestedTypes().get(0); internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_descriptor = internal_static_protocol_AccountNetMessage_descriptor.getNestedTypes().get(1); internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_AccountResourceMessage_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_protocol_AccountResourceMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountResourceMessage_descriptor, new java.lang.String[] { "FreeNetUsed", "FreeNetLimit", "NetUsed", "NetLimit", "AssetNetUsed", "AssetNetLimit", "TotalNetLimit", "TotalNetWeight", "EntropyUsed", "EntropyLimit", "TotalEntropyLimit", "TotalEntropyWeight", "StorageUsed", "StorageLimit", }); internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor = internal_static_protocol_AccountResourceMessage_descriptor.getNestedTypes().get(0); internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_descriptor = internal_static_protocol_AccountResourceMessage_descriptor.getNestedTypes().get(1); internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_descriptor, new java.lang.String[] { "Key", "Value", }); org.vision.visionjsdk.proto.Common.getDescriptor(); org.vision.visionjsdk.proto.Chain.getDescriptor(); org.vision.visionjsdk.proto.Contract.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }