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

org.tron.trident.proto.Response Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.0
package org.tron.trident.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;
     */
    java.util.List 
        getTransactionsList();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     */
    org.tron.trident.proto.Response.TransactionExtention getTransactions(int index);
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     */
    int getTransactionsCount();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     */
    java.util.List 
        getTransactionsOrBuilderList();
    /**
     * repeated .protocol.TransactionExtention transactions = 1;
     */
    org.tron.trident.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.tron.trident.proto.Chain.BlockHeader getBlockHeader();
    /**
     * .protocol.BlockHeader block_header = 2;
     */
    org.tron.trident.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_descriptor;
    }

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

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

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

    public static final int BLOCKID_FIELD_NUMBER = 3;
    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_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getBlockHeader());
      }
      if (!blockid_.isEmpty()) {
        output.writeBytes(3, blockid_);
      }
      getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getBlockHeader());
      }
      if (!blockid_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, blockid_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.tron.trident.proto.Response.BlockExtention)) {
        return super.equals(obj);
      }
      org.tron.trident.proto.Response.BlockExtention other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

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

    public static org.tron.trident.proto.Response.BlockExtention parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockExtention parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockExtention parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.proto.Response.BlockExtention parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.proto.Response.BlockExtention parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockExtention parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.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.tron.trident.proto.Response.BlockExtention parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.BlockExtentionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_descriptor;
      }

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

      // Construct using org.tron.trident.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();
          getBlockHeaderFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (transactionsBuilder_ == null) {
          transactions_ = java.util.Collections.emptyList();
        } else {
          transactions_ = null;
          transactionsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        blockHeader_ = null;
        if (blockHeaderBuilder_ != null) {
          blockHeaderBuilder_.dispose();
          blockHeaderBuilder_ = null;
        }
        blockid_ = com.google.protobuf.ByteString.EMPTY;
        return this;
      }

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

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

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

      @java.lang.Override
      public org.tron.trident.proto.Response.BlockExtention buildPartial() {
        org.tron.trident.proto.Response.BlockExtention result = new org.tron.trident.proto.Response.BlockExtention(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockExtention result) {
        if (transactionsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            transactions_ = java.util.Collections.unmodifiableList(transactions_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.transactions_ = transactions_;
        } else {
          result.transactions_ = transactionsBuilder_.build();
        }
      }

      private void buildPartial0(org.tron.trident.proto.Response.BlockExtention result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.blockHeader_ = blockHeaderBuilder_ == null
              ? blockHeader_
              : blockHeaderBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.blockid_ = blockid_;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @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.tron.trident.proto.Response.BlockExtention) {
          return mergeFrom((org.tron.trident.proto.Response.BlockExtention)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tron.trident.proto.Response.BlockExtention other) {
        if (other == org.tron.trident.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.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                org.tron.trident.proto.Response.TransactionExtention m =
                    input.readMessage(
                        org.tron.trident.proto.Response.TransactionExtention.parser(),
                        extensionRegistry);
                if (transactionsBuilder_ == null) {
                  ensureTransactionsIsMutable();
                  transactions_.add(m);
                } else {
                  transactionsBuilder_.addMessage(m);
                }
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getBlockHeaderFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                blockid_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private 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.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> transactionsBuilder_;

      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public java.util.List getTransactionsList() {
        if (transactionsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(transactions_);
        } else {
          return transactionsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public int getTransactionsCount() {
        if (transactionsBuilder_ == null) {
          return transactions_.size();
        } else {
          return transactionsBuilder_.getCount();
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public org.tron.trident.proto.Response.TransactionExtention getTransactions(int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);
        } else {
          return transactionsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public Builder setTransactions(
          int index, org.tron.trident.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;
       */
      public Builder setTransactions(
          int index, org.tron.trident.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;
       */
      public Builder addTransactions(org.tron.trident.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;
       */
      public Builder addTransactions(
          int index, org.tron.trident.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;
       */
      public Builder addTransactions(
          org.tron.trident.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;
       */
      public Builder addTransactions(
          int index, org.tron.trident.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;
       */
      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;
       */
      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;
       */
      public Builder removeTransactions(int index) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.remove(index);
          onChanged();
        } else {
          transactionsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public org.tron.trident.proto.Response.TransactionExtention.Builder getTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
          int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);  } else {
          return transactionsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public java.util.List 
           getTransactionsOrBuilderList() {
        if (transactionsBuilder_ != null) {
          return transactionsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(transactions_);
        }
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public org.tron.trident.proto.Response.TransactionExtention.Builder addTransactionsBuilder() {
        return getTransactionsFieldBuilder().addBuilder(
            org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public org.tron.trident.proto.Response.TransactionExtention.Builder addTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().addBuilder(
            index, org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.TransactionExtention transactions = 1;
       */
      public java.util.List 
           getTransactionsBuilderList() {
        return getTransactionsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> 
          getTransactionsFieldBuilder() {
        if (transactionsBuilder_ == null) {
          transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder>(
                  transactions_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          transactions_ = null;
        }
        return transactionsBuilder_;
      }

      private org.tron.trident.proto.Chain.BlockHeader blockHeader_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.proto.Chain.BlockHeaderOrBuilder> blockHeaderBuilder_;
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return Whether the blockHeader field is set.
       */
      public boolean hasBlockHeader() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       * @return The blockHeader.
       */
      public org.tron.trident.proto.Chain.BlockHeader getBlockHeader() {
        if (blockHeaderBuilder_ == null) {
          return blockHeader_ == null ? org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
        } else {
          return blockHeaderBuilder_.getMessage();
        }
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public Builder setBlockHeader(org.tron.trident.proto.Chain.BlockHeader value) {
        if (blockHeaderBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          blockHeader_ = value;
        } else {
          blockHeaderBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public Builder setBlockHeader(
          org.tron.trident.proto.Chain.BlockHeader.Builder builderForValue) {
        if (blockHeaderBuilder_ == null) {
          blockHeader_ = builderForValue.build();
        } else {
          blockHeaderBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public Builder mergeBlockHeader(org.tron.trident.proto.Chain.BlockHeader value) {
        if (blockHeaderBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            blockHeader_ != null &&
            blockHeader_ != org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance()) {
            getBlockHeaderBuilder().mergeFrom(value);
          } else {
            blockHeader_ = value;
          }
        } else {
          blockHeaderBuilder_.mergeFrom(value);
        }
        if (blockHeader_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public Builder clearBlockHeader() {
        bitField0_ = (bitField0_ & ~0x00000002);
        blockHeader_ = null;
        if (blockHeaderBuilder_ != null) {
          blockHeaderBuilder_.dispose();
          blockHeaderBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public org.tron.trident.proto.Chain.BlockHeader.Builder getBlockHeaderBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getBlockHeaderFieldBuilder().getBuilder();
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      public org.tron.trident.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
        if (blockHeaderBuilder_ != null) {
          return blockHeaderBuilder_.getMessageOrBuilder();
        } else {
          return blockHeader_ == null ?
              org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
        }
      }
      /**
       * .protocol.BlockHeader block_header = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.proto.Chain.BlockHeaderOrBuilder> 
          getBlockHeaderFieldBuilder() {
        if (blockHeaderBuilder_ == null) {
          blockHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.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;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * bytes blockid = 3;
       * @return This builder for chaining.
       */
      public Builder clearBlockid() {
        bitField0_ = (bitField0_ & ~0x00000004);
        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.tron.trident.proto.Response.BlockExtention DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockExtention();
    }

    public static org.tron.trident.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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.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;
     */
    java.util.List 
        getBlockList();
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    org.tron.trident.proto.Response.BlockExtention getBlock(int index);
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    int getBlockCount();
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    java.util.List 
        getBlockOrBuilderList();
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    org.tron.trident.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
    }

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

    public static final int BLOCK_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private java.util.List block_;
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    @java.lang.Override
    public java.util.List getBlockList() {
      return block_;
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    @java.lang.Override
    public java.util.List 
        getBlockOrBuilderList() {
      return block_;
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    @java.lang.Override
    public int getBlockCount() {
      return block_.size();
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    @java.lang.Override
    public org.tron.trident.proto.Response.BlockExtention getBlock(int index) {
      return block_.get(index);
    }
    /**
     * repeated .protocol.BlockExtention block = 1;
     */
    @java.lang.Override
    public org.tron.trident.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));
      }
      getUnknownFields().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 += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.tron.trident.proto.Response.BlockListExtention)) {
        return super.equals(obj);
      }
      org.tron.trident.proto.Response.BlockListExtention other = (org.tron.trident.proto.Response.BlockListExtention) obj;

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

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

    public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockListExtention parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockListExtention parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.proto.Response.BlockListExtention parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.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.tron.trident.proto.Response.BlockListExtention parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.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.tron.trident.proto.Response.BlockListExtention parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.BlockListExtentionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
      }

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

      // Construct using org.tron.trident.proto.Response.BlockListExtention.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (blockBuilder_ == null) {
          block_ = java.util.Collections.emptyList();
        } else {
          block_ = null;
          blockBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

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

      @java.lang.Override
      public org.tron.trident.proto.Response.BlockListExtention buildPartial() {
        org.tron.trident.proto.Response.BlockListExtention result = new org.tron.trident.proto.Response.BlockListExtention(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockListExtention result) {
        if (blockBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            block_ = java.util.Collections.unmodifiableList(block_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.block_ = block_;
        } else {
          result.block_ = blockBuilder_.build();
        }
      }

      private void buildPartial0(org.tron.trident.proto.Response.BlockListExtention result) {
        int from_bitField0_ = bitField0_;
      }

      @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.tron.trident.proto.Response.BlockListExtention) {
          return mergeFrom((org.tron.trident.proto.Response.BlockListExtention)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tron.trident.proto.Response.BlockListExtention other) {
        if (other == org.tron.trident.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.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                org.tron.trident.proto.Response.BlockExtention m =
                    input.readMessage(
                        org.tron.trident.proto.Response.BlockExtention.parser(),
                        extensionRegistry);
                if (blockBuilder_ == null) {
                  ensureBlockIsMutable();
                  block_.add(m);
                } else {
                  blockBuilder_.addMessage(m);
                }
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.util.List 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.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.proto.Response.BlockExtentionOrBuilder> blockBuilder_;

      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public java.util.List getBlockList() {
        if (blockBuilder_ == null) {
          return java.util.Collections.unmodifiableList(block_);
        } else {
          return blockBuilder_.getMessageList();
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public int getBlockCount() {
        if (blockBuilder_ == null) {
          return block_.size();
        } else {
          return blockBuilder_.getCount();
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public org.tron.trident.proto.Response.BlockExtention getBlock(int index) {
        if (blockBuilder_ == null) {
          return block_.get(index);
        } else {
          return blockBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public Builder setBlock(
          int index, org.tron.trident.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;
       */
      public Builder setBlock(
          int index, org.tron.trident.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;
       */
      public Builder addBlock(org.tron.trident.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;
       */
      public Builder addBlock(
          int index, org.tron.trident.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;
       */
      public Builder addBlock(
          org.tron.trident.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;
       */
      public Builder addBlock(
          int index, org.tron.trident.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;
       */
      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;
       */
      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;
       */
      public Builder removeBlock(int index) {
        if (blockBuilder_ == null) {
          ensureBlockIsMutable();
          block_.remove(index);
          onChanged();
        } else {
          blockBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public org.tron.trident.proto.Response.BlockExtention.Builder getBlockBuilder(
          int index) {
        return getBlockFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public org.tron.trident.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
          int index) {
        if (blockBuilder_ == null) {
          return block_.get(index);  } else {
          return blockBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public java.util.List 
           getBlockOrBuilderList() {
        if (blockBuilder_ != null) {
          return blockBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(block_);
        }
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public org.tron.trident.proto.Response.BlockExtention.Builder addBlockBuilder() {
        return getBlockFieldBuilder().addBuilder(
            org.tron.trident.proto.Response.BlockExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public org.tron.trident.proto.Response.BlockExtention.Builder addBlockBuilder(
          int index) {
        return getBlockFieldBuilder().addBuilder(
            index, org.tron.trident.proto.Response.BlockExtention.getDefaultInstance());
      }
      /**
       * repeated .protocol.BlockExtention block = 1;
       */
      public java.util.List 
           getBlockBuilderList() {
        return getBlockFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.proto.Response.BlockExtentionOrBuilder> 
          getBlockFieldBuilder() {
        if (blockBuilder_ == null) {
          blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.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.tron.trident.proto.Response.BlockListExtention DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockListExtention();
    }

    public static org.tron.trident.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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.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.tron.trident.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tron.trident.proto.Response.TransactionReturn.class, org.tron.trident.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), /** * BLOCK_UNSOLIDIFIED = 12; */ BLOCK_UNSOLIDIFIED(12), /** * 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; /** * BLOCK_UNSOLIDIFIED = 12; */ public static final int BLOCK_UNSOLIDIFIED_VALUE = 12; /** * 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 12: return BLOCK_UNSOLIDIFIED; 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.tron.trident.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_ = false; /** * 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_ = 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; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn.response_code getCode() { org.tron.trident.proto.Response.TransactionReturn.response_code result = org.tron.trident.proto.Response.TransactionReturn.response_code.forNumber(code_); return result == null ? org.tron.trident.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; 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_; } 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.tron.trident.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) { output.writeEnum(2, code_); } if (!message_.isEmpty()) { output.writeBytes(3, message_); } getUnknownFields().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.tron.trident.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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionReturn)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionReturn other = (org.tron.trident.proto.Response.TransactionReturn) obj; if (getResult() != other.getResult()) return false; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionReturn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionReturn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionReturn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionReturn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionReturn parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionReturn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionReturn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionReturnOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionReturn.class, org.tron.trident.proto.Response.TransactionReturn.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionReturn.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; result_ = false; code_ = 0; message_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn build() { org.tron.trident.proto.Response.TransactionReturn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn buildPartial() { org.tron.trident.proto.Response.TransactionReturn result = new org.tron.trident.proto.Response.TransactionReturn(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionReturn result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = result_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.message_ = message_; } } @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.tron.trident.proto.Response.TransactionReturn) { return mergeFrom((org.tron.trident.proto.Response.TransactionReturn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionReturn other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { result_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { code_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { message_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bool result = 1; * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.TransactionReturn.response_code code = 2; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn.response_code getCode() { org.tron.trident.proto.Response.TransactionReturn.response_code result = org.tron.trident.proto.Response.TransactionReturn.response_code.forNumber(code_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.TransactionReturn.response_code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionReturn.response_code code = 2; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes message = 3; * @return This builder for chaining. */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); 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.tron.trident.proto.Response.TransactionReturn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionReturn(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EstimateEnergyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EstimateEnergyMessage) com.google.protobuf.MessageOrBuilder { /** * .protocol.TransactionReturn result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** * .protocol.TransactionReturn result = 1; * @return The result. */ org.tron.trident.proto.Response.TransactionReturn getResult(); /** * .protocol.TransactionReturn result = 1; */ org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder(); /** * int64 energy_required = 2; * @return The energyRequired. */ long getEnergyRequired(); } /** * Protobuf type {@code protocol.EstimateEnergyMessage} */ public static final class EstimateEnergyMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EstimateEnergyMessage) EstimateEnergyMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EstimateEnergyMessage.newBuilder() to construct. private EstimateEnergyMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EstimateEnergyMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EstimateEnergyMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.EstimateEnergyMessage.class, org.tron.trident.proto.Response.EstimateEnergyMessage.Builder.class); } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private org.tron.trident.proto.Response.TransactionReturn result_; /** * .protocol.TransactionReturn result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.TransactionReturn result = 1; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn getResult() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } /** * .protocol.TransactionReturn result = 1; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } public static final int ENERGY_REQUIRED_FIELD_NUMBER = 2; private long energyRequired_ = 0L; /** * int64 energy_required = 2; * @return The energyRequired. */ @java.lang.Override public long getEnergyRequired() { return energyRequired_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResult()); } if (energyRequired_ != 0L) { output.writeInt64(2, energyRequired_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } if (energyRequired_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, energyRequired_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.EstimateEnergyMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.EstimateEnergyMessage other = (org.tron.trident.proto.Response.EstimateEnergyMessage) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (getEnergyRequired() != other.getEnergyRequired()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (37 * hash) + ENERGY_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.EstimateEnergyMessage 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.tron.trident.proto.Response.EstimateEnergyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.EstimateEnergyMessage 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.tron.trident.proto.Response.EstimateEnergyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.EstimateEnergyMessage 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.tron.trident.proto.Response.EstimateEnergyMessage 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.EstimateEnergyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EstimateEnergyMessage) org.tron.trident.proto.Response.EstimateEnergyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.EstimateEnergyMessage.class, org.tron.trident.proto.Response.EstimateEnergyMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.EstimateEnergyMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } energyRequired_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.EstimateEnergyMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.EstimateEnergyMessage build() { org.tron.trident.proto.Response.EstimateEnergyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.EstimateEnergyMessage buildPartial() { org.tron.trident.proto.Response.EstimateEnergyMessage result = new org.tron.trident.proto.Response.EstimateEnergyMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.EstimateEnergyMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.energyRequired_ = energyRequired_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.EstimateEnergyMessage) { return mergeFrom((org.tron.trident.proto.Response.EstimateEnergyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.EstimateEnergyMessage other) { if (other == org.tron.trident.proto.Response.EstimateEnergyMessage.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } if (other.getEnergyRequired() != 0L) { setEnergyRequired(other.getEnergyRequired()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { energyRequired_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Response.TransactionReturn result_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_; /** * .protocol.TransactionReturn result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.TransactionReturn result = 1; * @return The result. */ public org.tron.trident.proto.Response.TransactionReturn getResult() { if (resultBuilder_ == null) { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionReturn result = 1; */ public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.TransactionReturn result = 1; */ public Builder setResult( org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.TransactionReturn result = 1; */ public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && result_ != null && result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.TransactionReturn result = 1; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionReturn result = 1; */ public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() { bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionReturn result = 1; */ public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } } /** * .protocol.TransactionReturn result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private long energyRequired_ ; /** * int64 energy_required = 2; * @return The energyRequired. */ @java.lang.Override public long getEnergyRequired() { return energyRequired_; } /** * int64 energy_required = 2; * @param value The energyRequired to set. * @return This builder for chaining. */ public Builder setEnergyRequired(long value) { energyRequired_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 energy_required = 2; * @return This builder for chaining. */ public Builder clearEnergyRequired() { bitField0_ = (bitField0_ & ~0x00000002); energyRequired_ = 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.EstimateEnergyMessage) } // @@protoc_insertion_point(class_scope:protocol.EstimateEnergyMessage) private static final org.tron.trident.proto.Response.EstimateEnergyMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.EstimateEnergyMessage(); } public static org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EstimateEnergyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionExtentionOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionExtention) com.google.protobuf.MessageOrBuilder { /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .protocol.Transaction transaction = 1; * @return The transaction. */ org.tron.trident.proto.Chain.Transaction getTransaction(); /** * .protocol.Transaction transaction = 1; */ org.tron.trident.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.tron.trident.proto.Response.TransactionReturn getResult(); /** * .protocol.TransactionReturn result = 4; */ org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder(); /** * int64 energy_used = 5; * @return The energyUsed. */ long getEnergyUsed(); } /** * 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_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionExtention(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionExtention.class, org.tron.trident.proto.Response.TransactionExtention.Builder.class); } private int bitField0_; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.tron.trident.proto.Chain.Transaction transaction_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * .protocol.Transaction transaction = 1; */ @java.lang.Override public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } public static final int TXID_FIELD_NUMBER = 2; 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_; } public static final int CONSTANT_RESULT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList constantResult_ = emptyList(com.google.protobuf.ByteString.class); /** * 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.tron.trident.proto.Response.TransactionReturn result_; /** * .protocol.TransactionReturn result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionReturn result = 4; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn getResult() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } /** * .protocol.TransactionReturn result = 4; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } public static final int ENERGY_USED_FIELD_NUMBER = 5; private long energyUsed_ = 0L; /** * int64 energy_used = 5; * @return The energyUsed. */ @java.lang.Override public long getEnergyUsed() { return energyUsed_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getResult()); } if (energyUsed_ != 0L) { output.writeInt64(5, energyUsed_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (energyUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, energyUsed_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionExtention)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionExtention other = (org.tron.trident.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 (getEnergyUsed() != other.getEnergyUsed()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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 = (37 * hash) + ENERGY_USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsed()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionExtention parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionExtention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionExtention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionExtention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionExtention parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionExtention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionExtention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionExtentionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionExtention.class, org.tron.trident.proto.Response.TransactionExtention.Builder.class); } // Construct using org.tron.trident.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) { getTransactionFieldBuilder(); getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } txid_ = com.google.protobuf.ByteString.EMPTY; constantResult_ = emptyList(com.google.protobuf.ByteString.class); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } energyUsed_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionExtention getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionExtention build() { org.tron.trident.proto.Response.TransactionExtention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionExtention buildPartial() { org.tron.trident.proto.Response.TransactionExtention result = new org.tron.trident.proto.Response.TransactionExtention(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionExtention result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.txid_ = txid_; } if (((from_bitField0_ & 0x00000004) != 0)) { constantResult_.makeImmutable(); result.constantResult_ = constantResult_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.energyUsed_ = energyUsed_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.TransactionExtention) { return mergeFrom((org.tron.trident.proto.Response.TransactionExtention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionExtention other) { if (other == org.tron.trident.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_; constantResult_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureConstantResultIsMutable(); constantResult_.addAll(other.constantResult_); } onChanged(); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.getEnergyUsed() != 0L) { setEnergyUsed(other.getEnergyUsed()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { txid_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.ByteString v = input.readBytes(); ensureConstantResultIsMutable(); constantResult_.add(v); break; } // case 26 case 34: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { energyUsed_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ public org.tron.trident.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction( org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder mergeTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && transaction_ != null && transaction_ != org.tron.trident.proto.Chain.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } if (transaction_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Transaction transaction = 1; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } /** * .protocol.Transaction transaction = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 2; * @return This builder for chaining. */ public Builder clearTxid() { bitField0_ = (bitField0_ & ~0x00000002); txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList constantResult_ = emptyList(com.google.protobuf.ByteString.class); private void ensureConstantResultIsMutable() { if (!constantResult_.isModifiable()) { constantResult_ = makeMutableCopy(constantResult_); } bitField0_ |= 0x00000004; } /** * repeated bytes constant_result = 3; * @return A list containing the constantResult. */ public java.util.List getConstantResultList() { constantResult_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated bytes constant_result = 3; * @return This builder for chaining. */ public Builder clearConstantResult() { constantResult_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private org.tron.trident.proto.Response.TransactionReturn result_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_; /** * .protocol.TransactionReturn result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000008) != 0); } /** * .protocol.TransactionReturn result = 4; * @return The result. */ public org.tron.trident.proto.Response.TransactionReturn getResult() { if (resultBuilder_ == null) { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionReturn result = 4; */ public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .protocol.TransactionReturn result = 4; */ public Builder setResult( org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .protocol.TransactionReturn result = 4; */ public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && result_ != null && result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .protocol.TransactionReturn result = 4; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000008); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionReturn result = 4; */ public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() { bitField0_ |= 0x00000008; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionReturn result = 4; */ public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } } /** * .protocol.TransactionReturn result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private long energyUsed_ ; /** * int64 energy_used = 5; * @return The energyUsed. */ @java.lang.Override public long getEnergyUsed() { return energyUsed_; } /** * int64 energy_used = 5; * @param value The energyUsed to set. * @return This builder for chaining. */ public Builder setEnergyUsed(long value) { energyUsed_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 energy_used = 5; * @return This builder for chaining. */ public Builder clearEnergyUsed() { bitField0_ = (bitField0_ & ~0x00000010); energyUsed_ = 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.TransactionExtention) } // @@protoc_insertion_point(class_scope:protocol.TransactionExtention) private static final org.tron.trident.proto.Response.TransactionExtention DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionExtention(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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; */ java.util.List getWitnessesList(); /** * repeated .protocol.Witness witnesses = 1; */ org.tron.trident.proto.Response.Witness getWitnesses(int index); /** * repeated .protocol.Witness witnesses = 1; */ int getWitnessesCount(); /** * repeated .protocol.Witness witnesses = 1; */ java.util.List getWitnessesOrBuilderList(); /** * repeated .protocol.Witness witnesses = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.WitnessList.class, org.tron.trident.proto.Response.WitnessList.Builder.class); } public static final int WITNESSES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List witnesses_; /** * repeated .protocol.Witness witnesses = 1; */ @java.lang.Override public java.util.List getWitnessesList() { return witnesses_; } /** * repeated .protocol.Witness witnesses = 1; */ @java.lang.Override public java.util.List getWitnessesOrBuilderList() { return witnesses_; } /** * repeated .protocol.Witness witnesses = 1; */ @java.lang.Override public int getWitnessesCount() { return witnesses_.size(); } /** * repeated .protocol.Witness witnesses = 1; */ @java.lang.Override public org.tron.trident.proto.Response.Witness getWitnesses(int index) { return witnesses_.get(index); } /** * repeated .protocol.Witness witnesses = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.WitnessList)) { return super.equals(obj); } org.tron.trident.proto.Response.WitnessList other = (org.tron.trident.proto.Response.WitnessList) obj; if (!getWitnessesList() .equals(other.getWitnessesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getWitnessesCount() > 0) { hash = (37 * hash) + WITNESSES_FIELD_NUMBER; hash = (53 * hash) + getWitnessesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.WitnessList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.WitnessList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.WitnessList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.WitnessList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.WitnessList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.WitnessList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.WitnessList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.WitnessListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.WitnessList.class, org.tron.trident.proto.Response.WitnessList.Builder.class); } // Construct using org.tron.trident.proto.Response.WitnessList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (witnessesBuilder_ == null) { witnesses_ = java.util.Collections.emptyList(); } else { witnesses_ = null; witnessesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.WitnessList getDefaultInstanceForType() { return org.tron.trident.proto.Response.WitnessList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.WitnessList build() { org.tron.trident.proto.Response.WitnessList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.WitnessList buildPartial() { org.tron.trident.proto.Response.WitnessList result = new org.tron.trident.proto.Response.WitnessList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.WitnessList result) { if (witnessesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { witnesses_ = java.util.Collections.unmodifiableList(witnesses_); bitField0_ = (bitField0_ & ~0x00000001); } result.witnesses_ = witnesses_; } else { result.witnesses_ = witnessesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.WitnessList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.WitnessList) { return mergeFrom((org.tron.trident.proto.Response.WitnessList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.WitnessList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.Witness m = input.readMessage( org.tron.trident.proto.Response.Witness.parser(), extensionRegistry); if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.add(m); } else { witnessesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.proto.Response.WitnessOrBuilder> witnessesBuilder_; /** * repeated .protocol.Witness witnesses = 1; */ public java.util.List getWitnessesList() { if (witnessesBuilder_ == null) { return java.util.Collections.unmodifiableList(witnesses_); } else { return witnessesBuilder_.getMessageList(); } } /** * repeated .protocol.Witness witnesses = 1; */ public int getWitnessesCount() { if (witnessesBuilder_ == null) { return witnesses_.size(); } else { return witnessesBuilder_.getCount(); } } /** * repeated .protocol.Witness witnesses = 1; */ public org.tron.trident.proto.Response.Witness getWitnesses(int index) { if (witnessesBuilder_ == null) { return witnesses_.get(index); } else { return witnessesBuilder_.getMessage(index); } } /** * repeated .protocol.Witness witnesses = 1; */ public Builder setWitnesses( int index, org.tron.trident.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; */ public Builder setWitnesses( int index, org.tron.trident.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; */ public Builder addWitnesses(org.tron.trident.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; */ public Builder addWitnesses( int index, org.tron.trident.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; */ public Builder addWitnesses( org.tron.trident.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; */ public Builder addWitnesses( int index, org.tron.trident.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; */ 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; */ 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; */ public Builder removeWitnesses(int index) { if (witnessesBuilder_ == null) { ensureWitnessesIsMutable(); witnesses_.remove(index); onChanged(); } else { witnessesBuilder_.remove(index); } return this; } /** * repeated .protocol.Witness witnesses = 1; */ public org.tron.trident.proto.Response.Witness.Builder getWitnessesBuilder( int index) { return getWitnessesFieldBuilder().getBuilder(index); } /** * repeated .protocol.Witness witnesses = 1; */ public org.tron.trident.proto.Response.WitnessOrBuilder getWitnessesOrBuilder( int index) { if (witnessesBuilder_ == null) { return witnesses_.get(index); } else { return witnessesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Witness witnesses = 1; */ public java.util.List getWitnessesOrBuilderList() { if (witnessesBuilder_ != null) { return witnessesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(witnesses_); } } /** * repeated .protocol.Witness witnesses = 1; */ public org.tron.trident.proto.Response.Witness.Builder addWitnessesBuilder() { return getWitnessesFieldBuilder().addBuilder( org.tron.trident.proto.Response.Witness.getDefaultInstance()); } /** * repeated .protocol.Witness witnesses = 1; */ public org.tron.trident.proto.Response.Witness.Builder addWitnessesBuilder( int index) { return getWitnessesFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Witness.getDefaultInstance()); } /** * repeated .protocol.Witness witnesses = 1; */ public java.util.List getWitnessesBuilderList() { return getWitnessesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.proto.Response.WitnessOrBuilder> getWitnessesFieldBuilder() { if (witnessesBuilder_ == null) { witnessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.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.tron.trident.proto.Response.WitnessList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.WitnessList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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; */ java.util.List getProposalsList(); /** * repeated .protocol.Proposal proposals = 1; */ org.tron.trident.proto.Response.Proposal getProposals(int index); /** * repeated .protocol.Proposal proposals = 1; */ int getProposalsCount(); /** * repeated .protocol.Proposal proposals = 1; */ java.util.List getProposalsOrBuilderList(); /** * repeated .protocol.Proposal proposals = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ProposalList.class, org.tron.trident.proto.Response.ProposalList.Builder.class); } public static final int PROPOSALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List proposals_; /** * repeated .protocol.Proposal proposals = 1; */ @java.lang.Override public java.util.List getProposalsList() { return proposals_; } /** * repeated .protocol.Proposal proposals = 1; */ @java.lang.Override public java.util.List getProposalsOrBuilderList() { return proposals_; } /** * repeated .protocol.Proposal proposals = 1; */ @java.lang.Override public int getProposalsCount() { return proposals_.size(); } /** * repeated .protocol.Proposal proposals = 1; */ @java.lang.Override public org.tron.trident.proto.Response.Proposal getProposals(int index) { return proposals_.get(index); } /** * repeated .protocol.Proposal proposals = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.ProposalList)) { return super.equals(obj); } org.tron.trident.proto.Response.ProposalList other = (org.tron.trident.proto.Response.ProposalList) obj; if (!getProposalsList() .equals(other.getProposalsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getProposalsCount() > 0) { hash = (37 * hash) + PROPOSALS_FIELD_NUMBER; hash = (53 * hash) + getProposalsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.ProposalList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ProposalList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ProposalList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.ProposalList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.ProposalList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ProposalList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ProposalList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ProposalListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ProposalList.class, org.tron.trident.proto.Response.ProposalList.Builder.class); } // Construct using org.tron.trident.proto.Response.ProposalList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (proposalsBuilder_ == null) { proposals_ = java.util.Collections.emptyList(); } else { proposals_ = null; proposalsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.ProposalList getDefaultInstanceForType() { return org.tron.trident.proto.Response.ProposalList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.ProposalList build() { org.tron.trident.proto.Response.ProposalList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.ProposalList buildPartial() { org.tron.trident.proto.Response.ProposalList result = new org.tron.trident.proto.Response.ProposalList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.ProposalList result) { if (proposalsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { proposals_ = java.util.Collections.unmodifiableList(proposals_); bitField0_ = (bitField0_ & ~0x00000001); } result.proposals_ = proposals_; } else { result.proposals_ = proposalsBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.ProposalList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.ProposalList) { return mergeFrom((org.tron.trident.proto.Response.ProposalList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.ProposalList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.Proposal m = input.readMessage( org.tron.trident.proto.Response.Proposal.parser(), extensionRegistry); if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.add(m); } else { proposalsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.proto.Response.ProposalOrBuilder> proposalsBuilder_; /** * repeated .protocol.Proposal proposals = 1; */ public java.util.List getProposalsList() { if (proposalsBuilder_ == null) { return java.util.Collections.unmodifiableList(proposals_); } else { return proposalsBuilder_.getMessageList(); } } /** * repeated .protocol.Proposal proposals = 1; */ public int getProposalsCount() { if (proposalsBuilder_ == null) { return proposals_.size(); } else { return proposalsBuilder_.getCount(); } } /** * repeated .protocol.Proposal proposals = 1; */ public org.tron.trident.proto.Response.Proposal getProposals(int index) { if (proposalsBuilder_ == null) { return proposals_.get(index); } else { return proposalsBuilder_.getMessage(index); } } /** * repeated .protocol.Proposal proposals = 1; */ public Builder setProposals( int index, org.tron.trident.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; */ public Builder setProposals( int index, org.tron.trident.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; */ public Builder addProposals(org.tron.trident.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; */ public Builder addProposals( int index, org.tron.trident.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; */ public Builder addProposals( org.tron.trident.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; */ public Builder addProposals( int index, org.tron.trident.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; */ 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; */ 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; */ public Builder removeProposals(int index) { if (proposalsBuilder_ == null) { ensureProposalsIsMutable(); proposals_.remove(index); onChanged(); } else { proposalsBuilder_.remove(index); } return this; } /** * repeated .protocol.Proposal proposals = 1; */ public org.tron.trident.proto.Response.Proposal.Builder getProposalsBuilder( int index) { return getProposalsFieldBuilder().getBuilder(index); } /** * repeated .protocol.Proposal proposals = 1; */ public org.tron.trident.proto.Response.ProposalOrBuilder getProposalsOrBuilder( int index) { if (proposalsBuilder_ == null) { return proposals_.get(index); } else { return proposalsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Proposal proposals = 1; */ public java.util.List getProposalsOrBuilderList() { if (proposalsBuilder_ != null) { return proposalsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(proposals_); } } /** * repeated .protocol.Proposal proposals = 1; */ public org.tron.trident.proto.Response.Proposal.Builder addProposalsBuilder() { return getProposalsFieldBuilder().addBuilder( org.tron.trident.proto.Response.Proposal.getDefaultInstance()); } /** * repeated .protocol.Proposal proposals = 1; */ public org.tron.trident.proto.Response.Proposal.Builder addProposalsBuilder( int index) { return getProposalsFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Proposal.getDefaultInstance()); } /** * repeated .protocol.Proposal proposals = 1; */ public java.util.List getProposalsBuilderList() { return getProposalsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.proto.Response.ProposalOrBuilder> getProposalsFieldBuilder() { if (proposalsBuilder_ == null) { proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.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.tron.trident.proto.Response.ProposalList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ProposalList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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; */ java.util.List getExchangesList(); /** * repeated .protocol.Exchange exchanges = 1; */ org.tron.trident.proto.Response.Exchange getExchanges(int index); /** * repeated .protocol.Exchange exchanges = 1; */ int getExchangesCount(); /** * repeated .protocol.Exchange exchanges = 1; */ java.util.List getExchangesOrBuilderList(); /** * repeated .protocol.Exchange exchanges = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ExchangeList.class, org.tron.trident.proto.Response.ExchangeList.Builder.class); } public static final int EXCHANGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List exchanges_; /** * repeated .protocol.Exchange exchanges = 1; */ @java.lang.Override public java.util.List getExchangesList() { return exchanges_; } /** * repeated .protocol.Exchange exchanges = 1; */ @java.lang.Override public java.util.List getExchangesOrBuilderList() { return exchanges_; } /** * repeated .protocol.Exchange exchanges = 1; */ @java.lang.Override public int getExchangesCount() { return exchanges_.size(); } /** * repeated .protocol.Exchange exchanges = 1; */ @java.lang.Override public org.tron.trident.proto.Response.Exchange getExchanges(int index) { return exchanges_.get(index); } /** * repeated .protocol.Exchange exchanges = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.ExchangeList)) { return super.equals(obj); } org.tron.trident.proto.Response.ExchangeList other = (org.tron.trident.proto.Response.ExchangeList) obj; if (!getExchangesList() .equals(other.getExchangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExchangesCount() > 0) { hash = (37 * hash) + EXCHANGES_FIELD_NUMBER; hash = (53 * hash) + getExchangesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.ExchangeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ExchangeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ExchangeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.ExchangeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.ExchangeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ExchangeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ExchangeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ExchangeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ExchangeList.class, org.tron.trident.proto.Response.ExchangeList.Builder.class); } // Construct using org.tron.trident.proto.Response.ExchangeList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (exchangesBuilder_ == null) { exchanges_ = java.util.Collections.emptyList(); } else { exchanges_ = null; exchangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.ExchangeList getDefaultInstanceForType() { return org.tron.trident.proto.Response.ExchangeList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.ExchangeList build() { org.tron.trident.proto.Response.ExchangeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.ExchangeList buildPartial() { org.tron.trident.proto.Response.ExchangeList result = new org.tron.trident.proto.Response.ExchangeList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.ExchangeList result) { if (exchangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { exchanges_ = java.util.Collections.unmodifiableList(exchanges_); bitField0_ = (bitField0_ & ~0x00000001); } result.exchanges_ = exchanges_; } else { result.exchanges_ = exchangesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.ExchangeList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.ExchangeList) { return mergeFrom((org.tron.trident.proto.Response.ExchangeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.ExchangeList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.Exchange m = input.readMessage( org.tron.trident.proto.Response.Exchange.parser(), extensionRegistry); if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.add(m); } else { exchangesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.proto.Response.ExchangeOrBuilder> exchangesBuilder_; /** * repeated .protocol.Exchange exchanges = 1; */ public java.util.List getExchangesList() { if (exchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(exchanges_); } else { return exchangesBuilder_.getMessageList(); } } /** * repeated .protocol.Exchange exchanges = 1; */ public int getExchangesCount() { if (exchangesBuilder_ == null) { return exchanges_.size(); } else { return exchangesBuilder_.getCount(); } } /** * repeated .protocol.Exchange exchanges = 1; */ public org.tron.trident.proto.Response.Exchange getExchanges(int index) { if (exchangesBuilder_ == null) { return exchanges_.get(index); } else { return exchangesBuilder_.getMessage(index); } } /** * repeated .protocol.Exchange exchanges = 1; */ public Builder setExchanges( int index, org.tron.trident.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; */ public Builder setExchanges( int index, org.tron.trident.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; */ public Builder addExchanges(org.tron.trident.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; */ public Builder addExchanges( int index, org.tron.trident.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; */ public Builder addExchanges( org.tron.trident.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; */ public Builder addExchanges( int index, org.tron.trident.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; */ 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; */ 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; */ public Builder removeExchanges(int index) { if (exchangesBuilder_ == null) { ensureExchangesIsMutable(); exchanges_.remove(index); onChanged(); } else { exchangesBuilder_.remove(index); } return this; } /** * repeated .protocol.Exchange exchanges = 1; */ public org.tron.trident.proto.Response.Exchange.Builder getExchangesBuilder( int index) { return getExchangesFieldBuilder().getBuilder(index); } /** * repeated .protocol.Exchange exchanges = 1; */ public org.tron.trident.proto.Response.ExchangeOrBuilder getExchangesOrBuilder( int index) { if (exchangesBuilder_ == null) { return exchanges_.get(index); } else { return exchangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Exchange exchanges = 1; */ public java.util.List getExchangesOrBuilderList() { if (exchangesBuilder_ != null) { return exchangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exchanges_); } } /** * repeated .protocol.Exchange exchanges = 1; */ public org.tron.trident.proto.Response.Exchange.Builder addExchangesBuilder() { return getExchangesFieldBuilder().addBuilder( org.tron.trident.proto.Response.Exchange.getDefaultInstance()); } /** * repeated .protocol.Exchange exchanges = 1; */ public org.tron.trident.proto.Response.Exchange.Builder addExchangesBuilder( int index) { return getExchangesFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Exchange.getDefaultInstance()); } /** * repeated .protocol.Exchange exchanges = 1; */ public java.util.List getExchangesBuilderList() { return getExchangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.proto.Response.ExchangeOrBuilder> getExchangesFieldBuilder() { if (exchangesBuilder_ == null) { exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.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.tron.trident.proto.Response.ExchangeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ExchangeList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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; */ java.util.List getAssetsList(); /** * repeated .protocol.AssetIssueContract assets = 1; */ org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index); /** * repeated .protocol.AssetIssueContract assets = 1; */ int getAssetsCount(); /** * repeated .protocol.AssetIssueContract assets = 1; */ java.util.List getAssetsOrBuilderList(); /** * repeated .protocol.AssetIssueContract assets = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AssetIssueList.class, org.tron.trident.proto.Response.AssetIssueList.Builder.class); } public static final int ASSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List assets_; /** * repeated .protocol.AssetIssueContract assets = 1; */ @java.lang.Override public java.util.List getAssetsList() { return assets_; } /** * repeated .protocol.AssetIssueContract assets = 1; */ @java.lang.Override public java.util.List getAssetsOrBuilderList() { return assets_; } /** * repeated .protocol.AssetIssueContract assets = 1; */ @java.lang.Override public int getAssetsCount() { return assets_.size(); } /** * repeated .protocol.AssetIssueContract assets = 1; */ @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index) { return assets_.get(index); } /** * repeated .protocol.AssetIssueContract assets = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.AssetIssueList)) { return super.equals(obj); } org.tron.trident.proto.Response.AssetIssueList other = (org.tron.trident.proto.Response.AssetIssueList) obj; if (!getAssetsList() .equals(other.getAssetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getAssetsCount() > 0) { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.AssetIssueList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AssetIssueList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AssetIssueList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.AssetIssueList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.AssetIssueList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AssetIssueList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AssetIssueList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.AssetIssueListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AssetIssueList.class, org.tron.trident.proto.Response.AssetIssueList.Builder.class); } // Construct using org.tron.trident.proto.Response.AssetIssueList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); } else { assets_ = null; assetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.AssetIssueList getDefaultInstanceForType() { return org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.AssetIssueList build() { org.tron.trident.proto.Response.AssetIssueList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.AssetIssueList buildPartial() { org.tron.trident.proto.Response.AssetIssueList result = new org.tron.trident.proto.Response.AssetIssueList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.AssetIssueList result) { if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { assets_ = java.util.Collections.unmodifiableList(assets_); bitField0_ = (bitField0_ & ~0x00000001); } result.assets_ = assets_; } else { result.assets_ = assetsBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.AssetIssueList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.AssetIssueList) { return mergeFrom((org.tron.trident.proto.Response.AssetIssueList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.AssetIssueList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Contract.AssetIssueContract m = input.readMessage( org.tron.trident.proto.Contract.AssetIssueContract.parser(), extensionRegistry); if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(m); } else { assetsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.proto.Contract.AssetIssueContractOrBuilder> assetsBuilder_; /** * repeated .protocol.AssetIssueContract assets = 1; */ public java.util.List getAssetsList() { if (assetsBuilder_ == null) { return java.util.Collections.unmodifiableList(assets_); } else { return assetsBuilder_.getMessageList(); } } /** * repeated .protocol.AssetIssueContract assets = 1; */ public int getAssetsCount() { if (assetsBuilder_ == null) { return assets_.size(); } else { return assetsBuilder_.getCount(); } } /** * repeated .protocol.AssetIssueContract assets = 1; */ public org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessage(index); } } /** * repeated .protocol.AssetIssueContract assets = 1; */ public Builder setAssets( int index, org.tron.trident.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; */ public Builder setAssets( int index, org.tron.trident.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; */ public Builder addAssets(org.tron.trident.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; */ public Builder addAssets( int index, org.tron.trident.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; */ public Builder addAssets( org.tron.trident.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; */ public Builder addAssets( int index, org.tron.trident.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; */ 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; */ 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; */ public Builder removeAssets(int index) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.remove(index); onChanged(); } else { assetsBuilder_.remove(index); } return this; } /** * repeated .protocol.AssetIssueContract assets = 1; */ public org.tron.trident.proto.Contract.AssetIssueContract.Builder getAssetsBuilder( int index) { return getAssetsFieldBuilder().getBuilder(index); } /** * repeated .protocol.AssetIssueContract assets = 1; */ public org.tron.trident.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder( int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.AssetIssueContract assets = 1; */ public java.util.List getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assets_); } } /** * repeated .protocol.AssetIssueContract assets = 1; */ public org.tron.trident.proto.Contract.AssetIssueContract.Builder addAssetsBuilder() { return getAssetsFieldBuilder().addBuilder( org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract assets = 1; */ public org.tron.trident.proto.Contract.AssetIssueContract.Builder addAssetsBuilder( int index) { return getAssetsFieldBuilder().addBuilder( index, org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract assets = 1; */ public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.proto.Contract.AssetIssueContractOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.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.tron.trident.proto.Response.AssetIssueList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AssetIssueList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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; */ java.util.List getBlockList(); /** * repeated .protocol.Block block = 1; */ org.tron.trident.proto.Chain.Block getBlock(int index); /** * repeated .protocol.Block block = 1; */ int getBlockCount(); /** * repeated .protocol.Block block = 1; */ java.util.List getBlockOrBuilderList(); /** * repeated .protocol.Block block = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockList.class, org.tron.trident.proto.Response.BlockList.Builder.class); } public static final int BLOCK_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List block_; /** * repeated .protocol.Block block = 1; */ @java.lang.Override public java.util.List getBlockList() { return block_; } /** * repeated .protocol.Block block = 1; */ @java.lang.Override public java.util.List getBlockOrBuilderList() { return block_; } /** * repeated .protocol.Block block = 1; */ @java.lang.Override public int getBlockCount() { return block_.size(); } /** * repeated .protocol.Block block = 1; */ @java.lang.Override public org.tron.trident.proto.Chain.Block getBlock(int index) { return block_.get(index); } /** * repeated .protocol.Block block = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.BlockList)) { return super.equals(obj); } org.tron.trident.proto.Response.BlockList other = (org.tron.trident.proto.Response.BlockList) obj; if (!getBlockList() .equals(other.getBlockList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBlockCount() > 0) { hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlockList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.BlockList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.BlockList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.BlockList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.BlockList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.BlockList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.BlockListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockList.class, org.tron.trident.proto.Response.BlockList.Builder.class); } // Construct using org.tron.trident.proto.Response.BlockList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (blockBuilder_ == null) { block_ = java.util.Collections.emptyList(); } else { block_ = null; blockBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.BlockList getDefaultInstanceForType() { return org.tron.trident.proto.Response.BlockList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.BlockList build() { org.tron.trident.proto.Response.BlockList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.BlockList buildPartial() { org.tron.trident.proto.Response.BlockList result = new org.tron.trident.proto.Response.BlockList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockList result) { if (blockBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { block_ = java.util.Collections.unmodifiableList(block_); bitField0_ = (bitField0_ & ~0x00000001); } result.block_ = block_; } else { result.block_ = blockBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.BlockList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.BlockList) { return mergeFrom((org.tron.trident.proto.Response.BlockList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.BlockList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Chain.Block m = input.readMessage( org.tron.trident.proto.Chain.Block.parser(), extensionRegistry); if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.add(m); } else { blockBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.proto.Chain.BlockOrBuilder> blockBuilder_; /** * repeated .protocol.Block block = 1; */ public java.util.List getBlockList() { if (blockBuilder_ == null) { return java.util.Collections.unmodifiableList(block_); } else { return blockBuilder_.getMessageList(); } } /** * repeated .protocol.Block block = 1; */ public int getBlockCount() { if (blockBuilder_ == null) { return block_.size(); } else { return blockBuilder_.getCount(); } } /** * repeated .protocol.Block block = 1; */ public org.tron.trident.proto.Chain.Block getBlock(int index) { if (blockBuilder_ == null) { return block_.get(index); } else { return blockBuilder_.getMessage(index); } } /** * repeated .protocol.Block block = 1; */ public Builder setBlock( int index, org.tron.trident.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; } /** * repeated .protocol.Block block = 1; */ public Builder setBlock( int index, org.tron.trident.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.set(index, builderForValue.build()); onChanged(); } else { blockBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Block block = 1; */ public Builder addBlock(org.tron.trident.proto.Chain.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockIsMutable(); block_.add(value); onChanged(); } else { blockBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Block block = 1; */ public Builder addBlock( int index, org.tron.trident.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; } /** * repeated .protocol.Block block = 1; */ public Builder addBlock( org.tron.trident.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.add(builderForValue.build()); onChanged(); } else { blockBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Block block = 1; */ public Builder addBlock( int index, org.tron.trident.proto.Chain.Block.Builder builderForValue) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.add(index, builderForValue.build()); onChanged(); } else { blockBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Block block = 1; */ 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.Block block = 1; */ public Builder clearBlock() { if (blockBuilder_ == null) { block_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { blockBuilder_.clear(); } return this; } /** * repeated .protocol.Block block = 1; */ public Builder removeBlock(int index) { if (blockBuilder_ == null) { ensureBlockIsMutable(); block_.remove(index); onChanged(); } else { blockBuilder_.remove(index); } return this; } /** * repeated .protocol.Block block = 1; */ public org.tron.trident.proto.Chain.Block.Builder getBlockBuilder( int index) { return getBlockFieldBuilder().getBuilder(index); } /** * repeated .protocol.Block block = 1; */ public org.tron.trident.proto.Chain.BlockOrBuilder getBlockOrBuilder( int index) { if (blockBuilder_ == null) { return block_.get(index); } else { return blockBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Block block = 1; */ public java.util.List getBlockOrBuilderList() { if (blockBuilder_ != null) { return blockBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(block_); } } /** * repeated .protocol.Block block = 1; */ public org.tron.trident.proto.Chain.Block.Builder addBlockBuilder() { return getBlockFieldBuilder().addBuilder( org.tron.trident.proto.Chain.Block.getDefaultInstance()); } /** * repeated .protocol.Block block = 1; */ public org.tron.trident.proto.Chain.Block.Builder addBlockBuilder( int index) { return getBlockFieldBuilder().addBuilder( index, org.tron.trident.proto.Chain.Block.getDefaultInstance()); } /** * repeated .protocol.Block block = 1; */ public java.util.List getBlockBuilderList() { return getBlockFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.proto.Chain.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.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.tron.trident.proto.Response.BlockList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.BlockList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Transaction transaction = 1; */ java.util.List getTransactionList(); /** * repeated .protocol.Transaction transaction = 1; */ org.tron.trident.proto.Chain.Transaction getTransaction(int index); /** * repeated .protocol.Transaction transaction = 1; */ int getTransactionCount(); /** * repeated .protocol.Transaction transaction = 1; */ java.util.List getTransactionOrBuilderList(); /** * repeated .protocol.Transaction transaction = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionList.class, org.tron.trident.proto.Response.TransactionList.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List transaction_; /** * repeated .protocol.Transaction transaction = 1; */ @java.lang.Override public java.util.List getTransactionList() { return transaction_; } /** * repeated .protocol.Transaction transaction = 1; */ @java.lang.Override public java.util.List getTransactionOrBuilderList() { return transaction_; } /** * repeated .protocol.Transaction transaction = 1; */ @java.lang.Override public int getTransactionCount() { return transaction_.size(); } /** * repeated .protocol.Transaction transaction = 1; */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction getTransaction(int index) { return transaction_.get(index); } /** * repeated .protocol.Transaction transaction = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionList)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionList other = (org.tron.trident.proto.Response.TransactionList) obj; if (!getTransactionList() .equals(other.getTransactionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionCount() > 0) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransactionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionList.class, org.tron.trident.proto.Response.TransactionList.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); } else { transaction_ = null; transactionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionList getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionList build() { org.tron.trident.proto.Response.TransactionList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionList buildPartial() { org.tron.trident.proto.Response.TransactionList result = new org.tron.trident.proto.Response.TransactionList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionList result) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); bitField0_ = (bitField0_ & ~0x00000001); } result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.TransactionList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.TransactionList) { return mergeFrom((org.tron.trident.proto.Response.TransactionList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Chain.Transaction m = input.readMessage( org.tron.trident.proto.Chain.Transaction.parser(), extensionRegistry); if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(m); } else { transactionBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * repeated .protocol.Transaction transaction = 1; */ public java.util.List getTransactionList() { if (transactionBuilder_ == null) { return java.util.Collections.unmodifiableList(transaction_); } else { return transactionBuilder_.getMessageList(); } } /** * repeated .protocol.Transaction transaction = 1; */ public int getTransactionCount() { if (transactionBuilder_ == null) { return transaction_.size(); } else { return transactionBuilder_.getCount(); } } /** * repeated .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction getTransaction(int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessage(index); } } /** * repeated .protocol.Transaction transaction = 1; */ public Builder setTransaction( int index, org.tron.trident.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; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder setTransaction( int index, org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.set(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder addTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(value); onChanged(); } else { transactionBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder addTransaction( int index, org.tron.trident.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; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder addTransaction( org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder addTransaction( int index, org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ 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; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionBuilder_.clear(); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ public Builder removeTransaction(int index) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.remove(index); onChanged(); } else { transactionBuilder_.remove(index); } return this; } /** * repeated .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder( int index) { return getTransactionFieldBuilder().getBuilder(index); } /** * repeated .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder( int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Transaction transaction = 1; */ public java.util.List getTransactionOrBuilderList() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transaction_); } } /** * repeated .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder addTransactionBuilder() { return getTransactionFieldBuilder().addBuilder( org.tron.trident.proto.Chain.Transaction.getDefaultInstance()); } /** * repeated .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder addTransactionBuilder( int index) { return getTransactionFieldBuilder().addBuilder( index, org.tron.trident.proto.Chain.Transaction.getDefaultInstance()); } /** * repeated .protocol.Transaction transaction = 1; */ public java.util.List getTransactionBuilderList() { return getTransactionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.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.tron.trident.proto.Response.TransactionList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceMessage.class, org.tron.trident.proto.Response.DelegatedResourceMessage.Builder.class); } public static final int FROM_ADDRESS_FIELD_NUMBER = 1; 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_; } public static final int TO_ADDRESS_FIELD_NUMBER = 2; 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_; } 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResourceMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.DelegatedResourceMessage other = (org.tron.trident.proto.Response.DelegatedResourceMessage) obj; if (!getFromAddress() .equals(other.getFromAddress())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getFromAddress().hashCode(); hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.DelegatedResourceMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceMessage.class, org.tron.trident.proto.Response.DelegatedResourceMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.DelegatedResourceMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceMessage build() { org.tron.trident.proto.Response.DelegatedResourceMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceMessage buildPartial() { org.tron.trident.proto.Response.DelegatedResourceMessage result = new org.tron.trident.proto.Response.DelegatedResourceMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.DelegatedResourceMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fromAddress_ = fromAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } } @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.tron.trident.proto.Response.DelegatedResourceMessage) { return mergeFrom((org.tron.trident.proto.Response.DelegatedResourceMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceMessage other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { fromAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes from_address = 1; * @return This builder for chaining. */ public Builder clearFromAddress() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes to_address = 2; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.DelegatedResourceMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResourceMessage(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegatedResourceListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ java.util.List getDelegatedResourceList(); /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index); /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ int getDelegatedResourceCount(); /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ java.util.List getDelegatedResourceOrBuilderList(); /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceList.class, org.tron.trident.proto.Response.DelegatedResourceList.Builder.class); } public static final int DELEGATEDRESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List delegatedResource_; /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ @java.lang.Override public java.util.List getDelegatedResourceList() { return delegatedResource_; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ @java.lang.Override public java.util.List getDelegatedResourceOrBuilderList() { return delegatedResource_; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ @java.lang.Override public int getDelegatedResourceCount() { return delegatedResource_.size(); } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ @java.lang.Override public org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index) { return delegatedResource_.get(index); } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResourceList)) { return super.equals(obj); } org.tron.trident.proto.Response.DelegatedResourceList other = (org.tron.trident.proto.Response.DelegatedResourceList) obj; if (!getDelegatedResourceList() .equals(other.getDelegatedResourceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDelegatedResourceCount() > 0) { hash = (37 * hash) + DELEGATEDRESOURCE_FIELD_NUMBER; hash = (53 * hash) + getDelegatedResourceList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.DelegatedResourceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceList.class, org.tron.trident.proto.Response.DelegatedResourceList.Builder.class); } // Construct using org.tron.trident.proto.Response.DelegatedResourceList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (delegatedResourceBuilder_ == null) { delegatedResource_ = java.util.Collections.emptyList(); } else { delegatedResource_ = null; delegatedResourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceList getDefaultInstanceForType() { return org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceList build() { org.tron.trident.proto.Response.DelegatedResourceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceList buildPartial() { org.tron.trident.proto.Response.DelegatedResourceList result = new org.tron.trident.proto.Response.DelegatedResourceList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.DelegatedResourceList result) { if (delegatedResourceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_); bitField0_ = (bitField0_ & ~0x00000001); } result.delegatedResource_ = delegatedResource_; } else { result.delegatedResource_ = delegatedResourceBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.DelegatedResourceList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.DelegatedResourceList) { return mergeFrom((org.tron.trident.proto.Response.DelegatedResourceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.DelegatedResource m = input.readMessage( org.tron.trident.proto.Response.DelegatedResource.parser(), extensionRegistry); if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.add(m); } else { delegatedResourceBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.proto.Response.DelegatedResourceOrBuilder> delegatedResourceBuilder_; /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public java.util.List getDelegatedResourceList() { if (delegatedResourceBuilder_ == null) { return java.util.Collections.unmodifiableList(delegatedResource_); } else { return delegatedResourceBuilder_.getMessageList(); } } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public int getDelegatedResourceCount() { if (delegatedResourceBuilder_ == null) { return delegatedResource_.size(); } else { return delegatedResourceBuilder_.getCount(); } } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index) { if (delegatedResourceBuilder_ == null) { return delegatedResource_.get(index); } else { return delegatedResourceBuilder_.getMessage(index); } } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder setDelegatedResource( int index, org.tron.trident.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; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder setDelegatedResource( int index, org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.set(index, builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder addDelegatedResource(org.tron.trident.proto.Response.DelegatedResource value) { if (delegatedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegatedResourceIsMutable(); delegatedResource_.add(value); onChanged(); } else { delegatedResourceBuilder_.addMessage(value); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder addDelegatedResource( int index, org.tron.trident.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; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder addDelegatedResource( org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.add(builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder addDelegatedResource( int index, org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.add(index, builderForValue.build()); onChanged(); } else { delegatedResourceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ 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; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder clearDelegatedResource() { if (delegatedResourceBuilder_ == null) { delegatedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { delegatedResourceBuilder_.clear(); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public Builder removeDelegatedResource(int index) { if (delegatedResourceBuilder_ == null) { ensureDelegatedResourceIsMutable(); delegatedResource_.remove(index); onChanged(); } else { delegatedResourceBuilder_.remove(index); } return this; } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public org.tron.trident.proto.Response.DelegatedResource.Builder getDelegatedResourceBuilder( int index) { return getDelegatedResourceFieldBuilder().getBuilder(index); } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public org.tron.trident.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder( int index) { if (delegatedResourceBuilder_ == null) { return delegatedResource_.get(index); } else { return delegatedResourceBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public java.util.List getDelegatedResourceOrBuilderList() { if (delegatedResourceBuilder_ != null) { return delegatedResourceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(delegatedResource_); } } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public org.tron.trident.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder() { return getDelegatedResourceFieldBuilder().addBuilder( org.tron.trident.proto.Response.DelegatedResource.getDefaultInstance()); } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public org.tron.trident.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder( int index) { return getDelegatedResourceFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.DelegatedResource.getDefaultInstance()); } /** * repeated .protocol.DelegatedResource delegatedResource = 1; */ public java.util.List getDelegatedResourceBuilderList() { return getDelegatedResourceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.proto.Response.DelegatedResourceOrBuilder> getDelegatedResourceFieldBuilder() { if (delegatedResourceBuilder_ == null) { delegatedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResourceList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, org.tron.trident.proto.Response.AddressPrKeyPairMessage.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateKey_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.AddressPrKeyPairMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.AddressPrKeyPairMessage other = (org.tron.trident.proto.Response.AddressPrKeyPairMessage) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getPrivateKey() .equals(other.getPrivateKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AddressPrKeyPairMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.AddressPrKeyPairMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, org.tron.trident.proto.Response.AddressPrKeyPairMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.AddressPrKeyPairMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = ""; privateKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.AddressPrKeyPairMessage build() { org.tron.trident.proto.Response.AddressPrKeyPairMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.AddressPrKeyPairMessage buildPartial() { org.tron.trident.proto.Response.AddressPrKeyPairMessage result = new org.tron.trident.proto.Response.AddressPrKeyPairMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.AddressPrKeyPairMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.privateKey_ = privateKey_; } } @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.tron.trident.proto.Response.AddressPrKeyPairMessage) { return mergeFrom((org.tron.trident.proto.Response.AddressPrKeyPairMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.AddressPrKeyPairMessage other) { if (other == org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPrivateKey().isEmpty()) { privateKey_ = other.privateKey_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { privateKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string privateKey = 2; * @return This builder for chaining. */ public Builder clearPrivateKey() { privateKey_ = getDefaultInstance().getPrivateKey(); bitField0_ = (bitField0_ & ~0x00000002); 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; 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.AddressPrKeyPairMessage) } // @@protoc_insertion_point(class_scope:protocol.AddressPrKeyPairMessage) private static final org.tron.trident.proto.Response.AddressPrKeyPairMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AddressPrKeyPairMessage(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferResponse) com.google.protobuf.MessageOrBuilder { /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .protocol.Transaction transaction = 1; * @return The transaction. */ org.tron.trident.proto.Chain.Transaction getTransaction(); /** * .protocol.Transaction transaction = 1; */ org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(); /** * .protocol.TransactionReturn result = 2; * @return Whether the result field is set. */ boolean hasResult(); /** * .protocol.TransactionReturn result = 2; * @return The result. */ org.tron.trident.proto.Response.TransactionReturn getResult(); /** * .protocol.TransactionReturn result = 2; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.EasyTransferResponse.class, org.tron.trident.proto.Response.EasyTransferResponse.Builder.class); } private int bitField0_; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.tron.trident.proto.Chain.Transaction transaction_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * .protocol.Transaction transaction = 1; */ @java.lang.Override public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } public static final int RESULT_FIELD_NUMBER = 2; private org.tron.trident.proto.Response.TransactionReturn result_; /** * .protocol.TransactionReturn result = 2; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionReturn result = 2; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturn getResult() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } /** * .protocol.TransactionReturn result = 2; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } public static final int TXID_FIELD_NUMBER = 3; 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_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTransaction()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getResult()); } if (!txid_.isEmpty()) { output.writeBytes(3, txid_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } if (!txid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, txid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.EasyTransferResponse)) { return super.equals(obj); } org.tron.trident.proto.Response.EasyTransferResponse other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.EasyTransferResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.EasyTransferResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.EasyTransferResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.EasyTransferResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.EasyTransferResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.EasyTransferResponse.class, org.tron.trident.proto.Response.EasyTransferResponse.Builder.class); } // Construct using org.tron.trident.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) { getTransactionFieldBuilder(); getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } txid_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.EasyTransferResponse getDefaultInstanceForType() { return org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.EasyTransferResponse build() { org.tron.trident.proto.Response.EasyTransferResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.EasyTransferResponse buildPartial() { org.tron.trident.proto.Response.EasyTransferResponse result = new org.tron.trident.proto.Response.EasyTransferResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.EasyTransferResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.txid_ = txid_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.EasyTransferResponse) { return mergeFrom((org.tron.trident.proto.Response.EasyTransferResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.EasyTransferResponse other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { txid_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ public org.tron.trident.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction( org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder mergeTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && transaction_ != null && transaction_ != org.tron.trident.proto.Chain.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } if (transaction_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Transaction transaction = 1; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } /** * .protocol.Transaction transaction = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private org.tron.trident.proto.Response.TransactionReturn result_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_; /** * .protocol.TransactionReturn result = 2; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionReturn result = 2; * @return The result. */ public org.tron.trident.proto.Response.TransactionReturn getResult() { if (resultBuilder_ == null) { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionReturn result = 2; */ public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.TransactionReturn result = 2; */ public Builder setResult( org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.TransactionReturn result = 2; */ public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && result_ != null && result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .protocol.TransactionReturn result = 2; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionReturn result = 2; */ public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionReturn result = 2; */ public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_; } } /** * .protocol.TransactionReturn result = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * transaction id = sha256(transaction.raw_data)
       * 
* * bytes txid = 3; * @return This builder for chaining. */ public Builder clearTxid() { bitField0_ = (bitField0_ & ~0x00000004); 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.tron.trident.proto.Response.EasyTransferResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.EasyTransferResponse(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.proto.Common.SmartContract getSmartContract(); /** * .protocol.SmartContract smart_contract = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.SmartContractDataWrapper.class, org.tron.trident.proto.Response.SmartContractDataWrapper.Builder.class); } private int bitField0_; public static final int SMART_CONTRACT_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.SmartContract smartContract_; /** * .protocol.SmartContract smart_contract = 1; * @return Whether the smartContract field is set. */ @java.lang.Override public boolean hasSmartContract() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.SmartContract smart_contract = 1; * @return The smartContract. */ @java.lang.Override public org.tron.trident.proto.Common.SmartContract getSmartContract() { return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } /** * .protocol.SmartContract smart_contract = 1; */ @java.lang.Override public org.tron.trident.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() { return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } public static final int RUNTIME_CODE_FIELD_NUMBER = 2; 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_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSmartContract()); } if (!runtimeCode_.isEmpty()) { output.writeBytes(2, runtimeCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSmartContract()); } if (!runtimeCode_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, runtimeCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.SmartContractDataWrapper)) { return super.equals(obj); } org.tron.trident.proto.Response.SmartContractDataWrapper other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.SmartContractDataWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.SmartContractDataWrapper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.SmartContractDataWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.SmartContractDataWrapperOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.SmartContractDataWrapper.class, org.tron.trident.proto.Response.SmartContractDataWrapper.Builder.class); } // Construct using org.tron.trident.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) { getSmartContractFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; smartContract_ = null; if (smartContractBuilder_ != null) { smartContractBuilder_.dispose(); smartContractBuilder_ = null; } runtimeCode_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() { return org.tron.trident.proto.Response.SmartContractDataWrapper.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.SmartContractDataWrapper build() { org.tron.trident.proto.Response.SmartContractDataWrapper result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.SmartContractDataWrapper buildPartial() { org.tron.trident.proto.Response.SmartContractDataWrapper result = new org.tron.trident.proto.Response.SmartContractDataWrapper(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.SmartContractDataWrapper result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.smartContract_ = smartContractBuilder_ == null ? smartContract_ : smartContractBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.runtimeCode_ = runtimeCode_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.SmartContractDataWrapper) { return mergeFrom((org.tron.trident.proto.Response.SmartContractDataWrapper)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.SmartContractDataWrapper other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSmartContractFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { runtimeCode_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.SmartContract smartContract_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder> smartContractBuilder_; /** * .protocol.SmartContract smart_contract = 1; * @return Whether the smartContract field is set. */ public boolean hasSmartContract() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.SmartContract smart_contract = 1; * @return The smartContract. */ public org.tron.trident.proto.Common.SmartContract getSmartContract() { if (smartContractBuilder_ == null) { return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } else { return smartContractBuilder_.getMessage(); } } /** * .protocol.SmartContract smart_contract = 1; */ public Builder setSmartContract(org.tron.trident.proto.Common.SmartContract value) { if (smartContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartContract_ = value; } else { smartContractBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.SmartContract smart_contract = 1; */ public Builder setSmartContract( org.tron.trident.proto.Common.SmartContract.Builder builderForValue) { if (smartContractBuilder_ == null) { smartContract_ = builderForValue.build(); } else { smartContractBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.SmartContract smart_contract = 1; */ public Builder mergeSmartContract(org.tron.trident.proto.Common.SmartContract value) { if (smartContractBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && smartContract_ != null && smartContract_ != org.tron.trident.proto.Common.SmartContract.getDefaultInstance()) { getSmartContractBuilder().mergeFrom(value); } else { smartContract_ = value; } } else { smartContractBuilder_.mergeFrom(value); } if (smartContract_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.SmartContract smart_contract = 1; */ public Builder clearSmartContract() { bitField0_ = (bitField0_ & ~0x00000001); smartContract_ = null; if (smartContractBuilder_ != null) { smartContractBuilder_.dispose(); smartContractBuilder_ = null; } onChanged(); return this; } /** * .protocol.SmartContract smart_contract = 1; */ public org.tron.trident.proto.Common.SmartContract.Builder getSmartContractBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSmartContractFieldBuilder().getBuilder(); } /** * .protocol.SmartContract smart_contract = 1; */ public org.tron.trident.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() { if (smartContractBuilder_ != null) { return smartContractBuilder_.getMessageOrBuilder(); } else { return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_; } } /** * .protocol.SmartContract smart_contract = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder> getSmartContractFieldBuilder() { if (smartContractBuilder_ == null) { smartContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes runtime_code = 2; * @return This builder for chaining. */ public Builder clearRuntimeCode() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.SmartContractDataWrapper DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.SmartContractDataWrapper(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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 trx (TBD: or token) via function
     * 
* * bytes caller_address = 2; * @return The callerAddress. */ com.google.protobuf.ByteString getCallerAddress(); /** *
     * the one recieve trx (TBD: or token) via function
     * 
* * bytes transferTo_address = 3; * @return The transferToAddress. */ com.google.protobuf.ByteString getTransferToAddress(); /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ java.util.List getCallValueInfoList(); /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index); /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ int getCallValueInfoCount(); /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ java.util.List getCallValueInfoOrBuilderList(); /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.InternalTransaction.class, org.tron.trident.proto.Response.InternalTransaction.Builder.class); } public interface CallValueInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.InternalTransaction.CallValueInfo) com.google.protobuf.MessageOrBuilder { /** *
       * trx (TBD: or token) value
       * 
* * int64 callValue = 1; * @return The callValue. */ long getCallValue(); /** *
       * TBD: tokenName, trx should be empty
       * 
* * string tokenId = 2; * @return The tokenId. */ java.lang.String getTokenId(); /** *
       * TBD: tokenName, trx 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.class, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder.class); } public static final int CALLVALUE_FIELD_NUMBER = 1; private long callValue_ = 0L; /** *
       * trx (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; @SuppressWarnings("serial") private volatile java.lang.Object tokenId_ = ""; /** *
       * TBD: tokenName, trx 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, trx 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tokenId_); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tokenId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.InternalTransaction.CallValueInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.InternalTransaction.CallValueInfo other = (org.tron.trident.proto.Response.InternalTransaction.CallValueInfo) obj; if (getCallValue() != other.getCallValue()) return false; if (!getTokenId() .equals(other.getTokenId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.class, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; callValue_ = 0L; tokenId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo build() { org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo buildPartial() { org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result = new org.tron.trident.proto.Response.InternalTransaction.CallValueInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.callValue_ = callValue_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tokenId_ = tokenId_; } } @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.tron.trident.proto.Response.InternalTransaction.CallValueInfo) { return mergeFrom((org.tron.trident.proto.Response.InternalTransaction.CallValueInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo other) { if (other == org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()) return this; if (other.getCallValue() != 0L) { setCallValue(other.getCallValue()); } if (!other.getTokenId().isEmpty()) { tokenId_ = other.tokenId_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { callValue_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tokenId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long callValue_ ; /** *
         * trx (TBD: or token) value
         * 
* * int64 callValue = 1; * @return The callValue. */ @java.lang.Override public long getCallValue() { return callValue_; } /** *
         * trx (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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * trx (TBD: or token) value
         * 
* * int64 callValue = 1; * @return This builder for chaining. */ public Builder clearCallValue() { bitField0_ = (bitField0_ & ~0x00000001); callValue_ = 0L; onChanged(); return this; } private java.lang.Object tokenId_ = ""; /** *
         * TBD: tokenName, trx 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, trx 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, trx 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * TBD: tokenName, trx should be empty
         * 
* * string tokenId = 2; * @return This builder for chaining. */ public Builder clearTokenId() { tokenId_ = getDefaultInstance().getTokenId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * TBD: tokenName, trx 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; 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.InternalTransaction.CallValueInfo) } // @@protoc_insertion_point(class_scope:protocol.InternalTransaction.CallValueInfo) private static final org.tron.trident.proto.Response.InternalTransaction.CallValueInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.InternalTransaction.CallValueInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int HASH_FIELD_NUMBER = 1; 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_; } public static final int CALLER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
     * the one send trx (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_ = com.google.protobuf.ByteString.EMPTY; /** *
     * the one recieve trx (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; @SuppressWarnings("serial") private java.util.List callValueInfo_; /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ @java.lang.Override public java.util.List getCallValueInfoList() { return callValueInfo_; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ @java.lang.Override public java.util.List getCallValueInfoOrBuilderList() { return callValueInfo_; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ @java.lang.Override public int getCallValueInfoCount() { return callValueInfo_.size(); } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) { return callValueInfo_.get(index); } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ @java.lang.Override public org.tron.trident.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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = false; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.InternalTransaction)) { return super.equals(obj); } org.tron.trident.proto.Response.InternalTransaction other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.InternalTransaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.InternalTransaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.InternalTransaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.InternalTransaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.InternalTransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.InternalTransaction.class, org.tron.trident.proto.Response.InternalTransaction.Builder.class); } // Construct using org.tron.trident.proto.Response.InternalTransaction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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(); } else { callValueInfo_ = null; callValueInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); note_ = com.google.protobuf.ByteString.EMPTY; rejected_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction getDefaultInstanceForType() { return org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction build() { org.tron.trident.proto.Response.InternalTransaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction buildPartial() { org.tron.trident.proto.Response.InternalTransaction result = new org.tron.trident.proto.Response.InternalTransaction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.InternalTransaction result) { if (callValueInfoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_); bitField0_ = (bitField0_ & ~0x00000008); } result.callValueInfo_ = callValueInfo_; } else { result.callValueInfo_ = callValueInfoBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.InternalTransaction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hash_ = hash_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.callerAddress_ = callerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.transferToAddress_ = transferToAddress_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.note_ = note_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.rejected_ = rejected_; } } @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.tron.trident.proto.Response.InternalTransaction) { return mergeFrom((org.tron.trident.proto.Response.InternalTransaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.InternalTransaction other) { if (other == org.tron.trident.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_ & ~0x00000008); } else { ensureCallValueInfoIsMutable(); callValueInfo_.addAll(other.callValueInfo_); } onChanged(); } } else { if (!other.callValueInfo_.isEmpty()) { if (callValueInfoBuilder_.isEmpty()) { callValueInfoBuilder_.dispose(); callValueInfoBuilder_ = null; callValueInfo_ = other.callValueInfo_; bitField0_ = (bitField0_ & ~0x00000008); 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { callerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { transferToAddress_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { org.tron.trident.proto.Response.InternalTransaction.CallValueInfo m = input.readMessage( org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.parser(), extensionRegistry); if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.add(m); } else { callValueInfoBuilder_.addMessage(m); } break; } // case 34 case 42: { note_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { rejected_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; 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() { bitField0_ = (bitField0_ & ~0x00000001); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the one send trx (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 trx (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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * the one send trx (TBD: or token) via function
       * 
* * bytes caller_address = 2; * @return This builder for chaining. */ public Builder clearCallerAddress() { bitField0_ = (bitField0_ & ~0x00000002); callerAddress_ = getDefaultInstance().getCallerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString transferToAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the one recieve trx (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 trx (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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the one recieve trx (TBD: or token) via function
       * 
* * bytes transferTo_address = 3; * @return This builder for chaining. */ public Builder clearTransferToAddress() { bitField0_ = (bitField0_ & ~0x00000004); transferToAddress_ = getDefaultInstance().getTransferToAddress(); onChanged(); return this; } private java.util.List callValueInfo_ = java.util.Collections.emptyList(); private void ensureCallValueInfoIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { callValueInfo_ = new java.util.ArrayList(callValueInfo_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder> callValueInfoBuilder_; /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public java.util.List getCallValueInfoList() { if (callValueInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(callValueInfo_); } else { return callValueInfoBuilder_.getMessageList(); } } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public int getCallValueInfoCount() { if (callValueInfoBuilder_ == null) { return callValueInfo_.size(); } else { return callValueInfoBuilder_.getCount(); } } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) { if (callValueInfoBuilder_ == null) { return callValueInfo_.get(index); } else { return callValueInfoBuilder_.getMessage(index); } } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder setCallValueInfo( int index, org.tron.trident.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; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder setCallValueInfo( int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.set(index, builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder addCallValueInfo(org.tron.trident.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; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder addCallValueInfo( int index, org.tron.trident.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; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder addCallValueInfo( org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.add(builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder addCallValueInfo( int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.add(index, builderForValue.build()); onChanged(); } else { callValueInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ 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; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder clearCallValueInfo() { if (callValueInfoBuilder_ == null) { callValueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { callValueInfoBuilder_.clear(); } return this; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public Builder removeCallValueInfo(int index) { if (callValueInfoBuilder_ == null) { ensureCallValueInfoIsMutable(); callValueInfo_.remove(index); onChanged(); } else { callValueInfoBuilder_.remove(index); } return this; } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder getCallValueInfoBuilder( int index) { return getCallValueInfoFieldBuilder().getBuilder(index); } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder( int index) { if (callValueInfoBuilder_ == null) { return callValueInfo_.get(index); } else { return callValueInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public java.util.List getCallValueInfoOrBuilderList() { if (callValueInfoBuilder_ != null) { return callValueInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(callValueInfo_); } } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder() { return getCallValueInfoFieldBuilder().addBuilder( org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()); } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder( int index) { return getCallValueInfoFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()); } /** * repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4; */ public java.util.List getCallValueInfoBuilderList() { return getCallValueInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder> getCallValueInfoFieldBuilder() { if (callValueInfoBuilder_ == null) { callValueInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>( callValueInfo_, ((bitField0_ & 0x00000008) != 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes note = 5; * @return This builder for chaining. */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool rejected = 6; * @return This builder for chaining. */ public Builder clearRejected() { bitField0_ = (bitField0_ & ~0x00000020); 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.tron.trident.proto.Response.InternalTransaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.InternalTransaction(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceReceiptOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ResourceReceipt) com.google.protobuf.MessageOrBuilder { /** * int64 energy_usage = 1; * @return The energyUsage. */ long getEnergyUsage(); /** * int64 energy_fee = 2; * @return The energyFee. */ long getEnergyFee(); /** * int64 origin_energy_usage = 3; * @return The originEnergyUsage. */ long getOriginEnergyUsage(); /** * int64 energy_usage_total = 4; * @return The energyUsageTotal. */ long getEnergyUsageTotal(); /** * 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.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ResourceReceipt.class, org.tron.trident.proto.Response.ResourceReceipt.Builder.class); } public static final int ENERGY_USAGE_FIELD_NUMBER = 1; private long energyUsage_ = 0L; /** * int64 energy_usage = 1; * @return The energyUsage. */ @java.lang.Override public long getEnergyUsage() { return energyUsage_; } public static final int ENERGY_FEE_FIELD_NUMBER = 2; private long energyFee_ = 0L; /** * int64 energy_fee = 2; * @return The energyFee. */ @java.lang.Override public long getEnergyFee() { return energyFee_; } public static final int ORIGIN_ENERGY_USAGE_FIELD_NUMBER = 3; private long originEnergyUsage_ = 0L; /** * int64 origin_energy_usage = 3; * @return The originEnergyUsage. */ @java.lang.Override public long getOriginEnergyUsage() { return originEnergyUsage_; } public static final int ENERGY_USAGE_TOTAL_FIELD_NUMBER = 4; private long energyUsageTotal_ = 0L; /** * int64 energy_usage_total = 4; * @return The energyUsageTotal. */ @java.lang.Override public long getEnergyUsageTotal() { return energyUsageTotal_; } public static final int NET_USAGE_FIELD_NUMBER = 5; private long netUsage_ = 0L; /** * 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_ = 0L; /** * 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_ = 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; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction.Result.contractResult getResult() { org.tron.trident.proto.Chain.Transaction.Result.contractResult result = org.tron.trident.proto.Chain.Transaction.Result.contractResult.forNumber(result_); return result == null ? org.tron.trident.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 (energyUsage_ != 0L) { output.writeInt64(1, energyUsage_); } if (energyFee_ != 0L) { output.writeInt64(2, energyFee_); } if (originEnergyUsage_ != 0L) { output.writeInt64(3, originEnergyUsage_); } if (energyUsageTotal_ != 0L) { output.writeInt64(4, energyUsageTotal_); } if (netUsage_ != 0L) { output.writeInt64(5, netUsage_); } if (netFee_ != 0L) { output.writeInt64(6, netFee_); } if (result_ != org.tron.trident.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { output.writeEnum(7, result_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (energyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, energyUsage_); } if (energyFee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, energyFee_); } if (originEnergyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, originEnergyUsage_); } if (energyUsageTotal_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, energyUsageTotal_); } 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.tron.trident.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.ResourceReceipt)) { return super.equals(obj); } org.tron.trident.proto.Response.ResourceReceipt other = (org.tron.trident.proto.Response.ResourceReceipt) obj; if (getEnergyUsage() != other.getEnergyUsage()) return false; if (getEnergyFee() != other.getEnergyFee()) return false; if (getOriginEnergyUsage() != other.getOriginEnergyUsage()) return false; if (getEnergyUsageTotal() != other.getEnergyUsageTotal()) return false; if (getNetUsage() != other.getNetUsage()) return false; if (getNetFee() != other.getNetFee()) return false; if (result_ != other.result_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENERGY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsage()); hash = (37 * hash) + ENERGY_FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyFee()); hash = (37 * hash) + ORIGIN_ENERGY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginEnergyUsage()); hash = (37 * hash) + ENERGY_USAGE_TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsageTotal()); 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.ResourceReceipt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ResourceReceipt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ResourceReceipt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.ResourceReceipt parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ResourceReceipt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ResourceReceipt parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ResourceReceiptOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ResourceReceipt.class, org.tron.trident.proto.Response.ResourceReceipt.Builder.class); } // Construct using org.tron.trident.proto.Response.ResourceReceipt.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; energyUsage_ = 0L; energyFee_ = 0L; originEnergyUsage_ = 0L; energyUsageTotal_ = 0L; netUsage_ = 0L; netFee_ = 0L; result_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.ResourceReceipt getDefaultInstanceForType() { return org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.ResourceReceipt build() { org.tron.trident.proto.Response.ResourceReceipt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.ResourceReceipt buildPartial() { org.tron.trident.proto.Response.ResourceReceipt result = new org.tron.trident.proto.Response.ResourceReceipt(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.ResourceReceipt result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.energyUsage_ = energyUsage_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.energyFee_ = energyFee_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.originEnergyUsage_ = originEnergyUsage_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.energyUsageTotal_ = energyUsageTotal_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.netUsage_ = netUsage_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.netFee_ = netFee_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.result_ = 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.tron.trident.proto.Response.ResourceReceipt) { return mergeFrom((org.tron.trident.proto.Response.ResourceReceipt)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.ResourceReceipt other) { if (other == org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance()) return this; if (other.getEnergyUsage() != 0L) { setEnergyUsage(other.getEnergyUsage()); } if (other.getEnergyFee() != 0L) { setEnergyFee(other.getEnergyFee()); } if (other.getOriginEnergyUsage() != 0L) { setOriginEnergyUsage(other.getOriginEnergyUsage()); } if (other.getEnergyUsageTotal() != 0L) { setEnergyUsageTotal(other.getEnergyUsageTotal()); } if (other.getNetUsage() != 0L) { setNetUsage(other.getNetUsage()); } if (other.getNetFee() != 0L) { setNetFee(other.getNetFee()); } if (other.result_ != 0) { setResultValue(other.getResultValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { energyUsage_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { energyFee_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { originEnergyUsage_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { energyUsageTotal_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { netUsage_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { netFee_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { result_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long energyUsage_ ; /** * int64 energy_usage = 1; * @return The energyUsage. */ @java.lang.Override public long getEnergyUsage() { return energyUsage_; } /** * int64 energy_usage = 1; * @param value The energyUsage to set. * @return This builder for chaining. */ public Builder setEnergyUsage(long value) { energyUsage_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 energy_usage = 1; * @return This builder for chaining. */ public Builder clearEnergyUsage() { bitField0_ = (bitField0_ & ~0x00000001); energyUsage_ = 0L; onChanged(); return this; } private long energyFee_ ; /** * int64 energy_fee = 2; * @return The energyFee. */ @java.lang.Override public long getEnergyFee() { return energyFee_; } /** * int64 energy_fee = 2; * @param value The energyFee to set. * @return This builder for chaining. */ public Builder setEnergyFee(long value) { energyFee_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 energy_fee = 2; * @return This builder for chaining. */ public Builder clearEnergyFee() { bitField0_ = (bitField0_ & ~0x00000002); energyFee_ = 0L; onChanged(); return this; } private long originEnergyUsage_ ; /** * int64 origin_energy_usage = 3; * @return The originEnergyUsage. */ @java.lang.Override public long getOriginEnergyUsage() { return originEnergyUsage_; } /** * int64 origin_energy_usage = 3; * @param value The originEnergyUsage to set. * @return This builder for chaining. */ public Builder setOriginEnergyUsage(long value) { originEnergyUsage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 origin_energy_usage = 3; * @return This builder for chaining. */ public Builder clearOriginEnergyUsage() { bitField0_ = (bitField0_ & ~0x00000004); originEnergyUsage_ = 0L; onChanged(); return this; } private long energyUsageTotal_ ; /** * int64 energy_usage_total = 4; * @return The energyUsageTotal. */ @java.lang.Override public long getEnergyUsageTotal() { return energyUsageTotal_; } /** * int64 energy_usage_total = 4; * @param value The energyUsageTotal to set. * @return This builder for chaining. */ public Builder setEnergyUsageTotal(long value) { energyUsageTotal_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 energy_usage_total = 4; * @return This builder for chaining. */ public Builder clearEnergyUsageTotal() { bitField0_ = (bitField0_ & ~0x00000008); energyUsageTotal_ = 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 net_usage = 5; * @return This builder for chaining. */ public Builder clearNetUsage() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 net_fee = 6; * @return This builder for chaining. */ public Builder clearNetFee() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult result = 7; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction.Result.contractResult getResult() { org.tron.trident.proto.Chain.Transaction.Result.contractResult result = org.tron.trident.proto.Chain.Transaction.Result.contractResult.forNumber(result_); return result == null ? org.tron.trident.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.tron.trident.proto.Chain.Transaction.Result.contractResult value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; result_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Transaction.Result.contractResult result = 7; * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000040); 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.tron.trident.proto.Response.ResourceReceipt DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ResourceReceipt(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.proto.Response.ResourceReceipt getReceipt(); /** * .protocol.ResourceReceipt receipt = 7; */ org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder(); /** * repeated .protocol.TransactionInfo.Log log = 8; */ java.util.List getLogList(); /** * repeated .protocol.TransactionInfo.Log log = 8; */ org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index); /** * repeated .protocol.TransactionInfo.Log log = 8; */ int getLogCount(); /** * repeated .protocol.TransactionInfo.Log log = 8; */ java.util.List getLogOrBuilderList(); /** * repeated .protocol.TransactionInfo.Log log = 8; */ org.tron.trident.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.tron.trident.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(); /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ java.util.List getInternalTransactionsList(); /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index); /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ int getInternalTransactionsCount(); /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ java.util.List getInternalTransactionsOrBuilderList(); /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ org.tron.trident.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(); /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ java.util.List getOrderDetailsList(); /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index); /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ int getOrderDetailsCount(); /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ java.util.List getOrderDetailsOrBuilderList(); /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index); /** * int64 withdraw_expire_amount = 28; * @return The withdrawExpireAmount. */ long getWithdrawExpireAmount(); /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ int getCancelUnfreezeV2AmountCount(); /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ boolean containsCancelUnfreezeV2Amount( java.lang.String key); /** * Use {@link #getCancelUnfreezeV2AmountMap()} instead. */ @java.lang.Deprecated java.util.Map getCancelUnfreezeV2Amount(); /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ java.util.Map getCancelUnfreezeV2AmountMap(); /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ long getCancelUnfreezeV2AmountOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ long getCancelUnfreezeV2AmountOrThrow( java.lang.String key); } /** * 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_ = emptyList(com.google.protobuf.ByteString.class); 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 29: return internalGetCancelUnfreezeV2Amount(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfo.class, org.tron.trident.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.tron.trident.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_ = emptyList(com.google.protobuf.ByteString.class); data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Log(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfo.Log.class, org.tron.trident.proto.Response.TransactionInfo.Log.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int TOPICS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList topics_ = emptyList(com.google.protobuf.ByteString.class); /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, address_); } { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionInfo.Log)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionInfo.Log other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo.Log parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo.Log parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo.Log parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo.Log parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionInfo.LogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfo.Log.class, org.tron.trident.proto.Response.TransactionInfo.Log.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionInfo.Log.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; topics_ = emptyList(com.google.protobuf.ByteString.class); data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.Log getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.Log build() { org.tron.trident.proto.Response.TransactionInfo.Log result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.Log buildPartial() { org.tron.trident.proto.Response.TransactionInfo.Log result = new org.tron.trident.proto.Response.TransactionInfo.Log(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionInfo.Log result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000002) != 0)) { topics_.makeImmutable(); result.topics_ = topics_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.data_ = data_; } } @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.tron.trident.proto.Response.TransactionInfo.Log) { return mergeFrom((org.tron.trident.proto.Response.TransactionInfo.Log)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionInfo.Log other) { if (other == org.tron.trident.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_; topics_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureTopicsIsMutable(); topics_.addAll(other.topics_); } onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureTopicsIsMutable(); topics_.add(v); break; } // case 18 case 26: { data_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** * bytes address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes address = 1; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList topics_ = emptyList(com.google.protobuf.ByteString.class); private void ensureTopicsIsMutable() { if (!topics_.isModifiable()) { topics_ = makeMutableCopy(topics_); } bitField0_ |= 0x00000002; } /** * repeated bytes topics = 2; * @return A list containing the topics. */ public java.util.List getTopicsList() { topics_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes topics = 2; * @return This builder for chaining. */ public Builder clearTopics() { topics_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes data = 3; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); 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.tron.trident.proto.Response.TransactionInfo.Log DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionInfo.Log(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.Log getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } public static final int FEE_FIELD_NUMBER = 2; private long fee_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * int64 blockTimeStamp = 4; * @return The blockTimeStamp. */ @java.lang.Override public long getBlockTimeStamp() { return blockTimeStamp_; } public static final int CONTRACTRESULT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList contractResult_ = emptyList(com.google.protobuf.ByteString.class); /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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.tron.trident.proto.Response.ResourceReceipt receipt_; /** * .protocol.ResourceReceipt receipt = 7; * @return Whether the receipt field is set. */ @java.lang.Override public boolean hasReceipt() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.ResourceReceipt receipt = 7; * @return The receipt. */ @java.lang.Override public org.tron.trident.proto.Response.ResourceReceipt getReceipt() { return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } /** * .protocol.ResourceReceipt receipt = 7; */ @java.lang.Override public org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() { return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } public static final int LOG_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List log_; /** * repeated .protocol.TransactionInfo.Log log = 8; */ @java.lang.Override public java.util.List getLogList() { return log_; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ @java.lang.Override public java.util.List getLogOrBuilderList() { return log_; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ @java.lang.Override public int getLogCount() { return log_.size(); } /** * repeated .protocol.TransactionInfo.Log log = 8; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index) { return log_.get(index); } /** * repeated .protocol.TransactionInfo.Log log = 8; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder( int index) { return log_.get(index); } public static final int RESULT_FIELD_NUMBER = 9; 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; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.code getResult() { org.tron.trident.proto.Response.TransactionInfo.code result = org.tron.trident.proto.Response.TransactionInfo.code.forNumber(result_); return result == null ? org.tron.trident.proto.Response.TransactionInfo.code.UNRECOGNIZED : result; } public static final int RESMESSAGE_FIELD_NUMBER = 10; 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_; } public static final int ASSETISSUEID_FIELD_NUMBER = 14; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * int64 unfreeze_amount = 16; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } public static final int INTERNAL_TRANSACTIONS_FIELD_NUMBER = 17; @SuppressWarnings("serial") private java.util.List internalTransactions_; /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ @java.lang.Override public java.util.List getInternalTransactionsList() { return internalTransactions_; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ @java.lang.Override public java.util.List getInternalTransactionsOrBuilderList() { return internalTransactions_; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ @java.lang.Override public int getInternalTransactionsCount() { return internalTransactions_.size(); } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ @java.lang.Override public org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index) { return internalTransactions_.get(index); } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ @java.lang.Override public org.tron.trident.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder( int index) { return internalTransactions_.get(index); } public static final int EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER = 18; private long exchangeReceivedAmount_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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; @SuppressWarnings("serial") private java.util.List orderDetails_; /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ @java.lang.Override public java.util.List getOrderDetailsList() { return orderDetails_; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ @java.lang.Override public java.util.List getOrderDetailsOrBuilderList() { return orderDetails_; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ @java.lang.Override public int getOrderDetailsCount() { return orderDetails_.size(); } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index) { return orderDetails_.get(index); } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index) { return orderDetails_.get(index); } public static final int WITHDRAW_EXPIRE_AMOUNT_FIELD_NUMBER = 28; private long withdrawExpireAmount_ = 0L; /** * int64 withdraw_expire_amount = 28; * @return The withdrawExpireAmount. */ @java.lang.Override public long getWithdrawExpireAmount() { return withdrawExpireAmount_; } public static final int CANCEL_UNFREEZEV2_AMOUNT_FIELD_NUMBER = 29; private static final class CancelUnfreezeV2AmountDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_CancelUnfreezeV2AmountEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Long> cancelUnfreezeV2Amount_; private com.google.protobuf.MapField internalGetCancelUnfreezeV2Amount() { if (cancelUnfreezeV2Amount_ == null) { return com.google.protobuf.MapField.emptyMapField( CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry); } return cancelUnfreezeV2Amount_; } public int getCancelUnfreezeV2AmountCount() { return internalGetCancelUnfreezeV2Amount().getMap().size(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public boolean containsCancelUnfreezeV2Amount( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCancelUnfreezeV2Amount().getMap().containsKey(key); } /** * Use {@link #getCancelUnfreezeV2AmountMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCancelUnfreezeV2Amount() { return getCancelUnfreezeV2AmountMap(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public java.util.Map getCancelUnfreezeV2AmountMap() { return internalGetCancelUnfreezeV2Amount().getMap(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public long getCancelUnfreezeV2AmountOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCancelUnfreezeV2Amount().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public long getCancelUnfreezeV2AmountOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCancelUnfreezeV2Amount().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 (!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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getReceipt()); } for (int i = 0; i < log_.size(); i++) { output.writeMessage(8, log_.get(i)); } if (result_ != org.tron.trident.proto.Response.TransactionInfo.code.SUCESS.getNumber()) { output.writeEnum(9, result_); } if (!resMessage_.isEmpty()) { output.writeBytes(10, resMessage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetIssueID_)) { 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)); } if (withdrawExpireAmount_ != 0L) { output.writeInt64(28, withdrawExpireAmount_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCancelUnfreezeV2Amount(), CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry, 29); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, id_); } if (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 (((bitField0_ & 0x00000001) != 0)) { 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.tron.trident.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetIssueID_)) { 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)); } if (withdrawExpireAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(28, withdrawExpireAmount_); } for (java.util.Map.Entry entry : internalGetCancelUnfreezeV2Amount().getMap().entrySet()) { com.google.protobuf.MapEntry cancelUnfreezeV2Amount__ = CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, cancelUnfreezeV2Amount__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionInfo other = (org.tron.trident.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 (getWithdrawExpireAmount() != other.getWithdrawExpireAmount()) return false; if (!internalGetCancelUnfreezeV2Amount().equals( other.internalGetCancelUnfreezeV2Amount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + 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 = (37 * hash) + WITHDRAW_EXPIRE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWithdrawExpireAmount()); if (!internalGetCancelUnfreezeV2Amount().getMap().isEmpty()) { hash = (37 * hash) + CANCEL_UNFREEZEV2_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + internalGetCancelUnfreezeV2Amount().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 29: return internalGetCancelUnfreezeV2Amount(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 29: return internalGetMutableCancelUnfreezeV2Amount(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfo.class, org.tron.trident.proto.Response.TransactionInfo.Builder.class); } // Construct using org.tron.trident.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) { getReceiptFieldBuilder(); getLogFieldBuilder(); getInternalTransactionsFieldBuilder(); getOrderDetailsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = com.google.protobuf.ByteString.EMPTY; fee_ = 0L; blockNumber_ = 0L; blockTimeStamp_ = 0L; contractResult_ = emptyList(com.google.protobuf.ByteString.class); contractAddress_ = com.google.protobuf.ByteString.EMPTY; receipt_ = null; if (receiptBuilder_ != null) { receiptBuilder_.dispose(); receiptBuilder_ = null; } if (logBuilder_ == null) { log_ = java.util.Collections.emptyList(); } else { log_ = null; logBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); result_ = 0; resMessage_ = com.google.protobuf.ByteString.EMPTY; assetIssueID_ = ""; withdrawAmount_ = 0L; unfreezeAmount_ = 0L; if (internalTransactionsBuilder_ == null) { internalTransactions_ = java.util.Collections.emptyList(); } else { internalTransactions_ = null; internalTransactionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); exchangeReceivedAmount_ = 0L; exchangeInjectAnotherAmount_ = 0L; exchangeWithdrawAnotherAmount_ = 0L; exchangeId_ = 0L; shieldedTransactionFee_ = 0L; orderId_ = com.google.protobuf.ByteString.EMPTY; if (orderDetailsBuilder_ == null) { orderDetails_ = java.util.Collections.emptyList(); } else { orderDetails_ = null; orderDetailsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); withdrawExpireAmount_ = 0L; internalGetMutableCancelUnfreezeV2Amount().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo build() { org.tron.trident.proto.Response.TransactionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo buildPartial() { org.tron.trident.proto.Response.TransactionInfo result = new org.tron.trident.proto.Response.TransactionInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionInfo result) { if (logBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { log_ = java.util.Collections.unmodifiableList(log_); bitField0_ = (bitField0_ & ~0x00000080); } result.log_ = log_; } else { result.log_ = logBuilder_.build(); } if (internalTransactionsBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0)) { internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_); bitField0_ = (bitField0_ & ~0x00002000); } result.internalTransactions_ = internalTransactions_; } else { result.internalTransactions_ = internalTransactionsBuilder_.build(); } if (orderDetailsBuilder_ == null) { if (((bitField0_ & 0x00100000) != 0)) { orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_); bitField0_ = (bitField0_ & ~0x00100000); } result.orderDetails_ = orderDetails_; } else { result.orderDetails_ = orderDetailsBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.TransactionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fee_ = fee_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.blockNumber_ = blockNumber_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.blockTimeStamp_ = blockTimeStamp_; } if (((from_bitField0_ & 0x00000010) != 0)) { contractResult_.makeImmutable(); result.contractResult_ = contractResult_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.contractAddress_ = contractAddress_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.receipt_ = receiptBuilder_ == null ? receipt_ : receiptBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.result_ = result_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.resMessage_ = resMessage_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.assetIssueID_ = assetIssueID_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.withdrawAmount_ = withdrawAmount_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.unfreezeAmount_ = unfreezeAmount_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.exchangeReceivedAmount_ = exchangeReceivedAmount_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.exchangeInjectAnotherAmount_ = exchangeInjectAnotherAmount_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.exchangeWithdrawAnotherAmount_ = exchangeWithdrawAnotherAmount_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.exchangeId_ = exchangeId_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.shieldedTransactionFee_ = shieldedTransactionFee_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.orderId_ = orderId_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.withdrawExpireAmount_ = withdrawExpireAmount_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.cancelUnfreezeV2Amount_ = internalGetCancelUnfreezeV2Amount(); result.cancelUnfreezeV2Amount_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.TransactionInfo) { return mergeFrom((org.tron.trident.proto.Response.TransactionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionInfo other) { if (other == org.tron.trident.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_; contractResult_.makeImmutable(); bitField0_ |= 0x00000010; } 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_ & ~0x00000080); } else { ensureLogIsMutable(); log_.addAll(other.log_); } onChanged(); } } else { if (!other.log_.isEmpty()) { if (logBuilder_.isEmpty()) { logBuilder_.dispose(); logBuilder_ = null; log_ = other.log_; bitField0_ = (bitField0_ & ~0x00000080); 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_; bitField0_ |= 0x00000400; 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_ & ~0x00002000); } else { ensureInternalTransactionsIsMutable(); internalTransactions_.addAll(other.internalTransactions_); } onChanged(); } } else { if (!other.internalTransactions_.isEmpty()) { if (internalTransactionsBuilder_.isEmpty()) { internalTransactionsBuilder_.dispose(); internalTransactionsBuilder_ = null; internalTransactions_ = other.internalTransactions_; bitField0_ = (bitField0_ & ~0x00002000); 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_ & ~0x00100000); } else { ensureOrderDetailsIsMutable(); orderDetails_.addAll(other.orderDetails_); } onChanged(); } } else { if (!other.orderDetails_.isEmpty()) { if (orderDetailsBuilder_.isEmpty()) { orderDetailsBuilder_.dispose(); orderDetailsBuilder_ = null; orderDetails_ = other.orderDetails_; bitField0_ = (bitField0_ & ~0x00100000); orderDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderDetailsFieldBuilder() : null; } else { orderDetailsBuilder_.addAllMessages(other.orderDetails_); } } } if (other.getWithdrawExpireAmount() != 0L) { setWithdrawExpireAmount(other.getWithdrawExpireAmount()); } internalGetMutableCancelUnfreezeV2Amount().mergeFrom( other.internalGetCancelUnfreezeV2Amount()); bitField0_ |= 0x00400000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { fee_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { blockNumber_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { blockTimeStamp_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.protobuf.ByteString v = input.readBytes(); ensureContractResultIsMutable(); contractResult_.add(v); break; } // case 42 case 50: { contractAddress_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getReceiptFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { org.tron.trident.proto.Response.TransactionInfo.Log m = input.readMessage( org.tron.trident.proto.Response.TransactionInfo.Log.parser(), extensionRegistry); if (logBuilder_ == null) { ensureLogIsMutable(); log_.add(m); } else { logBuilder_.addMessage(m); } break; } // case 66 case 72: { result_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { resMessage_ = input.readBytes(); bitField0_ |= 0x00000200; break; } // case 82 case 114: { assetIssueID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 114 case 120: { withdrawAmount_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 120 case 128: { unfreezeAmount_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 128 case 138: { org.tron.trident.proto.Response.InternalTransaction m = input.readMessage( org.tron.trident.proto.Response.InternalTransaction.parser(), extensionRegistry); if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.add(m); } else { internalTransactionsBuilder_.addMessage(m); } break; } // case 138 case 144: { exchangeReceivedAmount_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 144 case 152: { exchangeInjectAnotherAmount_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 152 case 160: { exchangeWithdrawAnotherAmount_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 160 case 168: { exchangeId_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 168 case 176: { shieldedTransactionFee_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 176 case 202: { orderId_ = input.readBytes(); bitField0_ |= 0x00080000; break; } // case 202 case 210: { org.tron.trident.proto.Response.MarketOrderDetail m = input.readMessage( org.tron.trident.proto.Response.MarketOrderDetail.parser(), extensionRegistry); if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.add(m); } else { orderDetailsBuilder_.addMessage(m); } break; } // case 210 case 224: { withdrawExpireAmount_ = input.readInt64(); bitField0_ |= 0x00200000; break; } // case 224 case 234: { com.google.protobuf.MapEntry cancelUnfreezeV2Amount__ = input.readMessage( CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCancelUnfreezeV2Amount().getMutableMap().put( cancelUnfreezeV2Amount__.getKey(), cancelUnfreezeV2Amount__.getValue()); bitField0_ |= 0x00400000; break; } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } /** * bytes id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } private 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 fee = 2; * @return This builder for chaining. */ public Builder clearFee() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 blockNumber = 3; * @return This builder for chaining. */ public Builder clearBlockNumber() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 blockTimeStamp = 4; * @return This builder for chaining. */ public Builder clearBlockTimeStamp() { bitField0_ = (bitField0_ & ~0x00000008); blockTimeStamp_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList contractResult_ = emptyList(com.google.protobuf.ByteString.class); private void ensureContractResultIsMutable() { if (!contractResult_.isModifiable()) { contractResult_ = makeMutableCopy(contractResult_); } bitField0_ |= 0x00000010; } /** * repeated bytes contractResult = 5; * @return A list containing the contractResult. */ public java.util.List getContractResultList() { contractResult_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated bytes contractResult = 5; * @return This builder for chaining. */ public Builder clearContractResult() { contractResult_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes contract_address = 6; * @return This builder for chaining. */ public Builder clearContractAddress() { bitField0_ = (bitField0_ & ~0x00000020); contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private org.tron.trident.proto.Response.ResourceReceipt receipt_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder> receiptBuilder_; /** * .protocol.ResourceReceipt receipt = 7; * @return Whether the receipt field is set. */ public boolean hasReceipt() { return ((bitField0_ & 0x00000040) != 0); } /** * .protocol.ResourceReceipt receipt = 7; * @return The receipt. */ public org.tron.trident.proto.Response.ResourceReceipt getReceipt() { if (receiptBuilder_ == null) { return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } else { return receiptBuilder_.getMessage(); } } /** * .protocol.ResourceReceipt receipt = 7; */ public Builder setReceipt(org.tron.trident.proto.Response.ResourceReceipt value) { if (receiptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receipt_ = value; } else { receiptBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protocol.ResourceReceipt receipt = 7; */ public Builder setReceipt( org.tron.trident.proto.Response.ResourceReceipt.Builder builderForValue) { if (receiptBuilder_ == null) { receipt_ = builderForValue.build(); } else { receiptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protocol.ResourceReceipt receipt = 7; */ public Builder mergeReceipt(org.tron.trident.proto.Response.ResourceReceipt value) { if (receiptBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && receipt_ != null && receipt_ != org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance()) { getReceiptBuilder().mergeFrom(value); } else { receipt_ = value; } } else { receiptBuilder_.mergeFrom(value); } if (receipt_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * .protocol.ResourceReceipt receipt = 7; */ public Builder clearReceipt() { bitField0_ = (bitField0_ & ~0x00000040); receipt_ = null; if (receiptBuilder_ != null) { receiptBuilder_.dispose(); receiptBuilder_ = null; } onChanged(); return this; } /** * .protocol.ResourceReceipt receipt = 7; */ public org.tron.trident.proto.Response.ResourceReceipt.Builder getReceiptBuilder() { bitField0_ |= 0x00000040; onChanged(); return getReceiptFieldBuilder().getBuilder(); } /** * .protocol.ResourceReceipt receipt = 7; */ public org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() { if (receiptBuilder_ != null) { return receiptBuilder_.getMessageOrBuilder(); } else { return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_; } } /** * .protocol.ResourceReceipt receipt = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder> getReceiptFieldBuilder() { if (receiptBuilder_ == null) { receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder>( getReceipt(), getParentForChildren(), isClean()); receipt_ = null; } return receiptBuilder_; } private java.util.List log_ = java.util.Collections.emptyList(); private void ensureLogIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { log_ = new java.util.ArrayList(log_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder> logBuilder_; /** * repeated .protocol.TransactionInfo.Log log = 8; */ public java.util.List getLogList() { if (logBuilder_ == null) { return java.util.Collections.unmodifiableList(log_); } else { return logBuilder_.getMessageList(); } } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public int getLogCount() { if (logBuilder_ == null) { return log_.size(); } else { return logBuilder_.getCount(); } } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index) { if (logBuilder_ == null) { return log_.get(index); } else { return logBuilder_.getMessage(index); } } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder setLog( int index, org.tron.trident.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; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder setLog( int index, org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.set(index, builderForValue.build()); onChanged(); } else { logBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder addLog(org.tron.trident.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; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder addLog( int index, org.tron.trident.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; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder addLog( org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.add(builderForValue.build()); onChanged(); } else { logBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder addLog( int index, org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.add(index, builderForValue.build()); onChanged(); } else { logBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ 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; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder clearLog() { if (logBuilder_ == null) { log_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { logBuilder_.clear(); } return this; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public Builder removeLog(int index) { if (logBuilder_ == null) { ensureLogIsMutable(); log_.remove(index); onChanged(); } else { logBuilder_.remove(index); } return this; } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public org.tron.trident.proto.Response.TransactionInfo.Log.Builder getLogBuilder( int index) { return getLogFieldBuilder().getBuilder(index); } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder( int index) { if (logBuilder_ == null) { return log_.get(index); } else { return logBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public java.util.List getLogOrBuilderList() { if (logBuilder_ != null) { return logBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(log_); } } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public org.tron.trident.proto.Response.TransactionInfo.Log.Builder addLogBuilder() { return getLogFieldBuilder().addBuilder( org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance()); } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public org.tron.trident.proto.Response.TransactionInfo.Log.Builder addLogBuilder( int index) { return getLogFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance()); } /** * repeated .protocol.TransactionInfo.Log log = 8; */ public java.util.List getLogBuilderList() { return getLogFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder> getLogFieldBuilder() { if (logBuilder_ == null) { logBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>( log_, ((bitField0_ & 0x00000080) != 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * .protocol.TransactionInfo.code result = 9; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.code getResult() { org.tron.trident.proto.Response.TransactionInfo.code result = org.tron.trident.proto.Response.TransactionInfo.code.forNumber(result_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.TransactionInfo.code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; result_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionInfo.code result = 9; * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * bytes resMessage = 10; * @return This builder for chaining. */ public Builder clearResMessage() { bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * string assetIssueID = 14; * @return This builder for chaining. */ public Builder clearAssetIssueID() { assetIssueID_ = getDefaultInstance().getAssetIssueID(); bitField0_ = (bitField0_ & ~0x00000400); 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; bitField0_ |= 0x00000400; 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; bitField0_ |= 0x00000800; onChanged(); return this; } /** * int64 withdraw_amount = 15; * @return This builder for chaining. */ public Builder clearWithdrawAmount() { bitField0_ = (bitField0_ & ~0x00000800); 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int64 unfreeze_amount = 16; * @return This builder for chaining. */ public Builder clearUnfreezeAmount() { bitField0_ = (bitField0_ & ~0x00001000); unfreezeAmount_ = 0L; onChanged(); return this; } private java.util.List internalTransactions_ = java.util.Collections.emptyList(); private void ensureInternalTransactionsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { internalTransactions_ = new java.util.ArrayList(internalTransactions_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder> internalTransactionsBuilder_; /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public java.util.List getInternalTransactionsList() { if (internalTransactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(internalTransactions_); } else { return internalTransactionsBuilder_.getMessageList(); } } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public int getInternalTransactionsCount() { if (internalTransactionsBuilder_ == null) { return internalTransactions_.size(); } else { return internalTransactionsBuilder_.getCount(); } } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index) { if (internalTransactionsBuilder_ == null) { return internalTransactions_.get(index); } else { return internalTransactionsBuilder_.getMessage(index); } } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder setInternalTransactions( int index, org.tron.trident.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; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder setInternalTransactions( int index, org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.set(index, builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder addInternalTransactions(org.tron.trident.proto.Response.InternalTransaction value) { if (internalTransactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternalTransactionsIsMutable(); internalTransactions_.add(value); onChanged(); } else { internalTransactionsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder addInternalTransactions( int index, org.tron.trident.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; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder addInternalTransactions( org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.add(builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder addInternalTransactions( int index, org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.add(index, builderForValue.build()); onChanged(); } else { internalTransactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ 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; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder clearInternalTransactions() { if (internalTransactionsBuilder_ == null) { internalTransactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { internalTransactionsBuilder_.clear(); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public Builder removeInternalTransactions(int index) { if (internalTransactionsBuilder_ == null) { ensureInternalTransactionsIsMutable(); internalTransactions_.remove(index); onChanged(); } else { internalTransactionsBuilder_.remove(index); } return this; } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public org.tron.trident.proto.Response.InternalTransaction.Builder getInternalTransactionsBuilder( int index) { return getInternalTransactionsFieldBuilder().getBuilder(index); } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public org.tron.trident.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder( int index) { if (internalTransactionsBuilder_ == null) { return internalTransactions_.get(index); } else { return internalTransactionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public java.util.List getInternalTransactionsOrBuilderList() { if (internalTransactionsBuilder_ != null) { return internalTransactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(internalTransactions_); } } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public org.tron.trident.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder() { return getInternalTransactionsFieldBuilder().addBuilder( org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance()); } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public org.tron.trident.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder( int index) { return getInternalTransactionsFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance()); } /** * repeated .protocol.InternalTransaction internal_transactions = 17; */ public java.util.List getInternalTransactionsBuilderList() { return getInternalTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder> getInternalTransactionsFieldBuilder() { if (internalTransactionsBuilder_ == null) { internalTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder>( internalTransactions_, ((bitField0_ & 0x00002000) != 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; bitField0_ |= 0x00004000; onChanged(); return this; } /** * int64 exchange_received_amount = 18; * @return This builder for chaining. */ public Builder clearExchangeReceivedAmount() { bitField0_ = (bitField0_ & ~0x00004000); 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; bitField0_ |= 0x00008000; onChanged(); return this; } /** * int64 exchange_inject_another_amount = 19; * @return This builder for chaining. */ public Builder clearExchangeInjectAnotherAmount() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** * int64 exchange_withdraw_another_amount = 20; * @return This builder for chaining. */ public Builder clearExchangeWithdrawAnotherAmount() { bitField0_ = (bitField0_ & ~0x00010000); 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; bitField0_ |= 0x00020000; onChanged(); return this; } /** * int64 exchange_id = 21; * @return This builder for chaining. */ public Builder clearExchangeId() { bitField0_ = (bitField0_ & ~0x00020000); 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; bitField0_ |= 0x00040000; onChanged(); return this; } /** * int64 shielded_transaction_fee = 22; * @return This builder for chaining. */ public Builder clearShieldedTransactionFee() { bitField0_ = (bitField0_ & ~0x00040000); 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; bitField0_ |= 0x00080000; onChanged(); return this; } /** * bytes orderId = 25; * @return This builder for chaining. */ public Builder clearOrderId() { bitField0_ = (bitField0_ & ~0x00080000); orderId_ = getDefaultInstance().getOrderId(); onChanged(); return this; } private java.util.List orderDetails_ = java.util.Collections.emptyList(); private void ensureOrderDetailsIsMutable() { if (!((bitField0_ & 0x00100000) != 0)) { orderDetails_ = new java.util.ArrayList(orderDetails_); bitField0_ |= 0x00100000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder> orderDetailsBuilder_; /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public java.util.List getOrderDetailsList() { if (orderDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(orderDetails_); } else { return orderDetailsBuilder_.getMessageList(); } } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public int getOrderDetailsCount() { if (orderDetailsBuilder_ == null) { return orderDetails_.size(); } else { return orderDetailsBuilder_.getCount(); } } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index) { if (orderDetailsBuilder_ == null) { return orderDetails_.get(index); } else { return orderDetailsBuilder_.getMessage(index); } } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder setOrderDetails( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder setOrderDetails( int index, org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.set(index, builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder addOrderDetails(org.tron.trident.proto.Response.MarketOrderDetail value) { if (orderDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderDetailsIsMutable(); orderDetails_.add(value); onChanged(); } else { orderDetailsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder addOrderDetails( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder addOrderDetails( org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.add(builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder addOrderDetails( int index, org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.add(index, builderForValue.build()); onChanged(); } else { orderDetailsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ 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; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder clearOrderDetails() { if (orderDetailsBuilder_ == null) { orderDetails_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { orderDetailsBuilder_.clear(); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public Builder removeOrderDetails(int index) { if (orderDetailsBuilder_ == null) { ensureOrderDetailsIsMutable(); orderDetails_.remove(index); onChanged(); } else { orderDetailsBuilder_.remove(index); } return this; } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public org.tron.trident.proto.Response.MarketOrderDetail.Builder getOrderDetailsBuilder( int index) { return getOrderDetailsFieldBuilder().getBuilder(index); } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder( int index) { if (orderDetailsBuilder_ == null) { return orderDetails_.get(index); } else { return orderDetailsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public java.util.List getOrderDetailsOrBuilderList() { if (orderDetailsBuilder_ != null) { return orderDetailsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orderDetails_); } } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public org.tron.trident.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder() { return getOrderDetailsFieldBuilder().addBuilder( org.tron.trident.proto.Response.MarketOrderDetail.getDefaultInstance()); } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public org.tron.trident.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder( int index) { return getOrderDetailsFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.MarketOrderDetail.getDefaultInstance()); } /** * repeated .protocol.MarketOrderDetail orderDetails = 26; */ public java.util.List getOrderDetailsBuilderList() { return getOrderDetailsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder> getOrderDetailsFieldBuilder() { if (orderDetailsBuilder_ == null) { orderDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>( orderDetails_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); orderDetails_ = null; } return orderDetailsBuilder_; } private long withdrawExpireAmount_ ; /** * int64 withdraw_expire_amount = 28; * @return The withdrawExpireAmount. */ @java.lang.Override public long getWithdrawExpireAmount() { return withdrawExpireAmount_; } /** * int64 withdraw_expire_amount = 28; * @param value The withdrawExpireAmount to set. * @return This builder for chaining. */ public Builder setWithdrawExpireAmount(long value) { withdrawExpireAmount_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** * int64 withdraw_expire_amount = 28; * @return This builder for chaining. */ public Builder clearWithdrawExpireAmount() { bitField0_ = (bitField0_ & ~0x00200000); withdrawExpireAmount_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> cancelUnfreezeV2Amount_; private com.google.protobuf.MapField internalGetCancelUnfreezeV2Amount() { if (cancelUnfreezeV2Amount_ == null) { return com.google.protobuf.MapField.emptyMapField( CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry); } return cancelUnfreezeV2Amount_; } private com.google.protobuf.MapField internalGetMutableCancelUnfreezeV2Amount() { if (cancelUnfreezeV2Amount_ == null) { cancelUnfreezeV2Amount_ = com.google.protobuf.MapField.newMapField( CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry); } if (!cancelUnfreezeV2Amount_.isMutable()) { cancelUnfreezeV2Amount_ = cancelUnfreezeV2Amount_.copy(); } bitField0_ |= 0x00400000; onChanged(); return cancelUnfreezeV2Amount_; } public int getCancelUnfreezeV2AmountCount() { return internalGetCancelUnfreezeV2Amount().getMap().size(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public boolean containsCancelUnfreezeV2Amount( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCancelUnfreezeV2Amount().getMap().containsKey(key); } /** * Use {@link #getCancelUnfreezeV2AmountMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCancelUnfreezeV2Amount() { return getCancelUnfreezeV2AmountMap(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public java.util.Map getCancelUnfreezeV2AmountMap() { return internalGetCancelUnfreezeV2Amount().getMap(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public long getCancelUnfreezeV2AmountOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCancelUnfreezeV2Amount().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ @java.lang.Override public long getCancelUnfreezeV2AmountOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCancelUnfreezeV2Amount().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCancelUnfreezeV2Amount() { bitField0_ = (bitField0_ & ~0x00400000); internalGetMutableCancelUnfreezeV2Amount().getMutableMap() .clear(); return this; } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ public Builder removeCancelUnfreezeV2Amount( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCancelUnfreezeV2Amount().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCancelUnfreezeV2Amount() { bitField0_ |= 0x00400000; return internalGetMutableCancelUnfreezeV2Amount().getMutableMap(); } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ public Builder putCancelUnfreezeV2Amount( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCancelUnfreezeV2Amount().getMutableMap() .put(key, value); bitField0_ |= 0x00400000; return this; } /** * map<string, int64> cancel_unfreezeV2_amount = 29; */ public Builder putAllCancelUnfreezeV2Amount( java.util.Map values) { internalGetMutableCancelUnfreezeV2Amount().getMutableMap() .putAll(values); bitField0_ |= 0x00400000; 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) } // @@protoc_insertion_point(class_scope:protocol.TransactionInfo) private static final org.tron.trident.proto.Response.TransactionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Witness_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Witness.class, org.tron.trident.proto.Response.Witness.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int VOTECOUNT_FIELD_NUMBER = 2; private long voteCount_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = false; /** * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, address_); } if (voteCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, voteCount_); } if (!pubKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, pubKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Witness)) { return super.equals(obj); } org.tron.trident.proto.Response.Witness other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Witness parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Witness parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Witness parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Witness parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Witness parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Witness parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Witness parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.WitnessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Witness_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Witness.class, org.tron.trident.proto.Response.Witness.Builder.class); } // Construct using org.tron.trident.proto.Response.Witness.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; 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.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Witness getDefaultInstanceForType() { return org.tron.trident.proto.Response.Witness.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Witness build() { org.tron.trident.proto.Response.Witness result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Witness buildPartial() { org.tron.trident.proto.Response.Witness result = new org.tron.trident.proto.Response.Witness(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Witness result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.voteCount_ = voteCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pubKey_ = pubKey_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.url_ = url_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.totalProduced_ = totalProduced_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.totalMissed_ = totalMissed_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.latestBlockNum_ = latestBlockNum_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.latestSlotNum_ = latestSlotNum_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.isJobs_ = isJobs_; } } @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.tron.trident.proto.Response.Witness) { return mergeFrom((org.tron.trident.proto.Response.Witness)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Witness other) { if (other == org.tron.trident.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_; bitField0_ |= 0x00000008; 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { voteCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { pubKey_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { url_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { totalProduced_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { totalMissed_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { latestBlockNum_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { latestSlotNum_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { isJobs_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** * bytes address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes address = 1; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private long 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 voteCount = 2; * @return This builder for chaining. */ public Builder clearVoteCount() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes pubKey = 3; * @return This builder for chaining. */ public Builder clearPubKey() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string url = 4; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 totalProduced = 5; * @return This builder for chaining. */ public Builder clearTotalProduced() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 totalMissed = 6; * @return This builder for chaining. */ public Builder clearTotalMissed() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 latestBlockNum = 7; * @return This builder for chaining. */ public Builder clearLatestBlockNum() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 latestSlotNum = 8; * @return This builder for chaining. */ public Builder clearLatestSlotNum() { bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bool isJobs = 9; * @return This builder for chaining. */ public Builder clearIsJobs() { bitField0_ = (bitField0_ & ~0x00000100); 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.tron.trident.proto.Response.Witness DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Witness(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.proto.Common.AccountType getType(); /** *
     * the create address
     * 
* * bytes address = 3; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** *
     * the trx balance
     * 
* * int64 balance = 4; * @return The balance. */ long getBalance(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ java.util.List getVotesList(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ org.tron.trident.proto.Common.Vote getVotes(int index); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ int getVotesCount(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ java.util.List getVotesOrBuilderList(); /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ org.tron.trident.proto.Common.VoteOrBuilder getVotesOrBuilder( int index); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ int getAssetCount(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ boolean containsAsset( java.lang.String key); /** * Use {@link #getAssetMap()} instead. */ @java.lang.Deprecated java.util.Map getAsset(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ java.util.Map getAssetMap(); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ long getAssetOrDefault( java.lang.String key, long defaultValue); /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ long getAssetOrThrow( java.lang.String key); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ int getAssetV2Count(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ boolean containsAssetV2( java.lang.String key); /** * Use {@link #getAssetV2Map()} instead. */ @java.lang.Deprecated java.util.Map getAssetV2(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ java.util.Map getAssetV2Map(); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ long getAssetV2OrDefault( java.lang.String key, long defaultValue); /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ long getAssetV2OrThrow( java.lang.String key); /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ java.util.List getFrozenList(); /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ org.tron.trident.proto.Response.Account.Frozen getFrozen(int index); /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ int getFrozenCount(); /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ java.util.List getFrozenOrBuilderList(); /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index); /** *
     * bandwidth, 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_bandwidth = 41; * @return The acquiredDelegatedFrozenBalanceForBandwidth. */ long getAcquiredDelegatedFrozenBalanceForBandwidth(); /** *
     * Freeze and provide balances to other accounts
     * 
* * int64 delegated_frozen_balance_for_bandwidth = 42; * @return The delegatedFrozenBalanceForBandwidth. */ long getDelegatedFrozenBalanceForBandwidth(); /** * int64 old_tron_power = 46; * @return The oldTronPower. */ long getOldTronPower(); /** * .protocol.Account.Frozen tron_power = 47; * @return Whether the tronPower field is set. */ boolean hasTronPower(); /** * .protocol.Account.Frozen tron_power = 47; * @return The tronPower. */ org.tron.trident.proto.Response.Account.Frozen getTronPower(); /** * .protocol.Account.Frozen tron_power = 47; */ org.tron.trident.proto.Response.Account.FrozenOrBuilder getTronPowerOrBuilder(); /** * bool asset_optimized = 60; * @return The assetOptimized. */ boolean getAssetOptimized(); /** *
     * 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; */ java.util.List getFrozenSupplyList(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ org.tron.trident.proto.Response.Account.Frozen getFrozenSupply(int index); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ int getFrozenSupplyCount(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ java.util.List getFrozenSupplyOrBuilderList(); /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ org.tron.trident.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; */ int getLatestAssetOperationTimeCount(); /** * map<string, int64> latest_asset_operation_time = 18; */ boolean containsLatestAssetOperationTime( java.lang.String key); /** * Use {@link #getLatestAssetOperationTimeMap()} instead. */ @java.lang.Deprecated java.util.Map getLatestAssetOperationTime(); /** * map<string, int64> latest_asset_operation_time = 18; */ java.util.Map getLatestAssetOperationTimeMap(); /** * map<string, int64> latest_asset_operation_time = 18; */ long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> latest_asset_operation_time = 18; */ long getLatestAssetOperationTimeOrThrow( java.lang.String key); /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ int getLatestAssetOperationTimeV2Count(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ boolean containsLatestAssetOperationTimeV2( java.lang.String key); /** * Use {@link #getLatestAssetOperationTimeV2Map()} instead. */ @java.lang.Deprecated java.util.Map getLatestAssetOperationTimeV2(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ java.util.Map getLatestAssetOperationTimeV2Map(); /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ long getLatestAssetOperationTimeV2OrThrow( java.lang.String key); /** * int64 free_net_usage = 19; * @return The freeNetUsage. */ long getFreeNetUsage(); /** * map<string, int64> free_asset_net_usage = 20; */ int getFreeAssetNetUsageCount(); /** * map<string, int64> free_asset_net_usage = 20; */ boolean containsFreeAssetNetUsage( java.lang.String key); /** * Use {@link #getFreeAssetNetUsageMap()} instead. */ @java.lang.Deprecated java.util.Map getFreeAssetNetUsage(); /** * map<string, int64> free_asset_net_usage = 20; */ java.util.Map getFreeAssetNetUsageMap(); /** * map<string, int64> free_asset_net_usage = 20; */ long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> free_asset_net_usage = 20; */ long getFreeAssetNetUsageOrThrow( java.lang.String key); /** * map<string, int64> free_asset_net_usageV2 = 59; */ int getFreeAssetNetUsageV2Count(); /** * map<string, int64> free_asset_net_usageV2 = 59; */ boolean containsFreeAssetNetUsageV2( java.lang.String key); /** * Use {@link #getFreeAssetNetUsageV2Map()} instead. */ @java.lang.Deprecated java.util.Map getFreeAssetNetUsageV2(); /** * map<string, int64> free_asset_net_usageV2 = 59; */ java.util.Map getFreeAssetNetUsageV2Map(); /** * map<string, int64> free_asset_net_usageV2 = 59; */ long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue); /** * map<string, int64> free_asset_net_usageV2 = 59; */ 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(); /** * int64 net_window_size = 24; * @return The netWindowSize. */ long getNetWindowSize(); /** * bool net_window_optimized = 25; * @return The netWindowOptimized. */ boolean getNetWindowOptimized(); /** * .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.tron.trident.proto.Response.Account.AccountResource getAccountResource(); /** * .protocol.Account.AccountResource account_resource = 26; */ org.tron.trident.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.tron.trident.proto.Common.Permission getOwnerPermission(); /** * .protocol.Permission owner_permission = 31; */ org.tron.trident.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.tron.trident.proto.Common.Permission getWitnessPermission(); /** * .protocol.Permission witness_permission = 32; */ org.tron.trident.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder(); /** * repeated .protocol.Permission active_permission = 33; */ java.util.List getActivePermissionList(); /** * repeated .protocol.Permission active_permission = 33; */ org.tron.trident.proto.Common.Permission getActivePermission(int index); /** * repeated .protocol.Permission active_permission = 33; */ int getActivePermissionCount(); /** * repeated .protocol.Permission active_permission = 33; */ java.util.List getActivePermissionOrBuilderList(); /** * repeated .protocol.Permission active_permission = 33; */ org.tron.trident.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index); /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ java.util.List getFrozenV2List(); /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ org.tron.trident.proto.Response.Account.FreezeV2 getFrozenV2(int index); /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ int getFrozenV2Count(); /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ java.util.List getFrozenV2OrBuilderList(); /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ org.tron.trident.proto.Response.Account.FreezeV2OrBuilder getFrozenV2OrBuilder( int index); /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ java.util.List getUnfrozenV2List(); /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ org.tron.trident.proto.Response.Account.UnFreezeV2 getUnfrozenV2(int index); /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ int getUnfrozenV2Count(); /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ java.util.List getUnfrozenV2OrBuilderList(); /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder getUnfrozenV2OrBuilder( int index); /** * int64 delegated_frozenV2_balance_for_bandwidth = 36; * @return The delegatedFrozenV2BalanceForBandwidth. */ long getDelegatedFrozenV2BalanceForBandwidth(); /** * int64 acquired_delegated_frozenV2_balance_for_bandwidth = 37; * @return The acquiredDelegatedFrozenV2BalanceForBandwidth. */ long getAcquiredDelegatedFrozenV2BalanceForBandwidth(); } /** *
   * 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(); frozenV2_ = java.util.Collections.emptyList(); unfrozenV2_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Account(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.class, org.tron.trident.proto.Response.Account.Builder.class); } public interface FrozenOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.Frozen) com.google.protobuf.MessageOrBuilder { /** *
       * the frozen trx 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_Frozen_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.Frozen.class, org.tron.trident.proto.Response.Account.Frozen.Builder.class); } public static final int FROZEN_BALANCE_FIELD_NUMBER = 1; private long frozenBalance_ = 0L; /** *
       * the frozen trx 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_ = 0L; /** *
       * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Account.Frozen)) { return super.equals(obj); } org.tron.trident.proto.Response.Account.Frozen other = (org.tron.trident.proto.Response.Account.Frozen) obj; if (getFrozenBalance() != other.getFrozenBalance()) return false; if (getExpireTime() != other.getExpireTime()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Account.Frozen parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.Frozen parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.Frozen parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.Frozen parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Account.Frozen parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.Account.FrozenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_Frozen_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.Frozen.class, org.tron.trident.proto.Response.Account.Frozen.Builder.class); } // Construct using org.tron.trident.proto.Response.Account.Frozen.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; frozenBalance_ = 0L; expireTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Account_Frozen_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getDefaultInstanceForType() { return org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen build() { org.tron.trident.proto.Response.Account.Frozen result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen buildPartial() { org.tron.trident.proto.Response.Account.Frozen result = new org.tron.trident.proto.Response.Account.Frozen(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Account.Frozen result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.frozenBalance_ = frozenBalance_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expireTime_ = expireTime_; } } @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.tron.trident.proto.Response.Account.Frozen) { return mergeFrom((org.tron.trident.proto.Response.Account.Frozen)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Account.Frozen other) { if (other == org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()) return this; if (other.getFrozenBalance() != 0L) { setFrozenBalance(other.getFrozenBalance()); } if (other.getExpireTime() != 0L) { setExpireTime(other.getExpireTime()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { frozenBalance_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { expireTime_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long frozenBalance_ ; /** *
         * the frozen trx balance
         * 
* * int64 frozen_balance = 1; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } /** *
         * the frozen trx balance
         * 
* * int64 frozen_balance = 1; * @param value The frozenBalance to set. * @return This builder for chaining. */ public Builder setFrozenBalance(long value) { frozenBalance_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * the frozen trx balance
         * 
* * int64 frozen_balance = 1; * @return This builder for chaining. */ public Builder clearFrozenBalance() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * the expire time
         * 
* * int64 expire_time = 2; * @return This builder for chaining. */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.Account.Frozen DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Account.Frozen(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.AccountResource) com.google.protobuf.MessageOrBuilder { /** *
       * energy resource, get from frozen
       * 
* * int64 energy_usage = 1; * @return The energyUsage. */ long getEnergyUsage(); /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return Whether the frozenBalanceForEnergy field is set. */ boolean hasFrozenBalanceForEnergy(); /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return The frozenBalanceForEnergy. */ org.tron.trident.proto.Response.Account.Frozen getFrozenBalanceForEnergy(); /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEnergyOrBuilder(); /** * int64 latest_consume_time_for_energy = 3; * @return The latestConsumeTimeForEnergy. */ long getLatestConsumeTimeForEnergy(); /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_energy = 4; * @return The acquiredDelegatedFrozenBalanceForEnergy. */ long getAcquiredDelegatedFrozenBalanceForEnergy(); /** *
       * Frozen balances provided to other accounts
       * 
* * int64 delegated_frozen_balance_for_energy = 5; * @return The delegatedFrozenBalanceForEnergy. */ long getDelegatedFrozenBalanceForEnergy(); /** *
       * 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(); /** * int64 energy_window_size = 9; * @return The energyWindowSize. */ long getEnergyWindowSize(); /** * int64 delegated_frozenV2_balance_for_energy = 10; * @return The delegatedFrozenV2BalanceForEnergy. */ long getDelegatedFrozenV2BalanceForEnergy(); /** * int64 acquired_delegated_frozenV2_balance_for_energy = 11; * @return The acquiredDelegatedFrozenV2BalanceForEnergy. */ long getAcquiredDelegatedFrozenV2BalanceForEnergy(); /** * bool energy_window_optimized = 12; * @return The energyWindowOptimized. */ boolean getEnergyWindowOptimized(); } /** * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_AccountResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.AccountResource.class, org.tron.trident.proto.Response.Account.AccountResource.Builder.class); } private int bitField0_; public static final int ENERGY_USAGE_FIELD_NUMBER = 1; private long energyUsage_ = 0L; /** *
       * energy resource, get from frozen
       * 
* * int64 energy_usage = 1; * @return The energyUsage. */ @java.lang.Override public long getEnergyUsage() { return energyUsage_; } public static final int FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER = 2; private org.tron.trident.proto.Response.Account.Frozen frozenBalanceForEnergy_; /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return Whether the frozenBalanceForEnergy field is set. */ @java.lang.Override public boolean hasFrozenBalanceForEnergy() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return The frozenBalanceForEnergy. */ @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getFrozenBalanceForEnergy() { return frozenBalanceForEnergy_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEnergy_; } /** *
       * the frozen balance for energy
       * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ @java.lang.Override public org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEnergyOrBuilder() { return frozenBalanceForEnergy_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEnergy_; } public static final int LATEST_CONSUME_TIME_FOR_ENERGY_FIELD_NUMBER = 3; private long latestConsumeTimeForEnergy_ = 0L; /** * int64 latest_consume_time_for_energy = 3; * @return The latestConsumeTimeForEnergy. */ @java.lang.Override public long getLatestConsumeTimeForEnergy() { return latestConsumeTimeForEnergy_; } public static final int ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER = 4; private long acquiredDelegatedFrozenBalanceForEnergy_ = 0L; /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_energy = 4; * @return The acquiredDelegatedFrozenBalanceForEnergy. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForEnergy() { return acquiredDelegatedFrozenBalanceForEnergy_; } public static final int DELEGATED_FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER = 5; private long delegatedFrozenBalanceForEnergy_ = 0L; /** *
       * Frozen balances provided to other accounts
       * 
* * int64 delegated_frozen_balance_for_energy = 5; * @return The delegatedFrozenBalanceForEnergy. */ @java.lang.Override public long getDelegatedFrozenBalanceForEnergy() { return delegatedFrozenBalanceForEnergy_; } public static final int STORAGE_LIMIT_FIELD_NUMBER = 6; private long storageLimit_ = 0L; /** *
       * 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_ = 0L; /** * 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_ = 0L; /** * int64 latest_exchange_storage_time = 8; * @return The latestExchangeStorageTime. */ @java.lang.Override public long getLatestExchangeStorageTime() { return latestExchangeStorageTime_; } public static final int ENERGY_WINDOW_SIZE_FIELD_NUMBER = 9; private long energyWindowSize_ = 0L; /** * int64 energy_window_size = 9; * @return The energyWindowSize. */ @java.lang.Override public long getEnergyWindowSize() { return energyWindowSize_; } public static final int DELEGATED_FROZENV2_BALANCE_FOR_ENERGY_FIELD_NUMBER = 10; private long delegatedFrozenV2BalanceForEnergy_ = 0L; /** * int64 delegated_frozenV2_balance_for_energy = 10; * @return The delegatedFrozenV2BalanceForEnergy. */ @java.lang.Override public long getDelegatedFrozenV2BalanceForEnergy() { return delegatedFrozenV2BalanceForEnergy_; } public static final int ACQUIRED_DELEGATED_FROZENV2_BALANCE_FOR_ENERGY_FIELD_NUMBER = 11; private long acquiredDelegatedFrozenV2BalanceForEnergy_ = 0L; /** * int64 acquired_delegated_frozenV2_balance_for_energy = 11; * @return The acquiredDelegatedFrozenV2BalanceForEnergy. */ @java.lang.Override public long getAcquiredDelegatedFrozenV2BalanceForEnergy() { return acquiredDelegatedFrozenV2BalanceForEnergy_; } public static final int ENERGY_WINDOW_OPTIMIZED_FIELD_NUMBER = 12; private boolean energyWindowOptimized_ = false; /** * bool energy_window_optimized = 12; * @return The energyWindowOptimized. */ @java.lang.Override public boolean getEnergyWindowOptimized() { return energyWindowOptimized_; } 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 (energyUsage_ != 0L) { output.writeInt64(1, energyUsage_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFrozenBalanceForEnergy()); } if (latestConsumeTimeForEnergy_ != 0L) { output.writeInt64(3, latestConsumeTimeForEnergy_); } if (acquiredDelegatedFrozenBalanceForEnergy_ != 0L) { output.writeInt64(4, acquiredDelegatedFrozenBalanceForEnergy_); } if (delegatedFrozenBalanceForEnergy_ != 0L) { output.writeInt64(5, delegatedFrozenBalanceForEnergy_); } if (storageLimit_ != 0L) { output.writeInt64(6, storageLimit_); } if (storageUsage_ != 0L) { output.writeInt64(7, storageUsage_); } if (latestExchangeStorageTime_ != 0L) { output.writeInt64(8, latestExchangeStorageTime_); } if (energyWindowSize_ != 0L) { output.writeInt64(9, energyWindowSize_); } if (delegatedFrozenV2BalanceForEnergy_ != 0L) { output.writeInt64(10, delegatedFrozenV2BalanceForEnergy_); } if (acquiredDelegatedFrozenV2BalanceForEnergy_ != 0L) { output.writeInt64(11, acquiredDelegatedFrozenV2BalanceForEnergy_); } if (energyWindowOptimized_ != false) { output.writeBool(12, energyWindowOptimized_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (energyUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, energyUsage_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFrozenBalanceForEnergy()); } if (latestConsumeTimeForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, latestConsumeTimeForEnergy_); } if (acquiredDelegatedFrozenBalanceForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, acquiredDelegatedFrozenBalanceForEnergy_); } if (delegatedFrozenBalanceForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, delegatedFrozenBalanceForEnergy_); } 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_); } if (energyWindowSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, energyWindowSize_); } if (delegatedFrozenV2BalanceForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, delegatedFrozenV2BalanceForEnergy_); } if (acquiredDelegatedFrozenV2BalanceForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, acquiredDelegatedFrozenV2BalanceForEnergy_); } if (energyWindowOptimized_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, energyWindowOptimized_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Account.AccountResource)) { return super.equals(obj); } org.tron.trident.proto.Response.Account.AccountResource other = (org.tron.trident.proto.Response.Account.AccountResource) obj; if (getEnergyUsage() != other.getEnergyUsage()) return false; if (hasFrozenBalanceForEnergy() != other.hasFrozenBalanceForEnergy()) return false; if (hasFrozenBalanceForEnergy()) { if (!getFrozenBalanceForEnergy() .equals(other.getFrozenBalanceForEnergy())) return false; } if (getLatestConsumeTimeForEnergy() != other.getLatestConsumeTimeForEnergy()) return false; if (getAcquiredDelegatedFrozenBalanceForEnergy() != other.getAcquiredDelegatedFrozenBalanceForEnergy()) return false; if (getDelegatedFrozenBalanceForEnergy() != other.getDelegatedFrozenBalanceForEnergy()) return false; if (getStorageLimit() != other.getStorageLimit()) return false; if (getStorageUsage() != other.getStorageUsage()) return false; if (getLatestExchangeStorageTime() != other.getLatestExchangeStorageTime()) return false; if (getEnergyWindowSize() != other.getEnergyWindowSize()) return false; if (getDelegatedFrozenV2BalanceForEnergy() != other.getDelegatedFrozenV2BalanceForEnergy()) return false; if (getAcquiredDelegatedFrozenV2BalanceForEnergy() != other.getAcquiredDelegatedFrozenV2BalanceForEnergy()) return false; if (getEnergyWindowOptimized() != other.getEnergyWindowOptimized()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENERGY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsage()); if (hasFrozenBalanceForEnergy()) { hash = (37 * hash) + FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + getFrozenBalanceForEnergy().hashCode(); } hash = (37 * hash) + LATEST_CONSUME_TIME_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLatestConsumeTimeForEnergy()); hash = (37 * hash) + ACQUIRED_DELEGATED_FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenBalanceForEnergy()); hash = (37 * hash) + DELEGATED_FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenBalanceForEnergy()); 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 = (37 * hash) + ENERGY_WINDOW_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyWindowSize()); hash = (37 * hash) + DELEGATED_FROZENV2_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenV2BalanceForEnergy()); hash = (37 * hash) + ACQUIRED_DELEGATED_FROZENV2_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenV2BalanceForEnergy()); hash = (37 * hash) + ENERGY_WINDOW_OPTIMIZED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnergyWindowOptimized()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Account.AccountResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.AccountResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.AccountResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account.AccountResource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Account.AccountResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.Account.AccountResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_AccountResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.AccountResource.class, org.tron.trident.proto.Response.Account.AccountResource.Builder.class); } // Construct using org.tron.trident.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) { getFrozenBalanceForEnergyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; energyUsage_ = 0L; frozenBalanceForEnergy_ = null; if (frozenBalanceForEnergyBuilder_ != null) { frozenBalanceForEnergyBuilder_.dispose(); frozenBalanceForEnergyBuilder_ = null; } latestConsumeTimeForEnergy_ = 0L; acquiredDelegatedFrozenBalanceForEnergy_ = 0L; delegatedFrozenBalanceForEnergy_ = 0L; storageLimit_ = 0L; storageUsage_ = 0L; latestExchangeStorageTime_ = 0L; energyWindowSize_ = 0L; delegatedFrozenV2BalanceForEnergy_ = 0L; acquiredDelegatedFrozenV2BalanceForEnergy_ = 0L; energyWindowOptimized_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Account_AccountResource_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResource getDefaultInstanceForType() { return org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResource build() { org.tron.trident.proto.Response.Account.AccountResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResource buildPartial() { org.tron.trident.proto.Response.Account.AccountResource result = new org.tron.trident.proto.Response.Account.AccountResource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Account.AccountResource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.energyUsage_ = energyUsage_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.frozenBalanceForEnergy_ = frozenBalanceForEnergyBuilder_ == null ? frozenBalanceForEnergy_ : frozenBalanceForEnergyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.latestConsumeTimeForEnergy_ = latestConsumeTimeForEnergy_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.acquiredDelegatedFrozenBalanceForEnergy_ = acquiredDelegatedFrozenBalanceForEnergy_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.delegatedFrozenBalanceForEnergy_ = delegatedFrozenBalanceForEnergy_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.storageLimit_ = storageLimit_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.storageUsage_ = storageUsage_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.latestExchangeStorageTime_ = latestExchangeStorageTime_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.energyWindowSize_ = energyWindowSize_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.delegatedFrozenV2BalanceForEnergy_ = delegatedFrozenV2BalanceForEnergy_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.acquiredDelegatedFrozenV2BalanceForEnergy_ = acquiredDelegatedFrozenV2BalanceForEnergy_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.energyWindowOptimized_ = energyWindowOptimized_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.Account.AccountResource) { return mergeFrom((org.tron.trident.proto.Response.Account.AccountResource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Account.AccountResource other) { if (other == org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance()) return this; if (other.getEnergyUsage() != 0L) { setEnergyUsage(other.getEnergyUsage()); } if (other.hasFrozenBalanceForEnergy()) { mergeFrozenBalanceForEnergy(other.getFrozenBalanceForEnergy()); } if (other.getLatestConsumeTimeForEnergy() != 0L) { setLatestConsumeTimeForEnergy(other.getLatestConsumeTimeForEnergy()); } if (other.getAcquiredDelegatedFrozenBalanceForEnergy() != 0L) { setAcquiredDelegatedFrozenBalanceForEnergy(other.getAcquiredDelegatedFrozenBalanceForEnergy()); } if (other.getDelegatedFrozenBalanceForEnergy() != 0L) { setDelegatedFrozenBalanceForEnergy(other.getDelegatedFrozenBalanceForEnergy()); } if (other.getStorageLimit() != 0L) { setStorageLimit(other.getStorageLimit()); } if (other.getStorageUsage() != 0L) { setStorageUsage(other.getStorageUsage()); } if (other.getLatestExchangeStorageTime() != 0L) { setLatestExchangeStorageTime(other.getLatestExchangeStorageTime()); } if (other.getEnergyWindowSize() != 0L) { setEnergyWindowSize(other.getEnergyWindowSize()); } if (other.getDelegatedFrozenV2BalanceForEnergy() != 0L) { setDelegatedFrozenV2BalanceForEnergy(other.getDelegatedFrozenV2BalanceForEnergy()); } if (other.getAcquiredDelegatedFrozenV2BalanceForEnergy() != 0L) { setAcquiredDelegatedFrozenV2BalanceForEnergy(other.getAcquiredDelegatedFrozenV2BalanceForEnergy()); } if (other.getEnergyWindowOptimized() != false) { setEnergyWindowOptimized(other.getEnergyWindowOptimized()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { energyUsage_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getFrozenBalanceForEnergyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { latestConsumeTimeForEnergy_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { acquiredDelegatedFrozenBalanceForEnergy_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { delegatedFrozenBalanceForEnergy_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { storageLimit_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { storageUsage_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { latestExchangeStorageTime_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { energyWindowSize_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { delegatedFrozenV2BalanceForEnergy_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { acquiredDelegatedFrozenV2BalanceForEnergy_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { energyWindowOptimized_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long energyUsage_ ; /** *
         * energy resource, get from frozen
         * 
* * int64 energy_usage = 1; * @return The energyUsage. */ @java.lang.Override public long getEnergyUsage() { return energyUsage_; } /** *
         * energy resource, get from frozen
         * 
* * int64 energy_usage = 1; * @param value The energyUsage to set. * @return This builder for chaining. */ public Builder setEnergyUsage(long value) { energyUsage_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * energy resource, get from frozen
         * 
* * int64 energy_usage = 1; * @return This builder for chaining. */ public Builder clearEnergyUsage() { bitField0_ = (bitField0_ & ~0x00000001); energyUsage_ = 0L; onChanged(); return this; } private org.tron.trident.proto.Response.Account.Frozen frozenBalanceForEnergy_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> frozenBalanceForEnergyBuilder_; /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return Whether the frozenBalanceForEnergy field is set. */ public boolean hasFrozenBalanceForEnergy() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; * @return The frozenBalanceForEnergy. */ public org.tron.trident.proto.Response.Account.Frozen getFrozenBalanceForEnergy() { if (frozenBalanceForEnergyBuilder_ == null) { return frozenBalanceForEnergy_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEnergy_; } else { return frozenBalanceForEnergyBuilder_.getMessage(); } } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public Builder setFrozenBalanceForEnergy(org.tron.trident.proto.Response.Account.Frozen value) { if (frozenBalanceForEnergyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } frozenBalanceForEnergy_ = value; } else { frozenBalanceForEnergyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public Builder setFrozenBalanceForEnergy( org.tron.trident.proto.Response.Account.Frozen.Builder builderForValue) { if (frozenBalanceForEnergyBuilder_ == null) { frozenBalanceForEnergy_ = builderForValue.build(); } else { frozenBalanceForEnergyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public Builder mergeFrozenBalanceForEnergy(org.tron.trident.proto.Response.Account.Frozen value) { if (frozenBalanceForEnergyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && frozenBalanceForEnergy_ != null && frozenBalanceForEnergy_ != org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()) { getFrozenBalanceForEnergyBuilder().mergeFrom(value); } else { frozenBalanceForEnergy_ = value; } } else { frozenBalanceForEnergyBuilder_.mergeFrom(value); } if (frozenBalanceForEnergy_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public Builder clearFrozenBalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000002); frozenBalanceForEnergy_ = null; if (frozenBalanceForEnergyBuilder_ != null) { frozenBalanceForEnergyBuilder_.dispose(); frozenBalanceForEnergyBuilder_ = null; } onChanged(); return this; } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public org.tron.trident.proto.Response.Account.Frozen.Builder getFrozenBalanceForEnergyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFrozenBalanceForEnergyFieldBuilder().getBuilder(); } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ public org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenBalanceForEnergyOrBuilder() { if (frozenBalanceForEnergyBuilder_ != null) { return frozenBalanceForEnergyBuilder_.getMessageOrBuilder(); } else { return frozenBalanceForEnergy_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : frozenBalanceForEnergy_; } } /** *
         * the frozen balance for energy
         * 
* * .protocol.Account.Frozen frozen_balance_for_energy = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> getFrozenBalanceForEnergyFieldBuilder() { if (frozenBalanceForEnergyBuilder_ == null) { frozenBalanceForEnergyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder>( getFrozenBalanceForEnergy(), getParentForChildren(), isClean()); frozenBalanceForEnergy_ = null; } return frozenBalanceForEnergyBuilder_; } private long latestConsumeTimeForEnergy_ ; /** * int64 latest_consume_time_for_energy = 3; * @return The latestConsumeTimeForEnergy. */ @java.lang.Override public long getLatestConsumeTimeForEnergy() { return latestConsumeTimeForEnergy_; } /** * int64 latest_consume_time_for_energy = 3; * @param value The latestConsumeTimeForEnergy to set. * @return This builder for chaining. */ public Builder setLatestConsumeTimeForEnergy(long value) { latestConsumeTimeForEnergy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 latest_consume_time_for_energy = 3; * @return This builder for chaining. */ public Builder clearLatestConsumeTimeForEnergy() { bitField0_ = (bitField0_ & ~0x00000004); latestConsumeTimeForEnergy_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenBalanceForEnergy_ ; /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_energy = 4; * @return The acquiredDelegatedFrozenBalanceForEnergy. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForEnergy() { return acquiredDelegatedFrozenBalanceForEnergy_; } /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_energy = 4; * @param value The acquiredDelegatedFrozenBalanceForEnergy to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenBalanceForEnergy(long value) { acquiredDelegatedFrozenBalanceForEnergy_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Frozen balance provided by other accounts to this account
         * 
* * int64 acquired_delegated_frozen_balance_for_energy = 4; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenBalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000008); acquiredDelegatedFrozenBalanceForEnergy_ = 0L; onChanged(); return this; } private long delegatedFrozenBalanceForEnergy_ ; /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_energy = 5; * @return The delegatedFrozenBalanceForEnergy. */ @java.lang.Override public long getDelegatedFrozenBalanceForEnergy() { return delegatedFrozenBalanceForEnergy_; } /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_energy = 5; * @param value The delegatedFrozenBalanceForEnergy to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenBalanceForEnergy(long value) { delegatedFrozenBalanceForEnergy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Frozen balances provided to other accounts
         * 
* * int64 delegated_frozen_balance_for_energy = 5; * @return This builder for chaining. */ public Builder clearDelegatedFrozenBalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000010); delegatedFrozenBalanceForEnergy_ = 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * storage resource, get from market
         * 
* * int64 storage_limit = 6; * @return This builder for chaining. */ public Builder clearStorageLimit() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 storage_usage = 7; * @return This builder for chaining. */ public Builder clearStorageUsage() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 latest_exchange_storage_time = 8; * @return This builder for chaining. */ public Builder clearLatestExchangeStorageTime() { bitField0_ = (bitField0_ & ~0x00000080); latestExchangeStorageTime_ = 0L; onChanged(); return this; } private long energyWindowSize_ ; /** * int64 energy_window_size = 9; * @return The energyWindowSize. */ @java.lang.Override public long getEnergyWindowSize() { return energyWindowSize_; } /** * int64 energy_window_size = 9; * @param value The energyWindowSize to set. * @return This builder for chaining. */ public Builder setEnergyWindowSize(long value) { energyWindowSize_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 energy_window_size = 9; * @return This builder for chaining. */ public Builder clearEnergyWindowSize() { bitField0_ = (bitField0_ & ~0x00000100); energyWindowSize_ = 0L; onChanged(); return this; } private long delegatedFrozenV2BalanceForEnergy_ ; /** * int64 delegated_frozenV2_balance_for_energy = 10; * @return The delegatedFrozenV2BalanceForEnergy. */ @java.lang.Override public long getDelegatedFrozenV2BalanceForEnergy() { return delegatedFrozenV2BalanceForEnergy_; } /** * int64 delegated_frozenV2_balance_for_energy = 10; * @param value The delegatedFrozenV2BalanceForEnergy to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenV2BalanceForEnergy(long value) { delegatedFrozenV2BalanceForEnergy_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * int64 delegated_frozenV2_balance_for_energy = 10; * @return This builder for chaining. */ public Builder clearDelegatedFrozenV2BalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000200); delegatedFrozenV2BalanceForEnergy_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenV2BalanceForEnergy_ ; /** * int64 acquired_delegated_frozenV2_balance_for_energy = 11; * @return The acquiredDelegatedFrozenV2BalanceForEnergy. */ @java.lang.Override public long getAcquiredDelegatedFrozenV2BalanceForEnergy() { return acquiredDelegatedFrozenV2BalanceForEnergy_; } /** * int64 acquired_delegated_frozenV2_balance_for_energy = 11; * @param value The acquiredDelegatedFrozenV2BalanceForEnergy to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenV2BalanceForEnergy(long value) { acquiredDelegatedFrozenV2BalanceForEnergy_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int64 acquired_delegated_frozenV2_balance_for_energy = 11; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenV2BalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000400); acquiredDelegatedFrozenV2BalanceForEnergy_ = 0L; onChanged(); return this; } private boolean energyWindowOptimized_ ; /** * bool energy_window_optimized = 12; * @return The energyWindowOptimized. */ @java.lang.Override public boolean getEnergyWindowOptimized() { return energyWindowOptimized_; } /** * bool energy_window_optimized = 12; * @param value The energyWindowOptimized to set. * @return This builder for chaining. */ public Builder setEnergyWindowOptimized(boolean value) { energyWindowOptimized_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * bool energy_window_optimized = 12; * @return This builder for chaining. */ public Builder clearEnergyWindowOptimized() { bitField0_ = (bitField0_ & ~0x00000800); energyWindowOptimized_ = 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.Account.AccountResource) } // @@protoc_insertion_point(class_scope:protocol.Account.AccountResource) private static final org.tron.trident.proto.Response.Account.AccountResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Account.AccountResource(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FreezeV2OrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.FreezeV2) com.google.protobuf.MessageOrBuilder { /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .protocol.ResourceCode type = 1; * @return The type. */ org.tron.trident.proto.Common.ResourceCode getType(); /** * int64 amount = 2; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.Account.FreezeV2} */ public static final class FreezeV2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Account.FreezeV2) FreezeV2OrBuilder { private static final long serialVersionUID = 0L; // Use FreezeV2.newBuilder() to construct. private FreezeV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FreezeV2() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FreezeV2(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_FreezeV2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_FreezeV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.FreezeV2.class, org.tron.trident.proto.Response.Account.FreezeV2.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.ResourceCode type = 1; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getType() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(type_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int AMOUNT_FIELD_NUMBER = 2; private long amount_ = 0L; /** * int64 amount = 2; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(1, type_); } if (amount_ != 0L) { output.writeInt64(2, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Account.FreezeV2)) { return super.equals(obj); } org.tron.trident.proto.Response.Account.FreezeV2 other = (org.tron.trident.proto.Response.Account.FreezeV2) obj; if (type_ != other.type_) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.FreezeV2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.FreezeV2 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.tron.trident.proto.Response.Account.FreezeV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.FreezeV2 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.tron.trident.proto.Response.Account.FreezeV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.FreezeV2 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.tron.trident.proto.Response.Account.FreezeV2 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.FreezeV2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Account.FreezeV2) org.tron.trident.proto.Response.Account.FreezeV2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_FreezeV2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_FreezeV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.FreezeV2.class, org.tron.trident.proto.Response.Account.FreezeV2.Builder.class); } // Construct using org.tron.trident.proto.Response.Account.FreezeV2.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Account_FreezeV2_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2 getDefaultInstanceForType() { return org.tron.trident.proto.Response.Account.FreezeV2.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2 build() { org.tron.trident.proto.Response.Account.FreezeV2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2 buildPartial() { org.tron.trident.proto.Response.Account.FreezeV2 result = new org.tron.trident.proto.Response.Account.FreezeV2(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Account.FreezeV2 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.amount_ = amount_; } } @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.tron.trident.proto.Response.Account.FreezeV2) { return mergeFrom((org.tron.trident.proto.Response.Account.FreezeV2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Account.FreezeV2 other) { if (other == org.tron.trident.proto.Response.Account.FreezeV2.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { amount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int type_ = 0; /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.ResourceCode type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.ResourceCode type = 1; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getType() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(type_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private long amount_ ; /** * int64 amount = 2; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 2; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 amount = 2; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000002); amount_ = 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.FreezeV2) } // @@protoc_insertion_point(class_scope:protocol.Account.FreezeV2) private static final org.tron.trident.proto.Response.Account.FreezeV2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Account.FreezeV2(); } public static org.tron.trident.proto.Response.Account.FreezeV2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FreezeV2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnFreezeV2OrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Account.UnFreezeV2) com.google.protobuf.MessageOrBuilder { /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .protocol.ResourceCode type = 1; * @return The type. */ org.tron.trident.proto.Common.ResourceCode getType(); /** * int64 unfreeze_amount = 3; * @return The unfreezeAmount. */ long getUnfreezeAmount(); /** * int64 unfreeze_expire_time = 4; * @return The unfreezeExpireTime. */ long getUnfreezeExpireTime(); } /** * Protobuf type {@code protocol.Account.UnFreezeV2} */ public static final class UnFreezeV2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Account.UnFreezeV2) UnFreezeV2OrBuilder { private static final long serialVersionUID = 0L; // Use UnFreezeV2.newBuilder() to construct. private UnFreezeV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnFreezeV2() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnFreezeV2(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_UnFreezeV2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_UnFreezeV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.UnFreezeV2.class, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.ResourceCode type = 1; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getType() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(type_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int UNFREEZE_AMOUNT_FIELD_NUMBER = 3; private long unfreezeAmount_ = 0L; /** * int64 unfreeze_amount = 3; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } public static final int UNFREEZE_EXPIRE_TIME_FIELD_NUMBER = 4; private long unfreezeExpireTime_ = 0L; /** * int64 unfreeze_expire_time = 4; * @return The unfreezeExpireTime. */ @java.lang.Override public long getUnfreezeExpireTime() { return unfreezeExpireTime_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(1, type_); } if (unfreezeAmount_ != 0L) { output.writeInt64(3, unfreezeAmount_); } if (unfreezeExpireTime_ != 0L) { output.writeInt64(4, unfreezeExpireTime_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (unfreezeAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, unfreezeAmount_); } if (unfreezeExpireTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, unfreezeExpireTime_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Account.UnFreezeV2)) { return super.equals(obj); } org.tron.trident.proto.Response.Account.UnFreezeV2 other = (org.tron.trident.proto.Response.Account.UnFreezeV2) obj; if (type_ != other.type_) return false; if (getUnfreezeAmount() != other.getUnfreezeAmount()) return false; if (getUnfreezeExpireTime() != other.getUnfreezeExpireTime()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + UNFREEZE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnfreezeAmount()); hash = (37 * hash) + UNFREEZE_EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnfreezeExpireTime()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 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.tron.trident.proto.Response.Account.UnFreezeV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 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.tron.trident.proto.Response.Account.UnFreezeV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 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.tron.trident.proto.Response.Account.UnFreezeV2 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.UnFreezeV2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Account.UnFreezeV2) org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_UnFreezeV2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Account_UnFreezeV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.UnFreezeV2.class, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder.class); } // Construct using org.tron.trident.proto.Response.Account.UnFreezeV2.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; unfreezeAmount_ = 0L; unfreezeExpireTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Account_UnFreezeV2_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2 getDefaultInstanceForType() { return org.tron.trident.proto.Response.Account.UnFreezeV2.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2 build() { org.tron.trident.proto.Response.Account.UnFreezeV2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2 buildPartial() { org.tron.trident.proto.Response.Account.UnFreezeV2 result = new org.tron.trident.proto.Response.Account.UnFreezeV2(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Account.UnFreezeV2 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.unfreezeAmount_ = unfreezeAmount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.unfreezeExpireTime_ = unfreezeExpireTime_; } } @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.tron.trident.proto.Response.Account.UnFreezeV2) { return mergeFrom((org.tron.trident.proto.Response.Account.UnFreezeV2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Account.UnFreezeV2 other) { if (other == org.tron.trident.proto.Response.Account.UnFreezeV2.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getUnfreezeAmount() != 0L) { setUnfreezeAmount(other.getUnfreezeAmount()); } if (other.getUnfreezeExpireTime() != 0L) { setUnfreezeExpireTime(other.getUnfreezeExpireTime()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 24: { unfreezeAmount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 24 case 32: { unfreezeExpireTime_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int type_ = 0; /** * .protocol.ResourceCode type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .protocol.ResourceCode type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.ResourceCode type = 1; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getType() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(type_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private long unfreezeAmount_ ; /** * int64 unfreeze_amount = 3; * @return The unfreezeAmount. */ @java.lang.Override public long getUnfreezeAmount() { return unfreezeAmount_; } /** * int64 unfreeze_amount = 3; * @param value The unfreezeAmount to set. * @return This builder for chaining. */ public Builder setUnfreezeAmount(long value) { unfreezeAmount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 unfreeze_amount = 3; * @return This builder for chaining. */ public Builder clearUnfreezeAmount() { bitField0_ = (bitField0_ & ~0x00000002); unfreezeAmount_ = 0L; onChanged(); return this; } private long unfreezeExpireTime_ ; /** * int64 unfreeze_expire_time = 4; * @return The unfreezeExpireTime. */ @java.lang.Override public long getUnfreezeExpireTime() { return unfreezeExpireTime_; } /** * int64 unfreeze_expire_time = 4; * @param value The unfreezeExpireTime to set. * @return This builder for chaining. */ public Builder setUnfreezeExpireTime(long value) { unfreezeExpireTime_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 unfreeze_expire_time = 4; * @return This builder for chaining. */ public Builder clearUnfreezeExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); unfreezeExpireTime_ = 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.UnFreezeV2) } // @@protoc_insertion_point(class_scope:protocol.Account.UnFreezeV2) private static final org.tron.trident.proto.Response.Account.UnFreezeV2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Account.UnFreezeV2(); } public static org.tron.trident.proto.Response.Account.UnFreezeV2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnFreezeV2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ACCOUNT_NAME_FIELD_NUMBER = 1; 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_; } public static final int TYPE_FIELD_NUMBER = 2; 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; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.AccountType getType() { org.tron.trident.proto.Common.AccountType result = org.tron.trident.proto.Common.AccountType.forNumber(type_); return result == null ? org.tron.trident.proto.Common.AccountType.UNRECOGNIZED : result; } public static final int ADDRESS_FIELD_NUMBER = 3; 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_; } public static final int BALANCE_FIELD_NUMBER = 4; private long balance_ = 0L; /** *
     * the trx balance
     * 
* * int64 balance = 4; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int VOTES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List votes_; /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ @java.lang.Override public java.util.List getVotesList() { return votes_; } /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ @java.lang.Override public java.util.List getVotesOrBuilderList() { return votes_; } /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ @java.lang.Override public int getVotesCount() { return votes_.size(); } /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ @java.lang.Override public org.tron.trident.proto.Common.Vote getVotes(int index) { return votes_.get(index); } /** *
     * the votes
     * 
* * repeated .protocol.Vote votes = 5; */ @java.lang.Override public org.tron.trident.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.tron.trident.proto.Response.internal_static_protocol_Account_AssetEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ @java.lang.Override public boolean containsAsset( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsset().getMap().containsKey(key); } /** * Use {@link #getAssetMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAsset() { return getAssetMap(); } /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ @java.lang.Override public java.util.Map getAssetMap() { return internalGetAsset().getMap(); } /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ @java.lang.Override public long getAssetOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAsset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * the other asset owned by this account
     * 
* * map<string, int64> asset = 6; */ @java.lang.Override public long getAssetOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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.tron.trident.proto.Response.internal_static_protocol_Account_AssetV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** *
     * the other asset owned by this account,key is assetId
     * 
* * map<string, int64> assetV2 = 56; */ @java.lang.Override public boolean containsAssetV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAssetV2().getMap().containsKey(key); } /** * Use {@link #getAssetV2Map()} instead. */ @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; */ @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; */ @java.lang.Override public long getAssetV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public long getAssetV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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; @SuppressWarnings("serial") private java.util.List frozen_; /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ @java.lang.Override public java.util.List getFrozenList() { return frozen_; } /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ @java.lang.Override public java.util.List getFrozenOrBuilderList() { return frozen_; } /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ @java.lang.Override public int getFrozenCount() { return frozen_.size(); } /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getFrozen(int index) { return frozen_.get(index); } /** *
     * the frozen balance for bandwidth
     * 
* * repeated .protocol.Account.Frozen frozen = 7; */ @java.lang.Override public org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index) { return frozen_.get(index); } public static final int NET_USAGE_FIELD_NUMBER = 8; private long netUsage_ = 0L; /** *
     * bandwidth, 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_BANDWIDTH_FIELD_NUMBER = 41; private long acquiredDelegatedFrozenBalanceForBandwidth_ = 0L; /** *
     * Frozen balance provided by other accounts to this account
     * 
* * int64 acquired_delegated_frozen_balance_for_bandwidth = 41; * @return The acquiredDelegatedFrozenBalanceForBandwidth. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForBandwidth() { return acquiredDelegatedFrozenBalanceForBandwidth_; } public static final int DELEGATED_FROZEN_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER = 42; private long delegatedFrozenBalanceForBandwidth_ = 0L; /** *
     * Freeze and provide balances to other accounts
     * 
* * int64 delegated_frozen_balance_for_bandwidth = 42; * @return The delegatedFrozenBalanceForBandwidth. */ @java.lang.Override public long getDelegatedFrozenBalanceForBandwidth() { return delegatedFrozenBalanceForBandwidth_; } public static final int OLD_TRON_POWER_FIELD_NUMBER = 46; private long oldTronPower_ = 0L; /** * int64 old_tron_power = 46; * @return The oldTronPower. */ @java.lang.Override public long getOldTronPower() { return oldTronPower_; } public static final int TRON_POWER_FIELD_NUMBER = 47; private org.tron.trident.proto.Response.Account.Frozen tronPower_; /** * .protocol.Account.Frozen tron_power = 47; * @return Whether the tronPower field is set. */ @java.lang.Override public boolean hasTronPower() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Account.Frozen tron_power = 47; * @return The tronPower. */ @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getTronPower() { return tronPower_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : tronPower_; } /** * .protocol.Account.Frozen tron_power = 47; */ @java.lang.Override public org.tron.trident.proto.Response.Account.FrozenOrBuilder getTronPowerOrBuilder() { return tronPower_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : tronPower_; } public static final int ASSET_OPTIMIZED_FIELD_NUMBER = 60; private boolean assetOptimized_ = false; /** * bool asset_optimized = 60; * @return The assetOptimized. */ @java.lang.Override public boolean getAssetOptimized() { return assetOptimized_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private long createTime_ = 0L; /** *
     * 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_ = 0L; /** *
     * 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_ = 0L; /** *
     * 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_ = 0L; /** *
     * 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_ = 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_; } public static final int IS_WITNESS_FIELD_NUMBER = 14; private boolean isWitness_ = false; /** * 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_ = false; /** * bool is_committee = 15; * @return The isCommittee. */ @java.lang.Override public boolean getIsCommittee() { return isCommittee_; } public static final int FROZEN_SUPPLY_FIELD_NUMBER = 16; @SuppressWarnings("serial") private java.util.List frozenSupply_; /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ @java.lang.Override public java.util.List getFrozenSupplyList() { return frozenSupply_; } /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ @java.lang.Override public java.util.List getFrozenSupplyOrBuilderList() { return frozenSupply_; } /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ @java.lang.Override public int getFrozenSupplyCount() { return frozenSupply_.size(); } /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ @java.lang.Override public org.tron.trident.proto.Response.Account.Frozen getFrozenSupply(int index) { return frozenSupply_.get(index); } /** *
     * frozen asset(for asset issuer)
     * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ @java.lang.Override public org.tron.trident.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_ = 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_; } public static final int ASSET_ISSUED_ID_FIELD_NUMBER = 57; 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_; } 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.tron.trident.proto.Response.internal_static_protocol_Account_LatestAssetOperationTimeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public boolean containsLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLatestAssetOperationTime().getMap().containsKey(key); } /** * Use {@link #getLatestAssetOperationTimeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTime() { return getLatestAssetOperationTimeMap(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public java.util.Map getLatestAssetOperationTimeMap() { return internalGetLatestAssetOperationTime().getMap(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public long getLatestAssetOperationTimeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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.tron.trident.proto.Response.internal_static_protocol_Account_LatestAssetOperationTimeV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public boolean containsLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLatestAssetOperationTimeV2().getMap().containsKey(key); } /** * Use {@link #getLatestAssetOperationTimeV2Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTimeV2() { return getLatestAssetOperationTimeV2Map(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public java.util.Map getLatestAssetOperationTimeV2Map() { return internalGetLatestAssetOperationTimeV2().getMap(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public long getLatestAssetOperationTimeV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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_ = 0L; /** * 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.tron.trident.proto.Response.internal_static_protocol_Account_FreeAssetNetUsageEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public boolean containsFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFreeAssetNetUsage().getMap().containsKey(key); } /** * Use {@link #getFreeAssetNetUsageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsage() { return getFreeAssetNetUsageMap(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public java.util.Map getFreeAssetNetUsageMap() { return internalGetFreeAssetNetUsage().getMap(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public long getFreeAssetNetUsageOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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.tron.trident.proto.Response.internal_static_protocol_Account_FreeAssetNetUsageV2Entry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public boolean containsFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFreeAssetNetUsageV2().getMap().containsKey(key); } /** * Use {@link #getFreeAssetNetUsageV2Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsageV2() { return getFreeAssetNetUsageV2Map(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public java.util.Map getFreeAssetNetUsageV2Map() { return internalGetFreeAssetNetUsageV2().getMap(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public long getFreeAssetNetUsageV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 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_; } public static final int NET_WINDOW_SIZE_FIELD_NUMBER = 24; private long netWindowSize_ = 0L; /** * int64 net_window_size = 24; * @return The netWindowSize. */ @java.lang.Override public long getNetWindowSize() { return netWindowSize_; } public static final int NET_WINDOW_OPTIMIZED_FIELD_NUMBER = 25; private boolean netWindowOptimized_ = false; /** * bool net_window_optimized = 25; * @return The netWindowOptimized. */ @java.lang.Override public boolean getNetWindowOptimized() { return netWindowOptimized_; } public static final int ACCOUNT_RESOURCE_FIELD_NUMBER = 26; private org.tron.trident.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 ((bitField0_ & 0x00000002) != 0); } /** * .protocol.Account.AccountResource account_resource = 26; * @return The accountResource. */ @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResource getAccountResource() { return accountResource_ == null ? org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } /** * .protocol.Account.AccountResource account_resource = 26; */ @java.lang.Override public org.tron.trident.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder() { return accountResource_ == null ? org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } public static final int CODEHASH_FIELD_NUMBER = 30; 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_; } public static final int OWNER_PERMISSION_FIELD_NUMBER = 31; private org.tron.trident.proto.Common.Permission ownerPermission_; /** * .protocol.Permission owner_permission = 31; * @return Whether the ownerPermission field is set. */ @java.lang.Override public boolean hasOwnerPermission() { return ((bitField0_ & 0x00000004) != 0); } /** * .protocol.Permission owner_permission = 31; * @return The ownerPermission. */ @java.lang.Override public org.tron.trident.proto.Common.Permission getOwnerPermission() { return ownerPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } /** * .protocol.Permission owner_permission = 31; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder() { return ownerPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } public static final int WITNESS_PERMISSION_FIELD_NUMBER = 32; private org.tron.trident.proto.Common.Permission witnessPermission_; /** * .protocol.Permission witness_permission = 32; * @return Whether the witnessPermission field is set. */ @java.lang.Override public boolean hasWitnessPermission() { return ((bitField0_ & 0x00000008) != 0); } /** * .protocol.Permission witness_permission = 32; * @return The witnessPermission. */ @java.lang.Override public org.tron.trident.proto.Common.Permission getWitnessPermission() { return witnessPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } /** * .protocol.Permission witness_permission = 32; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder() { return witnessPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } public static final int ACTIVE_PERMISSION_FIELD_NUMBER = 33; @SuppressWarnings("serial") private java.util.List activePermission_; /** * repeated .protocol.Permission active_permission = 33; */ @java.lang.Override public java.util.List getActivePermissionList() { return activePermission_; } /** * repeated .protocol.Permission active_permission = 33; */ @java.lang.Override public java.util.List getActivePermissionOrBuilderList() { return activePermission_; } /** * repeated .protocol.Permission active_permission = 33; */ @java.lang.Override public int getActivePermissionCount() { return activePermission_.size(); } /** * repeated .protocol.Permission active_permission = 33; */ @java.lang.Override public org.tron.trident.proto.Common.Permission getActivePermission(int index) { return activePermission_.get(index); } /** * repeated .protocol.Permission active_permission = 33; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index) { return activePermission_.get(index); } public static final int FROZENV2_FIELD_NUMBER = 34; @SuppressWarnings("serial") private java.util.List frozenV2_; /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ @java.lang.Override public java.util.List getFrozenV2List() { return frozenV2_; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ @java.lang.Override public java.util.List getFrozenV2OrBuilderList() { return frozenV2_; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ @java.lang.Override public int getFrozenV2Count() { return frozenV2_.size(); } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2 getFrozenV2(int index) { return frozenV2_.get(index); } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ @java.lang.Override public org.tron.trident.proto.Response.Account.FreezeV2OrBuilder getFrozenV2OrBuilder( int index) { return frozenV2_.get(index); } public static final int UNFROZENV2_FIELD_NUMBER = 35; @SuppressWarnings("serial") private java.util.List unfrozenV2_; /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ @java.lang.Override public java.util.List getUnfrozenV2List() { return unfrozenV2_; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ @java.lang.Override public java.util.List getUnfrozenV2OrBuilderList() { return unfrozenV2_; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ @java.lang.Override public int getUnfrozenV2Count() { return unfrozenV2_.size(); } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2 getUnfrozenV2(int index) { return unfrozenV2_.get(index); } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ @java.lang.Override public org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder getUnfrozenV2OrBuilder( int index) { return unfrozenV2_.get(index); } public static final int DELEGATED_FROZENV2_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER = 36; private long delegatedFrozenV2BalanceForBandwidth_ = 0L; /** * int64 delegated_frozenV2_balance_for_bandwidth = 36; * @return The delegatedFrozenV2BalanceForBandwidth. */ @java.lang.Override public long getDelegatedFrozenV2BalanceForBandwidth() { return delegatedFrozenV2BalanceForBandwidth_; } public static final int ACQUIRED_DELEGATED_FROZENV2_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER = 37; private long acquiredDelegatedFrozenV2BalanceForBandwidth_ = 0L; /** * int64 acquired_delegated_frozenV2_balance_for_bandwidth = 37; * @return The acquiredDelegatedFrozenV2BalanceForBandwidth. */ @java.lang.Override public long getAcquiredDelegatedFrozenV2BalanceForBandwidth() { return acquiredDelegatedFrozenV2BalanceForBandwidth_; } 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.tron.trident.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 (netWindowSize_ != 0L) { output.writeInt64(24, netWindowSize_); } if (netWindowOptimized_ != false) { output.writeBool(25, netWindowOptimized_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(26, getAccountResource()); } if (!codeHash_.isEmpty()) { output.writeBytes(30, codeHash_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(31, getOwnerPermission()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(32, getWitnessPermission()); } for (int i = 0; i < activePermission_.size(); i++) { output.writeMessage(33, activePermission_.get(i)); } for (int i = 0; i < frozenV2_.size(); i++) { output.writeMessage(34, frozenV2_.get(i)); } for (int i = 0; i < unfrozenV2_.size(); i++) { output.writeMessage(35, unfrozenV2_.get(i)); } if (delegatedFrozenV2BalanceForBandwidth_ != 0L) { output.writeInt64(36, delegatedFrozenV2BalanceForBandwidth_); } if (acquiredDelegatedFrozenV2BalanceForBandwidth_ != 0L) { output.writeInt64(37, acquiredDelegatedFrozenV2BalanceForBandwidth_); } if (acquiredDelegatedFrozenBalanceForBandwidth_ != 0L) { output.writeInt64(41, acquiredDelegatedFrozenBalanceForBandwidth_); } if (delegatedFrozenBalanceForBandwidth_ != 0L) { output.writeInt64(42, delegatedFrozenBalanceForBandwidth_); } if (oldTronPower_ != 0L) { output.writeInt64(46, oldTronPower_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(47, getTronPower()); } 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); if (assetOptimized_ != false) { output.writeBool(60, assetOptimized_); } getUnknownFields().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.tron.trident.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 (netWindowSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(24, netWindowSize_); } if (netWindowOptimized_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(25, netWindowOptimized_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, getAccountResource()); } if (!codeHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(30, codeHash_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getOwnerPermission()); } if (((bitField0_ & 0x00000008) != 0)) { 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)); } for (int i = 0; i < frozenV2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, frozenV2_.get(i)); } for (int i = 0; i < unfrozenV2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, unfrozenV2_.get(i)); } if (delegatedFrozenV2BalanceForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(36, delegatedFrozenV2BalanceForBandwidth_); } if (acquiredDelegatedFrozenV2BalanceForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(37, acquiredDelegatedFrozenV2BalanceForBandwidth_); } if (acquiredDelegatedFrozenBalanceForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(41, acquiredDelegatedFrozenBalanceForBandwidth_); } if (delegatedFrozenBalanceForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(42, delegatedFrozenBalanceForBandwidth_); } if (oldTronPower_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(46, oldTronPower_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, getTronPower()); } 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__); } if (assetOptimized_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(60, assetOptimized_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Account)) { return super.equals(obj); } org.tron.trident.proto.Response.Account other = (org.tron.trident.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 (getAcquiredDelegatedFrozenBalanceForBandwidth() != other.getAcquiredDelegatedFrozenBalanceForBandwidth()) return false; if (getDelegatedFrozenBalanceForBandwidth() != other.getDelegatedFrozenBalanceForBandwidth()) return false; if (getOldTronPower() != other.getOldTronPower()) return false; if (hasTronPower() != other.hasTronPower()) return false; if (hasTronPower()) { if (!getTronPower() .equals(other.getTronPower())) return false; } if (getAssetOptimized() != other.getAssetOptimized()) 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 (getNetWindowSize() != other.getNetWindowSize()) return false; if (getNetWindowOptimized() != other.getNetWindowOptimized()) 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 (!getFrozenV2List() .equals(other.getFrozenV2List())) return false; if (!getUnfrozenV2List() .equals(other.getUnfrozenV2List())) return false; if (getDelegatedFrozenV2BalanceForBandwidth() != other.getDelegatedFrozenV2BalanceForBandwidth()) return false; if (getAcquiredDelegatedFrozenV2BalanceForBandwidth() != other.getAcquiredDelegatedFrozenV2BalanceForBandwidth()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenBalanceForBandwidth()); hash = (37 * hash) + DELEGATED_FROZEN_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenBalanceForBandwidth()); hash = (37 * hash) + OLD_TRON_POWER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOldTronPower()); if (hasTronPower()) { hash = (37 * hash) + TRON_POWER_FIELD_NUMBER; hash = (53 * hash) + getTronPower().hashCode(); } hash = (37 * hash) + ASSET_OPTIMIZED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssetOptimized()); 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(); hash = (37 * hash) + NET_WINDOW_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetWindowSize()); hash = (37 * hash) + NET_WINDOW_OPTIMIZED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNetWindowOptimized()); 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(); } if (getFrozenV2Count() > 0) { hash = (37 * hash) + FROZENV2_FIELD_NUMBER; hash = (53 * hash) + getFrozenV2List().hashCode(); } if (getUnfrozenV2Count() > 0) { hash = (37 * hash) + UNFROZENV2_FIELD_NUMBER; hash = (53 * hash) + getUnfrozenV2List().hashCode(); } hash = (37 * hash) + DELEGATED_FROZENV2_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelegatedFrozenV2BalanceForBandwidth()); hash = (37 * hash) + ACQUIRED_DELEGATED_FROZENV2_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAcquiredDelegatedFrozenV2BalanceForBandwidth()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Account parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Account parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Account parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Account parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Account parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Account_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Account.class, org.tron.trident.proto.Response.Account.Builder.class); } // Construct using org.tron.trident.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(); getTronPowerFieldBuilder(); getFrozenSupplyFieldBuilder(); getAccountResourceFieldBuilder(); getOwnerPermissionFieldBuilder(); getWitnessPermissionFieldBuilder(); getActivePermissionFieldBuilder(); getFrozenV2FieldBuilder(); getUnfrozenV2FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; accountName_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; balance_ = 0L; if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); } else { votes_ = null; votesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAsset().clear(); internalGetMutableAssetV2().clear(); if (frozenBuilder_ == null) { frozen_ = java.util.Collections.emptyList(); } else { frozen_ = null; frozenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); netUsage_ = 0L; acquiredDelegatedFrozenBalanceForBandwidth_ = 0L; delegatedFrozenBalanceForBandwidth_ = 0L; oldTronPower_ = 0L; tronPower_ = null; if (tronPowerBuilder_ != null) { tronPowerBuilder_.dispose(); tronPowerBuilder_ = null; } assetOptimized_ = false; 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(); } else { frozenSupply_ = null; frozenSupplyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); 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; netWindowSize_ = 0L; netWindowOptimized_ = false; accountResource_ = null; if (accountResourceBuilder_ != null) { accountResourceBuilder_.dispose(); accountResourceBuilder_ = null; } codeHash_ = com.google.protobuf.ByteString.EMPTY; ownerPermission_ = null; if (ownerPermissionBuilder_ != null) { ownerPermissionBuilder_.dispose(); ownerPermissionBuilder_ = null; } witnessPermission_ = null; if (witnessPermissionBuilder_ != null) { witnessPermissionBuilder_.dispose(); witnessPermissionBuilder_ = null; } if (activePermissionBuilder_ == null) { activePermission_ = java.util.Collections.emptyList(); } else { activePermission_ = null; activePermissionBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000040); if (frozenV2Builder_ == null) { frozenV2_ = java.util.Collections.emptyList(); } else { frozenV2_ = null; frozenV2Builder_.clear(); } bitField1_ = (bitField1_ & ~0x00000080); if (unfrozenV2Builder_ == null) { unfrozenV2_ = java.util.Collections.emptyList(); } else { unfrozenV2_ = null; unfrozenV2Builder_.clear(); } bitField1_ = (bitField1_ & ~0x00000100); delegatedFrozenV2BalanceForBandwidth_ = 0L; acquiredDelegatedFrozenV2BalanceForBandwidth_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Account_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Account getDefaultInstanceForType() { return org.tron.trident.proto.Response.Account.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Account build() { org.tron.trident.proto.Response.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Account buildPartial() { org.tron.trident.proto.Response.Account result = new org.tron.trident.proto.Response.Account(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.Account result) { if (votesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); bitField0_ = (bitField0_ & ~0x00000010); } result.votes_ = votes_; } else { result.votes_ = votesBuilder_.build(); } if (frozenBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { frozen_ = java.util.Collections.unmodifiableList(frozen_); bitField0_ = (bitField0_ & ~0x00000080); } result.frozen_ = frozen_; } else { result.frozen_ = frozenBuilder_.build(); } if (frozenSupplyBuilder_ == null) { if (((bitField0_ & 0x00200000) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); bitField0_ = (bitField0_ & ~0x00200000); } result.frozenSupply_ = frozenSupply_; } else { result.frozenSupply_ = frozenSupplyBuilder_.build(); } if (activePermissionBuilder_ == null) { if (((bitField1_ & 0x00000040) != 0)) { activePermission_ = java.util.Collections.unmodifiableList(activePermission_); bitField1_ = (bitField1_ & ~0x00000040); } result.activePermission_ = activePermission_; } else { result.activePermission_ = activePermissionBuilder_.build(); } if (frozenV2Builder_ == null) { if (((bitField1_ & 0x00000080) != 0)) { frozenV2_ = java.util.Collections.unmodifiableList(frozenV2_); bitField1_ = (bitField1_ & ~0x00000080); } result.frozenV2_ = frozenV2_; } else { result.frozenV2_ = frozenV2Builder_.build(); } if (unfrozenV2Builder_ == null) { if (((bitField1_ & 0x00000100) != 0)) { unfrozenV2_ = java.util.Collections.unmodifiableList(unfrozenV2_); bitField1_ = (bitField1_ & ~0x00000100); } result.unfrozenV2_ = unfrozenV2_; } else { result.unfrozenV2_ = unfrozenV2Builder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.Account result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountName_ = accountName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.balance_ = balance_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.asset_ = internalGetAsset(); result.asset_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.assetV2_ = internalGetAssetV2(); result.assetV2_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.netUsage_ = netUsage_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.acquiredDelegatedFrozenBalanceForBandwidth_ = acquiredDelegatedFrozenBalanceForBandwidth_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.delegatedFrozenBalanceForBandwidth_ = delegatedFrozenBalanceForBandwidth_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.oldTronPower_ = oldTronPower_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { result.tronPower_ = tronPowerBuilder_ == null ? tronPower_ : tronPowerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00002000) != 0)) { result.assetOptimized_ = assetOptimized_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.createTime_ = createTime_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.latestOprationTime_ = latestOprationTime_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.allowance_ = allowance_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.latestWithdrawTime_ = latestWithdrawTime_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.isWitness_ = isWitness_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.isCommittee_ = isCommittee_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.assetIssuedName_ = assetIssuedName_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.assetIssuedID_ = assetIssuedID_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.latestAssetOperationTime_ = internalGetLatestAssetOperationTime(); result.latestAssetOperationTime_.makeImmutable(); } if (((from_bitField0_ & 0x02000000) != 0)) { result.latestAssetOperationTimeV2_ = internalGetLatestAssetOperationTimeV2(); result.latestAssetOperationTimeV2_.makeImmutable(); } if (((from_bitField0_ & 0x04000000) != 0)) { result.freeNetUsage_ = freeNetUsage_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.freeAssetNetUsage_ = internalGetFreeAssetNetUsage(); result.freeAssetNetUsage_.makeImmutable(); } if (((from_bitField0_ & 0x10000000) != 0)) { result.freeAssetNetUsageV2_ = internalGetFreeAssetNetUsageV2(); result.freeAssetNetUsageV2_.makeImmutable(); } if (((from_bitField0_ & 0x20000000) != 0)) { result.latestConsumeTime_ = latestConsumeTime_; } if (((from_bitField0_ & 0x40000000) != 0)) { result.latestConsumeFreeTime_ = latestConsumeFreeTime_; } if (((from_bitField0_ & 0x80000000) != 0)) { result.accountId_ = accountId_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(org.tron.trident.proto.Response.Account result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { result.netWindowSize_ = netWindowSize_; } if (((from_bitField1_ & 0x00000002) != 0)) { result.netWindowOptimized_ = netWindowOptimized_; } int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000004) != 0)) { result.accountResource_ = accountResourceBuilder_ == null ? accountResource_ : accountResourceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField1_ & 0x00000008) != 0)) { result.codeHash_ = codeHash_; } if (((from_bitField1_ & 0x00000010) != 0)) { result.ownerPermission_ = ownerPermissionBuilder_ == null ? ownerPermission_ : ownerPermissionBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField1_ & 0x00000020) != 0)) { result.witnessPermission_ = witnessPermissionBuilder_ == null ? witnessPermission_ : witnessPermissionBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField1_ & 0x00000200) != 0)) { result.delegatedFrozenV2BalanceForBandwidth_ = delegatedFrozenV2BalanceForBandwidth_; } if (((from_bitField1_ & 0x00000400) != 0)) { result.acquiredDelegatedFrozenV2BalanceForBandwidth_ = acquiredDelegatedFrozenV2BalanceForBandwidth_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.Account) { return mergeFrom((org.tron.trident.proto.Response.Account)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Account other) { if (other == org.tron.trident.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_ & ~0x00000010); } else { ensureVotesIsMutable(); votes_.addAll(other.votes_); } onChanged(); } } else { if (!other.votes_.isEmpty()) { if (votesBuilder_.isEmpty()) { votesBuilder_.dispose(); votesBuilder_ = null; votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000010); votesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotesFieldBuilder() : null; } else { votesBuilder_.addAllMessages(other.votes_); } } } internalGetMutableAsset().mergeFrom( other.internalGetAsset()); bitField0_ |= 0x00000020; internalGetMutableAssetV2().mergeFrom( other.internalGetAssetV2()); bitField0_ |= 0x00000040; if (frozenBuilder_ == null) { if (!other.frozen_.isEmpty()) { if (frozen_.isEmpty()) { frozen_ = other.frozen_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFrozenIsMutable(); frozen_.addAll(other.frozen_); } onChanged(); } } else { if (!other.frozen_.isEmpty()) { if (frozenBuilder_.isEmpty()) { frozenBuilder_.dispose(); frozenBuilder_ = null; frozen_ = other.frozen_; bitField0_ = (bitField0_ & ~0x00000080); frozenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenFieldBuilder() : null; } else { frozenBuilder_.addAllMessages(other.frozen_); } } } if (other.getNetUsage() != 0L) { setNetUsage(other.getNetUsage()); } if (other.getAcquiredDelegatedFrozenBalanceForBandwidth() != 0L) { setAcquiredDelegatedFrozenBalanceForBandwidth(other.getAcquiredDelegatedFrozenBalanceForBandwidth()); } if (other.getDelegatedFrozenBalanceForBandwidth() != 0L) { setDelegatedFrozenBalanceForBandwidth(other.getDelegatedFrozenBalanceForBandwidth()); } if (other.getOldTronPower() != 0L) { setOldTronPower(other.getOldTronPower()); } if (other.hasTronPower()) { mergeTronPower(other.getTronPower()); } if (other.getAssetOptimized() != false) { setAssetOptimized(other.getAssetOptimized()); } 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_ & ~0x00200000); } else { ensureFrozenSupplyIsMutable(); frozenSupply_.addAll(other.frozenSupply_); } onChanged(); } } else { if (!other.frozenSupply_.isEmpty()) { if (frozenSupplyBuilder_.isEmpty()) { frozenSupplyBuilder_.dispose(); frozenSupplyBuilder_ = null; frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00200000); 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()); bitField0_ |= 0x01000000; internalGetMutableLatestAssetOperationTimeV2().mergeFrom( other.internalGetLatestAssetOperationTimeV2()); bitField0_ |= 0x02000000; if (other.getFreeNetUsage() != 0L) { setFreeNetUsage(other.getFreeNetUsage()); } internalGetMutableFreeAssetNetUsage().mergeFrom( other.internalGetFreeAssetNetUsage()); bitField0_ |= 0x08000000; internalGetMutableFreeAssetNetUsageV2().mergeFrom( other.internalGetFreeAssetNetUsageV2()); bitField0_ |= 0x10000000; 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.getNetWindowSize() != 0L) { setNetWindowSize(other.getNetWindowSize()); } if (other.getNetWindowOptimized() != false) { setNetWindowOptimized(other.getNetWindowOptimized()); } 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_; bitField1_ = (bitField1_ & ~0x00000040); } else { ensureActivePermissionIsMutable(); activePermission_.addAll(other.activePermission_); } onChanged(); } } else { if (!other.activePermission_.isEmpty()) { if (activePermissionBuilder_.isEmpty()) { activePermissionBuilder_.dispose(); activePermissionBuilder_ = null; activePermission_ = other.activePermission_; bitField1_ = (bitField1_ & ~0x00000040); activePermissionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActivePermissionFieldBuilder() : null; } else { activePermissionBuilder_.addAllMessages(other.activePermission_); } } } if (frozenV2Builder_ == null) { if (!other.frozenV2_.isEmpty()) { if (frozenV2_.isEmpty()) { frozenV2_ = other.frozenV2_; bitField1_ = (bitField1_ & ~0x00000080); } else { ensureFrozenV2IsMutable(); frozenV2_.addAll(other.frozenV2_); } onChanged(); } } else { if (!other.frozenV2_.isEmpty()) { if (frozenV2Builder_.isEmpty()) { frozenV2Builder_.dispose(); frozenV2Builder_ = null; frozenV2_ = other.frozenV2_; bitField1_ = (bitField1_ & ~0x00000080); frozenV2Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenV2FieldBuilder() : null; } else { frozenV2Builder_.addAllMessages(other.frozenV2_); } } } if (unfrozenV2Builder_ == null) { if (!other.unfrozenV2_.isEmpty()) { if (unfrozenV2_.isEmpty()) { unfrozenV2_ = other.unfrozenV2_; bitField1_ = (bitField1_ & ~0x00000100); } else { ensureUnfrozenV2IsMutable(); unfrozenV2_.addAll(other.unfrozenV2_); } onChanged(); } } else { if (!other.unfrozenV2_.isEmpty()) { if (unfrozenV2Builder_.isEmpty()) { unfrozenV2Builder_.dispose(); unfrozenV2Builder_ = null; unfrozenV2_ = other.unfrozenV2_; bitField1_ = (bitField1_ & ~0x00000100); unfrozenV2Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUnfrozenV2FieldBuilder() : null; } else { unfrozenV2Builder_.addAllMessages(other.unfrozenV2_); } } } if (other.getDelegatedFrozenV2BalanceForBandwidth() != 0L) { setDelegatedFrozenV2BalanceForBandwidth(other.getDelegatedFrozenV2BalanceForBandwidth()); } if (other.getAcquiredDelegatedFrozenV2BalanceForBandwidth() != 0L) { setAcquiredDelegatedFrozenV2BalanceForBandwidth(other.getAcquiredDelegatedFrozenV2BalanceForBandwidth()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { accountName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { address_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { balance_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { org.tron.trident.proto.Common.Vote m = input.readMessage( org.tron.trident.proto.Common.Vote.parser(), extensionRegistry); if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(m); } else { votesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.google.protobuf.MapEntry asset__ = input.readMessage( AssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAsset().getMutableMap().put( asset__.getKey(), asset__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { org.tron.trident.proto.Response.Account.Frozen m = input.readMessage( org.tron.trident.proto.Response.Account.Frozen.parser(), extensionRegistry); if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.add(m); } else { frozenBuilder_.addMessage(m); } break; } // case 58 case 64: { netUsage_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 64 case 72: { createTime_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 72 case 80: { latestOprationTime_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 80 case 88: { allowance_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 88 case 96: { latestWithdrawTime_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 96 case 106: { code_ = input.readBytes(); bitField0_ |= 0x00040000; break; } // case 106 case 112: { isWitness_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 112 case 120: { isCommittee_ = input.readBool(); bitField0_ |= 0x00100000; break; } // case 120 case 130: { org.tron.trident.proto.Response.Account.Frozen m = input.readMessage( org.tron.trident.proto.Response.Account.Frozen.parser(), extensionRegistry); if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(m); } else { frozenSupplyBuilder_.addMessage(m); } break; } // case 130 case 138: { assetIssuedName_ = input.readBytes(); bitField0_ |= 0x00400000; break; } // case 138 case 146: { com.google.protobuf.MapEntry latestAssetOperationTime__ = input.readMessage( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLatestAssetOperationTime().getMutableMap().put( latestAssetOperationTime__.getKey(), latestAssetOperationTime__.getValue()); bitField0_ |= 0x01000000; break; } // case 146 case 152: { freeNetUsage_ = input.readInt64(); bitField0_ |= 0x04000000; break; } // case 152 case 162: { com.google.protobuf.MapEntry freeAssetNetUsage__ = input.readMessage( FreeAssetNetUsageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFreeAssetNetUsage().getMutableMap().put( freeAssetNetUsage__.getKey(), freeAssetNetUsage__.getValue()); bitField0_ |= 0x08000000; break; } // case 162 case 168: { latestConsumeTime_ = input.readInt64(); bitField0_ |= 0x20000000; break; } // case 168 case 176: { latestConsumeFreeTime_ = input.readInt64(); bitField0_ |= 0x40000000; break; } // case 176 case 186: { accountId_ = input.readBytes(); bitField0_ |= 0x80000000; break; } // case 186 case 192: { netWindowSize_ = input.readInt64(); bitField1_ |= 0x00000001; break; } // case 192 case 200: { netWindowOptimized_ = input.readBool(); bitField1_ |= 0x00000002; break; } // case 200 case 210: { input.readMessage( getAccountResourceFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000004; break; } // case 210 case 242: { codeHash_ = input.readBytes(); bitField1_ |= 0x00000008; break; } // case 242 case 250: { input.readMessage( getOwnerPermissionFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000010; break; } // case 250 case 258: { input.readMessage( getWitnessPermissionFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000020; break; } // case 258 case 266: { org.tron.trident.proto.Common.Permission m = input.readMessage( org.tron.trident.proto.Common.Permission.parser(), extensionRegistry); if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.add(m); } else { activePermissionBuilder_.addMessage(m); } break; } // case 266 case 274: { org.tron.trident.proto.Response.Account.FreezeV2 m = input.readMessage( org.tron.trident.proto.Response.Account.FreezeV2.parser(), extensionRegistry); if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); frozenV2_.add(m); } else { frozenV2Builder_.addMessage(m); } break; } // case 274 case 282: { org.tron.trident.proto.Response.Account.UnFreezeV2 m = input.readMessage( org.tron.trident.proto.Response.Account.UnFreezeV2.parser(), extensionRegistry); if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); unfrozenV2_.add(m); } else { unfrozenV2Builder_.addMessage(m); } break; } // case 282 case 288: { delegatedFrozenV2BalanceForBandwidth_ = input.readInt64(); bitField1_ |= 0x00000200; break; } // case 288 case 296: { acquiredDelegatedFrozenV2BalanceForBandwidth_ = input.readInt64(); bitField1_ |= 0x00000400; break; } // case 296 case 328: { acquiredDelegatedFrozenBalanceForBandwidth_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 328 case 336: { delegatedFrozenBalanceForBandwidth_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 336 case 368: { oldTronPower_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 368 case 378: { input.readMessage( getTronPowerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 378 case 450: { com.google.protobuf.MapEntry assetV2__ = input.readMessage( AssetV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAssetV2().getMutableMap().put( assetV2__.getKey(), assetV2__.getValue()); bitField0_ |= 0x00000040; break; } // case 450 case 458: { assetIssuedID_ = input.readBytes(); bitField0_ |= 0x00800000; break; } // case 458 case 466: { com.google.protobuf.MapEntry latestAssetOperationTimeV2__ = input.readMessage( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLatestAssetOperationTimeV2().getMutableMap().put( latestAssetOperationTimeV2__.getKey(), latestAssetOperationTimeV2__.getValue()); bitField0_ |= 0x02000000; break; } // case 466 case 474: { com.google.protobuf.MapEntry freeAssetNetUsageV2__ = input.readMessage( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFreeAssetNetUsageV2().getMutableMap().put( freeAssetNetUsageV2__.getKey(), freeAssetNetUsageV2__.getValue()); bitField0_ |= 0x10000000; break; } // case 474 case 480: { assetOptimized_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 480 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int bitField1_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * account nick name
       * 
* * bytes account_name = 1; * @return This builder for chaining. */ public Builder clearAccountName() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.AccountType type = 2; * @return The type. */ @java.lang.Override public org.tron.trident.proto.Common.AccountType getType() { org.tron.trident.proto.Common.AccountType result = org.tron.trident.proto.Common.AccountType.forNumber(type_); return result == null ? org.tron.trident.proto.Common.AccountType.UNRECOGNIZED : result; } /** * .protocol.AccountType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.tron.trident.proto.Common.AccountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * .protocol.AccountType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the create address
       * 
* * bytes address = 3; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000004); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private long balance_ ; /** *
       * the trx balance
       * 
* * int64 balance = 4; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** *
       * the trx balance
       * 
* * int64 balance = 4; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * the trx balance
       * 
* * int64 balance = 4; * @return This builder for chaining. */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000008); balance_ = 0L; onChanged(); return this; } private java.util.List votes_ = java.util.Collections.emptyList(); private void ensureVotesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { votes_ = new java.util.ArrayList(votes_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Vote, org.tron.trident.proto.Common.Vote.Builder, org.tron.trident.proto.Common.VoteOrBuilder> votesBuilder_; /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ 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; */ public int getVotesCount() { if (votesBuilder_ == null) { return votes_.size(); } else { return votesBuilder_.getCount(); } } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ public org.tron.trident.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; */ public Builder setVotes( int index, org.tron.trident.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; */ public Builder setVotes( int index, org.tron.trident.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; */ public Builder addVotes(org.tron.trident.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; */ public Builder addVotes( int index, org.tron.trident.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; */ public Builder addVotes( org.tron.trident.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; */ public Builder addVotes( int index, org.tron.trident.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; */ 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; */ public Builder clearVotes() { if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { votesBuilder_.clear(); } return this; } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ 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; */ public org.tron.trident.proto.Common.Vote.Builder getVotesBuilder( int index) { return getVotesFieldBuilder().getBuilder(index); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ public org.tron.trident.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; */ 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; */ public org.tron.trident.proto.Common.Vote.Builder addVotesBuilder() { return getVotesFieldBuilder().addBuilder( org.tron.trident.proto.Common.Vote.getDefaultInstance()); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ public org.tron.trident.proto.Common.Vote.Builder addVotesBuilder( int index) { return getVotesFieldBuilder().addBuilder( index, org.tron.trident.proto.Common.Vote.getDefaultInstance()); } /** *
       * the votes
       * 
* * repeated .protocol.Vote votes = 5; */ public java.util.List getVotesBuilderList() { return getVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Vote, org.tron.trident.proto.Common.Vote.Builder, org.tron.trident.proto.Common.VoteOrBuilder> getVotesFieldBuilder() { if (votesBuilder_ == null) { votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Vote, org.tron.trident.proto.Common.Vote.Builder, org.tron.trident.proto.Common.VoteOrBuilder>( votes_, ((bitField0_ & 0x00000010) != 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() { if (asset_ == null) { asset_ = com.google.protobuf.MapField.newMapField( AssetDefaultEntryHolder.defaultEntry); } if (!asset_.isMutable()) { asset_ = asset_.copy(); } bitField0_ |= 0x00000020; onChanged(); return asset_; } public int getAssetCount() { return internalGetAsset().getMap().size(); } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ @java.lang.Override public boolean containsAsset( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsset().getMap().containsKey(key); } /** * Use {@link #getAssetMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAsset() { return getAssetMap(); } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ @java.lang.Override public java.util.Map getAssetMap() { return internalGetAsset().getMap(); } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ @java.lang.Override public long getAssetOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAsset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ @java.lang.Override public long getAssetOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAsset().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAsset() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableAsset().getMutableMap() .clear(); return this; } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ public Builder removeAsset( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsset().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAsset() { bitField0_ |= 0x00000020; return internalGetMutableAsset().getMutableMap(); } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ public Builder putAsset( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsset().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** *
       * the other asset owned by this account
       * 
* * map<string, int64> asset = 6; */ public Builder putAllAsset( java.util.Map values) { internalGetMutableAsset().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; 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() { if (assetV2_ == null) { assetV2_ = com.google.protobuf.MapField.newMapField( AssetV2DefaultEntryHolder.defaultEntry); } if (!assetV2_.isMutable()) { assetV2_ = assetV2_.copy(); } bitField0_ |= 0x00000040; onChanged(); return assetV2_; } public int getAssetV2Count() { return internalGetAssetV2().getMap().size(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; */ @java.lang.Override public boolean containsAssetV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAssetV2().getMap().containsKey(key); } /** * Use {@link #getAssetV2Map()} instead. */ @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; */ @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; */ @java.lang.Override public long getAssetV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public long getAssetV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAssetV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetV2() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableAssetV2().getMutableMap() .clear(); return this; } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; */ public Builder removeAssetV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetV2().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetV2() { bitField0_ |= 0x00000040; return internalGetMutableAssetV2().getMutableMap(); } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; */ public Builder putAssetV2( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetV2().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** *
       * the other asset owned by this account,key is assetId
       * 
* * map<string, int64> assetV2 = 56; */ public Builder putAllAssetV2( java.util.Map values) { internalGetMutableAssetV2().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; return this; } private java.util.List frozen_ = java.util.Collections.emptyList(); private void ensureFrozenIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { frozen_ = new java.util.ArrayList(frozen_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> frozenBuilder_; /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public java.util.List getFrozenList() { if (frozenBuilder_ == null) { return java.util.Collections.unmodifiableList(frozen_); } else { return frozenBuilder_.getMessageList(); } } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public int getFrozenCount() { if (frozenBuilder_ == null) { return frozen_.size(); } else { return frozenBuilder_.getCount(); } } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public org.tron.trident.proto.Response.Account.Frozen getFrozen(int index) { if (frozenBuilder_ == null) { return frozen_.get(index); } else { return frozenBuilder_.getMessage(index); } } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder setFrozen( int index, org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder setFrozen( int index, org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder addFrozen(org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder addFrozen( int index, org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder addFrozen( org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder addFrozen( int index, org.tron.trident.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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ 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 bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder clearFrozen() { if (frozenBuilder_ == null) { frozen_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { frozenBuilder_.clear(); } return this; } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public Builder removeFrozen(int index) { if (frozenBuilder_ == null) { ensureFrozenIsMutable(); frozen_.remove(index); onChanged(); } else { frozenBuilder_.remove(index); } return this; } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public org.tron.trident.proto.Response.Account.Frozen.Builder getFrozenBuilder( int index) { return getFrozenFieldBuilder().getBuilder(index); } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder( int index) { if (frozenBuilder_ == null) { return frozen_.get(index); } else { return frozenBuilder_.getMessageOrBuilder(index); } } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public java.util.List getFrozenOrBuilderList() { if (frozenBuilder_ != null) { return frozenBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frozen_); } } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public org.tron.trident.proto.Response.Account.Frozen.Builder addFrozenBuilder() { return getFrozenFieldBuilder().addBuilder( org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public org.tron.trident.proto.Response.Account.Frozen.Builder addFrozenBuilder( int index) { return getFrozenFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * the frozen balance for bandwidth
       * 
* * repeated .protocol.Account.Frozen frozen = 7; */ public java.util.List getFrozenBuilderList() { return getFrozenFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> getFrozenFieldBuilder() { if (frozenBuilder_ == null) { frozenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder>( frozen_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); frozen_ = null; } return frozenBuilder_; } private long netUsage_ ; /** *
       * bandwidth, get from frozen
       * 
* * int64 net_usage = 8; * @return The netUsage. */ @java.lang.Override public long getNetUsage() { return netUsage_; } /** *
       * bandwidth, 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * bandwidth, get from frozen
       * 
* * int64 net_usage = 8; * @return This builder for chaining. */ public Builder clearNetUsage() { bitField0_ = (bitField0_ & ~0x00000100); netUsage_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenBalanceForBandwidth_ ; /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_bandwidth = 41; * @return The acquiredDelegatedFrozenBalanceForBandwidth. */ @java.lang.Override public long getAcquiredDelegatedFrozenBalanceForBandwidth() { return acquiredDelegatedFrozenBalanceForBandwidth_; } /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_bandwidth = 41; * @param value The acquiredDelegatedFrozenBalanceForBandwidth to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenBalanceForBandwidth(long value) { acquiredDelegatedFrozenBalanceForBandwidth_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Frozen balance provided by other accounts to this account
       * 
* * int64 acquired_delegated_frozen_balance_for_bandwidth = 41; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenBalanceForBandwidth() { bitField0_ = (bitField0_ & ~0x00000200); acquiredDelegatedFrozenBalanceForBandwidth_ = 0L; onChanged(); return this; } private long delegatedFrozenBalanceForBandwidth_ ; /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_bandwidth = 42; * @return The delegatedFrozenBalanceForBandwidth. */ @java.lang.Override public long getDelegatedFrozenBalanceForBandwidth() { return delegatedFrozenBalanceForBandwidth_; } /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_bandwidth = 42; * @param value The delegatedFrozenBalanceForBandwidth to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenBalanceForBandwidth(long value) { delegatedFrozenBalanceForBandwidth_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Freeze and provide balances to other accounts
       * 
* * int64 delegated_frozen_balance_for_bandwidth = 42; * @return This builder for chaining. */ public Builder clearDelegatedFrozenBalanceForBandwidth() { bitField0_ = (bitField0_ & ~0x00000400); delegatedFrozenBalanceForBandwidth_ = 0L; onChanged(); return this; } private long oldTronPower_ ; /** * int64 old_tron_power = 46; * @return The oldTronPower. */ @java.lang.Override public long getOldTronPower() { return oldTronPower_; } /** * int64 old_tron_power = 46; * @param value The oldTronPower to set. * @return This builder for chaining. */ public Builder setOldTronPower(long value) { oldTronPower_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * int64 old_tron_power = 46; * @return This builder for chaining. */ public Builder clearOldTronPower() { bitField0_ = (bitField0_ & ~0x00000800); oldTronPower_ = 0L; onChanged(); return this; } private org.tron.trident.proto.Response.Account.Frozen tronPower_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> tronPowerBuilder_; /** * .protocol.Account.Frozen tron_power = 47; * @return Whether the tronPower field is set. */ public boolean hasTronPower() { return ((bitField0_ & 0x00001000) != 0); } /** * .protocol.Account.Frozen tron_power = 47; * @return The tronPower. */ public org.tron.trident.proto.Response.Account.Frozen getTronPower() { if (tronPowerBuilder_ == null) { return tronPower_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : tronPower_; } else { return tronPowerBuilder_.getMessage(); } } /** * .protocol.Account.Frozen tron_power = 47; */ public Builder setTronPower(org.tron.trident.proto.Response.Account.Frozen value) { if (tronPowerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tronPower_ = value; } else { tronPowerBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * .protocol.Account.Frozen tron_power = 47; */ public Builder setTronPower( org.tron.trident.proto.Response.Account.Frozen.Builder builderForValue) { if (tronPowerBuilder_ == null) { tronPower_ = builderForValue.build(); } else { tronPowerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * .protocol.Account.Frozen tron_power = 47; */ public Builder mergeTronPower(org.tron.trident.proto.Response.Account.Frozen value) { if (tronPowerBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && tronPower_ != null && tronPower_ != org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()) { getTronPowerBuilder().mergeFrom(value); } else { tronPower_ = value; } } else { tronPowerBuilder_.mergeFrom(value); } if (tronPower_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * .protocol.Account.Frozen tron_power = 47; */ public Builder clearTronPower() { bitField0_ = (bitField0_ & ~0x00001000); tronPower_ = null; if (tronPowerBuilder_ != null) { tronPowerBuilder_.dispose(); tronPowerBuilder_ = null; } onChanged(); return this; } /** * .protocol.Account.Frozen tron_power = 47; */ public org.tron.trident.proto.Response.Account.Frozen.Builder getTronPowerBuilder() { bitField0_ |= 0x00001000; onChanged(); return getTronPowerFieldBuilder().getBuilder(); } /** * .protocol.Account.Frozen tron_power = 47; */ public org.tron.trident.proto.Response.Account.FrozenOrBuilder getTronPowerOrBuilder() { if (tronPowerBuilder_ != null) { return tronPowerBuilder_.getMessageOrBuilder(); } else { return tronPower_ == null ? org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance() : tronPower_; } } /** * .protocol.Account.Frozen tron_power = 47; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> getTronPowerFieldBuilder() { if (tronPowerBuilder_ == null) { tronPowerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder>( getTronPower(), getParentForChildren(), isClean()); tronPower_ = null; } return tronPowerBuilder_; } private boolean assetOptimized_ ; /** * bool asset_optimized = 60; * @return The assetOptimized. */ @java.lang.Override public boolean getAssetOptimized() { return assetOptimized_; } /** * bool asset_optimized = 60; * @param value The assetOptimized to set. * @return This builder for chaining. */ public Builder setAssetOptimized(boolean value) { assetOptimized_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * bool asset_optimized = 60; * @return This builder for chaining. */ public Builder clearAssetOptimized() { bitField0_ = (bitField0_ & ~0x00002000); assetOptimized_ = false; 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; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * this account create time
       * 
* * int64 create_time = 9; * @return This builder for chaining. */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00004000); 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; bitField0_ |= 0x00008000; 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() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * witness block producing allowance
       * 
* * int64 allowance = 11; * @return This builder for chaining. */ public Builder clearAllowance() { bitField0_ = (bitField0_ & ~0x00010000); 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; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
       * last withdraw time
       * 
* * int64 latest_withdraw_time = 12; * @return This builder for chaining. */ public Builder clearLatestWithdrawTime() { bitField0_ = (bitField0_ & ~0x00020000); 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; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
       * not used so far
       * 
* * bytes code = 13; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00040000); 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; bitField0_ |= 0x00080000; onChanged(); return this; } /** * bool is_witness = 14; * @return This builder for chaining. */ public Builder clearIsWitness() { bitField0_ = (bitField0_ & ~0x00080000); 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; bitField0_ |= 0x00100000; onChanged(); return this; } /** * bool is_committee = 15; * @return This builder for chaining. */ public Builder clearIsCommittee() { bitField0_ = (bitField0_ & ~0x00100000); isCommittee_ = false; onChanged(); return this; } private java.util.List frozenSupply_ = java.util.Collections.emptyList(); private void ensureFrozenSupplyIsMutable() { if (!((bitField0_ & 0x00200000) != 0)) { frozenSupply_ = new java.util.ArrayList(frozenSupply_); bitField0_ |= 0x00200000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> frozenSupplyBuilder_; /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ 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; */ 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; */ public org.tron.trident.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; */ public Builder setFrozenSupply( int index, org.tron.trident.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; */ public Builder setFrozenSupply( int index, org.tron.trident.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; */ public Builder addFrozenSupply(org.tron.trident.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; */ public Builder addFrozenSupply( int index, org.tron.trident.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; */ public Builder addFrozenSupply( org.tron.trident.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; */ public Builder addFrozenSupply( int index, org.tron.trident.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; */ 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; */ public Builder clearFrozenSupply() { if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); } else { frozenSupplyBuilder_.clear(); } return this; } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ 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; */ public org.tron.trident.proto.Response.Account.Frozen.Builder getFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().getBuilder(index); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ public org.tron.trident.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; */ 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; */ public org.tron.trident.proto.Response.Account.Frozen.Builder addFrozenSupplyBuilder() { return getFrozenSupplyFieldBuilder().addBuilder( org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ public org.tron.trident.proto.Response.Account.Frozen.Builder addFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Account.Frozen.getDefaultInstance()); } /** *
       * frozen asset(for asset issuer)
       * 
* * repeated .protocol.Account.Frozen frozen_supply = 16; */ public java.util.List getFrozenSupplyBuilderList() { return getFrozenSupplyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder> getFrozenSupplyFieldBuilder() { if (frozenSupplyBuilder_ == null) { frozenSupplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.Frozen, org.tron.trident.proto.Response.Account.Frozen.Builder, org.tron.trident.proto.Response.Account.FrozenOrBuilder>( frozenSupply_, ((bitField0_ & 0x00200000) != 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; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
       * asset_issued_name
       * 
* * bytes asset_issued_name = 17; * @return This builder for chaining. */ public Builder clearAssetIssuedName() { bitField0_ = (bitField0_ & ~0x00400000); 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; bitField0_ |= 0x00800000; onChanged(); return this; } /** * bytes asset_issued_ID = 57; * @return This builder for chaining. */ public Builder clearAssetIssuedID() { bitField0_ = (bitField0_ & ~0x00800000); 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() { if (latestAssetOperationTime_ == null) { latestAssetOperationTime_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeDefaultEntryHolder.defaultEntry); } if (!latestAssetOperationTime_.isMutable()) { latestAssetOperationTime_ = latestAssetOperationTime_.copy(); } bitField0_ |= 0x01000000; onChanged(); return latestAssetOperationTime_; } public int getLatestAssetOperationTimeCount() { return internalGetLatestAssetOperationTime().getMap().size(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public boolean containsLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLatestAssetOperationTime().getMap().containsKey(key); } /** * Use {@link #getLatestAssetOperationTimeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTime() { return getLatestAssetOperationTimeMap(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public java.util.Map getLatestAssetOperationTimeMap() { return internalGetLatestAssetOperationTime().getMap(); } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public long getLatestAssetOperationTimeOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> latest_asset_operation_time = 18; */ @java.lang.Override public long getLatestAssetOperationTimeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTime().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLatestAssetOperationTime() { bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableLatestAssetOperationTime().getMutableMap() .clear(); return this; } /** * map<string, int64> latest_asset_operation_time = 18; */ public Builder removeLatestAssetOperationTime( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLatestAssetOperationTime().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLatestAssetOperationTime() { bitField0_ |= 0x01000000; return internalGetMutableLatestAssetOperationTime().getMutableMap(); } /** * map<string, int64> latest_asset_operation_time = 18; */ public Builder putLatestAssetOperationTime( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLatestAssetOperationTime().getMutableMap() .put(key, value); bitField0_ |= 0x01000000; return this; } /** * map<string, int64> latest_asset_operation_time = 18; */ public Builder putAllLatestAssetOperationTime( java.util.Map values) { internalGetMutableLatestAssetOperationTime().getMutableMap() .putAll(values); bitField0_ |= 0x01000000; 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() { if (latestAssetOperationTimeV2_ == null) { latestAssetOperationTimeV2_ = com.google.protobuf.MapField.newMapField( LatestAssetOperationTimeV2DefaultEntryHolder.defaultEntry); } if (!latestAssetOperationTimeV2_.isMutable()) { latestAssetOperationTimeV2_ = latestAssetOperationTimeV2_.copy(); } bitField0_ |= 0x02000000; onChanged(); return latestAssetOperationTimeV2_; } public int getLatestAssetOperationTimeV2Count() { return internalGetLatestAssetOperationTimeV2().getMap().size(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public boolean containsLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLatestAssetOperationTimeV2().getMap().containsKey(key); } /** * Use {@link #getLatestAssetOperationTimeV2Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLatestAssetOperationTimeV2() { return getLatestAssetOperationTimeV2Map(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public java.util.Map getLatestAssetOperationTimeV2Map() { return internalGetLatestAssetOperationTimeV2().getMap(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public long getLatestAssetOperationTimeV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ @java.lang.Override public long getLatestAssetOperationTimeV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLatestAssetOperationTimeV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLatestAssetOperationTimeV2() { bitField0_ = (bitField0_ & ~0x02000000); internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .clear(); return this; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ public Builder removeLatestAssetOperationTimeV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLatestAssetOperationTimeV2() { bitField0_ |= 0x02000000; return internalGetMutableLatestAssetOperationTimeV2().getMutableMap(); } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ public Builder putLatestAssetOperationTimeV2( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .put(key, value); bitField0_ |= 0x02000000; return this; } /** * map<string, int64> latest_asset_operation_timeV2 = 58; */ public Builder putAllLatestAssetOperationTimeV2( java.util.Map values) { internalGetMutableLatestAssetOperationTimeV2().getMutableMap() .putAll(values); bitField0_ |= 0x02000000; 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; bitField0_ |= 0x04000000; onChanged(); return this; } /** * int64 free_net_usage = 19; * @return This builder for chaining. */ public Builder clearFreeNetUsage() { bitField0_ = (bitField0_ & ~0x04000000); 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() { if (freeAssetNetUsage_ == null) { freeAssetNetUsage_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageDefaultEntryHolder.defaultEntry); } if (!freeAssetNetUsage_.isMutable()) { freeAssetNetUsage_ = freeAssetNetUsage_.copy(); } bitField0_ |= 0x08000000; onChanged(); return freeAssetNetUsage_; } public int getFreeAssetNetUsageCount() { return internalGetFreeAssetNetUsage().getMap().size(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public boolean containsFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFreeAssetNetUsage().getMap().containsKey(key); } /** * Use {@link #getFreeAssetNetUsageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsage() { return getFreeAssetNetUsageMap(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public java.util.Map getFreeAssetNetUsageMap() { return internalGetFreeAssetNetUsage().getMap(); } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public long getFreeAssetNetUsageOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> free_asset_net_usage = 20; */ @java.lang.Override public long getFreeAssetNetUsageOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsage().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFreeAssetNetUsage() { bitField0_ = (bitField0_ & ~0x08000000); internalGetMutableFreeAssetNetUsage().getMutableMap() .clear(); return this; } /** * map<string, int64> free_asset_net_usage = 20; */ public Builder removeFreeAssetNetUsage( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFreeAssetNetUsage().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFreeAssetNetUsage() { bitField0_ |= 0x08000000; return internalGetMutableFreeAssetNetUsage().getMutableMap(); } /** * map<string, int64> free_asset_net_usage = 20; */ public Builder putFreeAssetNetUsage( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFreeAssetNetUsage().getMutableMap() .put(key, value); bitField0_ |= 0x08000000; return this; } /** * map<string, int64> free_asset_net_usage = 20; */ public Builder putAllFreeAssetNetUsage( java.util.Map values) { internalGetMutableFreeAssetNetUsage().getMutableMap() .putAll(values); bitField0_ |= 0x08000000; 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() { if (freeAssetNetUsageV2_ == null) { freeAssetNetUsageV2_ = com.google.protobuf.MapField.newMapField( FreeAssetNetUsageV2DefaultEntryHolder.defaultEntry); } if (!freeAssetNetUsageV2_.isMutable()) { freeAssetNetUsageV2_ = freeAssetNetUsageV2_.copy(); } bitField0_ |= 0x10000000; onChanged(); return freeAssetNetUsageV2_; } public int getFreeAssetNetUsageV2Count() { return internalGetFreeAssetNetUsageV2().getMap().size(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public boolean containsFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFreeAssetNetUsageV2().getMap().containsKey(key); } /** * Use {@link #getFreeAssetNetUsageV2Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFreeAssetNetUsageV2() { return getFreeAssetNetUsageV2Map(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public java.util.Map getFreeAssetNetUsageV2Map() { return internalGetFreeAssetNetUsageV2().getMap(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public long getFreeAssetNetUsageV2OrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int64> free_asset_net_usageV2 = 59; */ @java.lang.Override public long getFreeAssetNetUsageV2OrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFreeAssetNetUsageV2().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFreeAssetNetUsageV2() { bitField0_ = (bitField0_ & ~0x10000000); internalGetMutableFreeAssetNetUsageV2().getMutableMap() .clear(); return this; } /** * map<string, int64> free_asset_net_usageV2 = 59; */ public Builder removeFreeAssetNetUsageV2( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFreeAssetNetUsageV2().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFreeAssetNetUsageV2() { bitField0_ |= 0x10000000; return internalGetMutableFreeAssetNetUsageV2().getMutableMap(); } /** * map<string, int64> free_asset_net_usageV2 = 59; */ public Builder putFreeAssetNetUsageV2( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFreeAssetNetUsageV2().getMutableMap() .put(key, value); bitField0_ |= 0x10000000; return this; } /** * map<string, int64> free_asset_net_usageV2 = 59; */ public Builder putAllFreeAssetNetUsageV2( java.util.Map values) { internalGetMutableFreeAssetNetUsageV2().getMutableMap() .putAll(values); bitField0_ |= 0x10000000; 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; bitField0_ |= 0x20000000; onChanged(); return this; } /** * int64 latest_consume_time = 21; * @return This builder for chaining. */ public Builder clearLatestConsumeTime() { bitField0_ = (bitField0_ & ~0x20000000); 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; bitField0_ |= 0x40000000; onChanged(); return this; } /** * int64 latest_consume_free_time = 22; * @return This builder for chaining. */ public Builder clearLatestConsumeFreeTime() { bitField0_ = (bitField0_ & ~0x40000000); 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; bitField0_ |= 0x80000000; onChanged(); return this; } /** *
       * the identity of this account, case insensitive
       * 
* * bytes account_id = 23; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x80000000); accountId_ = getDefaultInstance().getAccountId(); onChanged(); return this; } private long netWindowSize_ ; /** * int64 net_window_size = 24; * @return The netWindowSize. */ @java.lang.Override public long getNetWindowSize() { return netWindowSize_; } /** * int64 net_window_size = 24; * @param value The netWindowSize to set. * @return This builder for chaining. */ public Builder setNetWindowSize(long value) { netWindowSize_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } /** * int64 net_window_size = 24; * @return This builder for chaining. */ public Builder clearNetWindowSize() { bitField1_ = (bitField1_ & ~0x00000001); netWindowSize_ = 0L; onChanged(); return this; } private boolean netWindowOptimized_ ; /** * bool net_window_optimized = 25; * @return The netWindowOptimized. */ @java.lang.Override public boolean getNetWindowOptimized() { return netWindowOptimized_; } /** * bool net_window_optimized = 25; * @param value The netWindowOptimized to set. * @return This builder for chaining. */ public Builder setNetWindowOptimized(boolean value) { netWindowOptimized_ = value; bitField1_ |= 0x00000002; onChanged(); return this; } /** * bool net_window_optimized = 25; * @return This builder for chaining. */ public Builder clearNetWindowOptimized() { bitField1_ = (bitField1_ & ~0x00000002); netWindowOptimized_ = false; onChanged(); return this; } private org.tron.trident.proto.Response.Account.AccountResource accountResource_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.AccountResource, org.tron.trident.proto.Response.Account.AccountResource.Builder, org.tron.trident.proto.Response.Account.AccountResourceOrBuilder> accountResourceBuilder_; /** * .protocol.Account.AccountResource account_resource = 26; * @return Whether the accountResource field is set. */ public boolean hasAccountResource() { return ((bitField1_ & 0x00000004) != 0); } /** * .protocol.Account.AccountResource account_resource = 26; * @return The accountResource. */ public org.tron.trident.proto.Response.Account.AccountResource getAccountResource() { if (accountResourceBuilder_ == null) { return accountResource_ == null ? org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } else { return accountResourceBuilder_.getMessage(); } } /** * .protocol.Account.AccountResource account_resource = 26; */ public Builder setAccountResource(org.tron.trident.proto.Response.Account.AccountResource value) { if (accountResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountResource_ = value; } else { accountResourceBuilder_.setMessage(value); } bitField1_ |= 0x00000004; onChanged(); return this; } /** * .protocol.Account.AccountResource account_resource = 26; */ public Builder setAccountResource( org.tron.trident.proto.Response.Account.AccountResource.Builder builderForValue) { if (accountResourceBuilder_ == null) { accountResource_ = builderForValue.build(); } else { accountResourceBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000004; onChanged(); return this; } /** * .protocol.Account.AccountResource account_resource = 26; */ public Builder mergeAccountResource(org.tron.trident.proto.Response.Account.AccountResource value) { if (accountResourceBuilder_ == null) { if (((bitField1_ & 0x00000004) != 0) && accountResource_ != null && accountResource_ != org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance()) { getAccountResourceBuilder().mergeFrom(value); } else { accountResource_ = value; } } else { accountResourceBuilder_.mergeFrom(value); } if (accountResource_ != null) { bitField1_ |= 0x00000004; onChanged(); } return this; } /** * .protocol.Account.AccountResource account_resource = 26; */ public Builder clearAccountResource() { bitField1_ = (bitField1_ & ~0x00000004); accountResource_ = null; if (accountResourceBuilder_ != null) { accountResourceBuilder_.dispose(); accountResourceBuilder_ = null; } onChanged(); return this; } /** * .protocol.Account.AccountResource account_resource = 26; */ public org.tron.trident.proto.Response.Account.AccountResource.Builder getAccountResourceBuilder() { bitField1_ |= 0x00000004; onChanged(); return getAccountResourceFieldBuilder().getBuilder(); } /** * .protocol.Account.AccountResource account_resource = 26; */ public org.tron.trident.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder() { if (accountResourceBuilder_ != null) { return accountResourceBuilder_.getMessageOrBuilder(); } else { return accountResource_ == null ? org.tron.trident.proto.Response.Account.AccountResource.getDefaultInstance() : accountResource_; } } /** * .protocol.Account.AccountResource account_resource = 26; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.AccountResource, org.tron.trident.proto.Response.Account.AccountResource.Builder, org.tron.trident.proto.Response.Account.AccountResourceOrBuilder> getAccountResourceFieldBuilder() { if (accountResourceBuilder_ == null) { accountResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.Account.AccountResource, org.tron.trident.proto.Response.Account.AccountResource.Builder, org.tron.trident.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; bitField1_ |= 0x00000008; onChanged(); return this; } /** * bytes codeHash = 30; * @return This builder for chaining. */ public Builder clearCodeHash() { bitField1_ = (bitField1_ & ~0x00000008); codeHash_ = getDefaultInstance().getCodeHash(); onChanged(); return this; } private org.tron.trident.proto.Common.Permission ownerPermission_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> ownerPermissionBuilder_; /** * .protocol.Permission owner_permission = 31; * @return Whether the ownerPermission field is set. */ public boolean hasOwnerPermission() { return ((bitField1_ & 0x00000010) != 0); } /** * .protocol.Permission owner_permission = 31; * @return The ownerPermission. */ public org.tron.trident.proto.Common.Permission getOwnerPermission() { if (ownerPermissionBuilder_ == null) { return ownerPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } else { return ownerPermissionBuilder_.getMessage(); } } /** * .protocol.Permission owner_permission = 31; */ public Builder setOwnerPermission(org.tron.trident.proto.Common.Permission value) { if (ownerPermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerPermission_ = value; } else { ownerPermissionBuilder_.setMessage(value); } bitField1_ |= 0x00000010; onChanged(); return this; } /** * .protocol.Permission owner_permission = 31; */ public Builder setOwnerPermission( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (ownerPermissionBuilder_ == null) { ownerPermission_ = builderForValue.build(); } else { ownerPermissionBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000010; onChanged(); return this; } /** * .protocol.Permission owner_permission = 31; */ public Builder mergeOwnerPermission(org.tron.trident.proto.Common.Permission value) { if (ownerPermissionBuilder_ == null) { if (((bitField1_ & 0x00000010) != 0) && ownerPermission_ != null && ownerPermission_ != org.tron.trident.proto.Common.Permission.getDefaultInstance()) { getOwnerPermissionBuilder().mergeFrom(value); } else { ownerPermission_ = value; } } else { ownerPermissionBuilder_.mergeFrom(value); } if (ownerPermission_ != null) { bitField1_ |= 0x00000010; onChanged(); } return this; } /** * .protocol.Permission owner_permission = 31; */ public Builder clearOwnerPermission() { bitField1_ = (bitField1_ & ~0x00000010); ownerPermission_ = null; if (ownerPermissionBuilder_ != null) { ownerPermissionBuilder_.dispose(); ownerPermissionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Permission owner_permission = 31; */ public org.tron.trident.proto.Common.Permission.Builder getOwnerPermissionBuilder() { bitField1_ |= 0x00000010; onChanged(); return getOwnerPermissionFieldBuilder().getBuilder(); } /** * .protocol.Permission owner_permission = 31; */ public org.tron.trident.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder() { if (ownerPermissionBuilder_ != null) { return ownerPermissionBuilder_.getMessageOrBuilder(); } else { return ownerPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : ownerPermission_; } } /** * .protocol.Permission owner_permission = 31; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getOwnerPermissionFieldBuilder() { if (ownerPermissionBuilder_ == null) { ownerPermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( getOwnerPermission(), getParentForChildren(), isClean()); ownerPermission_ = null; } return ownerPermissionBuilder_; } private org.tron.trident.proto.Common.Permission witnessPermission_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> witnessPermissionBuilder_; /** * .protocol.Permission witness_permission = 32; * @return Whether the witnessPermission field is set. */ public boolean hasWitnessPermission() { return ((bitField1_ & 0x00000020) != 0); } /** * .protocol.Permission witness_permission = 32; * @return The witnessPermission. */ public org.tron.trident.proto.Common.Permission getWitnessPermission() { if (witnessPermissionBuilder_ == null) { return witnessPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } else { return witnessPermissionBuilder_.getMessage(); } } /** * .protocol.Permission witness_permission = 32; */ public Builder setWitnessPermission(org.tron.trident.proto.Common.Permission value) { if (witnessPermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } witnessPermission_ = value; } else { witnessPermissionBuilder_.setMessage(value); } bitField1_ |= 0x00000020; onChanged(); return this; } /** * .protocol.Permission witness_permission = 32; */ public Builder setWitnessPermission( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (witnessPermissionBuilder_ == null) { witnessPermission_ = builderForValue.build(); } else { witnessPermissionBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000020; onChanged(); return this; } /** * .protocol.Permission witness_permission = 32; */ public Builder mergeWitnessPermission(org.tron.trident.proto.Common.Permission value) { if (witnessPermissionBuilder_ == null) { if (((bitField1_ & 0x00000020) != 0) && witnessPermission_ != null && witnessPermission_ != org.tron.trident.proto.Common.Permission.getDefaultInstance()) { getWitnessPermissionBuilder().mergeFrom(value); } else { witnessPermission_ = value; } } else { witnessPermissionBuilder_.mergeFrom(value); } if (witnessPermission_ != null) { bitField1_ |= 0x00000020; onChanged(); } return this; } /** * .protocol.Permission witness_permission = 32; */ public Builder clearWitnessPermission() { bitField1_ = (bitField1_ & ~0x00000020); witnessPermission_ = null; if (witnessPermissionBuilder_ != null) { witnessPermissionBuilder_.dispose(); witnessPermissionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Permission witness_permission = 32; */ public org.tron.trident.proto.Common.Permission.Builder getWitnessPermissionBuilder() { bitField1_ |= 0x00000020; onChanged(); return getWitnessPermissionFieldBuilder().getBuilder(); } /** * .protocol.Permission witness_permission = 32; */ public org.tron.trident.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder() { if (witnessPermissionBuilder_ != null) { return witnessPermissionBuilder_.getMessageOrBuilder(); } else { return witnessPermission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witnessPermission_; } } /** * .protocol.Permission witness_permission = 32; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getWitnessPermissionFieldBuilder() { if (witnessPermissionBuilder_ == null) { witnessPermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( getWitnessPermission(), getParentForChildren(), isClean()); witnessPermission_ = null; } return witnessPermissionBuilder_; } private java.util.List activePermission_ = java.util.Collections.emptyList(); private void ensureActivePermissionIsMutable() { if (!((bitField1_ & 0x00000040) != 0)) { activePermission_ = new java.util.ArrayList(activePermission_); bitField1_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> activePermissionBuilder_; /** * repeated .protocol.Permission active_permission = 33; */ public java.util.List getActivePermissionList() { if (activePermissionBuilder_ == null) { return java.util.Collections.unmodifiableList(activePermission_); } else { return activePermissionBuilder_.getMessageList(); } } /** * repeated .protocol.Permission active_permission = 33; */ public int getActivePermissionCount() { if (activePermissionBuilder_ == null) { return activePermission_.size(); } else { return activePermissionBuilder_.getCount(); } } /** * repeated .protocol.Permission active_permission = 33; */ public org.tron.trident.proto.Common.Permission getActivePermission(int index) { if (activePermissionBuilder_ == null) { return activePermission_.get(index); } else { return activePermissionBuilder_.getMessage(index); } } /** * repeated .protocol.Permission active_permission = 33; */ public Builder setActivePermission( int index, org.tron.trident.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; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder setActivePermission( int index, org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.set(index, builderForValue.build()); onChanged(); } else { activePermissionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder addActivePermission(org.tron.trident.proto.Common.Permission value) { if (activePermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivePermissionIsMutable(); activePermission_.add(value); onChanged(); } else { activePermissionBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder addActivePermission( int index, org.tron.trident.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; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder addActivePermission( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.add(builderForValue.build()); onChanged(); } else { activePermissionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder addActivePermission( int index, org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.add(index, builderForValue.build()); onChanged(); } else { activePermissionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ 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; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder clearActivePermission() { if (activePermissionBuilder_ == null) { activePermission_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); onChanged(); } else { activePermissionBuilder_.clear(); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ public Builder removeActivePermission(int index) { if (activePermissionBuilder_ == null) { ensureActivePermissionIsMutable(); activePermission_.remove(index); onChanged(); } else { activePermissionBuilder_.remove(index); } return this; } /** * repeated .protocol.Permission active_permission = 33; */ public org.tron.trident.proto.Common.Permission.Builder getActivePermissionBuilder( int index) { return getActivePermissionFieldBuilder().getBuilder(index); } /** * repeated .protocol.Permission active_permission = 33; */ public org.tron.trident.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder( int index) { if (activePermissionBuilder_ == null) { return activePermission_.get(index); } else { return activePermissionBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Permission active_permission = 33; */ public java.util.List getActivePermissionOrBuilderList() { if (activePermissionBuilder_ != null) { return activePermissionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(activePermission_); } } /** * repeated .protocol.Permission active_permission = 33; */ public org.tron.trident.proto.Common.Permission.Builder addActivePermissionBuilder() { return getActivePermissionFieldBuilder().addBuilder( org.tron.trident.proto.Common.Permission.getDefaultInstance()); } /** * repeated .protocol.Permission active_permission = 33; */ public org.tron.trident.proto.Common.Permission.Builder addActivePermissionBuilder( int index) { return getActivePermissionFieldBuilder().addBuilder( index, org.tron.trident.proto.Common.Permission.getDefaultInstance()); } /** * repeated .protocol.Permission active_permission = 33; */ public java.util.List getActivePermissionBuilderList() { return getActivePermissionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getActivePermissionFieldBuilder() { if (activePermissionBuilder_ == null) { activePermissionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( activePermission_, ((bitField1_ & 0x00000040) != 0), getParentForChildren(), isClean()); activePermission_ = null; } return activePermissionBuilder_; } private java.util.List frozenV2_ = java.util.Collections.emptyList(); private void ensureFrozenV2IsMutable() { if (!((bitField1_ & 0x00000080) != 0)) { frozenV2_ = new java.util.ArrayList(frozenV2_); bitField1_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.FreezeV2, org.tron.trident.proto.Response.Account.FreezeV2.Builder, org.tron.trident.proto.Response.Account.FreezeV2OrBuilder> frozenV2Builder_; /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public java.util.List getFrozenV2List() { if (frozenV2Builder_ == null) { return java.util.Collections.unmodifiableList(frozenV2_); } else { return frozenV2Builder_.getMessageList(); } } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public int getFrozenV2Count() { if (frozenV2Builder_ == null) { return frozenV2_.size(); } else { return frozenV2Builder_.getCount(); } } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public org.tron.trident.proto.Response.Account.FreezeV2 getFrozenV2(int index) { if (frozenV2Builder_ == null) { return frozenV2_.get(index); } else { return frozenV2Builder_.getMessage(index); } } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder setFrozenV2( int index, org.tron.trident.proto.Response.Account.FreezeV2 value) { if (frozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenV2IsMutable(); frozenV2_.set(index, value); onChanged(); } else { frozenV2Builder_.setMessage(index, value); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder setFrozenV2( int index, org.tron.trident.proto.Response.Account.FreezeV2.Builder builderForValue) { if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); frozenV2_.set(index, builderForValue.build()); onChanged(); } else { frozenV2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder addFrozenV2(org.tron.trident.proto.Response.Account.FreezeV2 value) { if (frozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenV2IsMutable(); frozenV2_.add(value); onChanged(); } else { frozenV2Builder_.addMessage(value); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder addFrozenV2( int index, org.tron.trident.proto.Response.Account.FreezeV2 value) { if (frozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenV2IsMutable(); frozenV2_.add(index, value); onChanged(); } else { frozenV2Builder_.addMessage(index, value); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder addFrozenV2( org.tron.trident.proto.Response.Account.FreezeV2.Builder builderForValue) { if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); frozenV2_.add(builderForValue.build()); onChanged(); } else { frozenV2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder addFrozenV2( int index, org.tron.trident.proto.Response.Account.FreezeV2.Builder builderForValue) { if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); frozenV2_.add(index, builderForValue.build()); onChanged(); } else { frozenV2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder addAllFrozenV2( java.lang.Iterable values) { if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frozenV2_); onChanged(); } else { frozenV2Builder_.addAllMessages(values); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder clearFrozenV2() { if (frozenV2Builder_ == null) { frozenV2_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000080); onChanged(); } else { frozenV2Builder_.clear(); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public Builder removeFrozenV2(int index) { if (frozenV2Builder_ == null) { ensureFrozenV2IsMutable(); frozenV2_.remove(index); onChanged(); } else { frozenV2Builder_.remove(index); } return this; } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public org.tron.trident.proto.Response.Account.FreezeV2.Builder getFrozenV2Builder( int index) { return getFrozenV2FieldBuilder().getBuilder(index); } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public org.tron.trident.proto.Response.Account.FreezeV2OrBuilder getFrozenV2OrBuilder( int index) { if (frozenV2Builder_ == null) { return frozenV2_.get(index); } else { return frozenV2Builder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public java.util.List getFrozenV2OrBuilderList() { if (frozenV2Builder_ != null) { return frozenV2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frozenV2_); } } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public org.tron.trident.proto.Response.Account.FreezeV2.Builder addFrozenV2Builder() { return getFrozenV2FieldBuilder().addBuilder( org.tron.trident.proto.Response.Account.FreezeV2.getDefaultInstance()); } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public org.tron.trident.proto.Response.Account.FreezeV2.Builder addFrozenV2Builder( int index) { return getFrozenV2FieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Account.FreezeV2.getDefaultInstance()); } /** * repeated .protocol.Account.FreezeV2 frozenV2 = 34; */ public java.util.List getFrozenV2BuilderList() { return getFrozenV2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.FreezeV2, org.tron.trident.proto.Response.Account.FreezeV2.Builder, org.tron.trident.proto.Response.Account.FreezeV2OrBuilder> getFrozenV2FieldBuilder() { if (frozenV2Builder_ == null) { frozenV2Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.FreezeV2, org.tron.trident.proto.Response.Account.FreezeV2.Builder, org.tron.trident.proto.Response.Account.FreezeV2OrBuilder>( frozenV2_, ((bitField1_ & 0x00000080) != 0), getParentForChildren(), isClean()); frozenV2_ = null; } return frozenV2Builder_; } private java.util.List unfrozenV2_ = java.util.Collections.emptyList(); private void ensureUnfrozenV2IsMutable() { if (!((bitField1_ & 0x00000100) != 0)) { unfrozenV2_ = new java.util.ArrayList(unfrozenV2_); bitField1_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.UnFreezeV2, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder, org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder> unfrozenV2Builder_; /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public java.util.List getUnfrozenV2List() { if (unfrozenV2Builder_ == null) { return java.util.Collections.unmodifiableList(unfrozenV2_); } else { return unfrozenV2Builder_.getMessageList(); } } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public int getUnfrozenV2Count() { if (unfrozenV2Builder_ == null) { return unfrozenV2_.size(); } else { return unfrozenV2Builder_.getCount(); } } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public org.tron.trident.proto.Response.Account.UnFreezeV2 getUnfrozenV2(int index) { if (unfrozenV2Builder_ == null) { return unfrozenV2_.get(index); } else { return unfrozenV2Builder_.getMessage(index); } } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder setUnfrozenV2( int index, org.tron.trident.proto.Response.Account.UnFreezeV2 value) { if (unfrozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnfrozenV2IsMutable(); unfrozenV2_.set(index, value); onChanged(); } else { unfrozenV2Builder_.setMessage(index, value); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder setUnfrozenV2( int index, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder builderForValue) { if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); unfrozenV2_.set(index, builderForValue.build()); onChanged(); } else { unfrozenV2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder addUnfrozenV2(org.tron.trident.proto.Response.Account.UnFreezeV2 value) { if (unfrozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnfrozenV2IsMutable(); unfrozenV2_.add(value); onChanged(); } else { unfrozenV2Builder_.addMessage(value); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder addUnfrozenV2( int index, org.tron.trident.proto.Response.Account.UnFreezeV2 value) { if (unfrozenV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnfrozenV2IsMutable(); unfrozenV2_.add(index, value); onChanged(); } else { unfrozenV2Builder_.addMessage(index, value); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder addUnfrozenV2( org.tron.trident.proto.Response.Account.UnFreezeV2.Builder builderForValue) { if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); unfrozenV2_.add(builderForValue.build()); onChanged(); } else { unfrozenV2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder addUnfrozenV2( int index, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder builderForValue) { if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); unfrozenV2_.add(index, builderForValue.build()); onChanged(); } else { unfrozenV2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder addAllUnfrozenV2( java.lang.Iterable values) { if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unfrozenV2_); onChanged(); } else { unfrozenV2Builder_.addAllMessages(values); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder clearUnfrozenV2() { if (unfrozenV2Builder_ == null) { unfrozenV2_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000100); onChanged(); } else { unfrozenV2Builder_.clear(); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public Builder removeUnfrozenV2(int index) { if (unfrozenV2Builder_ == null) { ensureUnfrozenV2IsMutable(); unfrozenV2_.remove(index); onChanged(); } else { unfrozenV2Builder_.remove(index); } return this; } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public org.tron.trident.proto.Response.Account.UnFreezeV2.Builder getUnfrozenV2Builder( int index) { return getUnfrozenV2FieldBuilder().getBuilder(index); } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder getUnfrozenV2OrBuilder( int index) { if (unfrozenV2Builder_ == null) { return unfrozenV2_.get(index); } else { return unfrozenV2Builder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public java.util.List getUnfrozenV2OrBuilderList() { if (unfrozenV2Builder_ != null) { return unfrozenV2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(unfrozenV2_); } } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public org.tron.trident.proto.Response.Account.UnFreezeV2.Builder addUnfrozenV2Builder() { return getUnfrozenV2FieldBuilder().addBuilder( org.tron.trident.proto.Response.Account.UnFreezeV2.getDefaultInstance()); } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public org.tron.trident.proto.Response.Account.UnFreezeV2.Builder addUnfrozenV2Builder( int index) { return getUnfrozenV2FieldBuilder().addBuilder( index, org.tron.trident.proto.Response.Account.UnFreezeV2.getDefaultInstance()); } /** * repeated .protocol.Account.UnFreezeV2 unfrozenV2 = 35; */ public java.util.List getUnfrozenV2BuilderList() { return getUnfrozenV2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.UnFreezeV2, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder, org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder> getUnfrozenV2FieldBuilder() { if (unfrozenV2Builder_ == null) { unfrozenV2Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.Account.UnFreezeV2, org.tron.trident.proto.Response.Account.UnFreezeV2.Builder, org.tron.trident.proto.Response.Account.UnFreezeV2OrBuilder>( unfrozenV2_, ((bitField1_ & 0x00000100) != 0), getParentForChildren(), isClean()); unfrozenV2_ = null; } return unfrozenV2Builder_; } private long delegatedFrozenV2BalanceForBandwidth_ ; /** * int64 delegated_frozenV2_balance_for_bandwidth = 36; * @return The delegatedFrozenV2BalanceForBandwidth. */ @java.lang.Override public long getDelegatedFrozenV2BalanceForBandwidth() { return delegatedFrozenV2BalanceForBandwidth_; } /** * int64 delegated_frozenV2_balance_for_bandwidth = 36; * @param value The delegatedFrozenV2BalanceForBandwidth to set. * @return This builder for chaining. */ public Builder setDelegatedFrozenV2BalanceForBandwidth(long value) { delegatedFrozenV2BalanceForBandwidth_ = value; bitField1_ |= 0x00000200; onChanged(); return this; } /** * int64 delegated_frozenV2_balance_for_bandwidth = 36; * @return This builder for chaining. */ public Builder clearDelegatedFrozenV2BalanceForBandwidth() { bitField1_ = (bitField1_ & ~0x00000200); delegatedFrozenV2BalanceForBandwidth_ = 0L; onChanged(); return this; } private long acquiredDelegatedFrozenV2BalanceForBandwidth_ ; /** * int64 acquired_delegated_frozenV2_balance_for_bandwidth = 37; * @return The acquiredDelegatedFrozenV2BalanceForBandwidth. */ @java.lang.Override public long getAcquiredDelegatedFrozenV2BalanceForBandwidth() { return acquiredDelegatedFrozenV2BalanceForBandwidth_; } /** * int64 acquired_delegated_frozenV2_balance_for_bandwidth = 37; * @param value The acquiredDelegatedFrozenV2BalanceForBandwidth to set. * @return This builder for chaining. */ public Builder setAcquiredDelegatedFrozenV2BalanceForBandwidth(long value) { acquiredDelegatedFrozenV2BalanceForBandwidth_ = value; bitField1_ |= 0x00000400; onChanged(); return this; } /** * int64 acquired_delegated_frozenV2_balance_for_bandwidth = 37; * @return This builder for chaining. */ public Builder clearAcquiredDelegatedFrozenV2BalanceForBandwidth() { bitField1_ = (bitField1_ & ~0x00000400); acquiredDelegatedFrozenV2BalanceForBandwidth_ = 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) } // @@protoc_insertion_point(class_scope:protocol.Account) private static final org.tron.trident.proto.Response.Account DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Account(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } /** * Protobuf type {@code protocol.MarketOrderDetail} */ 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderDetail.class, org.tron.trident.proto.Response.MarketOrderDetail.Builder.class); } public static final int MAKERORDERID_FIELD_NUMBER = 1; 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_; } public static final int TAKERORDERID_FIELD_NUMBER = 2; 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_; } public static final int FILLSELLQUANTITY_FIELD_NUMBER = 3; private long fillSellQuantity_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketOrderDetail)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketOrderDetail other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketOrderDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketOrderDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketOrderDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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; } /** * Protobuf type {@code protocol.MarketOrderDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketOrderDetail) org.tron.trident.proto.Response.MarketOrderDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderDetail.class, org.tron.trident.proto.Response.MarketOrderDetail.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketOrderDetail.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_MarketOrderDetail_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderDetail getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketOrderDetail.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderDetail build() { org.tron.trident.proto.Response.MarketOrderDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderDetail buildPartial() { org.tron.trident.proto.Response.MarketOrderDetail result = new org.tron.trident.proto.Response.MarketOrderDetail(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.MarketOrderDetail result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.makerOrderId_ = makerOrderId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.takerOrderId_ = takerOrderId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.fillSellQuantity_ = fillSellQuantity_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fillBuyQuantity_ = fillBuyQuantity_; } } @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.tron.trident.proto.Response.MarketOrderDetail) { return mergeFrom((org.tron.trident.proto.Response.MarketOrderDetail)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketOrderDetail other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { makerOrderId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { takerOrderId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { fillSellQuantity_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { fillBuyQuantity_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes makerOrderId = 1; * @return This builder for chaining. */ public Builder clearMakerOrderId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes takerOrderId = 2; * @return This builder for chaining. */ public Builder clearTakerOrderId() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 fillSellQuantity = 3; * @return This builder for chaining. */ public Builder clearFillSellQuantity() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 fillBuyQuantity = 4; * @return This builder for chaining. */ public Builder clearFillBuyQuantity() { bitField0_ = (bitField0_ & ~0x00000008); 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.tron.trident.proto.Response.MarketOrderDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketOrderDetail(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); /** * map<int64, int64> parameters = 3; */ int getParametersCount(); /** * map<int64, int64> parameters = 3; */ boolean containsParameters( long key); /** * Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map getParameters(); /** * map<int64, int64> parameters = 3; */ java.util.Map getParametersMap(); /** * map<int64, int64> parameters = 3; */ long getParametersOrDefault( long key, long defaultValue); /** * map<int64, int64> parameters = 3; */ 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.tron.trident.proto.Response.Proposal.State getState(); } /** * Protobuf type {@code protocol.Proposal} */ 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_ = emptyList(com.google.protobuf.ByteString.class); state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Proposal(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Proposal_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Proposal.class, org.tron.trident.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.tron.trident.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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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.tron.trident.proto.Response.internal_static_protocol_Proposal_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public boolean containsParameters( long key) { return internalGetParameters().getMap().containsKey(key); } /** * Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public long getParametersOrDefault( long key, long defaultValue) { java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> parameters = 3; */ @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_ = 0L; /** * 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_ = 0L; /** * int64 create_time = 5; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int APPROVALS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList approvals_ = emptyList(com.google.protobuf.ByteString.class); /** * 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_ = 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; * @return The state. */ @java.lang.Override public org.tron.trident.proto.Response.Proposal.State getState() { org.tron.trident.proto.Response.Proposal.State result = org.tron.trident.proto.Response.Proposal.State.forNumber(state_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.Proposal.State.PENDING.getNumber()) { output.writeEnum(7, state_); } getUnknownFields().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.tron.trident.proto.Response.Proposal.State.PENDING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Proposal)) { return super.equals(obj); } org.tron.trident.proto.Response.Proposal other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Proposal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Proposal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Proposal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Proposal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Proposal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Proposal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Proposal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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; } /** * Protobuf type {@code protocol.Proposal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Proposal) org.tron.trident.proto.Response.ProposalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Proposal_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Proposal.class, org.tron.trident.proto.Response.Proposal.Builder.class); } // Construct using org.tron.trident.proto.Response.Proposal.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; proposalId_ = 0L; proposerAddress_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableParameters().clear(); expirationTime_ = 0L; createTime_ = 0L; approvals_ = emptyList(com.google.protobuf.ByteString.class); state_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_Proposal_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Proposal getDefaultInstanceForType() { return org.tron.trident.proto.Response.Proposal.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Proposal build() { org.tron.trident.proto.Response.Proposal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Proposal buildPartial() { org.tron.trident.proto.Response.Proposal result = new org.tron.trident.proto.Response.Proposal(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Proposal result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.proposalId_ = proposalId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.proposerAddress_ = proposerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.expirationTime_ = expirationTime_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.createTime_ = createTime_; } if (((from_bitField0_ & 0x00000020) != 0)) { approvals_.makeImmutable(); result.approvals_ = approvals_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; } } @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.tron.trident.proto.Response.Proposal) { return mergeFrom((org.tron.trident.proto.Response.Proposal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Proposal other) { if (other == org.tron.trident.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()); bitField0_ |= 0x00000004; if (other.getExpirationTime() != 0L) { setExpirationTime(other.getExpirationTime()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (!other.approvals_.isEmpty()) { if (approvals_.isEmpty()) { approvals_ = other.approvals_; approvals_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureApprovalsIsMutable(); approvals_.addAll(other.approvals_); } onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { proposalId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { proposerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParameters().getMutableMap().put( parameters__.getKey(), parameters__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 32: { expirationTime_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { createTime_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { com.google.protobuf.ByteString v = input.readBytes(); ensureApprovalsIsMutable(); approvals_.add(v); break; } // case 50 case 56: { state_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 proposal_id = 1; * @return This builder for chaining. */ public Builder clearProposalId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes proposer_address = 2; * @return This builder for chaining. */ public Builder clearProposerAddress() { bitField0_ = (bitField0_ & ~0x00000002); 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() { if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } bitField0_ |= 0x00000004; onChanged(); return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public boolean containsParameters( long key) { return internalGetParameters().getMap().containsKey(key); } /** * Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * map<int64, int64> parameters = 3; */ @java.lang.Override public long getParametersOrDefault( long key, long defaultValue) { java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> parameters = 3; */ @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() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameters().getMutableMap() .clear(); return this; } /** * map<int64, int64> parameters = 3; */ public Builder removeParameters( long key) { internalGetMutableParameters().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameters() { bitField0_ |= 0x00000004; return internalGetMutableParameters().getMutableMap(); } /** * map<int64, int64> parameters = 3; */ public Builder putParameters( long key, long value) { internalGetMutableParameters().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** * map<int64, int64> parameters = 3; */ public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 expiration_time = 4; * @return This builder for chaining. */ public Builder clearExpirationTime() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 create_time = 5; * @return This builder for chaining. */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); createTime_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList approvals_ = emptyList(com.google.protobuf.ByteString.class); private void ensureApprovalsIsMutable() { if (!approvals_.isModifiable()) { approvals_ = makeMutableCopy(approvals_); } bitField0_ |= 0x00000020; } /** * repeated bytes approvals = 6; * @return A list containing the approvals. */ public java.util.List getApprovalsList() { approvals_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000020; 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); bitField0_ |= 0x00000020; 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_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated bytes approvals = 6; * @return This builder for chaining. */ public Builder clearApprovals() { approvals_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protocol.Proposal.State state = 7; * @return The state. */ @java.lang.Override public org.tron.trident.proto.Response.Proposal.State getState() { org.tron.trident.proto.Response.Proposal.State result = org.tron.trident.proto.Response.Proposal.State.forNumber(state_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.Proposal.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; state_ = value.getNumber(); onChanged(); return this; } /** * .protocol.Proposal.State state = 7; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000040); 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.tron.trident.proto.Response.Proposal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Proposal(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Exchange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Exchange.class, org.tron.trident.proto.Response.Exchange.Builder.class); } public static final int EXCHANGE_ID_FIELD_NUMBER = 1; private long exchangeId_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.Exchange)) { return super.equals(obj); } org.tron.trident.proto.Response.Exchange other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.Exchange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Exchange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.Exchange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.Exchange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.Exchange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Exchange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.Exchange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ExchangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_Exchange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.Exchange.class, org.tron.trident.proto.Response.Exchange.Builder.class); } // Construct using org.tron.trident.proto.Response.Exchange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_Exchange_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.Exchange getDefaultInstanceForType() { return org.tron.trident.proto.Response.Exchange.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.Exchange build() { org.tron.trident.proto.Response.Exchange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.Exchange buildPartial() { org.tron.trident.proto.Response.Exchange result = new org.tron.trident.proto.Response.Exchange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.Exchange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.exchangeId_ = exchangeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.creatorAddress_ = creatorAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTime_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.firstTokenId_ = firstTokenId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.firstTokenBalance_ = firstTokenBalance_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.secondTokenId_ = secondTokenId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.secondTokenBalance_ = secondTokenBalance_; } } @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.tron.trident.proto.Response.Exchange) { return mergeFrom((org.tron.trident.proto.Response.Exchange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.Exchange other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { exchangeId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { creatorAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { createTime_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 50: { firstTokenId_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 50 case 56: { firstTokenBalance_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 56 case 66: { secondTokenId_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 66 case 72: { secondTokenBalance_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 exchange_id = 1; * @return This builder for chaining. */ public Builder clearExchangeId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes creator_address = 2; * @return This builder for chaining. */ public Builder clearCreatorAddress() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 create_time = 3; * @return This builder for chaining. */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes first_token_id = 6; * @return This builder for chaining. */ public Builder clearFirstTokenId() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 first_token_balance = 7; * @return This builder for chaining. */ public Builder clearFirstTokenBalance() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes second_token_id = 8; * @return This builder for chaining. */ public Builder clearSecondTokenId() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 second_token_balance = 9; * @return This builder for chaining. */ public Builder clearSecondTokenBalance() { bitField0_ = (bitField0_ & ~0x00000040); 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.tron.trident.proto.Response.Exchange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Exchange(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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_bandwidth = 3; * @return The frozenBalanceForBandwidth. */ long getFrozenBalanceForBandwidth(); /** * int64 frozen_balance_for_energy = 4; * @return The frozenBalanceForEnergy. */ long getFrozenBalanceForEnergy(); /** * int64 expire_time_for_bandwidth = 5; * @return The expireTimeForBandwidth. */ long getExpireTimeForBandwidth(); /** * int64 expire_time_for_energy = 6; * @return The expireTimeForEnergy. */ long getExpireTimeForEnergy(); } /** * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResource.class, org.tron.trident.proto.Response.DelegatedResource.Builder.class); } public static final int FROM_FIELD_NUMBER = 1; 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_; } public static final int TO_FIELD_NUMBER = 2; 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_; } public static final int FROZEN_BALANCE_FOR_BANDWIDTH_FIELD_NUMBER = 3; private long frozenBalanceForBandwidth_ = 0L; /** * int64 frozen_balance_for_bandwidth = 3; * @return The frozenBalanceForBandwidth. */ @java.lang.Override public long getFrozenBalanceForBandwidth() { return frozenBalanceForBandwidth_; } public static final int FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER = 4; private long frozenBalanceForEnergy_ = 0L; /** * int64 frozen_balance_for_energy = 4; * @return The frozenBalanceForEnergy. */ @java.lang.Override public long getFrozenBalanceForEnergy() { return frozenBalanceForEnergy_; } public static final int EXPIRE_TIME_FOR_BANDWIDTH_FIELD_NUMBER = 5; private long expireTimeForBandwidth_ = 0L; /** * int64 expire_time_for_bandwidth = 5; * @return The expireTimeForBandwidth. */ @java.lang.Override public long getExpireTimeForBandwidth() { return expireTimeForBandwidth_; } public static final int EXPIRE_TIME_FOR_ENERGY_FIELD_NUMBER = 6; private long expireTimeForEnergy_ = 0L; /** * int64 expire_time_for_energy = 6; * @return The expireTimeForEnergy. */ @java.lang.Override public long getExpireTimeForEnergy() { return expireTimeForEnergy_; } 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 (frozenBalanceForBandwidth_ != 0L) { output.writeInt64(3, frozenBalanceForBandwidth_); } if (frozenBalanceForEnergy_ != 0L) { output.writeInt64(4, frozenBalanceForEnergy_); } if (expireTimeForBandwidth_ != 0L) { output.writeInt64(5, expireTimeForBandwidth_); } if (expireTimeForEnergy_ != 0L) { output.writeInt64(6, expireTimeForEnergy_); } getUnknownFields().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 (frozenBalanceForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, frozenBalanceForBandwidth_); } if (frozenBalanceForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, frozenBalanceForEnergy_); } if (expireTimeForBandwidth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, expireTimeForBandwidth_); } if (expireTimeForEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, expireTimeForEnergy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResource)) { return super.equals(obj); } org.tron.trident.proto.Response.DelegatedResource other = (org.tron.trident.proto.Response.DelegatedResource) obj; if (!getFrom() .equals(other.getFrom())) return false; if (!getTo() .equals(other.getTo())) return false; if (getFrozenBalanceForBandwidth() != other.getFrozenBalanceForBandwidth()) return false; if (getFrozenBalanceForEnergy() != other.getFrozenBalanceForEnergy()) return false; if (getExpireTimeForBandwidth() != other.getExpireTimeForBandwidth()) return false; if (getExpireTimeForEnergy() != other.getExpireTimeForEnergy()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalanceForBandwidth()); hash = (37 * hash) + FROZEN_BALANCE_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalanceForEnergy()); hash = (37 * hash) + EXPIRE_TIME_FOR_BANDWIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpireTimeForBandwidth()); hash = (37 * hash) + EXPIRE_TIME_FOR_ENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpireTimeForEnergy()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DelegatedResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DelegatedResource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DelegatedResource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.DelegatedResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResource.class, org.tron.trident.proto.Response.DelegatedResource.Builder.class); } // Construct using org.tron.trident.proto.Response.DelegatedResource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; from_ = com.google.protobuf.ByteString.EMPTY; to_ = com.google.protobuf.ByteString.EMPTY; frozenBalanceForBandwidth_ = 0L; frozenBalanceForEnergy_ = 0L; expireTimeForBandwidth_ = 0L; expireTimeForEnergy_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResource_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResource getDefaultInstanceForType() { return org.tron.trident.proto.Response.DelegatedResource.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResource build() { org.tron.trident.proto.Response.DelegatedResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResource buildPartial() { org.tron.trident.proto.Response.DelegatedResource result = new org.tron.trident.proto.Response.DelegatedResource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.DelegatedResource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.from_ = from_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.to_ = to_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.frozenBalanceForBandwidth_ = frozenBalanceForBandwidth_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.frozenBalanceForEnergy_ = frozenBalanceForEnergy_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.expireTimeForBandwidth_ = expireTimeForBandwidth_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.expireTimeForEnergy_ = expireTimeForEnergy_; } } @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.tron.trident.proto.Response.DelegatedResource) { return mergeFrom((org.tron.trident.proto.Response.DelegatedResource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResource other) { if (other == org.tron.trident.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.getFrozenBalanceForBandwidth() != 0L) { setFrozenBalanceForBandwidth(other.getFrozenBalanceForBandwidth()); } if (other.getFrozenBalanceForEnergy() != 0L) { setFrozenBalanceForEnergy(other.getFrozenBalanceForEnergy()); } if (other.getExpireTimeForBandwidth() != 0L) { setExpireTimeForBandwidth(other.getExpireTimeForBandwidth()); } if (other.getExpireTimeForEnergy() != 0L) { setExpireTimeForEnergy(other.getExpireTimeForEnergy()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { from_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { to_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { frozenBalanceForBandwidth_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { frozenBalanceForEnergy_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { expireTimeForBandwidth_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { expireTimeForEnergy_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes from = 1; * @return This builder for chaining. */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes to = 2; * @return This builder for chaining. */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000002); to_ = getDefaultInstance().getTo(); onChanged(); return this; } private long frozenBalanceForBandwidth_ ; /** * int64 frozen_balance_for_bandwidth = 3; * @return The frozenBalanceForBandwidth. */ @java.lang.Override public long getFrozenBalanceForBandwidth() { return frozenBalanceForBandwidth_; } /** * int64 frozen_balance_for_bandwidth = 3; * @param value The frozenBalanceForBandwidth to set. * @return This builder for chaining. */ public Builder setFrozenBalanceForBandwidth(long value) { frozenBalanceForBandwidth_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 frozen_balance_for_bandwidth = 3; * @return This builder for chaining. */ public Builder clearFrozenBalanceForBandwidth() { bitField0_ = (bitField0_ & ~0x00000004); frozenBalanceForBandwidth_ = 0L; onChanged(); return this; } private long frozenBalanceForEnergy_ ; /** * int64 frozen_balance_for_energy = 4; * @return The frozenBalanceForEnergy. */ @java.lang.Override public long getFrozenBalanceForEnergy() { return frozenBalanceForEnergy_; } /** * int64 frozen_balance_for_energy = 4; * @param value The frozenBalanceForEnergy to set. * @return This builder for chaining. */ public Builder setFrozenBalanceForEnergy(long value) { frozenBalanceForEnergy_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 frozen_balance_for_energy = 4; * @return This builder for chaining. */ public Builder clearFrozenBalanceForEnergy() { bitField0_ = (bitField0_ & ~0x00000008); frozenBalanceForEnergy_ = 0L; onChanged(); return this; } private long expireTimeForBandwidth_ ; /** * int64 expire_time_for_bandwidth = 5; * @return The expireTimeForBandwidth. */ @java.lang.Override public long getExpireTimeForBandwidth() { return expireTimeForBandwidth_; } /** * int64 expire_time_for_bandwidth = 5; * @param value The expireTimeForBandwidth to set. * @return This builder for chaining. */ public Builder setExpireTimeForBandwidth(long value) { expireTimeForBandwidth_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 expire_time_for_bandwidth = 5; * @return This builder for chaining. */ public Builder clearExpireTimeForBandwidth() { bitField0_ = (bitField0_ & ~0x00000010); expireTimeForBandwidth_ = 0L; onChanged(); return this; } private long expireTimeForEnergy_ ; /** * int64 expire_time_for_energy = 6; * @return The expireTimeForEnergy. */ @java.lang.Override public long getExpireTimeForEnergy() { return expireTimeForEnergy_; } /** * int64 expire_time_for_energy = 6; * @param value The expireTimeForEnergy to set. * @return This builder for chaining. */ public Builder setExpireTimeForEnergy(long value) { expireTimeForEnergy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 expire_time_for_energy = 6; * @return This builder for chaining. */ public Builder clearExpireTimeForEnergy() { bitField0_ = (bitField0_ & ~0x00000020); expireTimeForEnergy_ = 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.tron.trident.proto.Response.DelegatedResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResource(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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); /** * int64 timestamp = 4; * @return The timestamp. */ long getTimestamp(); } /** * 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_ = emptyList(com.google.protobuf.ByteString.class); toAccounts_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegatedResourceAccountIndex(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, org.tron.trident.proto.Response.DelegatedResourceAccountIndex.Builder.class); } public static final int ACCOUNT_FIELD_NUMBER = 1; 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_; } public static final int FROMACCOUNTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList fromAccounts_ = emptyList(com.google.protobuf.ByteString.class); /** * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList toAccounts_ = emptyList(com.google.protobuf.ByteString.class); /** * 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); } public static final int TIMESTAMP_FIELD_NUMBER = 4; private long timestamp_ = 0L; /** * int64 timestamp = 4; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } 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)); } if (timestamp_ != 0L) { output.writeInt64(4, timestamp_); } getUnknownFields().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(); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, timestamp_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResourceAccountIndex)) { return super.equals(obj); } org.tron.trident.proto.Response.DelegatedResourceAccountIndex other = (org.tron.trident.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 (getTimestamp() != other.getTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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 = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceAccountIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.DelegatedResourceAccountIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.DelegatedResourceAccountIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DelegatedResourceAccountIndex.class, org.tron.trident.proto.Response.DelegatedResourceAccountIndex.Builder.class); } // Construct using org.tron.trident.proto.Response.DelegatedResourceAccountIndex.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; account_ = com.google.protobuf.ByteString.EMPTY; fromAccounts_ = emptyList(com.google.protobuf.ByteString.class); toAccounts_ = emptyList(com.google.protobuf.ByteString.class); timestamp_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceAccountIndex_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDefaultInstanceForType() { return org.tron.trident.proto.Response.DelegatedResourceAccountIndex.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceAccountIndex build() { org.tron.trident.proto.Response.DelegatedResourceAccountIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceAccountIndex buildPartial() { org.tron.trident.proto.Response.DelegatedResourceAccountIndex result = new org.tron.trident.proto.Response.DelegatedResourceAccountIndex(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.DelegatedResourceAccountIndex result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.account_ = account_; } if (((from_bitField0_ & 0x00000002) != 0)) { fromAccounts_.makeImmutable(); result.fromAccounts_ = fromAccounts_; } if (((from_bitField0_ & 0x00000004) != 0)) { toAccounts_.makeImmutable(); result.toAccounts_ = toAccounts_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.timestamp_ = timestamp_; } } @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.tron.trident.proto.Response.DelegatedResourceAccountIndex) { return mergeFrom((org.tron.trident.proto.Response.DelegatedResourceAccountIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceAccountIndex other) { if (other == org.tron.trident.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_; fromAccounts_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureFromAccountsIsMutable(); fromAccounts_.addAll(other.fromAccounts_); } onChanged(); } if (!other.toAccounts_.isEmpty()) { if (toAccounts_.isEmpty()) { toAccounts_ = other.toAccounts_; toAccounts_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureToAccountsIsMutable(); toAccounts_.addAll(other.toAccounts_); } onChanged(); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { account_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureFromAccountsIsMutable(); fromAccounts_.add(v); break; } // case 18 case 26: { com.google.protobuf.ByteString v = input.readBytes(); ensureToAccountsIsMutable(); toAccounts_.add(v); break; } // case 26 case 32: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes account = 1; * @return This builder for chaining. */ public Builder clearAccount() { bitField0_ = (bitField0_ & ~0x00000001); account_ = getDefaultInstance().getAccount(); onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList fromAccounts_ = emptyList(com.google.protobuf.ByteString.class); private void ensureFromAccountsIsMutable() { if (!fromAccounts_.isModifiable()) { fromAccounts_ = makeMutableCopy(fromAccounts_); } bitField0_ |= 0x00000002; } /** * repeated bytes fromAccounts = 2; * @return A list containing the fromAccounts. */ public java.util.List getFromAccountsList() { fromAccounts_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes fromAccounts = 2; * @return This builder for chaining. */ public Builder clearFromAccounts() { fromAccounts_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList toAccounts_ = emptyList(com.google.protobuf.ByteString.class); private void ensureToAccountsIsMutable() { if (!toAccounts_.isModifiable()) { toAccounts_ = makeMutableCopy(toAccounts_); } bitField0_ |= 0x00000004; } /** * repeated bytes toAccounts = 3; * @return A list containing the toAccounts. */ public java.util.List getToAccountsList() { toAccounts_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated bytes toAccounts = 3; * @return This builder for chaining. */ public Builder clearToAccounts() { toAccounts_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private long timestamp_ ; /** * int64 timestamp = 4; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 4; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 timestamp = 4; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 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.DelegatedResourceAccountIndex) } // @@protoc_insertion_point(class_scope:protocol.DelegatedResourceAccountIndex) private static final org.tron.trident.proto.Response.DelegatedResourceAccountIndex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResourceAccountIndex(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.DelegatedResourceAccountIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionSignOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionSign) com.google.protobuf.MessageOrBuilder { /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .protocol.Transaction transaction = 1; * @return The transaction. */ org.tron.trident.proto.Chain.Transaction getTransaction(); /** * .protocol.Transaction transaction = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSign_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSign.class, org.tron.trident.proto.Response.TransactionSign.Builder.class); } private int bitField0_; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.tron.trident.proto.Chain.Transaction transaction_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ @java.lang.Override public org.tron.trident.proto.Chain.Transaction getTransaction() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } /** * .protocol.Transaction transaction = 1; */ @java.lang.Override public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } public static final int PRIVATEKEY_FIELD_NUMBER = 2; 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_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTransaction()); } if (!privateKey_.isEmpty()) { output.writeBytes(2, privateKey_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (!privateKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, privateKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionSign)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionSign other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionSign parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionSign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionSign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionSignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSign_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSign.class, org.tron.trident.proto.Response.TransactionSign.Builder.class); } // Construct using org.tron.trident.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) { getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } privateKey_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSign_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSign getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionSign.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionSign build() { org.tron.trident.proto.Response.TransactionSign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSign buildPartial() { org.tron.trident.proto.Response.TransactionSign result = new org.tron.trident.proto.Response.TransactionSign(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionSign result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.privateKey_ = privateKey_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.TransactionSign) { return mergeFrom((org.tron.trident.proto.Response.TransactionSign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionSign other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { privateKey_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Chain.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_; /** * .protocol.Transaction transaction = 1; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Transaction transaction = 1; * @return The transaction. */ public org.tron.trident.proto.Chain.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder setTransaction( org.tron.trident.proto.Chain.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public Builder mergeTransaction(org.tron.trident.proto.Chain.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && transaction_ != null && transaction_ != org.tron.trident.proto.Chain.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } if (transaction_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Transaction transaction = 1; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.Transaction transaction = 1; */ public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_; } } /** * .protocol.Transaction transaction = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes privateKey = 2; * @return This builder for chaining. */ public Builder clearPrivateKey() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.TransactionSign DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionSign(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSign getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChainParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ChainParameters) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ java.util.List getChainParameterList(); /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ org.tron.trident.proto.Response.ChainParameters.ChainParameter getChainParameter(int index); /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ int getChainParameterCount(); /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ java.util.List getChainParameterOrBuilderList(); /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ChainParameters.class, org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ChainParameters.ChainParameter.class, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = 0L; /** * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (value_ != 0L) { output.writeInt64(2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.ChainParameters.ChainParameter)) { return super.equals(obj); } org.tron.trident.proto.Response.ChainParameters.ChainParameter other = (org.tron.trident.proto.Response.ChainParameters.ChainParameter) obj; if (!getKey() .equals(other.getKey())) return false; if (getValue() != other.getValue()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.ChainParameters.ChainParameter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters.ChainParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters.ChainParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters.ChainParameter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters.ChainParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ChainParameters.ChainParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ChainParameters.ChainParameter.class, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder.class); } // Construct using org.tron.trident.proto.Response.ChainParameters.ChainParameter.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; value_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_ChainParameter_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters.ChainParameter getDefaultInstanceForType() { return org.tron.trident.proto.Response.ChainParameters.ChainParameter.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters.ChainParameter build() { org.tron.trident.proto.Response.ChainParameters.ChainParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters.ChainParameter buildPartial() { org.tron.trident.proto.Response.ChainParameters.ChainParameter result = new org.tron.trident.proto.Response.ChainParameters.ChainParameter(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.ChainParameters.ChainParameter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; } } @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.tron.trident.proto.Response.ChainParameters.ChainParameter) { return mergeFrom((org.tron.trident.proto.Response.ChainParameters.ChainParameter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.ChainParameters.ChainParameter other) { if (other == org.tron.trident.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.getValue() != 0L) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { value_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 value = 2; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.ChainParameters.ChainParameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ChainParameters.ChainParameter(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters.ChainParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CHAINPARAMETER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List chainParameter_; /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ @java.lang.Override public java.util.List getChainParameterList() { return chainParameter_; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ @java.lang.Override public java.util.List getChainParameterOrBuilderList() { return chainParameter_; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ @java.lang.Override public int getChainParameterCount() { return chainParameter_.size(); } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ @java.lang.Override public org.tron.trident.proto.Response.ChainParameters.ChainParameter getChainParameter(int index) { return chainParameter_.get(index); } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.ChainParameters)) { return super.equals(obj); } org.tron.trident.proto.Response.ChainParameters other = (org.tron.trident.proto.Response.ChainParameters) obj; if (!getChainParameterList() .equals(other.getChainParameterList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getChainParameterCount() > 0) { hash = (37 * hash) + CHAINPARAMETER_FIELD_NUMBER; hash = (53 * hash) + getChainParameterList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.ChainParameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.ChainParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.ChainParameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.ChainParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.ChainParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.ChainParameters.class, org.tron.trident.proto.Response.ChainParameters.Builder.class); } // Construct using org.tron.trident.proto.Response.ChainParameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (chainParameterBuilder_ == null) { chainParameter_ = java.util.Collections.emptyList(); } else { chainParameter_ = null; chainParameterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_ChainParameters_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters getDefaultInstanceForType() { return org.tron.trident.proto.Response.ChainParameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters build() { org.tron.trident.proto.Response.ChainParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.ChainParameters buildPartial() { org.tron.trident.proto.Response.ChainParameters result = new org.tron.trident.proto.Response.ChainParameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.ChainParameters result) { if (chainParameterBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chainParameter_ = java.util.Collections.unmodifiableList(chainParameter_); bitField0_ = (bitField0_ & ~0x00000001); } result.chainParameter_ = chainParameter_; } else { result.chainParameter_ = chainParameterBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.ChainParameters result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.ChainParameters) { return mergeFrom((org.tron.trident.proto.Response.ChainParameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.ChainParameters other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.ChainParameters.ChainParameter m = input.readMessage( org.tron.trident.proto.Response.ChainParameters.ChainParameter.parser(), extensionRegistry); if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.add(m); } else { chainParameterBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.ChainParameters.ChainParameter, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder, org.tron.trident.proto.Response.ChainParameters.ChainParameterOrBuilder> chainParameterBuilder_; /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public java.util.List getChainParameterList() { if (chainParameterBuilder_ == null) { return java.util.Collections.unmodifiableList(chainParameter_); } else { return chainParameterBuilder_.getMessageList(); } } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public int getChainParameterCount() { if (chainParameterBuilder_ == null) { return chainParameter_.size(); } else { return chainParameterBuilder_.getCount(); } } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public org.tron.trident.proto.Response.ChainParameters.ChainParameter getChainParameter(int index) { if (chainParameterBuilder_ == null) { return chainParameter_.get(index); } else { return chainParameterBuilder_.getMessage(index); } } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder setChainParameter( int index, org.tron.trident.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; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder setChainParameter( int index, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.set(index, builderForValue.build()); onChanged(); } else { chainParameterBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder addChainParameter(org.tron.trident.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; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder addChainParameter( int index, org.tron.trident.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; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder addChainParameter( org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.add(builderForValue.build()); onChanged(); } else { chainParameterBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder addChainParameter( int index, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder builderForValue) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.add(index, builderForValue.build()); onChanged(); } else { chainParameterBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ 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; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder clearChainParameter() { if (chainParameterBuilder_ == null) { chainParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chainParameterBuilder_.clear(); } return this; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public Builder removeChainParameter(int index) { if (chainParameterBuilder_ == null) { ensureChainParameterIsMutable(); chainParameter_.remove(index); onChanged(); } else { chainParameterBuilder_.remove(index); } return this; } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder getChainParameterBuilder( int index) { return getChainParameterFieldBuilder().getBuilder(index); } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public org.tron.trident.proto.Response.ChainParameters.ChainParameterOrBuilder getChainParameterOrBuilder( int index) { if (chainParameterBuilder_ == null) { return chainParameter_.get(index); } else { return chainParameterBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public java.util.List getChainParameterOrBuilderList() { if (chainParameterBuilder_ != null) { return chainParameterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chainParameter_); } } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder addChainParameterBuilder() { return getChainParameterFieldBuilder().addBuilder( org.tron.trident.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()); } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder addChainParameterBuilder( int index) { return getChainParameterFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.ChainParameters.ChainParameter.getDefaultInstance()); } /** * repeated .protocol.ChainParameters.ChainParameter chainParameter = 1; */ public java.util.List getChainParameterBuilderList() { return getChainParameterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.ChainParameters.ChainParameter, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder, org.tron.trident.proto.Response.ChainParameters.ChainParameterOrBuilder> getChainParameterFieldBuilder() { if (chainParameterBuilder_ == null) { chainParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.ChainParameters.ChainParameter, org.tron.trident.proto.Response.ChainParameters.ChainParameter.Builder, org.tron.trident.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.tron.trident.proto.Response.ChainParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ChainParameters(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ java.util.List getPeerInfoListList(); /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ org.tron.trident.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index); /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ int getPeerInfoListCount(); /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ java.util.List getPeerInfoListOrBuilderList(); /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ org.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo(); /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo getMachineInfo(); /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ org.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder(); /** * map<string, string> cheatWitnessInfoMap = 11; */ int getCheatWitnessInfoMapCount(); /** * map<string, string> cheatWitnessInfoMap = 11; */ boolean containsCheatWitnessInfoMap( java.lang.String key); /** * Use {@link #getCheatWitnessInfoMapMap()} instead. */ @java.lang.Deprecated java.util.Map getCheatWitnessInfoMap(); /** * map<string, string> cheatWitnessInfoMap = 11; */ java.util.Map getCheatWitnessInfoMapMap(); /** * map<string, string> cheatWitnessInfoMap = 11; */ /* nullable */ java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> cheatWitnessInfoMap = 11; */ 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.class, org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.PeerInfo.class, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder.class); } public static final int LASTSYNCBLOCK_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * 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_ = false; /** * 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_ = 0L; /** * 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_ = false; /** * 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_ = false; /** * bool needSyncFromUs = 7; * @return The needSyncFromUs. */ @java.lang.Override public boolean getNeedSyncFromUs() { return needSyncFromUs_; } public static final int HOST_FIELD_NUMBER = 8; @SuppressWarnings("serial") 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_ = 0; /** * int32 port = 9; * @return The port. */ @java.lang.Override public int getPort() { return port_; } public static final int NODEID_FIELD_NUMBER = 10; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0D; /** * 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_ = 0; /** * 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_ = 0L; /** * 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_ = 0; /** * 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_ = 0L; /** * 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_ = 0; /** * int32 blockInPorcSize = 17; * @return The blockInPorcSize. */ @java.lang.Override public int getBlockInPorcSize() { return blockInPorcSize_; } public static final int HEADBLOCKWEBOTHHAVE_FIELD_NUMBER = 18; @SuppressWarnings("serial") 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_ = false; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0L; /** * 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_ = 0; /** * int32 disconnectTimes = 23; * @return The disconnectTimes. */ @java.lang.Override public int getDisconnectTimes() { return disconnectTimes_; } public static final int LOCALDISCONNECTREASON_FIELD_NUMBER = 24; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSyncBlock_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, host_); } if (port_ != 0) { output.writeInt32(9, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeId_); } if (connectTime_ != 0L) { output.writeInt64(11, connectTime_); } if (java.lang.Double.doubleToRawLongBits(avgLatency_) != 0) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headBlockWeBothHave_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localDisconnectReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, localDisconnectReason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteDisconnectReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, remoteDisconnectReason_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSyncBlock_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, host_); } if (port_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeId_); } if (connectTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, connectTime_); } if (java.lang.Double.doubleToRawLongBits(avgLatency_) != 0) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headBlockWeBothHave_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localDisconnectReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, localDisconnectReason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteDisconnectReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, remoteDisconnectReason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo.PeerInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo.PeerInfo other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo.PeerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.PeerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.PeerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.PeerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.PeerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.PeerInfo.class, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeInfo.PeerInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_NodeInfo_PeerInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.PeerInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.PeerInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.PeerInfo build() { org.tron.trident.proto.Response.NodeInfo.PeerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.PeerInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo.PeerInfo result = new org.tron.trident.proto.Response.NodeInfo.PeerInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo.PeerInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lastSyncBlock_ = lastSyncBlock_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.remainNum_ = remainNum_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lastBlockUpdateTime_ = lastBlockUpdateTime_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.syncFlag_ = syncFlag_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.headBlockTimeWeBothHave_ = headBlockTimeWeBothHave_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.needSyncFromPeer_ = needSyncFromPeer_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.needSyncFromUs_ = needSyncFromUs_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.port_ = port_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.nodeId_ = nodeId_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.connectTime_ = connectTime_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.avgLatency_ = avgLatency_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.syncToFetchSize_ = syncToFetchSize_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.syncToFetchSizePeekNum_ = syncToFetchSizePeekNum_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.syncBlockRequestedSize_ = syncBlockRequestedSize_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.unFetchSynNum_ = unFetchSynNum_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.blockInPorcSize_ = blockInPorcSize_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.headBlockWeBothHave_ = headBlockWeBothHave_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.isActive_ = isActive_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.nodeCount_ = nodeCount_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.inFlow_ = inFlow_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.disconnectTimes_ = disconnectTimes_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.localDisconnectReason_ = localDisconnectReason_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.remoteDisconnectReason_ = remoteDisconnectReason_; } } @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.tron.trident.proto.Response.NodeInfo.PeerInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo.PeerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo.PeerInfo other) { if (other == org.tron.trident.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()) return this; if (!other.getLastSyncBlock().isEmpty()) { lastSyncBlock_ = other.lastSyncBlock_; bitField0_ |= 0x00000001; 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_; bitField0_ |= 0x00000080; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } if (!other.getNodeId().isEmpty()) { nodeId_ = other.nodeId_; bitField0_ |= 0x00000200; 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_; bitField0_ |= 0x00020000; 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_; bitField0_ |= 0x00800000; onChanged(); } if (!other.getRemoteDisconnectReason().isEmpty()) { remoteDisconnectReason_ = other.remoteDisconnectReason_; bitField0_ |= 0x01000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { lastSyncBlock_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { remainNum_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { lastBlockUpdateTime_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { syncFlag_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { headBlockTimeWeBothHave_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { needSyncFromPeer_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { needSyncFromUs_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { port_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { nodeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 case 88: { connectTime_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 97: { avgLatency_ = input.readDouble(); bitField0_ |= 0x00000800; break; } // case 97 case 104: { syncToFetchSize_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 104 case 112: { syncToFetchSizePeekNum_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { syncBlockRequestedSize_ = input.readInt32(); bitField0_ |= 0x00004000; break; } // case 120 case 128: { unFetchSynNum_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 128 case 136: { blockInPorcSize_ = input.readInt32(); bitField0_ |= 0x00010000; break; } // case 136 case 146: { headBlockWeBothHave_ = input.readStringRequireUtf8(); bitField0_ |= 0x00020000; break; } // case 146 case 152: { isActive_ = input.readBool(); bitField0_ |= 0x00040000; break; } // case 152 case 160: { score_ = input.readInt32(); bitField0_ |= 0x00080000; break; } // case 160 case 168: { nodeCount_ = input.readInt32(); bitField0_ |= 0x00100000; break; } // case 168 case 176: { inFlow_ = input.readInt64(); bitField0_ |= 0x00200000; break; } // case 176 case 184: { disconnectTimes_ = input.readInt32(); bitField0_ |= 0x00400000; break; } // case 184 case 194: { localDisconnectReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00800000; break; } // case 194 case 202: { remoteDisconnectReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x01000000; break; } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string lastSyncBlock = 1; * @return This builder for chaining. */ public Builder clearLastSyncBlock() { lastSyncBlock_ = getDefaultInstance().getLastSyncBlock(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 remainNum = 2; * @return This builder for chaining. */ public Builder clearRemainNum() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 lastBlockUpdateTime = 3; * @return This builder for chaining. */ public Builder clearLastBlockUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool syncFlag = 4; * @return This builder for chaining. */ public Builder clearSyncFlag() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 headBlockTimeWeBothHave = 5; * @return This builder for chaining. */ public Builder clearHeadBlockTimeWeBothHave() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool needSyncFromPeer = 6; * @return This builder for chaining. */ public Builder clearNeedSyncFromPeer() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bool needSyncFromUs = 7; * @return This builder for chaining. */ public Builder clearNeedSyncFromUs() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * string host = 8; * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000080; 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int32 port = 9; * @return This builder for chaining. */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * string nodeId = 10; * @return This builder for chaining. */ public Builder clearNodeId() { nodeId_ = getDefaultInstance().getNodeId(); bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000200; 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int64 connectTime = 11; * @return This builder for chaining. */ public Builder clearConnectTime() { bitField0_ = (bitField0_ & ~0x00000400); 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; bitField0_ |= 0x00000800; onChanged(); return this; } /** * double avgLatency = 12; * @return This builder for chaining. */ public Builder clearAvgLatency() { bitField0_ = (bitField0_ & ~0x00000800); 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int32 syncToFetchSize = 13; * @return This builder for chaining. */ public Builder clearSyncToFetchSize() { bitField0_ = (bitField0_ & ~0x00001000); 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** * int64 syncToFetchSizePeekNum = 14; * @return This builder for chaining. */ public Builder clearSyncToFetchSizePeekNum() { bitField0_ = (bitField0_ & ~0x00002000); 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; bitField0_ |= 0x00004000; onChanged(); return this; } /** * int32 syncBlockRequestedSize = 15; * @return This builder for chaining. */ public Builder clearSyncBlockRequestedSize() { bitField0_ = (bitField0_ & ~0x00004000); 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; bitField0_ |= 0x00008000; onChanged(); return this; } /** * int64 unFetchSynNum = 16; * @return This builder for chaining. */ public Builder clearUnFetchSynNum() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** * int32 blockInPorcSize = 17; * @return This builder for chaining. */ public Builder clearBlockInPorcSize() { bitField0_ = (bitField0_ & ~0x00010000); 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; bitField0_ |= 0x00020000; onChanged(); return this; } /** * string headBlockWeBothHave = 18; * @return This builder for chaining. */ public Builder clearHeadBlockWeBothHave() { headBlockWeBothHave_ = getDefaultInstance().getHeadBlockWeBothHave(); bitField0_ = (bitField0_ & ~0x00020000); 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; bitField0_ |= 0x00020000; 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; bitField0_ |= 0x00040000; onChanged(); return this; } /** * bool isActive = 19; * @return This builder for chaining. */ public Builder clearIsActive() { bitField0_ = (bitField0_ & ~0x00040000); 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; bitField0_ |= 0x00080000; onChanged(); return this; } /** * int32 score = 20; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00080000); 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; bitField0_ |= 0x00100000; onChanged(); return this; } /** * int32 nodeCount = 21; * @return This builder for chaining. */ public Builder clearNodeCount() { bitField0_ = (bitField0_ & ~0x00100000); 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; bitField0_ |= 0x00200000; onChanged(); return this; } /** * int64 inFlow = 22; * @return This builder for chaining. */ public Builder clearInFlow() { bitField0_ = (bitField0_ & ~0x00200000); 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; bitField0_ |= 0x00400000; onChanged(); return this; } /** * int32 disconnectTimes = 23; * @return This builder for chaining. */ public Builder clearDisconnectTimes() { bitField0_ = (bitField0_ & ~0x00400000); 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; bitField0_ |= 0x00800000; onChanged(); return this; } /** * string localDisconnectReason = 24; * @return This builder for chaining. */ public Builder clearLocalDisconnectReason() { localDisconnectReason_ = getDefaultInstance().getLocalDisconnectReason(); bitField0_ = (bitField0_ & ~0x00800000); 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; bitField0_ |= 0x00800000; 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; bitField0_ |= 0x01000000; onChanged(); return this; } /** * string remoteDisconnectReason = 25; * @return This builder for chaining. */ public Builder clearRemoteDisconnectReason() { remoteDisconnectReason_ = getDefaultInstance().getRemoteDisconnectReason(); bitField0_ = (bitField0_ & ~0x01000000); 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; bitField0_ |= 0x01000000; 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.tron.trident.proto.Response.NodeInfo.PeerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo.PeerInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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 allowAdaptiveEnergy = 19; * @return The allowAdaptiveEnergy. */ long getAllowAdaptiveEnergy(); } /** * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.class, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder.class); } public static final int CODEVERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = 0; /** * 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_ = false; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = false; /** * 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_ = 0D; /** * 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_ = 0D; /** * 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_ = 0L; /** * int64 allowCreationOfContracts = 18; * @return The allowCreationOfContracts. */ @java.lang.Override public long getAllowCreationOfContracts() { return allowCreationOfContracts_; } public static final int ALLOWADAPTIVEENERGY_FIELD_NUMBER = 19; private long allowAdaptiveEnergy_ = 0L; /** * int64 allowAdaptiveEnergy = 19; * @return The allowAdaptiveEnergy. */ @java.lang.Override public long getAllowAdaptiveEnergy() { return allowAdaptiveEnergy_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, codeVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(p2PVersion_)) { 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 (java.lang.Double.doubleToRawLongBits(minTimeRatio_) != 0) { output.writeDouble(16, minTimeRatio_); } if (java.lang.Double.doubleToRawLongBits(maxTimeRatio_) != 0) { output.writeDouble(17, maxTimeRatio_); } if (allowCreationOfContracts_ != 0L) { output.writeInt64(18, allowCreationOfContracts_); } if (allowAdaptiveEnergy_ != 0L) { output.writeInt64(19, allowAdaptiveEnergy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, codeVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(p2PVersion_)) { 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 (java.lang.Double.doubleToRawLongBits(minTimeRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(16, minTimeRatio_); } if (java.lang.Double.doubleToRawLongBits(maxTimeRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(17, maxTimeRatio_); } if (allowCreationOfContracts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, allowCreationOfContracts_); } if (allowAdaptiveEnergy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, allowAdaptiveEnergy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo other = (org.tron.trident.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 (getAllowAdaptiveEnergy() != other.getAllowAdaptiveEnergy()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + ALLOWADAPTIVEENERGY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllowAdaptiveEnergy()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.class, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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; allowAdaptiveEnergy_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_ConfigNodeInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo build() { org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo result = new org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.codeVersion_ = codeVersion_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.p2PVersion_ = p2PVersion_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.listenPort_ = listenPort_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.discoverEnable_ = discoverEnable_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.activeNodeSize_ = activeNodeSize_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.passiveNodeSize_ = passiveNodeSize_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.sendNodeSize_ = sendNodeSize_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.maxConnectCount_ = maxConnectCount_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.sameIpMaxConnectCount_ = sameIpMaxConnectCount_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.backupListenPort_ = backupListenPort_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.backupMemberSize_ = backupMemberSize_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.backupPriority_ = backupPriority_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.dbVersion_ = dbVersion_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.minParticipationRate_ = minParticipationRate_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.supportConstant_ = supportConstant_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.minTimeRatio_ = minTimeRatio_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.maxTimeRatio_ = maxTimeRatio_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.allowCreationOfContracts_ = allowCreationOfContracts_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.allowAdaptiveEnergy_ = allowAdaptiveEnergy_; } } @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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo other) { if (other == org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance()) return this; if (!other.getCodeVersion().isEmpty()) { codeVersion_ = other.codeVersion_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getP2PVersion().isEmpty()) { p2PVersion_ = other.p2PVersion_; bitField0_ |= 0x00000002; 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.getAllowAdaptiveEnergy() != 0L) { setAllowAdaptiveEnergy(other.getAllowAdaptiveEnergy()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { codeVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { p2PVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { listenPort_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { discoverEnable_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { activeNodeSize_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { passiveNodeSize_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { sendNodeSize_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { maxConnectCount_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { sameIpMaxConnectCount_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { backupListenPort_ = input.readInt32(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { backupMemberSize_ = input.readInt32(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { backupPriority_ = input.readInt32(); bitField0_ |= 0x00000800; break; } // case 96 case 104: { dbVersion_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 104 case 112: { minParticipationRate_ = input.readInt32(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { supportConstant_ = input.readBool(); bitField0_ |= 0x00004000; break; } // case 120 case 129: { minTimeRatio_ = input.readDouble(); bitField0_ |= 0x00008000; break; } // case 129 case 137: { maxTimeRatio_ = input.readDouble(); bitField0_ |= 0x00010000; break; } // case 137 case 144: { allowCreationOfContracts_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 144 case 152: { allowAdaptiveEnergy_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string codeVersion = 1; * @return This builder for chaining. */ public Builder clearCodeVersion() { codeVersion_ = getDefaultInstance().getCodeVersion(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string p2pVersion = 2; * @return This builder for chaining. */ public Builder clearP2PVersion() { p2PVersion_ = getDefaultInstance().getP2PVersion(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 listenPort = 3; * @return This builder for chaining. */ public Builder clearListenPort() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool discoverEnable = 4; * @return This builder for chaining. */ public Builder clearDiscoverEnable() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int32 activeNodeSize = 5; * @return This builder for chaining. */ public Builder clearActiveNodeSize() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int32 passiveNodeSize = 6; * @return This builder for chaining. */ public Builder clearPassiveNodeSize() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int32 sendNodeSize = 7; * @return This builder for chaining. */ public Builder clearSendNodeSize() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int32 maxConnectCount = 8; * @return This builder for chaining. */ public Builder clearMaxConnectCount() { bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int32 sameIpMaxConnectCount = 9; * @return This builder for chaining. */ public Builder clearSameIpMaxConnectCount() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * int32 backupListenPort = 10; * @return This builder for chaining. */ public Builder clearBackupListenPort() { bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int32 backupMemberSize = 11; * @return This builder for chaining. */ public Builder clearBackupMemberSize() { bitField0_ = (bitField0_ & ~0x00000400); 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; bitField0_ |= 0x00000800; onChanged(); return this; } /** * int32 backupPriority = 12; * @return This builder for chaining. */ public Builder clearBackupPriority() { bitField0_ = (bitField0_ & ~0x00000800); 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int32 dbVersion = 13; * @return This builder for chaining. */ public Builder clearDbVersion() { bitField0_ = (bitField0_ & ~0x00001000); 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** * int32 minParticipationRate = 14; * @return This builder for chaining. */ public Builder clearMinParticipationRate() { bitField0_ = (bitField0_ & ~0x00002000); 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; bitField0_ |= 0x00004000; onChanged(); return this; } /** * bool supportConstant = 15; * @return This builder for chaining. */ public Builder clearSupportConstant() { bitField0_ = (bitField0_ & ~0x00004000); 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; bitField0_ |= 0x00008000; onChanged(); return this; } /** * double minTimeRatio = 16; * @return This builder for chaining. */ public Builder clearMinTimeRatio() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** * double maxTimeRatio = 17; * @return This builder for chaining. */ public Builder clearMaxTimeRatio() { bitField0_ = (bitField0_ & ~0x00010000); 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; bitField0_ |= 0x00020000; onChanged(); return this; } /** * int64 allowCreationOfContracts = 18; * @return This builder for chaining. */ public Builder clearAllowCreationOfContracts() { bitField0_ = (bitField0_ & ~0x00020000); allowCreationOfContracts_ = 0L; onChanged(); return this; } private long allowAdaptiveEnergy_ ; /** * int64 allowAdaptiveEnergy = 19; * @return The allowAdaptiveEnergy. */ @java.lang.Override public long getAllowAdaptiveEnergy() { return allowAdaptiveEnergy_; } /** * int64 allowAdaptiveEnergy = 19; * @param value The allowAdaptiveEnergy to set. * @return This builder for chaining. */ public Builder setAllowAdaptiveEnergy(long value) { allowAdaptiveEnergy_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * int64 allowAdaptiveEnergy = 19; * @return This builder for chaining. */ public Builder clearAllowAdaptiveEnergy() { bitField0_ = (bitField0_ & ~0x00040000); allowAdaptiveEnergy_ = 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.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ java.util.List getMemoryDescInfoListList(); /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index); /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ int getMemoryDescInfoListCount(); /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ java.util.List getMemoryDescInfoListOrBuilderList(); /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index); /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ java.util.List getDeadLockThreadInfoListList(); /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index); /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ int getDeadLockThreadInfoListCount(); /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ java.util.List getDeadLockThreadInfoListOrBuilderList(); /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.class, org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.class, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0D; /** * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 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 (java.lang.Double.doubleToRawLongBits(useRate_) != 0) { output.writeDouble(5, useRate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 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 (java.lang.Double.doubleToRawLongBits(useRate_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, useRate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.class, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; initSize_ = 0L; useSize_ = 0L; maxSize_ = 0L; useRate_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_MemoryDescInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo build() { org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo result = new org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.initSize_ = initSize_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.useSize_ = useSize_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxSize_ = maxSize_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.useRate_ = useRate_; } } @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.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo other) { if (other == org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { initSize_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { useSize_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { maxSize_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 41: { useRate_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 initSize = 2; * @return This builder for chaining. */ public Builder clearInitSize() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 useSize = 3; * @return This builder for chaining. */ public Builder clearUseSize() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 maxSize = 4; * @return This builder for chaining. */ public Builder clearMaxSize() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double useRate = 5; * @return This builder for chaining. */ public Builder clearUseRate() { bitField0_ = (bitField0_ & ~0x00000010); 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.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.class, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * int64 waitTime = 6; * @return The waitTime. */ @java.lang.Override public long getWaitTime() { return waitTime_; } public static final int STACKTRACE_FIELD_NUMBER = 7; @SuppressWarnings("serial") 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lockName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockOwner_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lockOwner_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, state_); } if (blockTime_ != 0L) { output.writeInt64(5, blockTime_); } if (waitTime_ != 0L) { output.writeInt64(6, waitTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stackTrace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stackTrace_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lockName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockOwner_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lockOwner_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stackTrace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stackTrace_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.class, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; lockName_ = ""; lockOwner_ = ""; state_ = ""; blockTime_ = 0L; waitTime_ = 0L; stackTrace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_DeadLockThreadInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo build() { org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo result = new org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.lockName_ = lockName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lockOwner_ = lockOwner_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.blockTime_ = blockTime_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.waitTime_ = waitTime_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.stackTrace_ = stackTrace_; } } @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.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo other) { if (other == org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLockName().isEmpty()) { lockName_ = other.lockName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getLockOwner().isEmpty()) { lockOwner_ = other.lockOwner_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getState().isEmpty()) { state_ = other.state_; bitField0_ |= 0x00000008; onChanged(); } if (other.getBlockTime() != 0L) { setBlockTime(other.getBlockTime()); } if (other.getWaitTime() != 0L) { setWaitTime(other.getWaitTime()); } if (!other.getStackTrace().isEmpty()) { stackTrace_ = other.stackTrace_; bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { lockName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { lockOwner_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { state_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { blockTime_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { waitTime_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { stackTrace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string lockName = 2; * @return This builder for chaining. */ public Builder clearLockName() { lockName_ = getDefaultInstance().getLockName(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string lockOwner = 3; * @return This builder for chaining. */ public Builder clearLockOwner() { lockOwner_ = getDefaultInstance().getLockOwner(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string state = 4; * @return This builder for chaining. */ public Builder clearState() { state_ = getDefaultInstance().getState(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 blockTime = 5; * @return This builder for chaining. */ public Builder clearBlockTime() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 waitTime = 6; * @return This builder for chaining. */ public Builder clearWaitTime() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string stackTrace = 7; * @return This builder for chaining. */ public Builder clearStackTrace() { stackTrace_ = getDefaultInstance().getStackTrace(); bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000040; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) } // @@protoc_insertion_point(class_scope:protocol.NodeInfo.MachineInfo.DeadLockThreadInfo) private static final org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int THREADCOUNT_FIELD_NUMBER = 1; private int threadCount_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0D; /** * double cpuRate = 6; * @return The cpuRate. */ @java.lang.Override public double getCpuRate() { return cpuRate_; } public static final int JAVAVERSION_FIELD_NUMBER = 7; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0D; /** * double processCpuRate = 11; * @return The processCpuRate. */ @java.lang.Override public double getProcessCpuRate() { return processCpuRate_; } public static final int MEMORYDESCINFOLIST_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List memoryDescInfoList_; /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ @java.lang.Override public java.util.List getMemoryDescInfoListList() { return memoryDescInfoList_; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ @java.lang.Override public java.util.List getMemoryDescInfoListOrBuilderList() { return memoryDescInfoList_; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ @java.lang.Override public int getMemoryDescInfoListCount() { return memoryDescInfoList_.size(); } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index) { return memoryDescInfoList_.get(index); } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index) { return memoryDescInfoList_.get(index); } public static final int DEADLOCKTHREADINFOLIST_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List deadLockThreadInfoList_; /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ @java.lang.Override public java.util.List getDeadLockThreadInfoListList() { return deadLockThreadInfoList_; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ @java.lang.Override public java.util.List getDeadLockThreadInfoListOrBuilderList() { return deadLockThreadInfoList_; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ @java.lang.Override public int getDeadLockThreadInfoListCount() { return deadLockThreadInfoList_.size(); } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index) { return deadLockThreadInfoList_.get(index); } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ @java.lang.Override public org.tron.trident.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 (java.lang.Double.doubleToRawLongBits(cpuRate_) != 0) { output.writeDouble(6, cpuRate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(javaVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, javaVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, osName_); } if (jvmTotalMemoery_ != 0L) { output.writeInt64(9, jvmTotalMemoery_); } if (jvmFreeMemory_ != 0L) { output.writeInt64(10, jvmFreeMemory_); } if (java.lang.Double.doubleToRawLongBits(processCpuRate_) != 0) { 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)); } getUnknownFields().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 (java.lang.Double.doubleToRawLongBits(cpuRate_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, cpuRate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(javaVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, javaVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osName_)) { 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 (java.lang.Double.doubleToRawLongBits(processCpuRate_) != 0) { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo.MachineInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo.MachineInfo other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo.MachineInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.MachineInfo.class, org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeInfo.MachineInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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(); } else { memoryDescInfoList_ = null; memoryDescInfoListBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoList_ = java.util.Collections.emptyList(); } else { deadLockThreadInfoList_ = null; deadLockThreadInfoListBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_MachineInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo build() { org.tron.trident.proto.Response.NodeInfo.MachineInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo.MachineInfo result = new org.tron.trident.proto.Response.NodeInfo.MachineInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.NodeInfo.MachineInfo result) { if (memoryDescInfoListBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { memoryDescInfoList_ = java.util.Collections.unmodifiableList(memoryDescInfoList_); bitField0_ = (bitField0_ & ~0x00000800); } result.memoryDescInfoList_ = memoryDescInfoList_; } else { result.memoryDescInfoList_ = memoryDescInfoListBuilder_.build(); } if (deadLockThreadInfoListBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { deadLockThreadInfoList_ = java.util.Collections.unmodifiableList(deadLockThreadInfoList_); bitField0_ = (bitField0_ & ~0x00001000); } result.deadLockThreadInfoList_ = deadLockThreadInfoList_; } else { result.deadLockThreadInfoList_ = deadLockThreadInfoListBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo.MachineInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.threadCount_ = threadCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.deadLockThreadCount_ = deadLockThreadCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cpuCount_ = cpuCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalMemory_ = totalMemory_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.freeMemory_ = freeMemory_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.cpuRate_ = cpuRate_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.javaVersion_ = javaVersion_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.osName_ = osName_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.jvmTotalMemoery_ = jvmTotalMemoery_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.jvmFreeMemory_ = jvmFreeMemory_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.processCpuRate_ = processCpuRate_; } } @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.tron.trident.proto.Response.NodeInfo.MachineInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo.MachineInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo.MachineInfo other) { if (other == org.tron.trident.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_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getOsName().isEmpty()) { osName_ = other.osName_; bitField0_ |= 0x00000080; 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_ & ~0x00000800); } else { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.addAll(other.memoryDescInfoList_); } onChanged(); } } else { if (!other.memoryDescInfoList_.isEmpty()) { if (memoryDescInfoListBuilder_.isEmpty()) { memoryDescInfoListBuilder_.dispose(); memoryDescInfoListBuilder_ = null; memoryDescInfoList_ = other.memoryDescInfoList_; bitField0_ = (bitField0_ & ~0x00000800); 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_ & ~0x00001000); } else { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.addAll(other.deadLockThreadInfoList_); } onChanged(); } } else { if (!other.deadLockThreadInfoList_.isEmpty()) { if (deadLockThreadInfoListBuilder_.isEmpty()) { deadLockThreadInfoListBuilder_.dispose(); deadLockThreadInfoListBuilder_ = null; deadLockThreadInfoList_ = other.deadLockThreadInfoList_; bitField0_ = (bitField0_ & ~0x00001000); deadLockThreadInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeadLockThreadInfoListFieldBuilder() : null; } else { deadLockThreadInfoListBuilder_.addAllMessages(other.deadLockThreadInfoList_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { threadCount_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { deadLockThreadCount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { cpuCount_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { totalMemory_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { freeMemory_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 49: { cpuRate_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 58: { javaVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { osName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { jvmTotalMemoery_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { jvmFreeMemory_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 89: { processCpuRate_ = input.readDouble(); bitField0_ |= 0x00000400; break; } // case 89 case 98: { org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo m = input.readMessage( org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.parser(), extensionRegistry); if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(m); } else { memoryDescInfoListBuilder_.addMessage(m); } break; } // case 98 case 106: { org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo m = input.readMessage( org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.parser(), extensionRegistry); if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(m); } else { deadLockThreadInfoListBuilder_.addMessage(m); } break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 threadCount = 1; * @return This builder for chaining. */ public Builder clearThreadCount() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 deadLockThreadCount = 2; * @return This builder for chaining. */ public Builder clearDeadLockThreadCount() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 cpuCount = 3; * @return This builder for chaining. */ public Builder clearCpuCount() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 totalMemory = 4; * @return This builder for chaining. */ public Builder clearTotalMemory() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 freeMemory = 5; * @return This builder for chaining. */ public Builder clearFreeMemory() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * double cpuRate = 6; * @return This builder for chaining. */ public Builder clearCpuRate() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string javaVersion = 7; * @return This builder for chaining. */ public Builder clearJavaVersion() { javaVersion_ = getDefaultInstance().getJavaVersion(); bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000040; 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * string osName = 8; * @return This builder for chaining. */ public Builder clearOsName() { osName_ = getDefaultInstance().getOsName(); bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000080; 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 jvmTotalMemoery = 9; * @return This builder for chaining. */ public Builder clearJvmTotalMemoery() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * int64 jvmFreeMemory = 10; * @return This builder for chaining. */ public Builder clearJvmFreeMemory() { bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * double processCpuRate = 11; * @return This builder for chaining. */ public Builder clearProcessCpuRate() { bitField0_ = (bitField0_ & ~0x00000400); processCpuRate_ = 0D; onChanged(); return this; } private java.util.List memoryDescInfoList_ = java.util.Collections.emptyList(); private void ensureMemoryDescInfoListIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { memoryDescInfoList_ = new java.util.ArrayList(memoryDescInfoList_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder> memoryDescInfoListBuilder_; /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public java.util.List getMemoryDescInfoListList() { if (memoryDescInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(memoryDescInfoList_); } else { return memoryDescInfoListBuilder_.getMessageList(); } } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public int getMemoryDescInfoListCount() { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.size(); } else { return memoryDescInfoListBuilder_.getCount(); } } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo getMemoryDescInfoList(int index) { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.get(index); } else { return memoryDescInfoListBuilder_.getMessage(index); } } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder setMemoryDescInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder setMemoryDescInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder addMemoryDescInfoList(org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder addMemoryDescInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder addMemoryDescInfoList( org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder builderForValue) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.add(builderForValue.build()); onChanged(); } else { memoryDescInfoListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder addMemoryDescInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ 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; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder clearMemoryDescInfoList() { if (memoryDescInfoListBuilder_ == null) { memoryDescInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { memoryDescInfoListBuilder_.clear(); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public Builder removeMemoryDescInfoList(int index) { if (memoryDescInfoListBuilder_ == null) { ensureMemoryDescInfoListIsMutable(); memoryDescInfoList_.remove(index); onChanged(); } else { memoryDescInfoListBuilder_.remove(index); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder getMemoryDescInfoListBuilder( int index) { return getMemoryDescInfoListFieldBuilder().getBuilder(index); } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder getMemoryDescInfoListOrBuilder( int index) { if (memoryDescInfoListBuilder_ == null) { return memoryDescInfoList_.get(index); } else { return memoryDescInfoListBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public java.util.List getMemoryDescInfoListOrBuilderList() { if (memoryDescInfoListBuilder_ != null) { return memoryDescInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(memoryDescInfoList_); } } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder addMemoryDescInfoListBuilder() { return getMemoryDescInfoListFieldBuilder().addBuilder( org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder addMemoryDescInfoListBuilder( int index) { return getMemoryDescInfoListFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.MachineInfo.MemoryDescInfo memoryDescInfoList = 12; */ public java.util.List getMemoryDescInfoListBuilderList() { return getMemoryDescInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder> getMemoryDescInfoListFieldBuilder() { if (memoryDescInfoListBuilder_ == null) { memoryDescInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.MemoryDescInfoOrBuilder>( memoryDescInfoList_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); memoryDescInfoList_ = null; } return memoryDescInfoListBuilder_; } private java.util.List deadLockThreadInfoList_ = java.util.Collections.emptyList(); private void ensureDeadLockThreadInfoListIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { deadLockThreadInfoList_ = new java.util.ArrayList(deadLockThreadInfoList_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder> deadLockThreadInfoListBuilder_; /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public java.util.List getDeadLockThreadInfoListList() { if (deadLockThreadInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(deadLockThreadInfoList_); } else { return deadLockThreadInfoListBuilder_.getMessageList(); } } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public int getDeadLockThreadInfoListCount() { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.size(); } else { return deadLockThreadInfoListBuilder_.getCount(); } } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo getDeadLockThreadInfoList(int index) { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.get(index); } else { return deadLockThreadInfoListBuilder_.getMessage(index); } } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder setDeadLockThreadInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder setDeadLockThreadInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder addDeadLockThreadInfoList(org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder addDeadLockThreadInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder addDeadLockThreadInfoList( org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder builderForValue) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.add(builderForValue.build()); onChanged(); } else { deadLockThreadInfoListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder addDeadLockThreadInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ 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; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder clearDeadLockThreadInfoList() { if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { deadLockThreadInfoListBuilder_.clear(); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public Builder removeDeadLockThreadInfoList(int index) { if (deadLockThreadInfoListBuilder_ == null) { ensureDeadLockThreadInfoListIsMutable(); deadLockThreadInfoList_.remove(index); onChanged(); } else { deadLockThreadInfoListBuilder_.remove(index); } return this; } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder getDeadLockThreadInfoListBuilder( int index) { return getDeadLockThreadInfoListFieldBuilder().getBuilder(index); } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder getDeadLockThreadInfoListOrBuilder( int index) { if (deadLockThreadInfoListBuilder_ == null) { return deadLockThreadInfoList_.get(index); } else { return deadLockThreadInfoListBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public java.util.List getDeadLockThreadInfoListOrBuilderList() { if (deadLockThreadInfoListBuilder_ != null) { return deadLockThreadInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(deadLockThreadInfoList_); } } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder addDeadLockThreadInfoListBuilder() { return getDeadLockThreadInfoListFieldBuilder().addBuilder( org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder addDeadLockThreadInfoListBuilder( int index) { return getDeadLockThreadInfoListFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.MachineInfo.DeadLockThreadInfo deadLockThreadInfoList = 13; */ public java.util.List getDeadLockThreadInfoListBuilderList() { return getDeadLockThreadInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder> getDeadLockThreadInfoListFieldBuilder() { if (deadLockThreadInfoListBuilder_ == null) { deadLockThreadInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfo.DeadLockThreadInfoOrBuilder>( deadLockThreadInfoList_, ((bitField0_ & 0x00001000) != 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.tron.trident.proto.Response.NodeInfo.MachineInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo.MachineInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int BEGINSYNCNUM_FIELD_NUMBER = 1; private long beginSyncNum_ = 0L; /** * int64 beginSyncNum = 1; * @return The beginSyncNum. */ @java.lang.Override public long getBeginSyncNum() { return beginSyncNum_; } public static final int BLOCK_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = 0; /** *
     * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0L; /** * int64 totalFlow = 7; * @return The totalFlow. */ @java.lang.Override public long getTotalFlow() { return totalFlow_; } public static final int PEERINFOLIST_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List peerInfoList_; /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ @java.lang.Override public java.util.List getPeerInfoListList() { return peerInfoList_; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ @java.lang.Override public java.util.List getPeerInfoListOrBuilderList() { return peerInfoList_; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ @java.lang.Override public int getPeerInfoListCount() { return peerInfoList_.size(); } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index) { return peerInfoList_.get(index); } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder getPeerInfoListOrBuilder( int index) { return peerInfoList_.get(index); } public static final int CONFIGNODEINFO_FIELD_NUMBER = 9; private org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo configNodeInfo_; /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return Whether the configNodeInfo field is set. */ @java.lang.Override public boolean hasConfigNodeInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return The configNodeInfo. */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo() { return configNodeInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder() { return configNodeInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } public static final int MACHINEINFO_FIELD_NUMBER = 10; private org.tron.trident.proto.Response.NodeInfo.MachineInfo machineInfo_; /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return Whether the machineInfo field is set. */ @java.lang.Override public boolean hasMachineInfo() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return The machineInfo. */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfo getMachineInfo() { return machineInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ @java.lang.Override public org.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder() { return machineInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } 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.tron.trident.proto.Response.internal_static_protocol_NodeInfo_CheatWitnessInfoMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") 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(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ @java.lang.Override public boolean containsCheatWitnessInfoMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 /* nullable */ java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, block_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solidityBlock_)) { 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getConfigNodeInfo()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getMachineInfo()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCheatWitnessInfoMap(), CheatWitnessInfoMapDefaultEntryHolder.defaultEntry, 11); getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, block_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solidityBlock_)) { 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getConfigNodeInfo()); } if (((bitField0_ & 0x00000002) != 0)) { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeInfo)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeInfo other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.NodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.NodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 11: return internalGetCheatWitnessInfoMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_NodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeInfo.class, org.tron.trident.proto.Response.NodeInfo.Builder.class); } // Construct using org.tron.trident.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(); getConfigNodeInfoFieldBuilder(); getMachineInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; beginSyncNum_ = 0L; block_ = ""; solidityBlock_ = ""; currentConnectCount_ = 0; activeConnectCount_ = 0; passiveConnectCount_ = 0; totalFlow_ = 0L; if (peerInfoListBuilder_ == null) { peerInfoList_ = java.util.Collections.emptyList(); } else { peerInfoList_ = null; peerInfoListBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); configNodeInfo_ = null; if (configNodeInfoBuilder_ != null) { configNodeInfoBuilder_.dispose(); configNodeInfoBuilder_ = null; } machineInfo_ = null; if (machineInfoBuilder_ != null) { machineInfoBuilder_.dispose(); machineInfoBuilder_ = null; } internalGetMutableCheatWitnessInfoMap().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeInfo_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo build() { org.tron.trident.proto.Response.NodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeInfo buildPartial() { org.tron.trident.proto.Response.NodeInfo result = new org.tron.trident.proto.Response.NodeInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.NodeInfo result) { if (peerInfoListBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { peerInfoList_ = java.util.Collections.unmodifiableList(peerInfoList_); bitField0_ = (bitField0_ & ~0x00000080); } result.peerInfoList_ = peerInfoList_; } else { result.peerInfoList_ = peerInfoListBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.NodeInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.beginSyncNum_ = beginSyncNum_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.block_ = block_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.solidityBlock_ = solidityBlock_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.currentConnectCount_ = currentConnectCount_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.activeConnectCount_ = activeConnectCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.passiveConnectCount_ = passiveConnectCount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.totalFlow_ = totalFlow_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { result.configNodeInfo_ = configNodeInfoBuilder_ == null ? configNodeInfo_ : configNodeInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000200) != 0)) { result.machineInfo_ = machineInfoBuilder_ == null ? machineInfo_ : machineInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000400) != 0)) { result.cheatWitnessInfoMap_ = internalGetCheatWitnessInfoMap(); result.cheatWitnessInfoMap_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.NodeInfo) { return mergeFrom((org.tron.trident.proto.Response.NodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeInfo other) { if (other == org.tron.trident.proto.Response.NodeInfo.getDefaultInstance()) return this; if (other.getBeginSyncNum() != 0L) { setBeginSyncNum(other.getBeginSyncNum()); } if (!other.getBlock().isEmpty()) { block_ = other.block_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSolidityBlock().isEmpty()) { solidityBlock_ = other.solidityBlock_; bitField0_ |= 0x00000004; 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_ & ~0x00000080); } else { ensurePeerInfoListIsMutable(); peerInfoList_.addAll(other.peerInfoList_); } onChanged(); } } else { if (!other.peerInfoList_.isEmpty()) { if (peerInfoListBuilder_.isEmpty()) { peerInfoListBuilder_.dispose(); peerInfoListBuilder_ = null; peerInfoList_ = other.peerInfoList_; bitField0_ = (bitField0_ & ~0x00000080); 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()); bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { beginSyncNum_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { block_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { solidityBlock_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { currentConnectCount_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { activeConnectCount_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { passiveConnectCount_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { totalFlow_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { org.tron.trident.proto.Response.NodeInfo.PeerInfo m = input.readMessage( org.tron.trident.proto.Response.NodeInfo.PeerInfo.parser(), extensionRegistry); if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.add(m); } else { peerInfoListBuilder_.addMessage(m); } break; } // case 66 case 74: { input.readMessage( getConfigNodeInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getMachineInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { com.google.protobuf.MapEntry cheatWitnessInfoMap__ = input.readMessage( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCheatWitnessInfoMap().getMutableMap().put( cheatWitnessInfoMap__.getKey(), cheatWitnessInfoMap__.getValue()); bitField0_ |= 0x00000400; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 beginSyncNum = 1; * @return This builder for chaining. */ public Builder clearBeginSyncNum() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string block = 2; * @return This builder for chaining. */ public Builder clearBlock() { block_ = getDefaultInstance().getBlock(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string solidityBlock = 3; * @return This builder for chaining. */ public Builder clearSolidityBlock() { solidityBlock_ = getDefaultInstance().getSolidityBlock(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * connect information
       * 
* * int32 currentConnectCount = 4; * @return This builder for chaining. */ public Builder clearCurrentConnectCount() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int32 activeConnectCount = 5; * @return This builder for chaining. */ public Builder clearActiveConnectCount() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int32 passiveConnectCount = 6; * @return This builder for chaining. */ public Builder clearPassiveConnectCount() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 totalFlow = 7; * @return This builder for chaining. */ public Builder clearTotalFlow() { bitField0_ = (bitField0_ & ~0x00000040); totalFlow_ = 0L; onChanged(); return this; } private java.util.List peerInfoList_ = java.util.Collections.emptyList(); private void ensurePeerInfoListIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { peerInfoList_ = new java.util.ArrayList(peerInfoList_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.PeerInfo, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder, org.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder> peerInfoListBuilder_; /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public java.util.List getPeerInfoListList() { if (peerInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(peerInfoList_); } else { return peerInfoListBuilder_.getMessageList(); } } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public int getPeerInfoListCount() { if (peerInfoListBuilder_ == null) { return peerInfoList_.size(); } else { return peerInfoListBuilder_.getCount(); } } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public org.tron.trident.proto.Response.NodeInfo.PeerInfo getPeerInfoList(int index) { if (peerInfoListBuilder_ == null) { return peerInfoList_.get(index); } else { return peerInfoListBuilder_.getMessage(index); } } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder setPeerInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder setPeerInfoList( int index, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.set(index, builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder addPeerInfoList(org.tron.trident.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; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder addPeerInfoList( int index, org.tron.trident.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; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder addPeerInfoList( org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.add(builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder addPeerInfoList( int index, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder builderForValue) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.add(index, builderForValue.build()); onChanged(); } else { peerInfoListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ 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; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder clearPeerInfoList() { if (peerInfoListBuilder_ == null) { peerInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { peerInfoListBuilder_.clear(); } return this; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public Builder removePeerInfoList(int index) { if (peerInfoListBuilder_ == null) { ensurePeerInfoListIsMutable(); peerInfoList_.remove(index); onChanged(); } else { peerInfoListBuilder_.remove(index); } return this; } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder getPeerInfoListBuilder( int index) { return getPeerInfoListFieldBuilder().getBuilder(index); } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public org.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder getPeerInfoListOrBuilder( int index) { if (peerInfoListBuilder_ == null) { return peerInfoList_.get(index); } else { return peerInfoListBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public java.util.List getPeerInfoListOrBuilderList() { if (peerInfoListBuilder_ != null) { return peerInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(peerInfoList_); } } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder addPeerInfoListBuilder() { return getPeerInfoListFieldBuilder().addBuilder( org.tron.trident.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder addPeerInfoListBuilder( int index) { return getPeerInfoListFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.NodeInfo.PeerInfo.getDefaultInstance()); } /** * repeated .protocol.NodeInfo.PeerInfo peerInfoList = 8; */ public java.util.List getPeerInfoListBuilderList() { return getPeerInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.PeerInfo, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder, org.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder> getPeerInfoListFieldBuilder() { if (peerInfoListBuilder_ == null) { peerInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.PeerInfo, org.tron.trident.proto.Response.NodeInfo.PeerInfo.Builder, org.tron.trident.proto.Response.NodeInfo.PeerInfoOrBuilder>( peerInfoList_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); peerInfoList_ = null; } return peerInfoListBuilder_; } private org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo configNodeInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder> configNodeInfoBuilder_; /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return Whether the configNodeInfo field is set. */ public boolean hasConfigNodeInfo() { return ((bitField0_ & 0x00000100) != 0); } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; * @return The configNodeInfo. */ public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo() { if (configNodeInfoBuilder_ == null) { return configNodeInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } else { return configNodeInfoBuilder_.getMessage(); } } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder setConfigNodeInfo(org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo value) { if (configNodeInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configNodeInfo_ = value; } else { configNodeInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder setConfigNodeInfo( org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder builderForValue) { if (configNodeInfoBuilder_ == null) { configNodeInfo_ = builderForValue.build(); } else { configNodeInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder mergeConfigNodeInfo(org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo value) { if (configNodeInfoBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && configNodeInfo_ != null && configNodeInfo_ != org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance()) { getConfigNodeInfoBuilder().mergeFrom(value); } else { configNodeInfo_ = value; } } else { configNodeInfoBuilder_.mergeFrom(value); } if (configNodeInfo_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public Builder clearConfigNodeInfo() { bitField0_ = (bitField0_ & ~0x00000100); configNodeInfo_ = null; if (configNodeInfoBuilder_ != null) { configNodeInfoBuilder_.dispose(); configNodeInfoBuilder_ = null; } onChanged(); return this; } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder getConfigNodeInfoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getConfigNodeInfoFieldBuilder().getBuilder(); } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ public org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder() { if (configNodeInfoBuilder_ != null) { return configNodeInfoBuilder_.getMessageOrBuilder(); } else { return configNodeInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.getDefaultInstance() : configNodeInfo_; } } /** * .protocol.NodeInfo.ConfigNodeInfo configNodeInfo = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder> getConfigNodeInfoFieldBuilder() { if (configNodeInfoBuilder_ == null) { configNodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfo.Builder, org.tron.trident.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder>( getConfigNodeInfo(), getParentForChildren(), isClean()); configNodeInfo_ = null; } return configNodeInfoBuilder_; } private org.tron.trident.proto.Response.NodeInfo.MachineInfo machineInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder> machineInfoBuilder_; /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return Whether the machineInfo field is set. */ public boolean hasMachineInfo() { return ((bitField0_ & 0x00000200) != 0); } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; * @return The machineInfo. */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo getMachineInfo() { if (machineInfoBuilder_ == null) { return machineInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } else { return machineInfoBuilder_.getMessage(); } } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder setMachineInfo(org.tron.trident.proto.Response.NodeInfo.MachineInfo value) { if (machineInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } machineInfo_ = value; } else { machineInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder setMachineInfo( org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder builderForValue) { if (machineInfoBuilder_ == null) { machineInfo_ = builderForValue.build(); } else { machineInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder mergeMachineInfo(org.tron.trident.proto.Response.NodeInfo.MachineInfo value) { if (machineInfoBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && machineInfo_ != null && machineInfo_ != org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance()) { getMachineInfoBuilder().mergeFrom(value); } else { machineInfo_ = value; } } else { machineInfoBuilder_.mergeFrom(value); } if (machineInfo_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public Builder clearMachineInfo() { bitField0_ = (bitField0_ & ~0x00000200); machineInfo_ = null; if (machineInfoBuilder_ != null) { machineInfoBuilder_.dispose(); machineInfoBuilder_ = null; } onChanged(); return this; } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder getMachineInfoBuilder() { bitField0_ |= 0x00000200; onChanged(); return getMachineInfoFieldBuilder().getBuilder(); } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ public org.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder getMachineInfoOrBuilder() { if (machineInfoBuilder_ != null) { return machineInfoBuilder_.getMessageOrBuilder(); } else { return machineInfo_ == null ? org.tron.trident.proto.Response.NodeInfo.MachineInfo.getDefaultInstance() : machineInfo_; } } /** * .protocol.NodeInfo.MachineInfo machineInfo = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder, org.tron.trident.proto.Response.NodeInfo.MachineInfoOrBuilder> getMachineInfoFieldBuilder() { if (machineInfoBuilder_ == null) { machineInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeInfo.MachineInfo, org.tron.trident.proto.Response.NodeInfo.MachineInfo.Builder, org.tron.trident.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() { if (cheatWitnessInfoMap_ == null) { cheatWitnessInfoMap_ = com.google.protobuf.MapField.newMapField( CheatWitnessInfoMapDefaultEntryHolder.defaultEntry); } if (!cheatWitnessInfoMap_.isMutable()) { cheatWitnessInfoMap_ = cheatWitnessInfoMap_.copy(); } bitField0_ |= 0x00000400; onChanged(); 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 NullPointerException("map key"); } 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 /* nullable */ java.lang.String getCheatWitnessInfoMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetCheatWitnessInfoMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCheatWitnessInfoMap() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableCheatWitnessInfoMap().getMutableMap() .clear(); return this; } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder removeCheatWitnessInfoMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCheatWitnessInfoMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCheatWitnessInfoMap() { bitField0_ |= 0x00000400; return internalGetMutableCheatWitnessInfoMap().getMutableMap(); } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder putCheatWitnessInfoMap( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableCheatWitnessInfoMap().getMutableMap() .put(key, value); bitField0_ |= 0x00000400; return this; } /** * map<string, string> cheatWitnessInfoMap = 11; */ public Builder putAllCheatWitnessInfoMap( java.util.Map values) { internalGetMutableCheatWitnessInfoMap().getMutableMap() .putAll(values); bitField0_ |= 0x00000400; 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.tron.trident.proto.Response.NodeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeInfo(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrder.class, org.tron.trident.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.tron.trident.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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0L; /** *
     * 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_ = 0L; /** * 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_ = 0L; /** *
     * 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_ = 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; * @return The state. */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrder.State getState() { org.tron.trident.proto.Response.MarketOrder.State result = org.tron.trident.proto.Response.MarketOrder.State.forNumber(state_); return result == null ? org.tron.trident.proto.Response.MarketOrder.State.UNRECOGNIZED : result; } public static final int PREV_FIELD_NUMBER = 12; 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_; } public static final int NEXT_FIELD_NUMBER = 13; 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_; } 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.tron.trident.proto.Response.MarketOrder.State.ACTIVE.getNumber()) { output.writeEnum(11, state_); } if (!prev_.isEmpty()) { output.writeBytes(12, prev_); } if (!next_.isEmpty()) { output.writeBytes(13, next_); } getUnknownFields().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.tron.trident.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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketOrder)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketOrder other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketOrder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrder.class, org.tron.trident.proto.Response.MarketOrder.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketOrder.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_MarketOrder_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrder getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketOrder.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketOrder build() { org.tron.trident.proto.Response.MarketOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrder buildPartial() { org.tron.trident.proto.Response.MarketOrder result = new org.tron.trident.proto.Response.MarketOrder(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.MarketOrder result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.orderId_ = orderId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTime_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sellTokenId_ = sellTokenId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.sellTokenQuantity_ = sellTokenQuantity_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.buyTokenId_ = buyTokenId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.buyTokenQuantity_ = buyTokenQuantity_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.sellTokenQuantityRemain_ = sellTokenQuantityRemain_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.sellTokenQuantityReturn_ = sellTokenQuantityReturn_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.prev_ = prev_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.next_ = next_; } } @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.tron.trident.proto.Response.MarketOrder) { return mergeFrom((org.tron.trident.proto.Response.MarketOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketOrder other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { orderId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { createTime_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { sellTokenId_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { sellTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { buyTokenId_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { buyTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 72: { sellTokenQuantityRemain_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 72 case 80: { sellTokenQuantityReturn_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 80 case 88: { state_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 88 case 98: { prev_ = input.readBytes(); bitField0_ |= 0x00000400; break; } // case 98 case 106: { next_ = input.readBytes(); bitField0_ |= 0x00000800; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes order_id = 1; * @return This builder for chaining. */ public Builder clearOrderId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 create_time = 3; * @return This builder for chaining. */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes sell_token_id = 4; * @return This builder for chaining. */ public Builder clearSellTokenId() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 sell_token_quantity = 5; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes buy_token_id = 6; * @return This builder for chaining. */ public Builder clearBuyTokenId() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 7; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 sell_token_quantity_remain = 9; * @return This builder for chaining. */ public Builder clearSellTokenQuantityRemain() { bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000100; 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() { bitField0_ = (bitField0_ & ~0x00000100); 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * .protocol.MarketOrder.State state = 11; * @return The state. */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrder.State getState() { org.tron.trident.proto.Response.MarketOrder.State result = org.tron.trident.proto.Response.MarketOrder.State.forNumber(state_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.MarketOrder.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; } /** * .protocol.MarketOrder.State state = 11; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000200); 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * bytes prev = 12; * @return This builder for chaining. */ public Builder clearPrev() { bitField0_ = (bitField0_ & ~0x00000400); 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; bitField0_ |= 0x00000800; onChanged(); return this; } /** * bytes next = 13; * @return This builder for chaining. */ public Builder clearNext() { bitField0_ = (bitField0_ & ~0x00000800); 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.tron.trident.proto.Response.MarketOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketOrder(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.MarketOrder orders = 1; */ java.util.List getOrdersList(); /** * repeated .protocol.MarketOrder orders = 1; */ org.tron.trident.proto.Response.MarketOrder getOrders(int index); /** * repeated .protocol.MarketOrder orders = 1; */ int getOrdersCount(); /** * repeated .protocol.MarketOrder orders = 1; */ java.util.List getOrdersOrBuilderList(); /** * repeated .protocol.MarketOrder orders = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderList.class, org.tron.trident.proto.Response.MarketOrderList.Builder.class); } public static final int ORDERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List orders_; /** * repeated .protocol.MarketOrder orders = 1; */ @java.lang.Override public java.util.List getOrdersList() { return orders_; } /** * repeated .protocol.MarketOrder orders = 1; */ @java.lang.Override public java.util.List getOrdersOrBuilderList() { return orders_; } /** * repeated .protocol.MarketOrder orders = 1; */ @java.lang.Override public int getOrdersCount() { return orders_.size(); } /** * repeated .protocol.MarketOrder orders = 1; */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrder getOrders(int index) { return orders_.get(index); } /** * repeated .protocol.MarketOrder orders = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketOrderList)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketOrderList other = (org.tron.trident.proto.Response.MarketOrderList) obj; if (!getOrdersList() .equals(other.getOrdersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOrdersCount() > 0) { hash = (37 * hash) + ORDERS_FIELD_NUMBER; hash = (53 * hash) + getOrdersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketOrderList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketOrderList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketOrderList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketOrderListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderList.class, org.tron.trident.proto.Response.MarketOrderList.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketOrderList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); } else { orders_ = null; ordersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderList getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketOrderList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderList build() { org.tron.trident.proto.Response.MarketOrderList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderList buildPartial() { org.tron.trident.proto.Response.MarketOrderList result = new org.tron.trident.proto.Response.MarketOrderList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.MarketOrderList result) { if (ordersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orders_ = java.util.Collections.unmodifiableList(orders_); bitField0_ = (bitField0_ & ~0x00000001); } result.orders_ = orders_; } else { result.orders_ = ordersBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.MarketOrderList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.MarketOrderList) { return mergeFrom((org.tron.trident.proto.Response.MarketOrderList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketOrderList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.MarketOrder m = input.readMessage( org.tron.trident.proto.Response.MarketOrder.parser(), extensionRegistry); if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(m); } else { ordersBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.MarketOrder, org.tron.trident.proto.Response.MarketOrder.Builder, org.tron.trident.proto.Response.MarketOrderOrBuilder> ordersBuilder_; /** * repeated .protocol.MarketOrder orders = 1; */ public java.util.List getOrdersList() { if (ordersBuilder_ == null) { return java.util.Collections.unmodifiableList(orders_); } else { return ordersBuilder_.getMessageList(); } } /** * repeated .protocol.MarketOrder orders = 1; */ public int getOrdersCount() { if (ordersBuilder_ == null) { return orders_.size(); } else { return ordersBuilder_.getCount(); } } /** * repeated .protocol.MarketOrder orders = 1; */ public org.tron.trident.proto.Response.MarketOrder getOrders(int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessage(index); } } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder setOrders( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder setOrders( int index, org.tron.trident.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.set(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder addOrders(org.tron.trident.proto.Response.MarketOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.add(value); onChanged(); } else { ordersBuilder_.addMessage(value); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder addOrders( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder addOrders( org.tron.trident.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder addOrders( int index, org.tron.trident.proto.Response.MarketOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ 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; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder clearOrders() { if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ordersBuilder_.clear(); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ public Builder removeOrders(int index) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.remove(index); onChanged(); } else { ordersBuilder_.remove(index); } return this; } /** * repeated .protocol.MarketOrder orders = 1; */ public org.tron.trident.proto.Response.MarketOrder.Builder getOrdersBuilder( int index) { return getOrdersFieldBuilder().getBuilder(index); } /** * repeated .protocol.MarketOrder orders = 1; */ public org.tron.trident.proto.Response.MarketOrderOrBuilder getOrdersOrBuilder( int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.MarketOrder orders = 1; */ public java.util.List getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orders_); } } /** * repeated .protocol.MarketOrder orders = 1; */ public org.tron.trident.proto.Response.MarketOrder.Builder addOrdersBuilder() { return getOrdersFieldBuilder().addBuilder( org.tron.trident.proto.Response.MarketOrder.getDefaultInstance()); } /** * repeated .protocol.MarketOrder orders = 1; */ public org.tron.trident.proto.Response.MarketOrder.Builder addOrdersBuilder( int index) { return getOrdersFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.MarketOrder.getDefaultInstance()); } /** * repeated .protocol.MarketOrder orders = 1; */ public java.util.List getOrdersBuilderList() { return getOrdersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrder, org.tron.trident.proto.Response.MarketOrder.Builder, org.tron.trident.proto.Response.MarketOrderOrBuilder> getOrdersFieldBuilder() { if (ordersBuilder_ == null) { ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrder, org.tron.trident.proto.Response.MarketOrder.Builder, org.tron.trident.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.tron.trident.proto.Response.MarketOrderList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketOrderList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderPair.class, org.tron.trident.proto.Response.MarketOrderPair.Builder.class); } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 1; 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_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 2; 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_; } 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketOrderPair)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketOrderPair other = (org.tron.trident.proto.Response.MarketOrderPair) obj; if (!getSellTokenId() .equals(other.getSellTokenId())) return false; if (!getBuyTokenId() .equals(other.getBuyTokenId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketOrderPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketOrderPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketOrderPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketOrderPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderPair.class, org.tron.trident.proto.Response.MarketOrderPair.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketOrderPair.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_MarketOrderPair_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPair getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPair build() { org.tron.trident.proto.Response.MarketOrderPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPair buildPartial() { org.tron.trident.proto.Response.MarketOrderPair result = new org.tron.trident.proto.Response.MarketOrderPair(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.MarketOrderPair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sellTokenId_ = sellTokenId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.buyTokenId_ = buyTokenId_; } } @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.tron.trident.proto.Response.MarketOrderPair) { return mergeFrom((org.tron.trident.proto.Response.MarketOrderPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketOrderPair other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sellTokenId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { buyTokenId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes sell_token_id = 1; * @return This builder for chaining. */ public Builder clearSellTokenId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes buy_token_id = 2; * @return This builder for chaining. */ public Builder clearBuyTokenId() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.MarketOrderPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketOrderPair(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOrderPairListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketOrderPairList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.MarketOrderPair orderPair = 1; */ java.util.List getOrderPairList(); /** * repeated .protocol.MarketOrderPair orderPair = 1; */ org.tron.trident.proto.Response.MarketOrderPair getOrderPair(int index); /** * repeated .protocol.MarketOrderPair orderPair = 1; */ int getOrderPairCount(); /** * repeated .protocol.MarketOrderPair orderPair = 1; */ java.util.List getOrderPairOrBuilderList(); /** * repeated .protocol.MarketOrderPair orderPair = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPairList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderPairList.class, org.tron.trident.proto.Response.MarketOrderPairList.Builder.class); } public static final int ORDERPAIR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List orderPair_; /** * repeated .protocol.MarketOrderPair orderPair = 1; */ @java.lang.Override public java.util.List getOrderPairList() { return orderPair_; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ @java.lang.Override public java.util.List getOrderPairOrBuilderList() { return orderPair_; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ @java.lang.Override public int getOrderPairCount() { return orderPair_.size(); } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPair getOrderPair(int index) { return orderPair_.get(index); } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketOrderPairList)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketOrderPairList other = (org.tron.trident.proto.Response.MarketOrderPairList) obj; if (!getOrderPairList() .equals(other.getOrderPairList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOrderPairCount() > 0) { hash = (37 * hash) + ORDERPAIR_FIELD_NUMBER; hash = (53 * hash) + getOrderPairList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketOrderPairList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPairList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPairList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketOrderPairList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketOrderPairList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPairList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketOrderPairList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketOrderPairListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPairList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketOrderPairList.class, org.tron.trident.proto.Response.MarketOrderPairList.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketOrderPairList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (orderPairBuilder_ == null) { orderPair_ = java.util.Collections.emptyList(); } else { orderPair_ = null; orderPairBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_MarketOrderPairList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPairList getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketOrderPairList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPairList build() { org.tron.trident.proto.Response.MarketOrderPairList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketOrderPairList buildPartial() { org.tron.trident.proto.Response.MarketOrderPairList result = new org.tron.trident.proto.Response.MarketOrderPairList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.MarketOrderPairList result) { if (orderPairBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orderPair_ = java.util.Collections.unmodifiableList(orderPair_); bitField0_ = (bitField0_ & ~0x00000001); } result.orderPair_ = orderPair_; } else { result.orderPair_ = orderPairBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.MarketOrderPairList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.MarketOrderPairList) { return mergeFrom((org.tron.trident.proto.Response.MarketOrderPairList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketOrderPairList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.MarketOrderPair m = input.readMessage( org.tron.trident.proto.Response.MarketOrderPair.parser(), extensionRegistry); if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.add(m); } else { orderPairBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.MarketOrderPair, org.tron.trident.proto.Response.MarketOrderPair.Builder, org.tron.trident.proto.Response.MarketOrderPairOrBuilder> orderPairBuilder_; /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public java.util.List getOrderPairList() { if (orderPairBuilder_ == null) { return java.util.Collections.unmodifiableList(orderPair_); } else { return orderPairBuilder_.getMessageList(); } } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public int getOrderPairCount() { if (orderPairBuilder_ == null) { return orderPair_.size(); } else { return orderPairBuilder_.getCount(); } } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public org.tron.trident.proto.Response.MarketOrderPair getOrderPair(int index) { if (orderPairBuilder_ == null) { return orderPair_.get(index); } else { return orderPairBuilder_.getMessage(index); } } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder setOrderPair( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder setOrderPair( int index, org.tron.trident.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.set(index, builderForValue.build()); onChanged(); } else { orderPairBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder addOrderPair(org.tron.trident.proto.Response.MarketOrderPair value) { if (orderPairBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderPairIsMutable(); orderPair_.add(value); onChanged(); } else { orderPairBuilder_.addMessage(value); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder addOrderPair( int index, org.tron.trident.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; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder addOrderPair( org.tron.trident.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.add(builderForValue.build()); onChanged(); } else { orderPairBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder addOrderPair( int index, org.tron.trident.proto.Response.MarketOrderPair.Builder builderForValue) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.add(index, builderForValue.build()); onChanged(); } else { orderPairBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ 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; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder clearOrderPair() { if (orderPairBuilder_ == null) { orderPair_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { orderPairBuilder_.clear(); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public Builder removeOrderPair(int index) { if (orderPairBuilder_ == null) { ensureOrderPairIsMutable(); orderPair_.remove(index); onChanged(); } else { orderPairBuilder_.remove(index); } return this; } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public org.tron.trident.proto.Response.MarketOrderPair.Builder getOrderPairBuilder( int index) { return getOrderPairFieldBuilder().getBuilder(index); } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public org.tron.trident.proto.Response.MarketOrderPairOrBuilder getOrderPairOrBuilder( int index) { if (orderPairBuilder_ == null) { return orderPair_.get(index); } else { return orderPairBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public java.util.List getOrderPairOrBuilderList() { if (orderPairBuilder_ != null) { return orderPairBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orderPair_); } } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public org.tron.trident.proto.Response.MarketOrderPair.Builder addOrderPairBuilder() { return getOrderPairFieldBuilder().addBuilder( org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance()); } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public org.tron.trident.proto.Response.MarketOrderPair.Builder addOrderPairBuilder( int index) { return getOrderPairFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.MarketOrderPair.getDefaultInstance()); } /** * repeated .protocol.MarketOrderPair orderPair = 1; */ public java.util.List getOrderPairBuilderList() { return getOrderPairFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrderPair, org.tron.trident.proto.Response.MarketOrderPair.Builder, org.tron.trident.proto.Response.MarketOrderPairOrBuilder> getOrderPairFieldBuilder() { if (orderPairBuilder_ == null) { orderPairBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketOrderPair, org.tron.trident.proto.Response.MarketOrderPair.Builder, org.tron.trident.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.tron.trident.proto.Response.MarketOrderPairList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketOrderPairList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketPrice.class, org.tron.trident.proto.Response.MarketPrice.Builder.class); } public static final int SELL_TOKEN_QUANTITY_FIELD_NUMBER = 1; private long sellTokenQuantity_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketPrice)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketPrice other = (org.tron.trident.proto.Response.MarketPrice) obj; if (getSellTokenQuantity() != other.getSellTokenQuantity()) return false; if (getBuyTokenQuantity() != other.getBuyTokenQuantity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketPrice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPrice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPrice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketPrice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketPrice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPrice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPrice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketPriceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketPrice.class, org.tron.trident.proto.Response.MarketPrice.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketPrice.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sellTokenQuantity_ = 0L; buyTokenQuantity_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPrice_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketPrice getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketPrice.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketPrice build() { org.tron.trident.proto.Response.MarketPrice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketPrice buildPartial() { org.tron.trident.proto.Response.MarketPrice result = new org.tron.trident.proto.Response.MarketPrice(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.MarketPrice result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sellTokenQuantity_ = sellTokenQuantity_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.buyTokenQuantity_ = buyTokenQuantity_; } } @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.tron.trident.proto.Response.MarketPrice) { return mergeFrom((org.tron.trident.proto.Response.MarketPrice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketPrice other) { if (other == org.tron.trident.proto.Response.MarketPrice.getDefaultInstance()) return this; if (other.getSellTokenQuantity() != 0L) { setSellTokenQuantity(other.getSellTokenQuantity()); } if (other.getBuyTokenQuantity() != 0L) { setBuyTokenQuantity(other.getBuyTokenQuantity()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { sellTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { buyTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 sell_token_quantity = 1; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 buy_token_quantity = 2; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.MarketPrice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketPrice(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); /** * repeated .protocol.MarketPrice prices = 3; */ java.util.List getPricesList(); /** * repeated .protocol.MarketPrice prices = 3; */ org.tron.trident.proto.Response.MarketPrice getPrices(int index); /** * repeated .protocol.MarketPrice prices = 3; */ int getPricesCount(); /** * repeated .protocol.MarketPrice prices = 3; */ java.util.List getPricesOrBuilderList(); /** * repeated .protocol.MarketPrice prices = 3; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPriceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketPriceList.class, org.tron.trident.proto.Response.MarketPriceList.Builder.class); } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 1; 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_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 2; 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_; } public static final int PRICES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List prices_; /** * repeated .protocol.MarketPrice prices = 3; */ @java.lang.Override public java.util.List getPricesList() { return prices_; } /** * repeated .protocol.MarketPrice prices = 3; */ @java.lang.Override public java.util.List getPricesOrBuilderList() { return prices_; } /** * repeated .protocol.MarketPrice prices = 3; */ @java.lang.Override public int getPricesCount() { return prices_.size(); } /** * repeated .protocol.MarketPrice prices = 3; */ @java.lang.Override public org.tron.trident.proto.Response.MarketPrice getPrices(int index) { return prices_.get(index); } /** * repeated .protocol.MarketPrice prices = 3; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.MarketPriceList)) { return super.equals(obj); } org.tron.trident.proto.Response.MarketPriceList other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.MarketPriceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPriceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPriceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.MarketPriceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.MarketPriceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPriceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.MarketPriceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.MarketPriceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPriceList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.MarketPriceList.class, org.tron.trident.proto.Response.MarketPriceList.Builder.class); } // Construct using org.tron.trident.proto.Response.MarketPriceList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; if (pricesBuilder_ == null) { prices_ = java.util.Collections.emptyList(); } else { prices_ = null; pricesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_MarketPriceList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.MarketPriceList getDefaultInstanceForType() { return org.tron.trident.proto.Response.MarketPriceList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.MarketPriceList build() { org.tron.trident.proto.Response.MarketPriceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.MarketPriceList buildPartial() { org.tron.trident.proto.Response.MarketPriceList result = new org.tron.trident.proto.Response.MarketPriceList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.MarketPriceList result) { if (pricesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { prices_ = java.util.Collections.unmodifiableList(prices_); bitField0_ = (bitField0_ & ~0x00000004); } result.prices_ = prices_; } else { result.prices_ = pricesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.MarketPriceList result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sellTokenId_ = sellTokenId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.buyTokenId_ = buyTokenId_; } } @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.tron.trident.proto.Response.MarketPriceList) { return mergeFrom((org.tron.trident.proto.Response.MarketPriceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.MarketPriceList other) { if (other == org.tron.trident.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_ & ~0x00000004); } else { ensurePricesIsMutable(); prices_.addAll(other.prices_); } onChanged(); } } else { if (!other.prices_.isEmpty()) { if (pricesBuilder_.isEmpty()) { pricesBuilder_.dispose(); pricesBuilder_ = null; prices_ = other.prices_; bitField0_ = (bitField0_ & ~0x00000004); pricesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPricesFieldBuilder() : null; } else { pricesBuilder_.addAllMessages(other.prices_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sellTokenId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { buyTokenId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { org.tron.trident.proto.Response.MarketPrice m = input.readMessage( org.tron.trident.proto.Response.MarketPrice.parser(), extensionRegistry); if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.add(m); } else { pricesBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes sell_token_id = 1; * @return This builder for chaining. */ public Builder clearSellTokenId() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes buy_token_id = 2; * @return This builder for chaining. */ public Builder clearBuyTokenId() { bitField0_ = (bitField0_ & ~0x00000002); buyTokenId_ = getDefaultInstance().getBuyTokenId(); onChanged(); return this; } private java.util.List prices_ = java.util.Collections.emptyList(); private void ensurePricesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { prices_ = new java.util.ArrayList(prices_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketPrice, org.tron.trident.proto.Response.MarketPrice.Builder, org.tron.trident.proto.Response.MarketPriceOrBuilder> pricesBuilder_; /** * repeated .protocol.MarketPrice prices = 3; */ public java.util.List getPricesList() { if (pricesBuilder_ == null) { return java.util.Collections.unmodifiableList(prices_); } else { return pricesBuilder_.getMessageList(); } } /** * repeated .protocol.MarketPrice prices = 3; */ public int getPricesCount() { if (pricesBuilder_ == null) { return prices_.size(); } else { return pricesBuilder_.getCount(); } } /** * repeated .protocol.MarketPrice prices = 3; */ public org.tron.trident.proto.Response.MarketPrice getPrices(int index) { if (pricesBuilder_ == null) { return prices_.get(index); } else { return pricesBuilder_.getMessage(index); } } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder setPrices( int index, org.tron.trident.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; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder setPrices( int index, org.tron.trident.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.set(index, builderForValue.build()); onChanged(); } else { pricesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder addPrices(org.tron.trident.proto.Response.MarketPrice value) { if (pricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricesIsMutable(); prices_.add(value); onChanged(); } else { pricesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder addPrices( int index, org.tron.trident.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; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder addPrices( org.tron.trident.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.add(builderForValue.build()); onChanged(); } else { pricesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder addPrices( int index, org.tron.trident.proto.Response.MarketPrice.Builder builderForValue) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.add(index, builderForValue.build()); onChanged(); } else { pricesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ 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; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder clearPrices() { if (pricesBuilder_ == null) { prices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { pricesBuilder_.clear(); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ public Builder removePrices(int index) { if (pricesBuilder_ == null) { ensurePricesIsMutable(); prices_.remove(index); onChanged(); } else { pricesBuilder_.remove(index); } return this; } /** * repeated .protocol.MarketPrice prices = 3; */ public org.tron.trident.proto.Response.MarketPrice.Builder getPricesBuilder( int index) { return getPricesFieldBuilder().getBuilder(index); } /** * repeated .protocol.MarketPrice prices = 3; */ public org.tron.trident.proto.Response.MarketPriceOrBuilder getPricesOrBuilder( int index) { if (pricesBuilder_ == null) { return prices_.get(index); } else { return pricesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.MarketPrice prices = 3; */ public java.util.List getPricesOrBuilderList() { if (pricesBuilder_ != null) { return pricesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(prices_); } } /** * repeated .protocol.MarketPrice prices = 3; */ public org.tron.trident.proto.Response.MarketPrice.Builder addPricesBuilder() { return getPricesFieldBuilder().addBuilder( org.tron.trident.proto.Response.MarketPrice.getDefaultInstance()); } /** * repeated .protocol.MarketPrice prices = 3; */ public org.tron.trident.proto.Response.MarketPrice.Builder addPricesBuilder( int index) { return getPricesFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.MarketPrice.getDefaultInstance()); } /** * repeated .protocol.MarketPrice prices = 3; */ public java.util.List getPricesBuilderList() { return getPricesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketPrice, org.tron.trident.proto.Response.MarketPrice.Builder, org.tron.trident.proto.Response.MarketPriceOrBuilder> getPricesFieldBuilder() { if (pricesBuilder_ == null) { pricesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.MarketPrice, org.tron.trident.proto.Response.MarketPrice.Builder, org.tron.trident.proto.Response.MarketPriceOrBuilder>( prices_, ((bitField0_ & 0x00000004) != 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.tron.trident.proto.Response.MarketPriceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.MarketPriceList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NullifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NullifierResult.class, org.tron.trident.proto.Response.NullifierResult.Builder.class); } public static final int IS_SPENT_FIELD_NUMBER = 1; private boolean isSpent_ = false; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NullifierResult)) { return super.equals(obj); } org.tron.trident.proto.Response.NullifierResult other = (org.tron.trident.proto.Response.NullifierResult) obj; if (getIsSpent() != other.getIsSpent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_SPENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsSpent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NullifierResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NullifierResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NullifierResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.NullifierResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.NullifierResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NullifierResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NullifierResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NullifierResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NullifierResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NullifierResult.class, org.tron.trident.proto.Response.NullifierResult.Builder.class); } // Construct using org.tron.trident.proto.Response.NullifierResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; isSpent_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NullifierResult_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NullifierResult getDefaultInstanceForType() { return org.tron.trident.proto.Response.NullifierResult.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NullifierResult build() { org.tron.trident.proto.Response.NullifierResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NullifierResult buildPartial() { org.tron.trident.proto.Response.NullifierResult result = new org.tron.trident.proto.Response.NullifierResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NullifierResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.isSpent_ = isSpent_; } } @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.tron.trident.proto.Response.NullifierResult) { return mergeFrom((org.tron.trident.proto.Response.NullifierResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NullifierResult other) { if (other == org.tron.trident.proto.Response.NullifierResult.getDefaultInstance()) return this; if (other.getIsSpent() != false) { setIsSpent(other.getIsSpent()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { isSpent_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bool is_spent = 1; * @return This builder for chaining. */ public Builder clearIsSpent() { bitField0_ = (bitField0_ & ~0x00000001); 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.tron.trident.proto.Response.NullifierResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NullifierResult(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.NullifierResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DecryptNotesTRC20OrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DecryptNotesTRC20) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ java.util.List getNoteTxsList(); /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx getNoteTxs(int index); /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ int getNoteTxsCount(); /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ java.util.List getNoteTxsOrBuilderList(); /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTxOrBuilder getNoteTxsOrBuilder( int index); } /** * Protobuf type {@code protocol.DecryptNotesTRC20} */ public static final class DecryptNotesTRC20 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DecryptNotesTRC20) DecryptNotesTRC20OrBuilder { private static final long serialVersionUID = 0L; // Use DecryptNotesTRC20.newBuilder() to construct. private DecryptNotesTRC20(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecryptNotesTRC20() { noteTxs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DecryptNotesTRC20(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DecryptNotesTRC20.class, org.tron.trident.proto.Response.DecryptNotesTRC20.Builder.class); } public interface NoteTxOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DecryptNotesTRC20.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.tron.trident.proto.Common.Note getNote(); /** * .protocol.Note note = 1; */ org.tron.trident.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.DecryptNotesTRC20.NoteTx} */ public static final class NoteTx extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DecryptNotesTRC20.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_NoteTx_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.class, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder.class); } private int bitField0_; public static final int NOTE_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.Note note_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ @java.lang.Override public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ @java.lang.Override public org.tron.trident.proto.Common.Note getNote() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } /** * .protocol.Note note = 1; */ @java.lang.Override public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } public static final int POSITION_FIELD_NUMBER = 2; private long position_ = 0L; /** * 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_ = false; /** * 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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_ = 0; /** *
       * 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; @SuppressWarnings("serial") 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_ = com.google.protobuf.ByteString.EMPTY; /** * 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 (((bitField0_ & 0x00000001) != 0)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, toAmount_); } if (!transparentToAddress_.isEmpty()) { output.writeBytes(7, transparentToAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, toAmount_); } if (!transparentToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, transparentToAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx)) { return super.equals(obj); } org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx other = (org.tron.trident.proto.Response.DecryptNotesTRC20.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.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.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.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.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.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.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.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.tron.trident.proto.Response.DecryptNotesTRC20.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.DecryptNotesTRC20.NoteTx} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DecryptNotesTRC20.NoteTx) org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_NoteTx_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.class, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder.class); } // Construct using org.tron.trident.proto.Response.DecryptNotesTRC20.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) { getNoteFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); 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.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx getDefaultInstanceForType() { return org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx build() { org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx buildPartial() { org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx result = new org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.note_ = noteBuilder_ == null ? note_ : noteBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.position_ = position_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isSpent_ = isSpent_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.txid_ = txid_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.index_ = index_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.toAmount_ = toAmount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.transparentToAddress_ = transparentToAddress_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx) { return mergeFrom((org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx other) { if (other == org.tron.trident.proto.Response.DecryptNotesTRC20.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_; bitField0_ |= 0x00000020; onChanged(); } if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransparentToAddress(other.getTransparentToAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNoteFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { position_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { isSpent_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { txid_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { index_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { toAmount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { transparentToAddress_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.Note note_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> noteBuilder_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ public org.tron.trident.proto.Common.Note getNote() { if (noteBuilder_ == null) { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } else { return noteBuilder_.getMessage(); } } /** * .protocol.Note note = 1; */ public Builder setNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; } else { noteBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder setNote( org.tron.trident.proto.Common.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); } else { noteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder mergeNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && note_ != null && note_ != org.tron.trident.proto.Common.Note.getDefaultInstance()) { getNoteBuilder().mergeFrom(value); } else { note_ = value; } } else { noteBuilder_.mergeFrom(value); } if (note_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Note note = 1; */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000001); note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } onChanged(); return this; } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.Note.Builder getNoteBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNoteFieldBuilder().getBuilder(); } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { if (noteBuilder_ != null) { return noteBuilder_.getMessageOrBuilder(); } else { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } } /** * .protocol.Note note = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> getNoteFieldBuilder() { if (noteBuilder_ == null) { noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 position = 2; * @return This builder for chaining. */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool is_spent = 3; * @return This builder for chaining. */ public Builder clearIsSpent() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes txid = 4; * @return This builder for chaining. */ public Builder clearTxid() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * the index of note in txid
         * 
* * int32 index = 5; * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string to_amount = 6; * @return This builder for chaining. */ public Builder clearToAmount() { toAmount_ = getDefaultInstance().getToAmount(); bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bytes transparent_to_address = 7; * @return This builder for chaining. */ public Builder clearTransparentToAddress() { bitField0_ = (bitField0_ & ~0x00000040); 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.DecryptNotesTRC20.NoteTx) } // @@protoc_insertion_point(class_scope:protocol.DecryptNotesTRC20.NoteTx) private static final org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx(); } public static org.tron.trident.proto.Response.DecryptNotesTRC20.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NOTETXS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List noteTxs_; /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ @java.lang.Override public java.util.List getNoteTxsList() { return noteTxs_; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ @java.lang.Override public java.util.List getNoteTxsOrBuilderList() { return noteTxs_; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ @java.lang.Override public int getNoteTxsCount() { return noteTxs_.size(); } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx getNoteTxs(int index) { return noteTxs_.get(index); } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.DecryptNotesTRC20)) { return super.equals(obj); } org.tron.trident.proto.Response.DecryptNotesTRC20 other = (org.tron.trident.proto.Response.DecryptNotesTRC20) obj; if (!getNoteTxsList() .equals(other.getNoteTxsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNoteTxsCount() > 0) { hash = (37 * hash) + NOTETXS_FIELD_NUMBER; hash = (53 * hash) + getNoteTxsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 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.tron.trident.proto.Response.DecryptNotesTRC20 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 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.tron.trident.proto.Response.DecryptNotesTRC20 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 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.tron.trident.proto.Response.DecryptNotesTRC20 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.DecryptNotesTRC20} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DecryptNotesTRC20) org.tron.trident.proto.Response.DecryptNotesTRC20OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.DecryptNotesTRC20.class, org.tron.trident.proto.Response.DecryptNotesTRC20.Builder.class); } // Construct using org.tron.trident.proto.Response.DecryptNotesTRC20.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (noteTxsBuilder_ == null) { noteTxs_ = java.util.Collections.emptyList(); } else { noteTxs_ = null; noteTxsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_DecryptNotesTRC20_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20 getDefaultInstanceForType() { return org.tron.trident.proto.Response.DecryptNotesTRC20.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20 build() { org.tron.trident.proto.Response.DecryptNotesTRC20 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20 buildPartial() { org.tron.trident.proto.Response.DecryptNotesTRC20 result = new org.tron.trident.proto.Response.DecryptNotesTRC20(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.DecryptNotesTRC20 result) { if (noteTxsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { noteTxs_ = java.util.Collections.unmodifiableList(noteTxs_); bitField0_ = (bitField0_ & ~0x00000001); } result.noteTxs_ = noteTxs_; } else { result.noteTxs_ = noteTxsBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.DecryptNotesTRC20 result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.DecryptNotesTRC20) { return mergeFrom((org.tron.trident.proto.Response.DecryptNotesTRC20)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.DecryptNotesTRC20 other) { if (other == org.tron.trident.proto.Response.DecryptNotesTRC20.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx m = input.readMessage( org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.parser(), extensionRegistry); if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.add(m); } else { noteTxsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTxOrBuilder> noteTxsBuilder_; /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public java.util.List getNoteTxsList() { if (noteTxsBuilder_ == null) { return java.util.Collections.unmodifiableList(noteTxs_); } else { return noteTxsBuilder_.getMessageList(); } } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public int getNoteTxsCount() { if (noteTxsBuilder_ == null) { return noteTxs_.size(); } else { return noteTxsBuilder_.getCount(); } } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx getNoteTxs(int index) { if (noteTxsBuilder_ == null) { return noteTxs_.get(index); } else { return noteTxsBuilder_.getMessage(index); } } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder setNoteTxs( int index, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.set(index, value); onChanged(); } else { noteTxsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder setNoteTxs( int index, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.set(index, builderForValue.build()); onChanged(); } else { noteTxsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder addNoteTxs(org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.add(value); onChanged(); } else { noteTxsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder addNoteTxs( int index, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx value) { if (noteTxsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNoteTxsIsMutable(); noteTxs_.add(index, value); onChanged(); } else { noteTxsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder addNoteTxs( org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.add(builderForValue.build()); onChanged(); } else { noteTxsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder addNoteTxs( int index, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder builderForValue) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.add(index, builderForValue.build()); onChanged(); } else { noteTxsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ 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; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder clearNoteTxs() { if (noteTxsBuilder_ == null) { noteTxs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { noteTxsBuilder_.clear(); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public Builder removeNoteTxs(int index) { if (noteTxsBuilder_ == null) { ensureNoteTxsIsMutable(); noteTxs_.remove(index); onChanged(); } else { noteTxsBuilder_.remove(index); } return this; } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder getNoteTxsBuilder( int index) { return getNoteTxsFieldBuilder().getBuilder(index); } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTxOrBuilder getNoteTxsOrBuilder( int index) { if (noteTxsBuilder_ == null) { return noteTxs_.get(index); } else { return noteTxsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public java.util.List getNoteTxsOrBuilderList() { if (noteTxsBuilder_ != null) { return noteTxsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(noteTxs_); } } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder addNoteTxsBuilder() { return getNoteTxsFieldBuilder().addBuilder( org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.getDefaultInstance()); } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder addNoteTxsBuilder( int index) { return getNoteTxsFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.getDefaultInstance()); } /** * repeated .protocol.DecryptNotesTRC20.NoteTx noteTxs = 1; */ public java.util.List getNoteTxsBuilderList() { return getNoteTxsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTxOrBuilder> getNoteTxsFieldBuilder() { if (noteTxsBuilder_ == null) { noteTxsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx, org.tron.trident.proto.Response.DecryptNotesTRC20.NoteTx.Builder, org.tron.trident.proto.Response.DecryptNotesTRC20.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.DecryptNotesTRC20) } // @@protoc_insertion_point(class_scope:protocol.DecryptNotesTRC20) private static final org.tron.trident.proto.Response.DecryptNotesTRC20 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DecryptNotesTRC20(); } public static org.tron.trident.proto.Response.DecryptNotesTRC20 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DecryptNotesTRC20 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.DecryptNotesTRC20 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionInfoListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionInfoList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ java.util.List getTransactionInfoList(); /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ org.tron.trident.proto.Response.TransactionInfo getTransactionInfo(int index); /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ int getTransactionInfoCount(); /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ java.util.List getTransactionInfoOrBuilderList(); /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfoList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfoList.class, org.tron.trident.proto.Response.TransactionInfoList.Builder.class); } public static final int TRANSACTIONINFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List transactionInfo_; /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ @java.lang.Override public java.util.List getTransactionInfoList() { return transactionInfo_; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ @java.lang.Override public java.util.List getTransactionInfoOrBuilderList() { return transactionInfo_; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ @java.lang.Override public int getTransactionInfoCount() { return transactionInfo_.size(); } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionInfo getTransactionInfo(int index) { return transactionInfo_.get(index); } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionInfoList)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionInfoList other = (org.tron.trident.proto.Response.TransactionInfoList) obj; if (!getTransactionInfoList() .equals(other.getTransactionInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionInfoCount() > 0) { hash = (37 * hash) + TRANSACTIONINFO_FIELD_NUMBER; hash = (53 * hash) + getTransactionInfoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionInfoList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfoList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfoList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionInfoList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionInfoList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfoList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionInfoList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionInfoListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfoList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionInfoList.class, org.tron.trident.proto.Response.TransactionInfoList.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionInfoList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (transactionInfoBuilder_ == null) { transactionInfo_ = java.util.Collections.emptyList(); } else { transactionInfo_ = null; transactionInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfoList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfoList getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionInfoList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfoList build() { org.tron.trident.proto.Response.TransactionInfoList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionInfoList buildPartial() { org.tron.trident.proto.Response.TransactionInfoList result = new org.tron.trident.proto.Response.TransactionInfoList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionInfoList result) { if (transactionInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transactionInfo_ = java.util.Collections.unmodifiableList(transactionInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.transactionInfo_ = transactionInfo_; } else { result.transactionInfo_ = transactionInfoBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.TransactionInfoList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.TransactionInfoList) { return mergeFrom((org.tron.trident.proto.Response.TransactionInfoList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionInfoList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.TransactionInfo m = input.readMessage( org.tron.trident.proto.Response.TransactionInfo.parser(), extensionRegistry); if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.add(m); } else { transactionInfoBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.TransactionInfo, org.tron.trident.proto.Response.TransactionInfo.Builder, org.tron.trident.proto.Response.TransactionInfoOrBuilder> transactionInfoBuilder_; /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public java.util.List getTransactionInfoList() { if (transactionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionInfo_); } else { return transactionInfoBuilder_.getMessageList(); } } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public int getTransactionInfoCount() { if (transactionInfoBuilder_ == null) { return transactionInfo_.size(); } else { return transactionInfoBuilder_.getCount(); } } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public org.tron.trident.proto.Response.TransactionInfo getTransactionInfo(int index) { if (transactionInfoBuilder_ == null) { return transactionInfo_.get(index); } else { return transactionInfoBuilder_.getMessage(index); } } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder setTransactionInfo( int index, org.tron.trident.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; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder setTransactionInfo( int index, org.tron.trident.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.set(index, builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder addTransactionInfo(org.tron.trident.proto.Response.TransactionInfo value) { if (transactionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInfoIsMutable(); transactionInfo_.add(value); onChanged(); } else { transactionInfoBuilder_.addMessage(value); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder addTransactionInfo( int index, org.tron.trident.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; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder addTransactionInfo( org.tron.trident.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.add(builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder addTransactionInfo( int index, org.tron.trident.proto.Response.TransactionInfo.Builder builderForValue) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.add(index, builderForValue.build()); onChanged(); } else { transactionInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ 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; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder clearTransactionInfo() { if (transactionInfoBuilder_ == null) { transactionInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionInfoBuilder_.clear(); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public Builder removeTransactionInfo(int index) { if (transactionInfoBuilder_ == null) { ensureTransactionInfoIsMutable(); transactionInfo_.remove(index); onChanged(); } else { transactionInfoBuilder_.remove(index); } return this; } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public org.tron.trident.proto.Response.TransactionInfo.Builder getTransactionInfoBuilder( int index) { return getTransactionInfoFieldBuilder().getBuilder(index); } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public org.tron.trident.proto.Response.TransactionInfoOrBuilder getTransactionInfoOrBuilder( int index) { if (transactionInfoBuilder_ == null) { return transactionInfo_.get(index); } else { return transactionInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public java.util.List getTransactionInfoOrBuilderList() { if (transactionInfoBuilder_ != null) { return transactionInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionInfo_); } } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public org.tron.trident.proto.Response.TransactionInfo.Builder addTransactionInfoBuilder() { return getTransactionInfoFieldBuilder().addBuilder( org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance()); } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public org.tron.trident.proto.Response.TransactionInfo.Builder addTransactionInfoBuilder( int index) { return getTransactionInfoFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance()); } /** * repeated .protocol.TransactionInfo transactionInfo = 1; */ public java.util.List getTransactionInfoBuilderList() { return getTransactionInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionInfo, org.tron.trident.proto.Response.TransactionInfo.Builder, org.tron.trident.proto.Response.TransactionInfoOrBuilder> getTransactionInfoFieldBuilder() { if (transactionInfoBuilder_ == null) { transactionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionInfo, org.tron.trident.proto.Response.TransactionInfo.Builder, org.tron.trident.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.tron.trident.proto.Response.TransactionInfoList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionInfoList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result getResult(); /** * .protocol.TransactionApprovedList.Result result = 4; */ org.tron.trident.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.tron.trident.proto.Response.TransactionExtention getTransaction(); /** * .protocol.TransactionExtention transaction = 5; */ org.tron.trident.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_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionApprovedList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionApprovedList.class, org.tron.trident.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.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionApprovedList.Result.class, org.tron.trident.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.tron.trident.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_ = 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; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code getCode() { org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code result = org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code.forNumber(code_); return result == null ? org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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.tron.trident.proto.Response.TransactionApprovedList.Result.response_code.SUCCESS.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionApprovedList.Result)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionApprovedList.Result other = (org.tron.trident.proto.Response.TransactionApprovedList.Result) obj; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionApprovedList.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionApprovedList.Result.class, org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionApprovedList.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_Result_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result build() { org.tron.trident.proto.Response.TransactionApprovedList.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result buildPartial() { org.tron.trident.proto.Response.TransactionApprovedList.Result result = new org.tron.trident.proto.Response.TransactionApprovedList.Result(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionApprovedList.Result result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; } } @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.tron.trident.proto.Response.TransactionApprovedList.Result) { return mergeFrom((org.tron.trident.proto.Response.TransactionApprovedList.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionApprovedList.Result other) { if (other == org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { code_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code getCode() { org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code result = org.tron.trident.proto.Response.TransactionApprovedList.Result.response_code.forNumber(code_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList.Result.response_code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result.response_code code = 1; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000002); 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; 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.TransactionApprovedList.Result) } // @@protoc_insertion_point(class_scope:protocol.TransactionApprovedList.Result) private static final org.tron.trident.proto.Response.TransactionApprovedList.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionApprovedList.Result(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int APPROVED_LIST_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList approvedList_ = emptyList(com.google.protobuf.ByteString.class); /** * 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.tron.trident.proto.Response.TransactionApprovedList.Result result_; /** * .protocol.TransactionApprovedList.Result result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.TransactionApprovedList.Result result = 4; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.Result getResult() { return result_ == null ? org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } /** * .protocol.TransactionApprovedList.Result result = 4; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder getResultOrBuilder() { return result_ == null ? org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } public static final int TRANSACTION_FIELD_NUMBER = 5; private org.tron.trident.proto.Response.TransactionExtention transaction_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionExtention getTransaction() { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } /** * .protocol.TransactionExtention transaction = 5; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getTransaction()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < approvedList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(approvedList_.get(i)); } size += dataSize; size += 1 * getApprovedListList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransaction()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionApprovedList)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionApprovedList other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionApprovedList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionApprovedList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionApprovedList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionApprovedListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionApprovedList.class, org.tron.trident.proto.Response.TransactionApprovedList.Builder.class); } // Construct using org.tron.trident.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) { getResultFieldBuilder(); getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; approvedList_ = emptyList(com.google.protobuf.ByteString.class); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionApprovedList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionApprovedList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList build() { org.tron.trident.proto.Response.TransactionApprovedList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionApprovedList buildPartial() { org.tron.trident.proto.Response.TransactionApprovedList result = new org.tron.trident.proto.Response.TransactionApprovedList(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionApprovedList result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { approvedList_.makeImmutable(); result.approvedList_ = approvedList_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.TransactionApprovedList) { return mergeFrom((org.tron.trident.proto.Response.TransactionApprovedList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionApprovedList other) { if (other == org.tron.trident.proto.Response.TransactionApprovedList.getDefaultInstance()) return this; if (!other.approvedList_.isEmpty()) { if (approvedList_.isEmpty()) { approvedList_ = other.approvedList_; approvedList_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureApprovedListIsMutable(); approvedList_.addAll(other.approvedList_); } onChanged(); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureApprovedListIsMutable(); approvedList_.add(v); break; } // case 18 case 34: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 34 case 42: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.ProtobufList approvedList_ = emptyList(com.google.protobuf.ByteString.class); private void ensureApprovedListIsMutable() { if (!approvedList_.isModifiable()) { approvedList_ = makeMutableCopy(approvedList_); } bitField0_ |= 0x00000001; } /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ public java.util.List getApprovedListList() { approvedList_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes approved_list = 2; * @return This builder for chaining. */ public Builder clearApprovedList() { approvedList_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private org.tron.trident.proto.Response.TransactionApprovedList.Result result_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionApprovedList.Result, org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder, org.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder> resultBuilder_; /** * .protocol.TransactionApprovedList.Result result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionApprovedList.Result result = 4; * @return The result. */ public org.tron.trident.proto.Response.TransactionApprovedList.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder setResult(org.tron.trident.proto.Response.TransactionApprovedList.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder setResult( org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder mergeResult(org.tron.trident.proto.Response.TransactionApprovedList.Result value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && result_ != null && result_ != org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionApprovedList.Result result = 4; */ public org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder getResultBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionApprovedList.Result result = 4; */ public org.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.tron.trident.proto.Response.TransactionApprovedList.Result.getDefaultInstance() : result_; } } /** * .protocol.TransactionApprovedList.Result result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionApprovedList.Result, org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder, org.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionApprovedList.Result, org.tron.trident.proto.Response.TransactionApprovedList.Result.Builder, org.tron.trident.proto.Response.TransactionApprovedList.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private org.tron.trident.proto.Response.TransactionExtention transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> transactionBuilder_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000004) != 0); } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ public org.tron.trident.proto.Response.TransactionExtention getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction(org.tron.trident.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction( org.tron.trident.proto.Response.TransactionExtention.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder mergeTransaction(org.tron.trident.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && transaction_ != null && transaction_ != org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } if (transaction_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000004); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public org.tron.trident.proto.Response.TransactionExtention.Builder getTransactionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.TransactionExtention transaction = 5; */ public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } } /** * .protocol.TransactionExtention transaction = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.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.tron.trident.proto.Response.TransactionApprovedList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionApprovedList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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.tron.trident.proto.Common.Permission getPermission(); /** * .protocol.Permission permission = 1; */ org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result getResult(); /** * .protocol.TransactionSignWeight.Result result = 4; */ org.tron.trident.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.tron.trident.proto.Response.TransactionExtention getTransaction(); /** * .protocol.TransactionExtention transaction = 5; */ org.tron.trident.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_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionSignWeight(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSignWeight.class, org.tron.trident.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.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSignWeight.Result.class, org.tron.trident.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.tron.trident.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_ = 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; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code getCode() { org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code result = org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code.forNumber(code_); return result == null ? org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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.tron.trident.proto.Response.TransactionSignWeight.Result.response_code.ENOUGH_PERMISSION.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code.ENOUGH_PERMISSION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionSignWeight.Result)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionSignWeight.Result other = (org.tron.trident.proto.Response.TransactionSignWeight.Result) obj; if (code_ != other.code_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionSignWeight.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSignWeight.Result.class, org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionSignWeight.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_Result_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result build() { org.tron.trident.proto.Response.TransactionSignWeight.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result buildPartial() { org.tron.trident.proto.Response.TransactionSignWeight.Result result = new org.tron.trident.proto.Response.TransactionSignWeight.Result(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionSignWeight.Result result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; } } @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.tron.trident.proto.Response.TransactionSignWeight.Result) { return mergeFrom((org.tron.trident.proto.Response.TransactionSignWeight.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionSignWeight.Result other) { if (other == org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { code_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return The code. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code getCode() { org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code result = org.tron.trident.proto.Response.TransactionSignWeight.Result.response_code.forNumber(code_); return result == null ? org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight.Result.response_code value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; code_ = value.getNumber(); onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result.response_code code = 1; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000002); 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; 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.TransactionSignWeight.Result) } // @@protoc_insertion_point(class_scope:protocol.TransactionSignWeight.Result) private static final org.tron.trident.proto.Response.TransactionSignWeight.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionSignWeight.Result(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PERMISSION_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.Permission permission_; /** * .protocol.Permission permission = 1; * @return Whether the permission field is set. */ @java.lang.Override public boolean hasPermission() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Permission permission = 1; * @return The permission. */ @java.lang.Override public org.tron.trident.proto.Common.Permission getPermission() { return permission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : permission_; } /** * .protocol.Permission permission = 1; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getPermissionOrBuilder() { return permission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : permission_; } public static final int APPROVED_LIST_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList approvedList_ = emptyList(com.google.protobuf.ByteString.class); /** * 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_ = 0L; /** * 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.tron.trident.proto.Response.TransactionSignWeight.Result result_; /** * .protocol.TransactionSignWeight.Result result = 4; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.TransactionSignWeight.Result result = 4; * @return The result. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.Result getResult() { return result_ == null ? org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } /** * .protocol.TransactionSignWeight.Result result = 4; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder getResultOrBuilder() { return result_ == null ? org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } public static final int TRANSACTION_FIELD_NUMBER = 5; private org.tron.trident.proto.Response.TransactionExtention transaction_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000004) != 0); } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ @java.lang.Override public org.tron.trident.proto.Response.TransactionExtention getTransaction() { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } /** * .protocol.TransactionExtention transaction = 5; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getResult()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getTransaction()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransaction()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionSignWeight)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionSignWeight other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionSignWeight parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionSignWeight parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionSignWeight parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.TransactionSignWeightOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionSignWeight.class, org.tron.trident.proto.Response.TransactionSignWeight.Builder.class); } // Construct using org.tron.trident.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) { getPermissionFieldBuilder(); getResultFieldBuilder(); getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; permission_ = null; if (permissionBuilder_ != null) { permissionBuilder_.dispose(); permissionBuilder_ = null; } approvedList_ = emptyList(com.google.protobuf.ByteString.class); currentWeight_ = 0L; result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionSignWeight_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionSignWeight.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight build() { org.tron.trident.proto.Response.TransactionSignWeight result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight buildPartial() { org.tron.trident.proto.Response.TransactionSignWeight result = new org.tron.trident.proto.Response.TransactionSignWeight(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionSignWeight result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.permission_ = permissionBuilder_ == null ? permission_ : permissionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { approvedList_.makeImmutable(); result.approvedList_ = approvedList_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.currentWeight_ = currentWeight_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.TransactionSignWeight) { return mergeFrom((org.tron.trident.proto.Response.TransactionSignWeight)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionSignWeight other) { if (other == org.tron.trident.proto.Response.TransactionSignWeight.getDefaultInstance()) return this; if (other.hasPermission()) { mergePermission(other.getPermission()); } if (!other.approvedList_.isEmpty()) { if (approvedList_.isEmpty()) { approvedList_ = other.approvedList_; approvedList_.makeImmutable(); bitField0_ |= 0x00000002; } 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPermissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureApprovedListIsMutable(); approvedList_.add(v); break; } // case 18 case 24: { currentWeight_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.Permission permission_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> permissionBuilder_; /** * .protocol.Permission permission = 1; * @return Whether the permission field is set. */ public boolean hasPermission() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Permission permission = 1; * @return The permission. */ public org.tron.trident.proto.Common.Permission getPermission() { if (permissionBuilder_ == null) { return permission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : permission_; } else { return permissionBuilder_.getMessage(); } } /** * .protocol.Permission permission = 1; */ public Builder setPermission(org.tron.trident.proto.Common.Permission value) { if (permissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } permission_ = value; } else { permissionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Permission permission = 1; */ public Builder setPermission( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (permissionBuilder_ == null) { permission_ = builderForValue.build(); } else { permissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Permission permission = 1; */ public Builder mergePermission(org.tron.trident.proto.Common.Permission value) { if (permissionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && permission_ != null && permission_ != org.tron.trident.proto.Common.Permission.getDefaultInstance()) { getPermissionBuilder().mergeFrom(value); } else { permission_ = value; } } else { permissionBuilder_.mergeFrom(value); } if (permission_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Permission permission = 1; */ public Builder clearPermission() { bitField0_ = (bitField0_ & ~0x00000001); permission_ = null; if (permissionBuilder_ != null) { permissionBuilder_.dispose(); permissionBuilder_ = null; } onChanged(); return this; } /** * .protocol.Permission permission = 1; */ public org.tron.trident.proto.Common.Permission.Builder getPermissionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPermissionFieldBuilder().getBuilder(); } /** * .protocol.Permission permission = 1; */ public org.tron.trident.proto.Common.PermissionOrBuilder getPermissionOrBuilder() { if (permissionBuilder_ != null) { return permissionBuilder_.getMessageOrBuilder(); } else { return permission_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : permission_; } } /** * .protocol.Permission permission = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getPermissionFieldBuilder() { if (permissionBuilder_ == null) { permissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( getPermission(), getParentForChildren(), isClean()); permission_ = null; } return permissionBuilder_; } private com.google.protobuf.Internal.ProtobufList approvedList_ = emptyList(com.google.protobuf.ByteString.class); private void ensureApprovedListIsMutable() { if (!approvedList_.isModifiable()) { approvedList_ = makeMutableCopy(approvedList_); } bitField0_ |= 0x00000002; } /** * repeated bytes approved_list = 2; * @return A list containing the approvedList. */ public java.util.List getApprovedListList() { approvedList_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes approved_list = 2; * @return This builder for chaining. */ public Builder clearApprovedList() { approvedList_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 current_weight = 3; * @return This builder for chaining. */ public Builder clearCurrentWeight() { bitField0_ = (bitField0_ & ~0x00000004); currentWeight_ = 0L; onChanged(); return this; } private org.tron.trident.proto.Response.TransactionSignWeight.Result result_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionSignWeight.Result, org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder, org.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder> resultBuilder_; /** * .protocol.TransactionSignWeight.Result result = 4; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000008) != 0); } /** * .protocol.TransactionSignWeight.Result result = 4; * @return The result. */ public org.tron.trident.proto.Response.TransactionSignWeight.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder setResult(org.tron.trident.proto.Response.TransactionSignWeight.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder setResult( org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder mergeResult(org.tron.trident.proto.Response.TransactionSignWeight.Result value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && result_ != null && result_ != org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000008); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionSignWeight.Result result = 4; */ public org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder getResultBuilder() { bitField0_ |= 0x00000008; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .protocol.TransactionSignWeight.Result result = 4; */ public org.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? org.tron.trident.proto.Response.TransactionSignWeight.Result.getDefaultInstance() : result_; } } /** * .protocol.TransactionSignWeight.Result result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionSignWeight.Result, org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder, org.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionSignWeight.Result, org.tron.trident.proto.Response.TransactionSignWeight.Result.Builder, org.tron.trident.proto.Response.TransactionSignWeight.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private org.tron.trident.proto.Response.TransactionExtention transaction_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> transactionBuilder_; /** * .protocol.TransactionExtention transaction = 5; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000010) != 0); } /** * .protocol.TransactionExtention transaction = 5; * @return The transaction. */ public org.tron.trident.proto.Response.TransactionExtention getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction(org.tron.trident.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder setTransaction( org.tron.trident.proto.Response.TransactionExtention.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder mergeTransaction(org.tron.trident.proto.Response.TransactionExtention value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && transaction_ != null && transaction_ != org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } if (transaction_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * .protocol.TransactionExtention transaction = 5; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000010); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * .protocol.TransactionExtention transaction = 5; */ public org.tron.trident.proto.Response.TransactionExtention.Builder getTransactionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .protocol.TransactionExtention transaction = 5; */ public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance() : transaction_; } } /** * .protocol.TransactionExtention transaction = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.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.tron.trident.proto.Response.TransactionSignWeight DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionSignWeight(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionSignWeight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NodeList) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.NodeList.Node nodes = 1; */ java.util.List getNodesList(); /** * repeated .protocol.NodeList.Node nodes = 1; */ org.tron.trident.proto.Response.NodeList.Node getNodes(int index); /** * repeated .protocol.NodeList.Node nodes = 1; */ int getNodesCount(); /** * repeated .protocol.NodeList.Node nodes = 1; */ java.util.List getNodesOrBuilderList(); /** * repeated .protocol.NodeList.Node nodes = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.class, org.tron.trident.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.tron.trident.proto.Response.NodeList.Node.Address getAddress(); /** * .protocol.NodeList.Node.Address address = 1; */ org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.Node.class, org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.Node.Address.class, org.tron.trident.proto.Response.NodeList.Node.Address.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; 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_; } public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeList.Node.Address)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeList.Node.Address other = (org.tron.trident.proto.Response.NodeList.Node.Address) obj; if (!getHost() .equals(other.getHost())) return false; if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeList.Node.Address parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeList.Node.AddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.Node.Address.class, org.tron.trident.proto.Response.NodeList.Node.Address.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeList.Node.Address.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; host_ = com.google.protobuf.ByteString.EMPTY; port_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_Address_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.Address getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.Address build() { org.tron.trident.proto.Response.NodeList.Node.Address result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.Address buildPartial() { org.tron.trident.proto.Response.NodeList.Node.Address result = new org.tron.trident.proto.Response.NodeList.Node.Address(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeList.Node.Address result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.port_ = port_; } } @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.tron.trident.proto.Response.NodeList.Node.Address) { return mergeFrom((org.tron.trident.proto.Response.NodeList.Node.Address)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeList.Node.Address other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { host_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { port_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes host = 1; * @return This builder for chaining. */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 port = 2; * @return This builder for chaining. */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); 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.tron.trident.proto.Response.NodeList.Node.Address DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeList.Node.Address(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private org.tron.trident.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 ((bitField0_ & 0x00000001) != 0); } /** * .protocol.NodeList.Node.Address address = 1; * @return The address. */ @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.Address getAddress() { return address_ == null ? org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } /** * .protocol.NodeList.Node.Address address = 1; */ @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder() { return address_ == null ? org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAddress()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeList.Node)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeList.Node other = (org.tron.trident.proto.Response.NodeList.Node) obj; if (hasAddress() != other.hasAddress()) return false; if (hasAddress()) { if (!getAddress() .equals(other.getAddress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeList.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeList.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.Node.class, org.tron.trident.proto.Response.NodeList.Node.Builder.class); } // Construct using org.tron.trident.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) { getAddressFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_Node_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeList.Node.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node build() { org.tron.trident.proto.Response.NodeList.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node buildPartial() { org.tron.trident.proto.Response.NodeList.Node result = new org.tron.trident.proto.Response.NodeList.Node(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.NodeList.Node result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = addressBuilder_ == null ? address_ : addressBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.NodeList.Node) { return mergeFrom((org.tron.trident.proto.Response.NodeList.Node)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeList.Node other) { if (other == org.tron.trident.proto.Response.NodeList.Node.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(other.getAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAddressFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Response.NodeList.Node.Address address_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeList.Node.Address, org.tron.trident.proto.Response.NodeList.Node.Address.Builder, org.tron.trident.proto.Response.NodeList.Node.AddressOrBuilder> addressBuilder_; /** * .protocol.NodeList.Node.Address address = 1; * @return Whether the address field is set. */ public boolean hasAddress() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.NodeList.Node.Address address = 1; * @return The address. */ public org.tron.trident.proto.Response.NodeList.Node.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder setAddress(org.tron.trident.proto.Response.NodeList.Node.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder setAddress( org.tron.trident.proto.Response.NodeList.Node.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder mergeAddress(org.tron.trident.proto.Response.NodeList.Node.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && address_ != null && address_ != org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance()) { getAddressBuilder().mergeFrom(value); } else { address_ = value; } } else { addressBuilder_.mergeFrom(value); } if (address_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } onChanged(); return this; } /** * .protocol.NodeList.Node.Address address = 1; */ public org.tron.trident.proto.Response.NodeList.Node.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAddressFieldBuilder().getBuilder(); } /** * .protocol.NodeList.Node.Address address = 1; */ public org.tron.trident.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? org.tron.trident.proto.Response.NodeList.Node.Address.getDefaultInstance() : address_; } } /** * .protocol.NodeList.Node.Address address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeList.Node.Address, org.tron.trident.proto.Response.NodeList.Node.Address.Builder, org.tron.trident.proto.Response.NodeList.Node.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.NodeList.Node.Address, org.tron.trident.proto.Response.NodeList.Node.Address.Builder, org.tron.trident.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.tron.trident.proto.Response.NodeList.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeList.Node(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NODES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List nodes_; /** * repeated .protocol.NodeList.Node nodes = 1; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** * repeated .protocol.NodeList.Node nodes = 1; */ @java.lang.Override public java.util.List getNodesOrBuilderList() { return nodes_; } /** * repeated .protocol.NodeList.Node nodes = 1; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** * repeated .protocol.NodeList.Node nodes = 1; */ @java.lang.Override public org.tron.trident.proto.Response.NodeList.Node getNodes(int index) { return nodes_.get(index); } /** * repeated .protocol.NodeList.Node nodes = 1; */ @java.lang.Override public org.tron.trident.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.NodeList)) { return super.equals(obj); } org.tron.trident.proto.Response.NodeList other = (org.tron.trident.proto.Response.NodeList) obj; if (!getNodesList() .equals(other.getNodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodesCount() > 0) { hash = (37 * hash) + NODES_FIELD_NUMBER; hash = (53 * hash) + getNodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.NodeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.NodeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.NodeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.NodeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.NodeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.NodeList.class, org.tron.trident.proto.Response.NodeList.Builder.class); } // Construct using org.tron.trident.proto.Response.NodeList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); } else { nodes_ = null; nodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_NodeList_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.NodeList getDefaultInstanceForType() { return org.tron.trident.proto.Response.NodeList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.NodeList build() { org.tron.trident.proto.Response.NodeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.NodeList buildPartial() { org.tron.trident.proto.Response.NodeList result = new org.tron.trident.proto.Response.NodeList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.NodeList result) { if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.nodes_ = nodes_; } else { result.nodes_ = nodesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.NodeList result) { int from_bitField0_ = bitField0_; } @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.tron.trident.proto.Response.NodeList) { return mergeFrom((org.tron.trident.proto.Response.NodeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.NodeList other) { if (other == org.tron.trident.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.proto.Response.NodeList.Node m = input.readMessage( org.tron.trident.proto.Response.NodeList.Node.parser(), extensionRegistry); if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(m); } else { nodesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.tron.trident.proto.Response.NodeList.Node, org.tron.trident.proto.Response.NodeList.Node.Builder, org.tron.trident.proto.Response.NodeList.NodeOrBuilder> nodesBuilder_; /** * repeated .protocol.NodeList.Node nodes = 1; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { return java.util.Collections.unmodifiableList(nodes_); } else { return nodesBuilder_.getMessageList(); } } /** * repeated .protocol.NodeList.Node nodes = 1; */ public int getNodesCount() { if (nodesBuilder_ == null) { return nodes_.size(); } else { return nodesBuilder_.getCount(); } } /** * repeated .protocol.NodeList.Node nodes = 1; */ public org.tron.trident.proto.Response.NodeList.Node getNodes(int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessage(index); } } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder setNodes( int index, org.tron.trident.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; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder setNodes( int index, org.tron.trident.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder addNodes(org.tron.trident.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; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder addNodes( int index, org.tron.trident.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; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder addNodes( org.tron.trident.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder addNodes( int index, org.tron.trident.proto.Response.NodeList.Node.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.NodeList.Node nodes = 1; */ 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; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder clearNodes() { if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodesBuilder_.clear(); } return this; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.remove(index); onChanged(); } else { nodesBuilder_.remove(index); } return this; } /** * repeated .protocol.NodeList.Node nodes = 1; */ public org.tron.trident.proto.Response.NodeList.Node.Builder getNodesBuilder( int index) { return getNodesFieldBuilder().getBuilder(index); } /** * repeated .protocol.NodeList.Node nodes = 1; */ public org.tron.trident.proto.Response.NodeList.NodeOrBuilder getNodesOrBuilder( int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.NodeList.Node nodes = 1; */ public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodes_); } } /** * repeated .protocol.NodeList.Node nodes = 1; */ public org.tron.trident.proto.Response.NodeList.Node.Builder addNodesBuilder() { return getNodesFieldBuilder().addBuilder( org.tron.trident.proto.Response.NodeList.Node.getDefaultInstance()); } /** * repeated .protocol.NodeList.Node nodes = 1; */ public org.tron.trident.proto.Response.NodeList.Node.Builder addNodesBuilder( int index) { return getNodesFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.NodeList.Node.getDefaultInstance()); } /** * repeated .protocol.NodeList.Node nodes = 1; */ public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeList.Node, org.tron.trident.proto.Response.NodeList.Node.Builder, org.tron.trident.proto.Response.NodeList.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.NodeList.Node, org.tron.trident.proto.Response.NodeList.Node.Builder, org.tron.trident.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.tron.trident.proto.Response.NodeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.NodeList(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AccountNetMessage.class, org.tron.trident.proto.Response.AccountNetMessage.Builder.class); } public static final int FREENETUSED_FIELD_NUMBER = 1; private long freeNetUsed_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_AssetNetUsedEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_AssetNetLimitEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.AccountNetMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.AccountNetMessage other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.AccountNetMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AccountNetMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AccountNetMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.AccountNetMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.AccountNetMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AccountNetMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AccountNetMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.AccountNetMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AccountNetMessage.class, org.tron.trident.proto.Response.AccountNetMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.AccountNetMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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.tron.trident.proto.Response.internal_static_protocol_AccountNetMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.AccountNetMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.AccountNetMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.AccountNetMessage build() { org.tron.trident.proto.Response.AccountNetMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.AccountNetMessage buildPartial() { org.tron.trident.proto.Response.AccountNetMessage result = new org.tron.trident.proto.Response.AccountNetMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.AccountNetMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.freeNetUsed_ = freeNetUsed_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.freeNetLimit_ = freeNetLimit_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.netUsed_ = netUsed_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.netLimit_ = netLimit_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.assetNetUsed_ = internalGetAssetNetUsed(); result.assetNetUsed_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.assetNetLimit_ = internalGetAssetNetLimit(); result.assetNetLimit_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.totalNetLimit_ = totalNetLimit_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.totalNetWeight_ = totalNetWeight_; } } @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.tron.trident.proto.Response.AccountNetMessage) { return mergeFrom((org.tron.trident.proto.Response.AccountNetMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.AccountNetMessage other) { if (other == org.tron.trident.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()); bitField0_ |= 0x00000010; internalGetMutableAssetNetLimit().mergeFrom( other.internalGetAssetNetLimit()); bitField0_ |= 0x00000020; if (other.getTotalNetLimit() != 0L) { setTotalNetLimit(other.getTotalNetLimit()); } if (other.getTotalNetWeight() != 0L) { setTotalNetWeight(other.getTotalNetWeight()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { freeNetUsed_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { freeNetLimit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { netUsed_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { netLimit_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.protobuf.MapEntry assetNetUsed__ = input.readMessage( AssetNetUsedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAssetNetUsed().getMutableMap().put( assetNetUsed__.getKey(), assetNetUsed__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry assetNetLimit__ = input.readMessage( AssetNetLimitDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAssetNetLimit().getMutableMap().put( assetNetLimit__.getKey(), assetNetLimit__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 56: { totalNetLimit_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { totalNetWeight_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 freeNetUsed = 1; * @return This builder for chaining. */ public Builder clearFreeNetUsed() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 freeNetLimit = 2; * @return This builder for chaining. */ public Builder clearFreeNetLimit() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 NetUsed = 3; * @return This builder for chaining. */ public Builder clearNetUsed() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 NetLimit = 4; * @return This builder for chaining. */ public Builder clearNetLimit() { bitField0_ = (bitField0_ & ~0x00000008); 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() { if (assetNetUsed_ == null) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } if (!assetNetUsed_.isMutable()) { assetNetUsed_ = assetNetUsed_.copy(); } bitField0_ |= 0x00000010; onChanged(); 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetUsed() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAssetNetUsed().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder removeAssetNetUsed( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetUsed().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetUsed() { bitField0_ |= 0x00000010; return internalGetMutableAssetNetUsed().getMutableMap(); } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAssetNetUsed( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetUsed().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAllAssetNetUsed( java.util.Map values) { internalGetMutableAssetNetUsed().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; 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() { if (assetNetLimit_ == null) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } if (!assetNetLimit_.isMutable()) { assetNetLimit_ = assetNetLimit_.copy(); } bitField0_ |= 0x00000020; onChanged(); 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetLimit() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableAssetNetLimit().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder removeAssetNetLimit( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetLimit().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetLimit() { bitField0_ |= 0x00000020; return internalGetMutableAssetNetLimit().getMutableMap(); } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAssetNetLimit( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetLimit().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAllAssetNetLimit( java.util.Map values) { internalGetMutableAssetNetLimit().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 TotalNetLimit = 7; * @return This builder for chaining. */ public Builder clearTotalNetLimit() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 TotalNetWeight = 8; * @return This builder for chaining. */ public Builder clearTotalNetWeight() { bitField0_ = (bitField0_ & ~0x00000080); 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.tron.trident.proto.Response.AccountNetMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AccountNetMessage(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.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 TotalTronPowerWeight = 9; * @return The totalTronPowerWeight. */ long getTotalTronPowerWeight(); /** * int64 tronPowerUsed = 10; * @return The tronPowerUsed. */ long getTronPowerUsed(); /** * int64 tronPowerLimit = 11; * @return The tronPowerLimit. */ long getTronPowerLimit(); /** * int64 EnergyUsed = 13; * @return The energyUsed. */ long getEnergyUsed(); /** * int64 EnergyLimit = 14; * @return The energyLimit. */ long getEnergyLimit(); /** * int64 TotalEnergyLimit = 15; * @return The totalEnergyLimit. */ long getTotalEnergyLimit(); /** * int64 TotalEnergyWeight = 16; * @return The totalEnergyWeight. */ long getTotalEnergyWeight(); /** * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AccountResourceMessage.class, org.tron.trident.proto.Response.AccountResourceMessage.Builder.class); } public static final int FREENETUSED_FIELD_NUMBER = 1; private long freeNetUsed_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_AssetNetUsedEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_AssetNetLimitEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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_ = 0L; /** * 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_ = 0L; /** * int64 TotalNetWeight = 8; * @return The totalNetWeight. */ @java.lang.Override public long getTotalNetWeight() { return totalNetWeight_; } public static final int TOTALTRONPOWERWEIGHT_FIELD_NUMBER = 9; private long totalTronPowerWeight_ = 0L; /** * int64 TotalTronPowerWeight = 9; * @return The totalTronPowerWeight. */ @java.lang.Override public long getTotalTronPowerWeight() { return totalTronPowerWeight_; } public static final int TRONPOWERUSED_FIELD_NUMBER = 10; private long tronPowerUsed_ = 0L; /** * int64 tronPowerUsed = 10; * @return The tronPowerUsed. */ @java.lang.Override public long getTronPowerUsed() { return tronPowerUsed_; } public static final int TRONPOWERLIMIT_FIELD_NUMBER = 11; private long tronPowerLimit_ = 0L; /** * int64 tronPowerLimit = 11; * @return The tronPowerLimit. */ @java.lang.Override public long getTronPowerLimit() { return tronPowerLimit_; } public static final int ENERGYUSED_FIELD_NUMBER = 13; private long energyUsed_ = 0L; /** * int64 EnergyUsed = 13; * @return The energyUsed. */ @java.lang.Override public long getEnergyUsed() { return energyUsed_; } public static final int ENERGYLIMIT_FIELD_NUMBER = 14; private long energyLimit_ = 0L; /** * int64 EnergyLimit = 14; * @return The energyLimit. */ @java.lang.Override public long getEnergyLimit() { return energyLimit_; } public static final int TOTALENERGYLIMIT_FIELD_NUMBER = 15; private long totalEnergyLimit_ = 0L; /** * int64 TotalEnergyLimit = 15; * @return The totalEnergyLimit. */ @java.lang.Override public long getTotalEnergyLimit() { return totalEnergyLimit_; } public static final int TOTALENERGYWEIGHT_FIELD_NUMBER = 16; private long totalEnergyWeight_ = 0L; /** * int64 TotalEnergyWeight = 16; * @return The totalEnergyWeight. */ @java.lang.Override public long getTotalEnergyWeight() { return totalEnergyWeight_; } public static final int STORAGEUSED_FIELD_NUMBER = 21; private long storageUsed_ = 0L; /** * 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_ = 0L; /** * 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 (totalTronPowerWeight_ != 0L) { output.writeInt64(9, totalTronPowerWeight_); } if (tronPowerUsed_ != 0L) { output.writeInt64(10, tronPowerUsed_); } if (tronPowerLimit_ != 0L) { output.writeInt64(11, tronPowerLimit_); } if (energyUsed_ != 0L) { output.writeInt64(13, energyUsed_); } if (energyLimit_ != 0L) { output.writeInt64(14, energyLimit_); } if (totalEnergyLimit_ != 0L) { output.writeInt64(15, totalEnergyLimit_); } if (totalEnergyWeight_ != 0L) { output.writeInt64(16, totalEnergyWeight_); } if (storageUsed_ != 0L) { output.writeInt64(21, storageUsed_); } if (storageLimit_ != 0L) { output.writeInt64(22, storageLimit_); } getUnknownFields().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 (totalTronPowerWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, totalTronPowerWeight_); } if (tronPowerUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, tronPowerUsed_); } if (tronPowerLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, tronPowerLimit_); } if (energyUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, energyUsed_); } if (energyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, energyLimit_); } if (totalEnergyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, totalEnergyLimit_); } if (totalEnergyWeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, totalEnergyWeight_); } if (storageUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, storageUsed_); } if (storageLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, storageLimit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.AccountResourceMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.AccountResourceMessage other = (org.tron.trident.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 (getTotalTronPowerWeight() != other.getTotalTronPowerWeight()) return false; if (getTronPowerUsed() != other.getTronPowerUsed()) return false; if (getTronPowerLimit() != other.getTronPowerLimit()) return false; if (getEnergyUsed() != other.getEnergyUsed()) return false; if (getEnergyLimit() != other.getEnergyLimit()) return false; if (getTotalEnergyLimit() != other.getTotalEnergyLimit()) return false; if (getTotalEnergyWeight() != other.getTotalEnergyWeight()) return false; if (getStorageUsed() != other.getStorageUsed()) return false; if (getStorageLimit() != other.getStorageLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + TOTALTRONPOWERWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalTronPowerWeight()); hash = (37 * hash) + TRONPOWERUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTronPowerUsed()); hash = (37 * hash) + TRONPOWERLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTronPowerLimit()); hash = (37 * hash) + ENERGYUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyUsed()); hash = (37 * hash) + ENERGYLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnergyLimit()); hash = (37 * hash) + TOTALENERGYLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalEnergyLimit()); hash = (37 * hash) + TOTALENERGYWEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalEnergyWeight()); 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.AccountResourceMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AccountResourceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.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.tron.trident.proto.Response.AccountResourceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.AccountResourceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.AccountResourceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AccountResourceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.proto.Response.AccountResourceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Response.AccountResourceMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.AccountResourceMessage.class, org.tron.trident.proto.Response.AccountResourceMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.AccountResourceMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; freeNetUsed_ = 0L; freeNetLimit_ = 0L; netUsed_ = 0L; netLimit_ = 0L; internalGetMutableAssetNetUsed().clear(); internalGetMutableAssetNetLimit().clear(); totalNetLimit_ = 0L; totalNetWeight_ = 0L; totalTronPowerWeight_ = 0L; tronPowerUsed_ = 0L; tronPowerLimit_ = 0L; energyUsed_ = 0L; energyLimit_ = 0L; totalEnergyLimit_ = 0L; totalEnergyWeight_ = 0L; storageUsed_ = 0L; storageLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_AccountResourceMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.AccountResourceMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.AccountResourceMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.AccountResourceMessage build() { org.tron.trident.proto.Response.AccountResourceMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.AccountResourceMessage buildPartial() { org.tron.trident.proto.Response.AccountResourceMessage result = new org.tron.trident.proto.Response.AccountResourceMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.AccountResourceMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.freeNetUsed_ = freeNetUsed_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.freeNetLimit_ = freeNetLimit_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.netUsed_ = netUsed_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.netLimit_ = netLimit_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.assetNetUsed_ = internalGetAssetNetUsed(); result.assetNetUsed_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.assetNetLimit_ = internalGetAssetNetLimit(); result.assetNetLimit_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.totalNetLimit_ = totalNetLimit_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.totalNetWeight_ = totalNetWeight_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.totalTronPowerWeight_ = totalTronPowerWeight_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.tronPowerUsed_ = tronPowerUsed_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.tronPowerLimit_ = tronPowerLimit_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.energyUsed_ = energyUsed_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.energyLimit_ = energyLimit_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.totalEnergyLimit_ = totalEnergyLimit_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.totalEnergyWeight_ = totalEnergyWeight_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.storageUsed_ = storageUsed_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.storageLimit_ = storageLimit_; } } @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.tron.trident.proto.Response.AccountResourceMessage) { return mergeFrom((org.tron.trident.proto.Response.AccountResourceMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.AccountResourceMessage other) { if (other == org.tron.trident.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()); bitField0_ |= 0x00000010; internalGetMutableAssetNetLimit().mergeFrom( other.internalGetAssetNetLimit()); bitField0_ |= 0x00000020; if (other.getTotalNetLimit() != 0L) { setTotalNetLimit(other.getTotalNetLimit()); } if (other.getTotalNetWeight() != 0L) { setTotalNetWeight(other.getTotalNetWeight()); } if (other.getTotalTronPowerWeight() != 0L) { setTotalTronPowerWeight(other.getTotalTronPowerWeight()); } if (other.getTronPowerUsed() != 0L) { setTronPowerUsed(other.getTronPowerUsed()); } if (other.getTronPowerLimit() != 0L) { setTronPowerLimit(other.getTronPowerLimit()); } if (other.getEnergyUsed() != 0L) { setEnergyUsed(other.getEnergyUsed()); } if (other.getEnergyLimit() != 0L) { setEnergyLimit(other.getEnergyLimit()); } if (other.getTotalEnergyLimit() != 0L) { setTotalEnergyLimit(other.getTotalEnergyLimit()); } if (other.getTotalEnergyWeight() != 0L) { setTotalEnergyWeight(other.getTotalEnergyWeight()); } if (other.getStorageUsed() != 0L) { setStorageUsed(other.getStorageUsed()); } if (other.getStorageLimit() != 0L) { setStorageLimit(other.getStorageLimit()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { freeNetUsed_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { freeNetLimit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { netUsed_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { netLimit_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.protobuf.MapEntry assetNetUsed__ = input.readMessage( AssetNetUsedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAssetNetUsed().getMutableMap().put( assetNetUsed__.getKey(), assetNetUsed__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry assetNetLimit__ = input.readMessage( AssetNetLimitDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAssetNetLimit().getMutableMap().put( assetNetLimit__.getKey(), assetNetLimit__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 56: { totalNetLimit_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { totalNetWeight_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { totalTronPowerWeight_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { tronPowerUsed_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { tronPowerLimit_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 104: { energyUsed_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 104 case 112: { energyLimit_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 112 case 120: { totalEnergyLimit_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 120 case 128: { totalEnergyWeight_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 128 case 168: { storageUsed_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 168 case 176: { storageLimit_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 freeNetUsed = 1; * @return This builder for chaining. */ public Builder clearFreeNetUsed() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 freeNetLimit = 2; * @return This builder for chaining. */ public Builder clearFreeNetLimit() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 NetUsed = 3; * @return This builder for chaining. */ public Builder clearNetUsed() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 NetLimit = 4; * @return This builder for chaining. */ public Builder clearNetLimit() { bitField0_ = (bitField0_ & ~0x00000008); 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() { if (assetNetUsed_ == null) { assetNetUsed_ = com.google.protobuf.MapField.newMapField( AssetNetUsedDefaultEntryHolder.defaultEntry); } if (!assetNetUsed_.isMutable()) { assetNetUsed_ = assetNetUsed_.copy(); } bitField0_ |= 0x00000010; onChanged(); 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetAssetNetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetUsed() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAssetNetUsed().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder removeAssetNetUsed( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetUsed().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetUsed() { bitField0_ |= 0x00000010; return internalGetMutableAssetNetUsed().getMutableMap(); } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAssetNetUsed( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetUsed().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** * map<string, int64> assetNetUsed = 5; */ public Builder putAllAssetNetUsed( java.util.Map values) { internalGetMutableAssetNetUsed().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; 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() { if (assetNetLimit_ == null) { assetNetLimit_ = com.google.protobuf.MapField.newMapField( AssetNetLimitDefaultEntryHolder.defaultEntry); } if (!assetNetLimit_.isMutable()) { assetNetLimit_ = assetNetLimit_.copy(); } bitField0_ |= 0x00000020; onChanged(); 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetAssetNetLimit().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAssetNetLimit() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableAssetNetLimit().getMutableMap() .clear(); return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder removeAssetNetLimit( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetLimit().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAssetNetLimit() { bitField0_ |= 0x00000020; return internalGetMutableAssetNetLimit().getMutableMap(); } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAssetNetLimit( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAssetNetLimit().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * map<string, int64> assetNetLimit = 6; */ public Builder putAllAssetNetLimit( java.util.Map values) { internalGetMutableAssetNetLimit().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 TotalNetLimit = 7; * @return This builder for chaining. */ public Builder clearTotalNetLimit() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 TotalNetWeight = 8; * @return This builder for chaining. */ public Builder clearTotalNetWeight() { bitField0_ = (bitField0_ & ~0x00000080); totalNetWeight_ = 0L; onChanged(); return this; } private long totalTronPowerWeight_ ; /** * int64 TotalTronPowerWeight = 9; * @return The totalTronPowerWeight. */ @java.lang.Override public long getTotalTronPowerWeight() { return totalTronPowerWeight_; } /** * int64 TotalTronPowerWeight = 9; * @param value The totalTronPowerWeight to set. * @return This builder for chaining. */ public Builder setTotalTronPowerWeight(long value) { totalTronPowerWeight_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 TotalTronPowerWeight = 9; * @return This builder for chaining. */ public Builder clearTotalTronPowerWeight() { bitField0_ = (bitField0_ & ~0x00000100); totalTronPowerWeight_ = 0L; onChanged(); return this; } private long tronPowerUsed_ ; /** * int64 tronPowerUsed = 10; * @return The tronPowerUsed. */ @java.lang.Override public long getTronPowerUsed() { return tronPowerUsed_; } /** * int64 tronPowerUsed = 10; * @param value The tronPowerUsed to set. * @return This builder for chaining. */ public Builder setTronPowerUsed(long value) { tronPowerUsed_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * int64 tronPowerUsed = 10; * @return This builder for chaining. */ public Builder clearTronPowerUsed() { bitField0_ = (bitField0_ & ~0x00000200); tronPowerUsed_ = 0L; onChanged(); return this; } private long tronPowerLimit_ ; /** * int64 tronPowerLimit = 11; * @return The tronPowerLimit. */ @java.lang.Override public long getTronPowerLimit() { return tronPowerLimit_; } /** * int64 tronPowerLimit = 11; * @param value The tronPowerLimit to set. * @return This builder for chaining. */ public Builder setTronPowerLimit(long value) { tronPowerLimit_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int64 tronPowerLimit = 11; * @return This builder for chaining. */ public Builder clearTronPowerLimit() { bitField0_ = (bitField0_ & ~0x00000400); tronPowerLimit_ = 0L; onChanged(); return this; } private long energyUsed_ ; /** * int64 EnergyUsed = 13; * @return The energyUsed. */ @java.lang.Override public long getEnergyUsed() { return energyUsed_; } /** * int64 EnergyUsed = 13; * @param value The energyUsed to set. * @return This builder for chaining. */ public Builder setEnergyUsed(long value) { energyUsed_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * int64 EnergyUsed = 13; * @return This builder for chaining. */ public Builder clearEnergyUsed() { bitField0_ = (bitField0_ & ~0x00000800); energyUsed_ = 0L; onChanged(); return this; } private long energyLimit_ ; /** * int64 EnergyLimit = 14; * @return The energyLimit. */ @java.lang.Override public long getEnergyLimit() { return energyLimit_; } /** * int64 EnergyLimit = 14; * @param value The energyLimit to set. * @return This builder for chaining. */ public Builder setEnergyLimit(long value) { energyLimit_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int64 EnergyLimit = 14; * @return This builder for chaining. */ public Builder clearEnergyLimit() { bitField0_ = (bitField0_ & ~0x00001000); energyLimit_ = 0L; onChanged(); return this; } private long totalEnergyLimit_ ; /** * int64 TotalEnergyLimit = 15; * @return The totalEnergyLimit. */ @java.lang.Override public long getTotalEnergyLimit() { return totalEnergyLimit_; } /** * int64 TotalEnergyLimit = 15; * @param value The totalEnergyLimit to set. * @return This builder for chaining. */ public Builder setTotalEnergyLimit(long value) { totalEnergyLimit_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * int64 TotalEnergyLimit = 15; * @return This builder for chaining. */ public Builder clearTotalEnergyLimit() { bitField0_ = (bitField0_ & ~0x00002000); totalEnergyLimit_ = 0L; onChanged(); return this; } private long totalEnergyWeight_ ; /** * int64 TotalEnergyWeight = 16; * @return The totalEnergyWeight. */ @java.lang.Override public long getTotalEnergyWeight() { return totalEnergyWeight_; } /** * int64 TotalEnergyWeight = 16; * @param value The totalEnergyWeight to set. * @return This builder for chaining. */ public Builder setTotalEnergyWeight(long value) { totalEnergyWeight_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * int64 TotalEnergyWeight = 16; * @return This builder for chaining. */ public Builder clearTotalEnergyWeight() { bitField0_ = (bitField0_ & ~0x00004000); totalEnergyWeight_ = 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; bitField0_ |= 0x00008000; onChanged(); return this; } /** * int64 storageUsed = 21; * @return This builder for chaining. */ public Builder clearStorageUsed() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** * int64 storageLimit = 22; * @return This builder for chaining. */ public Builder clearStorageLimit() { bitField0_ = (bitField0_ & ~0x00010000); 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.tron.trident.proto.Response.AccountResourceMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AccountResourceMessage(); } public static org.tron.trident.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.AccountResourceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BlockIdentifier) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * int64 number = 2; * @return The number. */ long getNumber(); } /** * Protobuf type {@code protocol.BlockIdentifier} */ public static final class BlockIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BlockIdentifier) BlockIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use BlockIdentifier.newBuilder() to construct. private BlockIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockIdentifier() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockIdentifier(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockIdentifier.class, org.tron.trident.proto.Response.BlockIdentifier.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int NUMBER_FIELD_NUMBER = 2; private long number_ = 0L; /** * int64 number = 2; * @return The number. */ @java.lang.Override public long getNumber() { return number_; } 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 (number_ != 0L) { output.writeInt64(2, number_); } getUnknownFields().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 (number_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, number_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.BlockIdentifier)) { return super.equals(obj); } org.tron.trident.proto.Response.BlockIdentifier other = (org.tron.trident.proto.Response.BlockIdentifier) obj; if (!getHash() .equals(other.getHash())) return false; if (getNumber() != other.getNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockIdentifier 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.tron.trident.proto.Response.BlockIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockIdentifier 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.tron.trident.proto.Response.BlockIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockIdentifier 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.tron.trident.proto.Response.BlockIdentifier 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.BlockIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BlockIdentifier) org.tron.trident.proto.Response.BlockIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockIdentifier.class, org.tron.trident.proto.Response.BlockIdentifier.Builder.class); } // Construct using org.tron.trident.proto.Response.BlockIdentifier.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; number_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_BlockIdentifier_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifier getDefaultInstanceForType() { return org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifier build() { org.tron.trident.proto.Response.BlockIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifier buildPartial() { org.tron.trident.proto.Response.BlockIdentifier result = new org.tron.trident.proto.Response.BlockIdentifier(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.BlockIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hash_ = hash_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.number_ = number_; } } @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.tron.trident.proto.Response.BlockIdentifier) { return mergeFrom((org.tron.trident.proto.Response.BlockIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.BlockIdentifier other) { if (other == org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.getNumber() != 0L) { setNumber(other.getNumber()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { number_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { bitField0_ = (bitField0_ & ~0x00000001); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private long number_ ; /** * int64 number = 2; * @return The number. */ @java.lang.Override public long getNumber() { return number_; } /** * int64 number = 2; * @param value The number to set. * @return This builder for chaining. */ public Builder setNumber(long value) { number_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 number = 2; * @return This builder for chaining. */ public Builder clearNumber() { bitField0_ = (bitField0_ & ~0x00000002); number_ = 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.BlockIdentifier) } // @@protoc_insertion_point(class_scope:protocol.BlockIdentifier) private static final org.tron.trident.proto.Response.BlockIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockIdentifier(); } public static org.tron.trident.proto.Response.BlockIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockBalanceTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BlockBalanceTrace) com.google.protobuf.MessageOrBuilder { /** * .protocol.BlockIdentifier block_identifier = 1; * @return Whether the blockIdentifier field is set. */ boolean hasBlockIdentifier(); /** * .protocol.BlockIdentifier block_identifier = 1; * @return The blockIdentifier. */ org.tron.trident.proto.Response.BlockIdentifier getBlockIdentifier(); /** * .protocol.BlockIdentifier block_identifier = 1; */ org.tron.trident.proto.Response.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder(); /** * int64 timestamp = 2; * @return The timestamp. */ long getTimestamp(); /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ java.util.List getTransactionBalanceTraceList(); /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ org.tron.trident.proto.Response.TransactionBalanceTrace getTransactionBalanceTrace(int index); /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ int getTransactionBalanceTraceCount(); /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ java.util.List getTransactionBalanceTraceOrBuilderList(); /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder getTransactionBalanceTraceOrBuilder( int index); } /** * Protobuf type {@code protocol.BlockBalanceTrace} */ public static final class BlockBalanceTrace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BlockBalanceTrace) BlockBalanceTraceOrBuilder { private static final long serialVersionUID = 0L; // Use BlockBalanceTrace.newBuilder() to construct. private BlockBalanceTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockBalanceTrace() { transactionBalanceTrace_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockBalanceTrace(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockBalanceTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockBalanceTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockBalanceTrace.class, org.tron.trident.proto.Response.BlockBalanceTrace.Builder.class); } private int bitField0_; public static final int BLOCK_IDENTIFIER_FIELD_NUMBER = 1; private org.tron.trident.proto.Response.BlockIdentifier blockIdentifier_; /** * .protocol.BlockIdentifier block_identifier = 1; * @return Whether the blockIdentifier field is set. */ @java.lang.Override public boolean hasBlockIdentifier() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.BlockIdentifier block_identifier = 1; * @return The blockIdentifier. */ @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifier getBlockIdentifier() { return blockIdentifier_ == null ? org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance() : blockIdentifier_; } /** * .protocol.BlockIdentifier block_identifier = 1; */ @java.lang.Override public org.tron.trident.proto.Response.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() { return blockIdentifier_ == null ? org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance() : blockIdentifier_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_ = 0L; /** * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int TRANSACTION_BALANCE_TRACE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List transactionBalanceTrace_; /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ @java.lang.Override public java.util.List getTransactionBalanceTraceList() { return transactionBalanceTrace_; } /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ @java.lang.Override public java.util.List getTransactionBalanceTraceOrBuilderList() { return transactionBalanceTrace_; } /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ @java.lang.Override public int getTransactionBalanceTraceCount() { return transactionBalanceTrace_.size(); } /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace getTransactionBalanceTrace(int index) { return transactionBalanceTrace_.get(index); } /** *
     *  BlockIdentifier parent_block_identifier = 4;
     * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder getTransactionBalanceTraceOrBuilder( int index) { return transactionBalanceTrace_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBlockIdentifier()); } if (timestamp_ != 0L) { output.writeInt64(2, timestamp_); } for (int i = 0; i < transactionBalanceTrace_.size(); i++) { output.writeMessage(3, transactionBalanceTrace_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBlockIdentifier()); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, timestamp_); } for (int i = 0; i < transactionBalanceTrace_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, transactionBalanceTrace_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.BlockBalanceTrace)) { return super.equals(obj); } org.tron.trident.proto.Response.BlockBalanceTrace other = (org.tron.trident.proto.Response.BlockBalanceTrace) obj; if (hasBlockIdentifier() != other.hasBlockIdentifier()) return false; if (hasBlockIdentifier()) { if (!getBlockIdentifier() .equals(other.getBlockIdentifier())) return false; } if (getTimestamp() != other.getTimestamp()) return false; if (!getTransactionBalanceTraceList() .equals(other.getTransactionBalanceTraceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBlockIdentifier()) { hash = (37 * hash) + BLOCK_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getBlockIdentifier().hashCode(); } hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); if (getTransactionBalanceTraceCount() > 0) { hash = (37 * hash) + TRANSACTION_BALANCE_TRACE_FIELD_NUMBER; hash = (53 * hash) + getTransactionBalanceTraceList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.BlockBalanceTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockBalanceTrace 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.tron.trident.proto.Response.BlockBalanceTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockBalanceTrace 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.tron.trident.proto.Response.BlockBalanceTrace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.BlockBalanceTrace 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.tron.trident.proto.Response.BlockBalanceTrace 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.BlockBalanceTrace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BlockBalanceTrace) org.tron.trident.proto.Response.BlockBalanceTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_BlockBalanceTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_BlockBalanceTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.BlockBalanceTrace.class, org.tron.trident.proto.Response.BlockBalanceTrace.Builder.class); } // Construct using org.tron.trident.proto.Response.BlockBalanceTrace.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBlockIdentifierFieldBuilder(); getTransactionBalanceTraceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; blockIdentifier_ = null; if (blockIdentifierBuilder_ != null) { blockIdentifierBuilder_.dispose(); blockIdentifierBuilder_ = null; } timestamp_ = 0L; if (transactionBalanceTraceBuilder_ == null) { transactionBalanceTrace_ = java.util.Collections.emptyList(); } else { transactionBalanceTrace_ = null; transactionBalanceTraceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_BlockBalanceTrace_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.BlockBalanceTrace getDefaultInstanceForType() { return org.tron.trident.proto.Response.BlockBalanceTrace.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.BlockBalanceTrace build() { org.tron.trident.proto.Response.BlockBalanceTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.BlockBalanceTrace buildPartial() { org.tron.trident.proto.Response.BlockBalanceTrace result = new org.tron.trident.proto.Response.BlockBalanceTrace(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockBalanceTrace result) { if (transactionBalanceTraceBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { transactionBalanceTrace_ = java.util.Collections.unmodifiableList(transactionBalanceTrace_); bitField0_ = (bitField0_ & ~0x00000004); } result.transactionBalanceTrace_ = transactionBalanceTrace_; } else { result.transactionBalanceTrace_ = transactionBalanceTraceBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.BlockBalanceTrace result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.blockIdentifier_ = blockIdentifierBuilder_ == null ? blockIdentifier_ : blockIdentifierBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestamp_; } result.bitField0_ |= to_bitField0_; } @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.tron.trident.proto.Response.BlockBalanceTrace) { return mergeFrom((org.tron.trident.proto.Response.BlockBalanceTrace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.BlockBalanceTrace other) { if (other == org.tron.trident.proto.Response.BlockBalanceTrace.getDefaultInstance()) return this; if (other.hasBlockIdentifier()) { mergeBlockIdentifier(other.getBlockIdentifier()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (transactionBalanceTraceBuilder_ == null) { if (!other.transactionBalanceTrace_.isEmpty()) { if (transactionBalanceTrace_.isEmpty()) { transactionBalanceTrace_ = other.transactionBalanceTrace_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.addAll(other.transactionBalanceTrace_); } onChanged(); } } else { if (!other.transactionBalanceTrace_.isEmpty()) { if (transactionBalanceTraceBuilder_.isEmpty()) { transactionBalanceTraceBuilder_.dispose(); transactionBalanceTraceBuilder_ = null; transactionBalanceTrace_ = other.transactionBalanceTrace_; bitField0_ = (bitField0_ & ~0x00000004); transactionBalanceTraceBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionBalanceTraceFieldBuilder() : null; } else { transactionBalanceTraceBuilder_.addAllMessages(other.transactionBalanceTrace_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBlockIdentifierFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { org.tron.trident.proto.Response.TransactionBalanceTrace m = input.readMessage( org.tron.trident.proto.Response.TransactionBalanceTrace.parser(), extensionRegistry); if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.add(m); } else { transactionBalanceTraceBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Response.BlockIdentifier blockIdentifier_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.BlockIdentifier, org.tron.trident.proto.Response.BlockIdentifier.Builder, org.tron.trident.proto.Response.BlockIdentifierOrBuilder> blockIdentifierBuilder_; /** * .protocol.BlockIdentifier block_identifier = 1; * @return Whether the blockIdentifier field is set. */ public boolean hasBlockIdentifier() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.BlockIdentifier block_identifier = 1; * @return The blockIdentifier. */ public org.tron.trident.proto.Response.BlockIdentifier getBlockIdentifier() { if (blockIdentifierBuilder_ == null) { return blockIdentifier_ == null ? org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance() : blockIdentifier_; } else { return blockIdentifierBuilder_.getMessage(); } } /** * .protocol.BlockIdentifier block_identifier = 1; */ public Builder setBlockIdentifier(org.tron.trident.proto.Response.BlockIdentifier value) { if (blockIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockIdentifier_ = value; } else { blockIdentifierBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.BlockIdentifier block_identifier = 1; */ public Builder setBlockIdentifier( org.tron.trident.proto.Response.BlockIdentifier.Builder builderForValue) { if (blockIdentifierBuilder_ == null) { blockIdentifier_ = builderForValue.build(); } else { blockIdentifierBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.BlockIdentifier block_identifier = 1; */ public Builder mergeBlockIdentifier(org.tron.trident.proto.Response.BlockIdentifier value) { if (blockIdentifierBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && blockIdentifier_ != null && blockIdentifier_ != org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance()) { getBlockIdentifierBuilder().mergeFrom(value); } else { blockIdentifier_ = value; } } else { blockIdentifierBuilder_.mergeFrom(value); } if (blockIdentifier_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.BlockIdentifier block_identifier = 1; */ public Builder clearBlockIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); blockIdentifier_ = null; if (blockIdentifierBuilder_ != null) { blockIdentifierBuilder_.dispose(); blockIdentifierBuilder_ = null; } onChanged(); return this; } /** * .protocol.BlockIdentifier block_identifier = 1; */ public org.tron.trident.proto.Response.BlockIdentifier.Builder getBlockIdentifierBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBlockIdentifierFieldBuilder().getBuilder(); } /** * .protocol.BlockIdentifier block_identifier = 1; */ public org.tron.trident.proto.Response.BlockIdentifierOrBuilder getBlockIdentifierOrBuilder() { if (blockIdentifierBuilder_ != null) { return blockIdentifierBuilder_.getMessageOrBuilder(); } else { return blockIdentifier_ == null ? org.tron.trident.proto.Response.BlockIdentifier.getDefaultInstance() : blockIdentifier_; } } /** * .protocol.BlockIdentifier block_identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.BlockIdentifier, org.tron.trident.proto.Response.BlockIdentifier.Builder, org.tron.trident.proto.Response.BlockIdentifierOrBuilder> getBlockIdentifierFieldBuilder() { if (blockIdentifierBuilder_ == null) { blockIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Response.BlockIdentifier, org.tron.trident.proto.Response.BlockIdentifier.Builder, org.tron.trident.proto.Response.BlockIdentifierOrBuilder>( getBlockIdentifier(), getParentForChildren(), isClean()); blockIdentifier_ = null; } return blockIdentifierBuilder_; } private long timestamp_ ; /** * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 2; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 timestamp = 2; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = 0L; onChanged(); return this; } private java.util.List transactionBalanceTrace_ = java.util.Collections.emptyList(); private void ensureTransactionBalanceTraceIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { transactionBalanceTrace_ = new java.util.ArrayList(transactionBalanceTrace_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder, org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder> transactionBalanceTraceBuilder_; /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public java.util.List getTransactionBalanceTraceList() { if (transactionBalanceTraceBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionBalanceTrace_); } else { return transactionBalanceTraceBuilder_.getMessageList(); } } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public int getTransactionBalanceTraceCount() { if (transactionBalanceTraceBuilder_ == null) { return transactionBalanceTrace_.size(); } else { return transactionBalanceTraceBuilder_.getCount(); } } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public org.tron.trident.proto.Response.TransactionBalanceTrace getTransactionBalanceTrace(int index) { if (transactionBalanceTraceBuilder_ == null) { return transactionBalanceTrace_.get(index); } else { return transactionBalanceTraceBuilder_.getMessage(index); } } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder setTransactionBalanceTrace( int index, org.tron.trident.proto.Response.TransactionBalanceTrace value) { if (transactionBalanceTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.set(index, value); onChanged(); } else { transactionBalanceTraceBuilder_.setMessage(index, value); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder setTransactionBalanceTrace( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder builderForValue) { if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.set(index, builderForValue.build()); onChanged(); } else { transactionBalanceTraceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder addTransactionBalanceTrace(org.tron.trident.proto.Response.TransactionBalanceTrace value) { if (transactionBalanceTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.add(value); onChanged(); } else { transactionBalanceTraceBuilder_.addMessage(value); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder addTransactionBalanceTrace( int index, org.tron.trident.proto.Response.TransactionBalanceTrace value) { if (transactionBalanceTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.add(index, value); onChanged(); } else { transactionBalanceTraceBuilder_.addMessage(index, value); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder addTransactionBalanceTrace( org.tron.trident.proto.Response.TransactionBalanceTrace.Builder builderForValue) { if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.add(builderForValue.build()); onChanged(); } else { transactionBalanceTraceBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder addTransactionBalanceTrace( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder builderForValue) { if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.add(index, builderForValue.build()); onChanged(); } else { transactionBalanceTraceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder addAllTransactionBalanceTrace( java.lang.Iterable values) { if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactionBalanceTrace_); onChanged(); } else { transactionBalanceTraceBuilder_.addAllMessages(values); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder clearTransactionBalanceTrace() { if (transactionBalanceTraceBuilder_ == null) { transactionBalanceTrace_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { transactionBalanceTraceBuilder_.clear(); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public Builder removeTransactionBalanceTrace(int index) { if (transactionBalanceTraceBuilder_ == null) { ensureTransactionBalanceTraceIsMutable(); transactionBalanceTrace_.remove(index); onChanged(); } else { transactionBalanceTraceBuilder_.remove(index); } return this; } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Builder getTransactionBalanceTraceBuilder( int index) { return getTransactionBalanceTraceFieldBuilder().getBuilder(index); } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder getTransactionBalanceTraceOrBuilder( int index) { if (transactionBalanceTraceBuilder_ == null) { return transactionBalanceTrace_.get(index); } else { return transactionBalanceTraceBuilder_.getMessageOrBuilder(index); } } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public java.util.List getTransactionBalanceTraceOrBuilderList() { if (transactionBalanceTraceBuilder_ != null) { return transactionBalanceTraceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionBalanceTrace_); } } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Builder addTransactionBalanceTraceBuilder() { return getTransactionBalanceTraceFieldBuilder().addBuilder( org.tron.trident.proto.Response.TransactionBalanceTrace.getDefaultInstance()); } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Builder addTransactionBalanceTraceBuilder( int index) { return getTransactionBalanceTraceFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.TransactionBalanceTrace.getDefaultInstance()); } /** *
       *  BlockIdentifier parent_block_identifier = 4;
       * 
* * repeated .protocol.TransactionBalanceTrace transaction_balance_trace = 3; */ public java.util.List getTransactionBalanceTraceBuilderList() { return getTransactionBalanceTraceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder, org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder> getTransactionBalanceTraceFieldBuilder() { if (transactionBalanceTraceBuilder_ == null) { transactionBalanceTraceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder, org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder>( transactionBalanceTrace_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); transactionBalanceTrace_ = null; } return transactionBalanceTraceBuilder_; } @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.BlockBalanceTrace) } // @@protoc_insertion_point(class_scope:protocol.BlockBalanceTrace) private static final org.tron.trident.proto.Response.BlockBalanceTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockBalanceTrace(); } public static org.tron.trident.proto.Response.BlockBalanceTrace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockBalanceTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.BlockBalanceTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionBalanceTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionBalanceTrace) com.google.protobuf.MessageOrBuilder { /** * bytes transaction_identifier = 1; * @return The transactionIdentifier. */ com.google.protobuf.ByteString getTransactionIdentifier(); /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ java.util.List getOperationList(); /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getOperation(int index); /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ int getOperationCount(); /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ java.util.List getOperationOrBuilderList(); /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder getOperationOrBuilder( int index); /** * string type = 3; * @return The type. */ java.lang.String getType(); /** * string type = 3; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * string status = 4; * @return The status. */ java.lang.String getStatus(); /** * string status = 4; * @return The bytes for status. */ com.google.protobuf.ByteString getStatusBytes(); } /** * Protobuf type {@code protocol.TransactionBalanceTrace} */ public static final class TransactionBalanceTrace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionBalanceTrace) TransactionBalanceTraceOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionBalanceTrace.newBuilder() to construct. private TransactionBalanceTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionBalanceTrace() { transactionIdentifier_ = com.google.protobuf.ByteString.EMPTY; operation_ = java.util.Collections.emptyList(); type_ = ""; status_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionBalanceTrace(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionBalanceTrace.class, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder.class); } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionBalanceTrace.Operation) com.google.protobuf.MessageOrBuilder { /** * int64 operation_identifier = 1; * @return The operationIdentifier. */ long getOperationIdentifier(); /** * bytes address = 2; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** * int64 amount = 3; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.TransactionBalanceTrace.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionBalanceTrace.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { address_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Operation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.class, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder.class); } public static final int OPERATION_IDENTIFIER_FIELD_NUMBER = 1; private long operationIdentifier_ = 0L; /** * int64 operation_identifier = 1; * @return The operationIdentifier. */ @java.lang.Override public long getOperationIdentifier() { return operationIdentifier_; } public static final int ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 2; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_ = 0L; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (operationIdentifier_ != 0L) { output.writeInt64(1, operationIdentifier_); } if (!address_.isEmpty()) { output.writeBytes(2, address_); } if (amount_ != 0L) { output.writeInt64(3, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationIdentifier_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, operationIdentifier_); } if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, address_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionBalanceTrace.Operation)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionBalanceTrace.Operation other = (org.tron.trident.proto.Response.TransactionBalanceTrace.Operation) obj; if (getOperationIdentifier() != other.getOperationIdentifier()) return false; if (!getAddress() .equals(other.getAddress())) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OPERATION_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOperationIdentifier()); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation 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.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation 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.tron.trident.proto.Response.TransactionBalanceTrace.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation 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.tron.trident.proto.Response.TransactionBalanceTrace.Operation 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.TransactionBalanceTrace.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionBalanceTrace.Operation) org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.class, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationIdentifier_ = 0L; address_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_Operation_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation build() { org.tron.trident.proto.Response.TransactionBalanceTrace.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation buildPartial() { org.tron.trident.proto.Response.TransactionBalanceTrace.Operation result = new org.tron.trident.proto.Response.TransactionBalanceTrace.Operation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.TransactionBalanceTrace.Operation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationIdentifier_ = operationIdentifier_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.amount_ = amount_; } } @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.tron.trident.proto.Response.TransactionBalanceTrace.Operation) { return mergeFrom((org.tron.trident.proto.Response.TransactionBalanceTrace.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionBalanceTrace.Operation other) { if (other == org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.getDefaultInstance()) return this; if (other.getOperationIdentifier() != 0L) { setOperationIdentifier(other.getOperationIdentifier()); } if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { operationIdentifier_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { address_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { amount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long operationIdentifier_ ; /** * int64 operation_identifier = 1; * @return The operationIdentifier. */ @java.lang.Override public long getOperationIdentifier() { return operationIdentifier_; } /** * int64 operation_identifier = 1; * @param value The operationIdentifier to set. * @return This builder for chaining. */ public Builder setOperationIdentifier(long value) { operationIdentifier_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 operation_identifier = 1; * @return This builder for chaining. */ public Builder clearOperationIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); operationIdentifier_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 2; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** * bytes address = 2; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes address = 2; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000002); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private long amount_ ; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000004); amount_ = 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.TransactionBalanceTrace.Operation) } // @@protoc_insertion_point(class_scope:protocol.TransactionBalanceTrace.Operation) private static final org.tron.trident.proto.Response.TransactionBalanceTrace.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionBalanceTrace.Operation(); } public static org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TRANSACTION_IDENTIFIER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transactionIdentifier_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transaction_identifier = 1; * @return The transactionIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getTransactionIdentifier() { return transactionIdentifier_; } public static final int OPERATION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List operation_; /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ @java.lang.Override public java.util.List getOperationList() { return operation_; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ @java.lang.Override public java.util.List getOperationOrBuilderList() { return operation_; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ @java.lang.Override public int getOperationCount() { return operation_.size(); } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getOperation(int index) { return operation_.get(index); } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder getOperationOrBuilder( int index) { return operation_.get(index); } public static final int TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * string type = 3; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * string type = 3; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object status_ = ""; /** * string status = 4; * @return The status. */ @java.lang.Override public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; } } /** * string status = 4; * @return The bytes for status. */ @java.lang.Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = 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 (!transactionIdentifier_.isEmpty()) { output.writeBytes(1, transactionIdentifier_); } for (int i = 0; i < operation_.size(); i++) { output.writeMessage(2, operation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!transactionIdentifier_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, transactionIdentifier_); } for (int i = 0; i < operation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operation_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.TransactionBalanceTrace)) { return super.equals(obj); } org.tron.trident.proto.Response.TransactionBalanceTrace other = (org.tron.trident.proto.Response.TransactionBalanceTrace) obj; if (!getTransactionIdentifier() .equals(other.getTransactionIdentifier())) return false; if (!getOperationList() .equals(other.getOperationList())) return false; if (!getType() .equals(other.getType())) return false; if (!getStatus() .equals(other.getStatus())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTION_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getTransactionIdentifier().hashCode(); if (getOperationCount() > 0) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperationList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.TransactionBalanceTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace 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.tron.trident.proto.Response.TransactionBalanceTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace 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.tron.trident.proto.Response.TransactionBalanceTrace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.TransactionBalanceTrace 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.tron.trident.proto.Response.TransactionBalanceTrace 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.TransactionBalanceTrace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionBalanceTrace) org.tron.trident.proto.Response.TransactionBalanceTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.TransactionBalanceTrace.class, org.tron.trident.proto.Response.TransactionBalanceTrace.Builder.class); } // Construct using org.tron.trident.proto.Response.TransactionBalanceTrace.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transactionIdentifier_ = com.google.protobuf.ByteString.EMPTY; if (operationBuilder_ == null) { operation_ = java.util.Collections.emptyList(); } else { operation_ = null; operationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); type_ = ""; status_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_TransactionBalanceTrace_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace getDefaultInstanceForType() { return org.tron.trident.proto.Response.TransactionBalanceTrace.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace build() { org.tron.trident.proto.Response.TransactionBalanceTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace buildPartial() { org.tron.trident.proto.Response.TransactionBalanceTrace result = new org.tron.trident.proto.Response.TransactionBalanceTrace(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionBalanceTrace result) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { operation_ = java.util.Collections.unmodifiableList(operation_); bitField0_ = (bitField0_ & ~0x00000002); } result.operation_ = operation_; } else { result.operation_ = operationBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Response.TransactionBalanceTrace result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transactionIdentifier_ = transactionIdentifier_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.status_ = status_; } } @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.tron.trident.proto.Response.TransactionBalanceTrace) { return mergeFrom((org.tron.trident.proto.Response.TransactionBalanceTrace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.TransactionBalanceTrace other) { if (other == org.tron.trident.proto.Response.TransactionBalanceTrace.getDefaultInstance()) return this; if (other.getTransactionIdentifier() != com.google.protobuf.ByteString.EMPTY) { setTransactionIdentifier(other.getTransactionIdentifier()); } if (operationBuilder_ == null) { if (!other.operation_.isEmpty()) { if (operation_.isEmpty()) { operation_ = other.operation_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOperationIsMutable(); operation_.addAll(other.operation_); } onChanged(); } } else { if (!other.operation_.isEmpty()) { if (operationBuilder_.isEmpty()) { operationBuilder_.dispose(); operationBuilder_ = null; operation_ = other.operation_; bitField0_ = (bitField0_ & ~0x00000002); operationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationFieldBuilder() : null; } else { operationBuilder_.addAllMessages(other.operation_); } } } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getStatus().isEmpty()) { status_ = other.status_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { transactionIdentifier_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.tron.trident.proto.Response.TransactionBalanceTrace.Operation m = input.readMessage( org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.parser(), extensionRegistry); if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.add(m); } else { operationBuilder_.addMessage(m); } break; } // case 18 case 26: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { status_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString transactionIdentifier_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transaction_identifier = 1; * @return The transactionIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getTransactionIdentifier() { return transactionIdentifier_; } /** * bytes transaction_identifier = 1; * @param value The transactionIdentifier to set. * @return This builder for chaining. */ public Builder setTransactionIdentifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transactionIdentifier_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes transaction_identifier = 1; * @return This builder for chaining. */ public Builder clearTransactionIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); transactionIdentifier_ = getDefaultInstance().getTransactionIdentifier(); onChanged(); return this; } private java.util.List operation_ = java.util.Collections.emptyList(); private void ensureOperationIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { operation_ = new java.util.ArrayList(operation_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace.Operation, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder, org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder> operationBuilder_; /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public java.util.List getOperationList() { if (operationBuilder_ == null) { return java.util.Collections.unmodifiableList(operation_); } else { return operationBuilder_.getMessageList(); } } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public int getOperationCount() { if (operationBuilder_ == null) { return operation_.size(); } else { return operationBuilder_.getCount(); } } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation getOperation(int index) { if (operationBuilder_ == null) { return operation_.get(index); } else { return operationBuilder_.getMessage(index); } } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder setOperation( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.set(index, value); onChanged(); } else { operationBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder setOperation( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.set(index, builderForValue.build()); onChanged(); } else { operationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder addOperation(org.tron.trident.proto.Response.TransactionBalanceTrace.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.add(value); onChanged(); } else { operationBuilder_.addMessage(value); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder addOperation( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.add(index, value); onChanged(); } else { operationBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder addOperation( org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.add(builderForValue.build()); onChanged(); } else { operationBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder addOperation( int index, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.add(index, builderForValue.build()); onChanged(); } else { operationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder addAllOperation( java.lang.Iterable values) { if (operationBuilder_ == null) { ensureOperationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operation_); onChanged(); } else { operationBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder clearOperation() { if (operationBuilder_ == null) { operation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { operationBuilder_.clear(); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public Builder removeOperation(int index) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.remove(index); onChanged(); } else { operationBuilder_.remove(index); } return this; } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder getOperationBuilder( int index) { return getOperationFieldBuilder().getBuilder(index); } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder getOperationOrBuilder( int index) { if (operationBuilder_ == null) { return operation_.get(index); } else { return operationBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public java.util.List getOperationOrBuilderList() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operation_); } } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder addOperationBuilder() { return getOperationFieldBuilder().addBuilder( org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.getDefaultInstance()); } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder addOperationBuilder( int index) { return getOperationFieldBuilder().addBuilder( index, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.getDefaultInstance()); } /** * repeated .protocol.TransactionBalanceTrace.Operation operation = 2; */ public java.util.List getOperationBuilderList() { return getOperationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace.Operation, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder, org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Response.TransactionBalanceTrace.Operation, org.tron.trident.proto.Response.TransactionBalanceTrace.Operation.Builder, org.tron.trident.proto.Response.TransactionBalanceTrace.OperationOrBuilder>( operation_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; } private java.lang.Object type_ = ""; /** * string type = 3; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * string type = 3; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string type = 3; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string type = 3; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string type = 3; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object status_ = ""; /** * string status = 4; * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } else { return (java.lang.String) ref; } } /** * string status = 4; * @return The bytes for status. */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string status = 4; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } status_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string status = 4; * @return This builder for chaining. */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string status = 4; * @param value The bytes for status to set. * @return This builder for chaining. */ public Builder setStatusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); status_ = value; bitField0_ |= 0x00000008; 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.TransactionBalanceTrace) } // @@protoc_insertion_point(class_scope:protocol.TransactionBalanceTrace) private static final org.tron.trident.proto.Response.TransactionBalanceTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionBalanceTrace(); } public static org.tron.trident.proto.Response.TransactionBalanceTrace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionBalanceTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.TransactionBalanceTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PricesResponseMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.PricesResponseMessage) com.google.protobuf.MessageOrBuilder { /** * string prices = 1; * @return The prices. */ java.lang.String getPrices(); /** * string prices = 1; * @return The bytes for prices. */ com.google.protobuf.ByteString getPricesBytes(); } /** * Protobuf type {@code protocol.PricesResponseMessage} */ public static final class PricesResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.PricesResponseMessage) PricesResponseMessageOrBuilder { private static final long serialVersionUID = 0L; // Use PricesResponseMessage.newBuilder() to construct. private PricesResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PricesResponseMessage() { prices_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PricesResponseMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_PricesResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_PricesResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.PricesResponseMessage.class, org.tron.trident.proto.Response.PricesResponseMessage.Builder.class); } public static final int PRICES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object prices_ = ""; /** * string prices = 1; * @return The prices. */ @java.lang.Override public java.lang.String getPrices() { java.lang.Object ref = prices_; 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(); prices_ = s; return s; } } /** * string prices = 1; * @return The bytes for prices. */ @java.lang.Override public com.google.protobuf.ByteString getPricesBytes() { java.lang.Object ref = prices_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prices_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prices_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, prices_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prices_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, prices_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.proto.Response.PricesResponseMessage)) { return super.equals(obj); } org.tron.trident.proto.Response.PricesResponseMessage other = (org.tron.trident.proto.Response.PricesResponseMessage) obj; if (!getPrices() .equals(other.getPrices())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRICES_FIELD_NUMBER; hash = (53 * hash) + getPrices().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Response.PricesResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.PricesResponseMessage 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.tron.trident.proto.Response.PricesResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.PricesResponseMessage 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.tron.trident.proto.Response.PricesResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Response.PricesResponseMessage 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.tron.trident.proto.Response.PricesResponseMessage 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.PricesResponseMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.PricesResponseMessage) org.tron.trident.proto.Response.PricesResponseMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Response.internal_static_protocol_PricesResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Response.internal_static_protocol_PricesResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Response.PricesResponseMessage.class, org.tron.trident.proto.Response.PricesResponseMessage.Builder.class); } // Construct using org.tron.trident.proto.Response.PricesResponseMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; prices_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Response.internal_static_protocol_PricesResponseMessage_descriptor; } @java.lang.Override public org.tron.trident.proto.Response.PricesResponseMessage getDefaultInstanceForType() { return org.tron.trident.proto.Response.PricesResponseMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Response.PricesResponseMessage build() { org.tron.trident.proto.Response.PricesResponseMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Response.PricesResponseMessage buildPartial() { org.tron.trident.proto.Response.PricesResponseMessage result = new org.tron.trident.proto.Response.PricesResponseMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Response.PricesResponseMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.prices_ = prices_; } } @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.tron.trident.proto.Response.PricesResponseMessage) { return mergeFrom((org.tron.trident.proto.Response.PricesResponseMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Response.PricesResponseMessage other) { if (other == org.tron.trident.proto.Response.PricesResponseMessage.getDefaultInstance()) return this; if (!other.getPrices().isEmpty()) { prices_ = other.prices_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { prices_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object prices_ = ""; /** * string prices = 1; * @return The prices. */ public java.lang.String getPrices() { java.lang.Object ref = prices_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prices_ = s; return s; } else { return (java.lang.String) ref; } } /** * string prices = 1; * @return The bytes for prices. */ public com.google.protobuf.ByteString getPricesBytes() { java.lang.Object ref = prices_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prices_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string prices = 1; * @param value The prices to set. * @return This builder for chaining. */ public Builder setPrices( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prices_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string prices = 1; * @return This builder for chaining. */ public Builder clearPrices() { prices_ = getDefaultInstance().getPrices(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string prices = 1; * @param value The bytes for prices to set. * @return This builder for chaining. */ public Builder setPricesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prices_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.PricesResponseMessage) } // @@protoc_insertion_point(class_scope:protocol.PricesResponseMessage) private static final org.tron.trident.proto.Response.PricesResponseMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Response.PricesResponseMessage(); } public static org.tron.trident.proto.Response.PricesResponseMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PricesResponseMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.proto.Response.PricesResponseMessage 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_EstimateEnergyMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EstimateEnergyMessage_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_TransactionInfo_CancelUnfreezeV2AmountEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionInfo_CancelUnfreezeV2AmountEntry_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_Account_FreezeV2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_FreezeV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Account_UnFreezeV2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Account_UnFreezeV2_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_DecryptNotesTRC20_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DecryptNotesTRC20_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DecryptNotesTRC20_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; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockIdentifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockBalanceTrace_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockBalanceTrace_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionBalanceTrace_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionBalanceTrace_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionBalanceTrace_Operation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionBalanceTrace_Operation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PricesResponseMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_PricesResponseMessage_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\"\302\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\"" + "\322\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\026\n\022BLOCK_UNSOLIDIFIE" + "D\020\014\022\017\n\013OTHER_ERROR\020\024\"]\n\025EstimateEnergyMe" + "ssage\022+\n\006result\030\001 \001(\0132\033.protocol.Transac" + "tionReturn\022\027\n\017energy_required\030\002 \001(\003\"\253\001\n\024" + "TransactionExtention\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(\0132" + "\033.protocol.TransactionReturn\022\023\n\013energy_u" + "sed\030\005 \001(\003\"3\n\013WitnessList\022$\n\twitnesses\030\001 " + "\003(\0132\021.protocol.Witness\"5\n\014ProposalList\022%" + "\n\tproposals\030\001 \003(\0132\022.protocol.Proposal\"5\n" + "\014ExchangeList\022%\n\texchanges\030\001 \003(\0132\022.proto" + "col.Exchange\">\n\016AssetIssueList\022,\n\006assets" + "\030\001 \003(\0132\034.protocol.AssetIssueContract\"+\n\t" + "BlockList\022\036\n\005block\030\001 \003(\0132\017.protocol.Bloc" + "k\"=\n\017TransactionList\022*\n\013transaction\030\001 \003(" + "\0132\025.protocol.Transaction\"D\n\030DelegatedRes" + "ourceMessage\022\024\n\014from_address\030\001 \001(\014\022\022\n\nto" + "_address\030\002 \001(\014\"O\n\025DelegatedResourceList\022" + "6\n\021delegatedResource\030\001 \003(\0132\033.protocol.De" + "legatedResource\">\n\027AddressPrKeyPairMessa" + "ge\022\017\n\007address\030\001 \001(\t\022\022\n\nprivateKey\030\002 \001(\t\"" + "}\n\024EasyTransferResponse\022*\n\013transaction\030\001" + " \001(\0132\025.protocol.Transaction\022+\n\006result\030\002 " + "\001(\0132\033.protocol.TransactionReturn\022\014\n\004txid" + "\030\003 \001(\014\"a\n\030SmartContractDataWrapper\022/\n\016sm" + "art_contract\030\001 \001(\0132\027.protocol.SmartContr" + "act\022\024\n\014runtime_code\030\002 \001(\014\"\360\001\n\023InternalTr" + "ansaction\022\014\n\004hash\030\001 \001(\014\022\026\n\016caller_addres" + "s\030\002 \001(\014\022\032\n\022transferTo_address\030\003 \001(\014\022B\n\rc" + "allValueInfo\030\004 \003(\0132+.protocol.InternalTr" + "ansaction.CallValueInfo\022\014\n\004note\030\005 \001(\014\022\020\n" + "\010rejected\030\006 \001(\010\0323\n\rCallValueInfo\022\021\n\tcall" + "Value\030\001 \001(\003\022\017\n\007tokenId\030\002 \001(\t\"\325\001\n\017Resourc" + "eReceipt\022\024\n\014energy_usage\030\001 \001(\003\022\022\n\nenergy" + "_fee\030\002 \001(\003\022\033\n\023origin_energy_usage\030\003 \001(\003\022" + "\032\n\022energy_usage_total\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.Transaction.Result.contractRe" + "sult\"\250\007\n\017TransactionInfo\022\n\n\002id\030\001 \001(\014\022\013\n\003" + "fee\030\002 \001(\003\022\023\n\013blockNumber\030\003 \001(\003\022\026\n\016blockT" + "imeStamp\030\004 \001(\003\022\026\n\016contractResult\030\005 \003(\014\022\030" + "\n\020contract_address\030\006 \001(\014\022*\n\007receipt\030\007 \001(" + "\0132\031.protocol.ResourceReceipt\022*\n\003log\030\010 \003(" + "\0132\035.protocol.TransactionInfo.Log\022.\n\006resu" + "lt\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_amount\030\017 \001(\003\022\027\n\017unfreeze_" + "amount\030\020 \001(\003\022<\n\025internal_transactions\030\021 " + "\003(\0132\035.protocol.InternalTransaction\022 \n\030ex" + "change_received_amount\030\022 \001(\003\022&\n\036exchange" + "_inject_another_amount\030\023 \001(\003\022(\n exchange" + "_withdraw_another_amount\030\024 \001(\003\022\023\n\013exchan" + "ge_id\030\025 \001(\003\022 \n\030shielded_transaction_fee\030" + "\026 \001(\003\022\017\n\007orderId\030\031 \001(\014\0221\n\014orderDetails\030\032" + " \003(\0132\033.protocol.MarketOrderDetail\022\036\n\026wit" + "hdraw_expire_amount\030\034 \001(\003\022W\n\030cancel_unfr" + "eezeV2_amount\030\035 \003(\01325.protocol.Transacti" + "onInfo.CancelUnfreezeV2AmountEntry\0324\n\003Lo" + "g\022\017\n\007address\030\001 \001(\014\022\016\n\006topics\030\002 \003(\014\022\014\n\004da" + "ta\030\003 \001(\014\032=\n\033CancelUnfreezeV2AmountEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\036\n\004code\022" + "\n\n\006SUCESS\020\000\022\n\n\006FAILED\020\001\"\265\001\n\007Witness\022\017\n\007a" + "ddress\030\001 \001(\014\022\021\n\tvoteCount\030\002 \001(\003\022\016\n\006pubKe" + "y\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\016latestBlockN" + "um\030\007 \001(\003\022\025\n\rlatestSlotNum\030\010 \001(\003\022\016\n\006isJob" + "s\030\t \001(\010\"\244\025\n\007Account\022\024\n\014account_name\030\001 \001(" + "\014\022#\n\004type\030\002 \001(\0162\025.protocol.AccountType\022\017" + "\n\007address\030\003 \001(\014\022\017\n\007balance\030\004 \001(\003\022\035\n\005vote" + "s\030\005 \003(\0132\016.protocol.Vote\022+\n\005asset\030\006 \003(\0132\034" + ".protocol.Account.AssetEntry\022/\n\007assetV2\030" + "8 \003(\0132\036.protocol.Account.AssetV2Entry\022(\n" + "\006frozen\030\007 \003(\0132\030.protocol.Account.Frozen\022" + "\021\n\tnet_usage\030\010 \001(\003\0227\n/acquired_delegated" + "_frozen_balance_for_bandwidth\030) \001(\003\022.\n&d" + "elegated_frozen_balance_for_bandwidth\030* " + "\001(\003\022\026\n\016old_tron_power\030. \001(\003\022,\n\ntron_powe" + "r\030/ \001(\0132\030.protocol.Account.Frozen\022\027\n\017ass" + "et_optimized\030< \001(\010\022\023\n\013create_time\030\t \001(\003\022" + "\034\n\024latest_opration_time\030\n \001(\003\022\021\n\tallowan" + "ce\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_c" + "ommittee\030\017 \001(\010\022/\n\rfrozen_supply\030\020 \003(\0132\030." + "protocol.Account.Frozen\022\031\n\021asset_issued_" + "name\030\021 \001(\014\022\027\n\017asset_issued_ID\0309 \001(\014\022T\n\033l" + "atest_asset_operation_time\030\022 \003(\0132/.proto" + "col.Account.LatestAssetOperationTimeEntr" + "y\022X\n\035latest_asset_operation_timeV2\030: \003(\013" + "21.protocol.Account.LatestAssetOperation" + "TimeV2Entry\022\026\n\016free_net_usage\030\023 \001(\003\022F\n\024f" + "ree_asset_net_usage\030\024 \003(\0132(.protocol.Acc" + "ount.FreeAssetNetUsageEntry\022J\n\026free_asse" + "t_net_usageV2\030; \003(\0132*.protocol.Account.F" + "reeAssetNetUsageV2Entry\022\033\n\023latest_consum" + "e_time\030\025 \001(\003\022 \n\030latest_consume_free_time" + "\030\026 \001(\003\022\022\n\naccount_id\030\027 \001(\014\022\027\n\017net_window" + "_size\030\030 \001(\003\022\034\n\024net_window_optimized\030\031 \001(" + "\010\022;\n\020account_resource\030\032 \001(\0132!.protocol.A" + "ccount.AccountResource\022\020\n\010codeHash\030\036 \001(\014" + "\022.\n\020owner_permission\030\037 \001(\0132\024.protocol.Pe" + "rmission\0220\n\022witness_permission\030 \001(\0132\024.p" + "rotocol.Permission\022/\n\021active_permission\030" + "! \003(\0132\024.protocol.Permission\022,\n\010frozenV2\030" + "\" \003(\0132\032.protocol.Account.FreezeV2\0220\n\nunf" + "rozenV2\030# \003(\0132\034.protocol.Account.UnFreez" + "eV2\0220\n(delegated_frozenV2_balance_for_ba" + "ndwidth\030$ \001(\003\0229\n1acquired_delegated_froz" + "enV2_balance_for_bandwidth\030% \001(\003\0325\n\006Froz" + "en\022\026\n\016frozen_balance\030\001 \001(\003\022\023\n\013expire_tim" + "e\030\002 \001(\003\032,\n\nAssetEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\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\035LatestAssetOper" + "ationTimeEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "(\003:\0028\001\032A\n\037LatestAssetOperationTimeV2Entr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0328\n\026Fre" + "eAssetNetUsageEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + "e\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\347\003\n\017Acco" + "untResource\022\024\n\014energy_usage\030\001 \001(\003\022;\n\031fro" + "zen_balance_for_energy\030\002 \001(\0132\030.protocol." + "Account.Frozen\022&\n\036latest_consume_time_fo" + "r_energy\030\003 \001(\003\0224\n,acquired_delegated_fro" + "zen_balance_for_energy\030\004 \001(\003\022+\n#delegate" + "d_frozen_balance_for_energy\030\005 \001(\003\022\025\n\rsto" + "rage_limit\030\006 \001(\003\022\025\n\rstorage_usage\030\007 \001(\003\022" + "$\n\034latest_exchange_storage_time\030\010 \001(\003\022\032\n" + "\022energy_window_size\030\t \001(\003\022-\n%delegated_f" + "rozenV2_balance_for_energy\030\n \001(\003\0226\n.acqu" + "ired_delegated_frozenV2_balance_for_ener" + "gy\030\013 \001(\003\022\037\n\027energy_window_optimized\030\014 \001(" + "\010\032@\n\010FreezeV2\022$\n\004type\030\001 \001(\0162\026.protocol.R" + "esourceCode\022\016\n\006amount\030\002 \001(\003\032i\n\nUnFreezeV" + "2\022$\n\004type\030\001 \001(\0162\026.protocol.ResourceCode\022" + "\027\n\017unfreeze_amount\030\003 \001(\003\022\034\n\024unfreeze_exp" + "ire_time\030\004 \001(\003\"r\n\021MarketOrderDetail\022\024\n\014m" + "akerOrderId\030\001 \001(\014\022\024\n\014takerOrderId\030\002 \001(\014\022" + "\030\n\020fillSellQuantity\030\003 \001(\003\022\027\n\017fillBuyQuan" + "tity\030\004 \001(\003\"\321\002\n\010Proposal\022\023\n\013proposal_id\030\001" + " \001(\003\022\030\n\020proposer_address\030\002 \001(\014\0226\n\nparame" + "ters\030\003 \003(\0132\".protocol.Proposal.Parameter" + "sEntry\022\027\n\017expiration_time\030\004 \001(\003\022\023\n\013creat" + "e_time\030\005 \001(\003\022\021\n\tapprovals\030\006 \003(\014\022\'\n\005state" + "\030\007 \001(\0162\030.protocol.Proposal.State\0321\n\017Para" + "metersEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:" + "\0028\001\"A\n\005State\022\013\n\007PENDING\020\000\022\017\n\013DISAPPROVED" + "\020\001\022\014\n\010APPROVED\020\002\022\014\n\010CANCELED\020\003\"\271\001\n\010Excha" + "nge\022\023\n\013exchange_id\030\001 \001(\003\022\027\n\017creator_addr" + "ess\030\002 \001(\014\022\023\n\013create_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_token_id\030\010 \001(\014\022\034\n\024second_t" + "oken_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_bal" + "ance_for_bandwidth\030\003 \001(\003\022!\n\031frozen_balan" + "ce_for_energy\030\004 \001(\003\022!\n\031expire_time_for_b" + "andwidth\030\005 \001(\003\022\036\n\026expire_time_for_energy" + "\030\006 \001(\003\"m\n\035DelegatedResourceAccountIndex\022" + "\017\n\007account\030\001 \001(\014\022\024\n\014fromAccounts\030\002 \003(\014\022\022" + "\n\ntoAccounts\030\003 \003(\014\022\021\n\ttimestamp\030\004 \001(\003\"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\016chainParameter\030\001" + " \003(\0132(.protocol.ChainParameters.ChainPar" + "ameter\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\014beginSyncNu" + "m\030\001 \001(\003\022\r\n\005block\030\002 \001(\t\022\025\n\rsolidityBlock\030" + "\003 \001(\t\022\033\n\023currentConnectCount\030\004 \001(\005\022\032\n\022ac" + "tiveConnectCount\030\005 \001(\005\022\033\n\023passiveConnect" + "Count\030\006 \001(\005\022\021\n\ttotalFlow\030\007 \001(\003\0221\n\014peerIn" + "foList\030\010 \003(\0132\033.protocol.NodeInfo.PeerInf" + "o\0229\n\016configNodeInfo\030\t \001(\0132!.protocol.Nod" + "eInfo.ConfigNodeInfo\0223\n\013machineInfo\030\n \001(" + "\0132\036.protocol.NodeInfo.MachineInfo\022H\n\023che" + "atWitnessInfoMap\030\013 \003(\0132+.protocol.NodeIn" + "fo.CheatWitnessInfoMapEntry\032:\n\030CheatWitn" + "essInfoMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\032\315\004\n\010PeerInfo\022\025\n\rlastSyncBlock\030\001 " + "\001(\t\022\021\n\tremainNum\030\002 \001(\003\022\033\n\023lastBlockUpdat" + "eTime\030\003 \001(\003\022\020\n\010syncFlag\030\004 \001(\010\022\037\n\027headBlo" + "ckTimeWeBothHave\030\005 \001(\003\022\030\n\020needSyncFromPe" + "er\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\013" + "connectTime\030\013 \001(\003\022\022\n\navgLatency\030\014 \001(\001\022\027\n" + "\017syncToFetchSize\030\r \001(\005\022\036\n\026syncToFetchSiz" + "ePeekNum\030\016 \001(\003\022\036\n\026syncBlockRequestedSize" + "\030\017 \001(\005\022\025\n\runFetchSynNum\030\020 \001(\003\022\027\n\017blockIn" + "PorcSize\030\021 \001(\005\022\033\n\023headBlockWeBothHave\030\022 " + "\001(\t\022\020\n\010isActive\030\023 \001(\010\022\r\n\005score\030\024 \001(\005\022\021\n\t" + "nodeCount\030\025 \001(\005\022\016\n\006inFlow\030\026 \001(\003\022\027\n\017disco" + "nnectTimes\030\027 \001(\005\022\035\n\025localDisconnectReaso" + "n\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\016activeNodeSiz" + "e\030\005 \001(\005\022\027\n\017passiveNodeSize\030\006 \001(\005\022\024\n\014send" + "NodeSize\030\007 \001(\005\022\027\n\017maxConnectCount\030\010 \001(\005\022" + "\035\n\025sameIpMaxConnectCount\030\t \001(\005\022\030\n\020backup" + "ListenPort\030\n \001(\005\022\030\n\020backupMemberSize\030\013 \001" + "(\005\022\026\n\016backupPriority\030\014 \001(\005\022\021\n\tdbVersion\030" + "\r \001(\005\022\034\n\024minParticipationRate\030\016 \001(\005\022\027\n\017s" + "upportConstant\030\017 \001(\010\022\024\n\014minTimeRatio\030\020 \001" + "(\001\022\024\n\014maxTimeRatio\030\021 \001(\001\022 \n\030allowCreatio" + "nOfContracts\030\022 \001(\003\022\033\n\023allowAdaptiveEnerg" + "y\030\023 \001(\003\032\215\005\n\013MachineInfo\022\023\n\013threadCount\030\001" + " \001(\005\022\033\n\023deadLockThreadCount\030\002 \001(\005\022\020\n\010cpu" + "Count\030\003 \001(\005\022\023\n\013totalMemory\030\004 \001(\003\022\022\n\nfree" + "Memory\030\005 \001(\003\022\017\n\007cpuRate\030\006 \001(\001\022\023\n\013javaVer" + "sion\030\007 \001(\t\022\016\n\006osName\030\010 \001(\t\022\027\n\017jvmTotalMe" + "moery\030\t \001(\003\022\025\n\rjvmFreeMemory\030\n \001(\003\022\026\n\016pr" + "ocessCpuRate\030\013 \001(\001\022I\n\022memoryDescInfoList" + "\030\014 \003(\0132-.protocol.NodeInfo.MachineInfo.M" + "emoryDescInfo\022Q\n\026deadLockThreadInfoList\030" + "\r \003(\01321.protocol.NodeInfo.MachineInfo.De" + "adLockThreadInfo\032c\n\016MemoryDescInfo\022\014\n\004na" + "me\030\001 \001(\t\022\020\n\010initSize\030\002 \001(\003\022\017\n\007useSize\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\010lo" + "ckName\030\002 \001(\t\022\021\n\tlockOwner\030\003 \001(\t\022\r\n\005state" + "\030\004 \001(\t\022\021\n\tblockTime\030\005 \001(\003\022\020\n\010waitTime\030\006 " + "\001(\003\022\022\n\nstackTrace\030\007 \001(\t\"\362\002\n\013MarketOrder\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_quantity\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\005s" + "tate\030\013 \001(\0162\033.protocol.MarketOrder.State\022" + "\014\n\004prev\030\014 \001(\014\022\014\n\004next\030\r \001(\014\"/\n\005State\022\n\n\006" + "ACTIVE\020\000\022\014\n\010INACTIVE\020\001\022\014\n\010CANCELED\020\002\"8\n\017" + "MarketOrderList\022%\n\006orders\030\001 \003(\0132\025.protoc" + "ol.MarketOrder\">\n\017MarketOrderPair\022\025\n\rsel" + "l_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(\013" + "2\031.protocol.MarketOrderPair\"F\n\013MarketPri" + "ce\022\033\n\023sell_token_quantity\030\001 \001(\003\022\032\n\022buy_t" + "oken_quantity\030\002 \001(\003\"e\n\017MarketPriceList\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.MarketPri" + "ce\"#\n\017NullifierResult\022\020\n\010is_spent\030\001 \001(\010\"" + "\345\001\n\021DecryptNotesTRC20\0223\n\007noteTxs\030\001 \003(\0132\"" + ".protocol.DecryptNotesTRC20.NoteTx\032\232\001\n\006N" + "oteTx\022\034\n\004note\030\001 \001(\0132\016.protocol.Note\022\020\n\010p" + "osition\030\002 \001(\003\022\020\n\010is_spent\030\003 \001(\010\022\014\n\004txid\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\023Trans" + "actionInfoList\0222\n\017transactionInfo\030\001 \003(\0132" + "\031.protocol.TransactionInfo\"\347\002\n\027Transacti" + "onApprovedList\022\025\n\rapproved_list\030\002 \003(\014\0228\n" + "\006result\030\004 \001(\0132(.protocol.TransactionAppr" + "ovedList.Result\0223\n\013transaction\030\005 \001(\0132\036.p" + "rotocol.TransactionExtention\032\305\001\n\006Result\022" + "D\n\004code\030\001 \001(\01626.protocol.TransactionAppr" + "ovedList.Result.response_code\022\017\n\007message" + "\030\002 \001(\t\"d\n\rresponse_code\022\013\n\007SUCCESS\020\000\022\032\n\026" + "SIGNATURE_FORMAT_ERROR\020\001\022\031\n\025COMPUTE_ADDR" + "ESS_ERROR\020\002\022\017\n\013OTHER_ERROR\020\024\"\337\003\n\025Transac" + "tionSignWeight\022(\n\npermission\030\001 \001(\0132\024.pro" + "tocol.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.Result\022" + "3\n\013transaction\030\005 \001(\0132\036.protocol.Transact" + "ionExtention\032\377\001\n\006Result\022B\n\004code\030\001 \001(\01624." + "protocol.TransactionSignWeight.Result.re" + "sponse_code\022\017\n\007message\030\002 \001(\t\"\237\001\n\rrespons" + "e_code\022\025\n\021ENOUGH_PERMISSION\020\000\022\031\n\025NOT_ENO" + "UGH_PERMISSION\020\001\022\032\n\026SIGNATURE_FORMAT_ERR" + "OR\020\002\022\031\n\025COMPUTE_ADDRESS_ERROR\020\003\022\024\n\020PERMI" + "SSION_ERROR\020\004\022\017\n\013OTHER_ERROR\020\024\"\223\001\n\010NodeL" + "ist\022&\n\005nodes\030\001 \003(\0132\027.protocol.NodeList.N" + "ode\032_\n\004Node\0220\n\007address\030\001 \001(\0132\037.protocol." + "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\021AccountNetMessa" + "ge\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNetLimit\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.Accoun" + "tNetMessage.AssetNetUsedEntry\022E\n\rassetNe" + "tLimit\030\006 \003(\0132..protocol.AccountNetMessag" + "e.AssetNetLimitEntry\022\025\n\rTotalNetLimit\030\007 " + "\001(\003\022\026\n\016TotalNetWeight\030\010 \001(\003\0323\n\021AssetNetU" + "sedEntry\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\005v" + "alue\030\002 \001(\003:\0028\001\"\354\004\n\026AccountResourceMessag" + "e\022\023\n\013freeNetUsed\030\001 \001(\003\022\024\n\014freeNetLimit\030\002" + " \001(\003\022\017\n\007NetUsed\030\003 \001(\003\022\020\n\010NetLimit\030\004 \001(\003\022" + "H\n\014assetNetUsed\030\005 \003(\01322.protocol.Account" + "ResourceMessage.AssetNetUsedEntry\022J\n\rass" + "etNetLimit\030\006 \003(\01323.protocol.AccountResou" + "rceMessage.AssetNetLimitEntry\022\025\n\rTotalNe" + "tLimit\030\007 \001(\003\022\026\n\016TotalNetWeight\030\010 \001(\003\022\034\n\024" + "TotalTronPowerWeight\030\t \001(\003\022\025\n\rtronPowerU" + "sed\030\n \001(\003\022\026\n\016tronPowerLimit\030\013 \001(\003\022\022\n\nEne" + "rgyUsed\030\r \001(\003\022\023\n\013EnergyLimit\030\016 \001(\003\022\030\n\020To" + "talEnergyLimit\030\017 \001(\003\022\031\n\021TotalEnergyWeigh" + "t\030\020 \001(\003\022\023\n\013storageUsed\030\025 \001(\003\022\024\n\014storageL" + "imit\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\022AssetNetLimit" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"/\n" + "\017BlockIdentifier\022\014\n\004hash\030\001 \001(\014\022\016\n\006number" + "\030\002 \001(\003\"\241\001\n\021BlockBalanceTrace\0223\n\020block_id" + "entifier\030\001 \001(\0132\031.protocol.BlockIdentifie" + "r\022\021\n\ttimestamp\030\002 \001(\003\022D\n\031transaction_bala" + "nce_trace\030\003 \003(\0132!.protocol.TransactionBa" + "lanceTrace\"\343\001\n\027TransactionBalanceTrace\022\036" + "\n\026transaction_identifier\030\001 \001(\014\022>\n\toperat" + "ion\030\002 \003(\0132+.protocol.TransactionBalanceT" + "race.Operation\022\014\n\004type\030\003 \001(\t\022\016\n\006status\030\004" + " \001(\t\032J\n\tOperation\022\034\n\024operation_identifie" + "r\030\001 \001(\003\022\017\n\007address\030\002 \001(\014\022\016\n\006amount\030\003 \001(\003" + "\"\'\n\025PricesResponseMessage\022\016\n\006prices\030\001 \001(" + "\tB\030\n\026org.tron.trident.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tron.trident.proto.Common.getDescriptor(), org.tron.trident.proto.Chain.getDescriptor(), org.tron.trident.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_EstimateEnergyMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protocol_EstimateEnergyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EstimateEnergyMessage_descriptor, new java.lang.String[] { "Result", "EnergyRequired", }); internal_static_protocol_TransactionExtention_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protocol_TransactionExtention_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionExtention_descriptor, new java.lang.String[] { "Transaction", "Txid", "ConstantResult", "Result", "EnergyUsed", }); internal_static_protocol_WitnessList_descriptor = getDescriptor().getMessageTypes().get(5); 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(6); 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(7); 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(8); 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(9); 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(10); 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(11); 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(12); 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(13); 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(14); 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(15); 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(16); 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(17); internal_static_protocol_ResourceReceipt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ResourceReceipt_descriptor, new java.lang.String[] { "EnergyUsage", "EnergyFee", "OriginEnergyUsage", "EnergyUsageTotal", "NetUsage", "NetFee", "Result", }); internal_static_protocol_TransactionInfo_descriptor = getDescriptor().getMessageTypes().get(18); 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", "WithdrawExpireAmount", "CancelUnfreezeV2Amount", }); 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_TransactionInfo_CancelUnfreezeV2AmountEntry_descriptor = internal_static_protocol_TransactionInfo_descriptor.getNestedTypes().get(1); internal_static_protocol_TransactionInfo_CancelUnfreezeV2AmountEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionInfo_CancelUnfreezeV2AmountEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Witness_descriptor = getDescriptor().getMessageTypes().get(19); 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(20); 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", "AcquiredDelegatedFrozenBalanceForBandwidth", "DelegatedFrozenBalanceForBandwidth", "OldTronPower", "TronPower", "AssetOptimized", "CreateTime", "LatestOprationTime", "Allowance", "LatestWithdrawTime", "Code", "IsWitness", "IsCommittee", "FrozenSupply", "AssetIssuedName", "AssetIssuedID", "LatestAssetOperationTime", "LatestAssetOperationTimeV2", "FreeNetUsage", "FreeAssetNetUsage", "FreeAssetNetUsageV2", "LatestConsumeTime", "LatestConsumeFreeTime", "AccountId", "NetWindowSize", "NetWindowOptimized", "AccountResource", "CodeHash", "OwnerPermission", "WitnessPermission", "ActivePermission", "FrozenV2", "UnfrozenV2", "DelegatedFrozenV2BalanceForBandwidth", "AcquiredDelegatedFrozenV2BalanceForBandwidth", }); 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[] { "EnergyUsage", "FrozenBalanceForEnergy", "LatestConsumeTimeForEnergy", "AcquiredDelegatedFrozenBalanceForEnergy", "DelegatedFrozenBalanceForEnergy", "StorageLimit", "StorageUsage", "LatestExchangeStorageTime", "EnergyWindowSize", "DelegatedFrozenV2BalanceForEnergy", "AcquiredDelegatedFrozenV2BalanceForEnergy", "EnergyWindowOptimized", }); internal_static_protocol_Account_FreezeV2_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(8); internal_static_protocol_Account_FreezeV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_FreezeV2_descriptor, new java.lang.String[] { "Type", "Amount", }); internal_static_protocol_Account_UnFreezeV2_descriptor = internal_static_protocol_Account_descriptor.getNestedTypes().get(9); internal_static_protocol_Account_UnFreezeV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Account_UnFreezeV2_descriptor, new java.lang.String[] { "Type", "UnfreezeAmount", "UnfreezeExpireTime", }); internal_static_protocol_MarketOrderDetail_descriptor = getDescriptor().getMessageTypes().get(21); 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(22); 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(23); 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(24); internal_static_protocol_DelegatedResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResource_descriptor, new java.lang.String[] { "From", "To", "FrozenBalanceForBandwidth", "FrozenBalanceForEnergy", "ExpireTimeForBandwidth", "ExpireTimeForEnergy", }); internal_static_protocol_DelegatedResourceAccountIndex_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protocol_DelegatedResourceAccountIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegatedResourceAccountIndex_descriptor, new java.lang.String[] { "Account", "FromAccounts", "ToAccounts", "Timestamp", }); internal_static_protocol_TransactionSign_descriptor = getDescriptor().getMessageTypes().get(26); 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(27); 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(28); 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", "AllowAdaptiveEnergy", }); 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(29); 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(30); 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(31); 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(32); 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(33); 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(34); 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(35); internal_static_protocol_NullifierResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NullifierResult_descriptor, new java.lang.String[] { "IsSpent", }); internal_static_protocol_DecryptNotesTRC20_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_protocol_DecryptNotesTRC20_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DecryptNotesTRC20_descriptor, new java.lang.String[] { "NoteTxs", }); internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor = internal_static_protocol_DecryptNotesTRC20_descriptor.getNestedTypes().get(0); internal_static_protocol_DecryptNotesTRC20_NoteTx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DecryptNotesTRC20_NoteTx_descriptor, new java.lang.String[] { "Note", "Position", "IsSpent", "Txid", "Index", "ToAmount", "TransparentToAddress", }); internal_static_protocol_TransactionInfoList_descriptor = getDescriptor().getMessageTypes().get(37); 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(38); 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(39); 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(40); 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(41); 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(42); 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", "TotalTronPowerWeight", "TronPowerUsed", "TronPowerLimit", "EnergyUsed", "EnergyLimit", "TotalEnergyLimit", "TotalEnergyWeight", "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", }); internal_static_protocol_BlockIdentifier_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_protocol_BlockIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockIdentifier_descriptor, new java.lang.String[] { "Hash", "Number", }); internal_static_protocol_BlockBalanceTrace_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_protocol_BlockBalanceTrace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockBalanceTrace_descriptor, new java.lang.String[] { "BlockIdentifier", "Timestamp", "TransactionBalanceTrace", }); internal_static_protocol_TransactionBalanceTrace_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_protocol_TransactionBalanceTrace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionBalanceTrace_descriptor, new java.lang.String[] { "TransactionIdentifier", "Operation", "Type", "Status", }); internal_static_protocol_TransactionBalanceTrace_Operation_descriptor = internal_static_protocol_TransactionBalanceTrace_descriptor.getNestedTypes().get(0); internal_static_protocol_TransactionBalanceTrace_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionBalanceTrace_Operation_descriptor, new java.lang.String[] { "OperationIdentifier", "Address", "Amount", }); internal_static_protocol_PricesResponseMessage_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_protocol_PricesResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_PricesResponseMessage_descriptor, new java.lang.String[] { "Prices", }); org.tron.trident.proto.Common.getDescriptor(); org.tron.trident.proto.Chain.getDescriptor(); org.tron.trident.proto.Contract.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }