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

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

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

// Protobuf Java Version: 3.25.0
package org.tron.trident.proto;

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

    /**
     * bytes owner_address = 1;
     * @return The ownerAddress.
     */
    com.google.protobuf.ByteString getOwnerAddress();

    /**
     * bytes account_address = 2;
     * @return The accountAddress.
     */
    com.google.protobuf.ByteString getAccountAddress();

    /**
     * .protocol.AccountType type = 3;
     * @return The enum numeric value on the wire for type.
     */
    int getTypeValue();
    /**
     * .protocol.AccountType type = 3;
     * @return The type.
     */
    org.tron.trident.proto.Common.AccountType getType();
  }
  /**
   * Protobuf type {@code protocol.AccountCreateContract}
   */
  public static final class AccountCreateContract extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.AccountCreateContract)
      AccountCreateContractOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AccountCreateContract.newBuilder() to construct.
    private AccountCreateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private AccountCreateContract() {
      ownerAddress_ = com.google.protobuf.ByteString.EMPTY;
      accountAddress_ = com.google.protobuf.ByteString.EMPTY;
      type_ = 0;
    }

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

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

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

    public static final int OWNER_ADDRESS_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes owner_address = 1;
     * @return The ownerAddress.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getOwnerAddress() {
      return ownerAddress_;
    }

    public static final int ACCOUNT_ADDRESS_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString accountAddress_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes account_address = 2;
     * @return The accountAddress.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAccountAddress() {
      return accountAddress_;
    }

    public static final int TYPE_FIELD_NUMBER = 3;
    private int type_ = 0;
    /**
     * .protocol.AccountType type = 3;
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override public int getTypeValue() {
      return type_;
    }
    /**
     * .protocol.AccountType type = 3;
     * @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;
    }

    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 (!ownerAddress_.isEmpty()) {
        output.writeBytes(1, ownerAddress_);
      }
      if (!accountAddress_.isEmpty()) {
        output.writeBytes(2, accountAddress_);
      }
      if (type_ != org.tron.trident.proto.Common.AccountType.Normal.getNumber()) {
        output.writeEnum(3, type_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!ownerAddress_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, ownerAddress_);
      }
      if (!accountAddress_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, accountAddress_);
      }
      if (type_ != org.tron.trident.proto.Common.AccountType.Normal.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, type_);
      }
      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.Contract.AccountCreateContract)) {
        return super.equals(obj);
      }
      org.tron.trident.proto.Contract.AccountCreateContract other = (org.tron.trident.proto.Contract.AccountCreateContract) obj;

      if (!getOwnerAddress()
          .equals(other.getOwnerAddress())) return false;
      if (!getAccountAddress()
          .equals(other.getAccountAddress())) return false;
      if (type_ != other.type_) 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) + OWNER_ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getOwnerAddress().hashCode();
      hash = (37 * hash) + ACCOUNT_ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAccountAddress().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static org.tron.trident.proto.Contract.AccountCreateContract 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.Contract.AccountCreateContract parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.proto.Contract.AccountCreateContract 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.Contract.AccountCreateContract 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.AccountCreateContract}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.AccountCreateContract)
        org.tron.trident.proto.Contract.AccountCreateContractOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.proto.Contract.internal_static_protocol_AccountCreateContract_descriptor;
      }

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

      // Construct using org.tron.trident.proto.Contract.AccountCreateContract.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        ownerAddress_ = com.google.protobuf.ByteString.EMPTY;
        accountAddress_ = com.google.protobuf.ByteString.EMPTY;
        type_ = 0;
        return this;
      }

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

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

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

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

      private void buildPartial0(org.tron.trident.proto.Contract.AccountCreateContract result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.ownerAddress_ = ownerAddress_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.accountAddress_ = accountAddress_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.type_ = type_;
        }
      }

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

      public Builder mergeFrom(org.tron.trident.proto.Contract.AccountCreateContract other) {
        if (other == org.tron.trident.proto.Contract.AccountCreateContract.getDefaultInstance()) return this;
        if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) {
          setOwnerAddress(other.getOwnerAddress());
        }
        if (other.getAccountAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAccountAddress(other.getAccountAddress());
        }
        if (other.type_ != 0) {
          setTypeValue(other.getTypeValue());
        }
        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: {
                ownerAddress_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                accountAddress_ = input.readBytes();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 24: {
                type_ = input.readEnum();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.ByteString accountAddress_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes account_address = 2;
       * @return The accountAddress.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAccountAddress() {
        return accountAddress_;
      }
      /**
       * bytes account_address = 2;
       * @param value The accountAddress to set.
       * @return This builder for chaining.
       */
      public Builder setAccountAddress(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        accountAddress_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * bytes account_address = 2;
       * @return This builder for chaining.
       */
      public Builder clearAccountAddress() {
        bitField0_ = (bitField0_ & ~0x00000002);
        accountAddress_ = getDefaultInstance().getAccountAddress();
        onChanged();
        return this;
      }

      private int type_ = 0;
      /**
       * .protocol.AccountType type = 3;
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override public int getTypeValue() {
        return type_;
      }
      /**
       * .protocol.AccountType type = 3;
       * @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_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * .protocol.AccountType type = 3;
       * @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 = 3;
       * @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_ |= 0x00000004;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .protocol.AccountType type = 3;
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000004);
        type_ = 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.AccountCreateContract)
    }

    // @@protoc_insertion_point(class_scope:protocol.AccountCreateContract)
    private static final org.tron.trident.proto.Contract.AccountCreateContract DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.AccountCreateContract();
    }

    public static org.tron.trident.proto.Contract.AccountCreateContract getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public AccountCreateContract 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.Contract.AccountCreateContract getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * bytes account_name = 1;
     * @return The accountName.
     */
    com.google.protobuf.ByteString getAccountName();

    /**
     * bytes owner_address = 2;
     * @return The ownerAddress.
     */
    com.google.protobuf.ByteString getOwnerAddress();
  }
  /**
   * 
   * Update account name. Account name is not unique now.
   * 
* * Protobuf type {@code protocol.AccountUpdateContract} */ public static final class AccountUpdateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountUpdateContract) AccountUpdateContractOrBuilder { private static final long serialVersionUID = 0L; // Use AccountUpdateContract.newBuilder() to construct. private AccountUpdateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountUpdateContract() { accountName_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountUpdateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AccountUpdateContract.class, org.tron.trident.proto.Contract.AccountUpdateContract.Builder.class); } public static final int ACCOUNT_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString accountName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes account_name = 1; * @return The accountName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountName() { return accountName_; } 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_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } 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 (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } 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.Contract.AccountUpdateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.AccountUpdateContract other = (org.tron.trident.proto.Contract.AccountUpdateContract) obj; if (!getAccountName() .equals(other.getAccountName())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.AccountUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountUpdateContract 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.Contract.AccountUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountUpdateContract 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.Contract.AccountUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.AccountUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountUpdateContract 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.Contract.AccountUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountUpdateContract 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.Contract.AccountUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountUpdateContract 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.Contract.AccountUpdateContract 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; } /** *
     * Update account name. Account name is not unique now.
     * 
* * Protobuf type {@code protocol.AccountUpdateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountUpdateContract) org.tron.trident.proto.Contract.AccountUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AccountUpdateContract.class, org.tron.trident.proto.Contract.AccountUpdateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.AccountUpdateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountName_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.AccountUpdateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.AccountUpdateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.AccountUpdateContract build() { org.tron.trident.proto.Contract.AccountUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.AccountUpdateContract buildPartial() { org.tron.trident.proto.Contract.AccountUpdateContract result = new org.tron.trident.proto.Contract.AccountUpdateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.AccountUpdateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountName_ = accountName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.AccountUpdateContract) { return mergeFrom((org.tron.trident.proto.Contract.AccountUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.AccountUpdateContract other) { if (other == org.tron.trident.proto.Contract.AccountUpdateContract.getDefaultInstance()) return this; if (other.getAccountName() != com.google.protobuf.ByteString.EMPTY) { setAccountName(other.getAccountName()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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 18: { ownerAddress_ = 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 accountName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes account_name = 1; * @return The accountName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountName() { return accountName_; } /** * 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; } /** * bytes account_name = 1; * @return This builder for chaining. */ public Builder clearAccountName() { bitField0_ = (bitField0_ & ~0x00000001); accountName_ = getDefaultInstance().getAccountName(); 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; } @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.AccountUpdateContract) } // @@protoc_insertion_point(class_scope:protocol.AccountUpdateContract) private static final org.tron.trident.proto.Contract.AccountUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.AccountUpdateContract(); } public static org.tron.trident.proto.Contract.AccountUpdateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountUpdateContract 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.Contract.AccountUpdateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetAccountIdContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.SetAccountIdContract) com.google.protobuf.MessageOrBuilder { /** * bytes account_id = 1; * @return The accountId. */ com.google.protobuf.ByteString getAccountId(); /** * bytes owner_address = 2; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** *
   * Set account id if the account has no id. Account id is unique and case
   * insensitive.
   * 
* * Protobuf type {@code protocol.SetAccountIdContract} */ public static final class SetAccountIdContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.SetAccountIdContract) SetAccountIdContractOrBuilder { private static final long serialVersionUID = 0L; // Use SetAccountIdContract.newBuilder() to construct. private SetAccountIdContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetAccountIdContract() { accountId_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetAccountIdContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_SetAccountIdContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.SetAccountIdContract.class, org.tron.trident.proto.Contract.SetAccountIdContract.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString accountId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes account_id = 1; * @return The accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountId() { return accountId_; } 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_; } 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 (!accountId_.isEmpty()) { output.writeBytes(1, accountId_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!accountId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, accountId_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } 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.Contract.SetAccountIdContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.SetAccountIdContract other = (org.tron.trident.proto.Contract.SetAccountIdContract) obj; if (!getAccountId() .equals(other.getAccountId())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.SetAccountIdContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.SetAccountIdContract 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.Contract.SetAccountIdContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.SetAccountIdContract 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.Contract.SetAccountIdContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.SetAccountIdContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.SetAccountIdContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.SetAccountIdContract 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.Contract.SetAccountIdContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.SetAccountIdContract 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.Contract.SetAccountIdContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.SetAccountIdContract 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.Contract.SetAccountIdContract 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; } /** *
     * Set account id if the account has no id. Account id is unique and case
     * insensitive.
     * 
* * Protobuf type {@code protocol.SetAccountIdContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.SetAccountIdContract) org.tron.trident.proto.Contract.SetAccountIdContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_SetAccountIdContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.SetAccountIdContract.class, org.tron.trident.proto.Contract.SetAccountIdContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.SetAccountIdContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.SetAccountIdContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.SetAccountIdContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.SetAccountIdContract build() { org.tron.trident.proto.Contract.SetAccountIdContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.SetAccountIdContract buildPartial() { org.tron.trident.proto.Contract.SetAccountIdContract result = new org.tron.trident.proto.Contract.SetAccountIdContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.SetAccountIdContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.SetAccountIdContract) { return mergeFrom((org.tron.trident.proto.Contract.SetAccountIdContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.SetAccountIdContract other) { if (other == org.tron.trident.proto.Contract.SetAccountIdContract.getDefaultInstance()) return this; if (other.getAccountId() != com.google.protobuf.ByteString.EMPTY) { setAccountId(other.getAccountId()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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: { accountId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ownerAddress_ = 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 accountId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes account_id = 1; * @return The accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountId() { return accountId_; } /** * bytes account_id = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = getDefaultInstance().getAccountId(); 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; } @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.SetAccountIdContract) } // @@protoc_insertion_point(class_scope:protocol.SetAccountIdContract) private static final org.tron.trident.proto.Contract.SetAccountIdContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.SetAccountIdContract(); } public static org.tron.trident.proto.Contract.SetAccountIdContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetAccountIdContract 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.Contract.SetAccountIdContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountPermissionUpdateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AccountPermissionUpdateContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return Whether the owner field is set. */ boolean hasOwner(); /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return The owner. */ org.tron.trident.proto.Common.Permission getOwner(); /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; */ org.tron.trident.proto.Common.PermissionOrBuilder getOwnerOrBuilder(); /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return Whether the witness field is set. */ boolean hasWitness(); /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return The witness. */ org.tron.trident.proto.Common.Permission getWitness(); /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; */ org.tron.trident.proto.Common.PermissionOrBuilder getWitnessOrBuilder(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ java.util.List getActivesList(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ org.tron.trident.proto.Common.Permission getActives(int index); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ int getActivesCount(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ java.util.List getActivesOrBuilderList(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ org.tron.trident.proto.Common.PermissionOrBuilder getActivesOrBuilder( int index); } /** * Protobuf type {@code protocol.AccountPermissionUpdateContract} */ public static final class AccountPermissionUpdateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountPermissionUpdateContract) AccountPermissionUpdateContractOrBuilder { private static final long serialVersionUID = 0L; // Use AccountPermissionUpdateContract.newBuilder() to construct. private AccountPermissionUpdateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountPermissionUpdateContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; actives_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountPermissionUpdateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AccountPermissionUpdateContract.class, org.tron.trident.proto.Contract.AccountPermissionUpdateContract.Builder.class); } private int bitField0_; public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int OWNER_FIELD_NUMBER = 2; private org.tron.trident.proto.Common.Permission owner_; /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return The owner. */ @java.lang.Override public org.tron.trident.proto.Common.Permission getOwner() { return owner_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : owner_; } /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getOwnerOrBuilder() { return owner_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : owner_; } public static final int WITNESS_FIELD_NUMBER = 3; private org.tron.trident.proto.Common.Permission witness_; /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return Whether the witness field is set. */ @java.lang.Override public boolean hasWitness() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return The witness. */ @java.lang.Override public org.tron.trident.proto.Common.Permission getWitness() { return witness_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witness_; } /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getWitnessOrBuilder() { return witness_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witness_; } public static final int ACTIVES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List actives_; /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public java.util.List getActivesList() { return actives_; } /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public java.util.List getActivesOrBuilderList() { return actives_; } /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public int getActivesCount() { return actives_.size(); } /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public org.tron.trident.proto.Common.Permission getActives(int index) { return actives_.get(index); } /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public org.tron.trident.proto.Common.PermissionOrBuilder getActivesOrBuilder( int index) { return actives_.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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOwner()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getWitness()); } for (int i = 0; i < actives_.size(); i++) { output.writeMessage(4, actives_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOwner()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWitness()); } for (int i = 0; i < actives_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, actives_.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.Contract.AccountPermissionUpdateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.AccountPermissionUpdateContract other = (org.tron.trident.proto.Contract.AccountPermissionUpdateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (hasWitness() != other.hasWitness()) return false; if (hasWitness()) { if (!getWitness() .equals(other.getWitness())) return false; } if (!getActivesList() .equals(other.getActivesList())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (hasWitness()) { hash = (37 * hash) + WITNESS_FIELD_NUMBER; hash = (53 * hash) + getWitness().hashCode(); } if (getActivesCount() > 0) { hash = (37 * hash) + ACTIVES_FIELD_NUMBER; hash = (53 * hash) + getActivesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract 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.AccountPermissionUpdateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountPermissionUpdateContract) org.tron.trident.proto.Contract.AccountPermissionUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AccountPermissionUpdateContract.class, org.tron.trident.proto.Contract.AccountPermissionUpdateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.AccountPermissionUpdateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOwnerFieldBuilder(); getWitnessFieldBuilder(); getActivesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; owner_ = null; if (ownerBuilder_ != null) { ownerBuilder_.dispose(); ownerBuilder_ = null; } witness_ = null; if (witnessBuilder_ != null) { witnessBuilder_.dispose(); witnessBuilder_ = null; } if (activesBuilder_ == null) { actives_ = java.util.Collections.emptyList(); } else { actives_ = null; activesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.AccountPermissionUpdateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.AccountPermissionUpdateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.AccountPermissionUpdateContract build() { org.tron.trident.proto.Contract.AccountPermissionUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.AccountPermissionUpdateContract buildPartial() { org.tron.trident.proto.Contract.AccountPermissionUpdateContract result = new org.tron.trident.proto.Contract.AccountPermissionUpdateContract(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Contract.AccountPermissionUpdateContract result) { if (activesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { actives_ = java.util.Collections.unmodifiableList(actives_); bitField0_ = (bitField0_ & ~0x00000008); } result.actives_ = actives_; } else { result.actives_ = activesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Contract.AccountPermissionUpdateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.witness_ = witnessBuilder_ == null ? witness_ : witnessBuilder_.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.Contract.AccountPermissionUpdateContract) { return mergeFrom((org.tron.trident.proto.Contract.AccountPermissionUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.AccountPermissionUpdateContract other) { if (other == org.tron.trident.proto.Contract.AccountPermissionUpdateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.hasOwner()) { mergeOwner(other.getOwner()); } if (other.hasWitness()) { mergeWitness(other.getWitness()); } if (activesBuilder_ == null) { if (!other.actives_.isEmpty()) { if (actives_.isEmpty()) { actives_ = other.actives_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureActivesIsMutable(); actives_.addAll(other.actives_); } onChanged(); } } else { if (!other.actives_.isEmpty()) { if (activesBuilder_.isEmpty()) { activesBuilder_.dispose(); activesBuilder_ = null; actives_ = other.actives_; bitField0_ = (bitField0_ & ~0x00000008); activesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActivesFieldBuilder() : null; } else { activesBuilder_.addAllMessages(other.actives_); } } } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getOwnerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getWitnessFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { org.tron.trident.proto.Common.Permission m = input.readMessage( org.tron.trident.proto.Common.Permission.parser(), extensionRegistry); if (activesBuilder_ == null) { ensureActivesIsMutable(); actives_.add(m); } else { activesBuilder_.addMessage(m); } 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private org.tron.trident.proto.Common.Permission owner_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> ownerBuilder_; /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return The owner. */ public org.tron.trident.proto.Common.Permission getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public Builder setOwner(org.tron.trident.proto.Common.Permission value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; } else { ownerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public Builder setOwner( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { ownerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public Builder mergeOwner(org.tron.trident.proto.Common.Permission value) { if (ownerBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && owner_ != null && owner_ != org.tron.trident.proto.Common.Permission.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; } } else { ownerBuilder_.mergeFrom(value); } if (owner_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000002); owner_ = null; if (ownerBuilder_ != null) { ownerBuilder_.dispose(); ownerBuilder_ = null; } onChanged(); return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public org.tron.trident.proto.Common.Permission.Builder getOwnerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ public org.tron.trident.proto.Common.PermissionOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : owner_; } } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private org.tron.trident.proto.Common.Permission witness_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> witnessBuilder_; /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return Whether the witness field is set. */ public boolean hasWitness() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return The witness. */ public org.tron.trident.proto.Common.Permission getWitness() { if (witnessBuilder_ == null) { return witness_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witness_; } else { return witnessBuilder_.getMessage(); } } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public Builder setWitness(org.tron.trident.proto.Common.Permission value) { if (witnessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } witness_ = value; } else { witnessBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public Builder setWitness( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (witnessBuilder_ == null) { witness_ = builderForValue.build(); } else { witnessBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public Builder mergeWitness(org.tron.trident.proto.Common.Permission value) { if (witnessBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && witness_ != null && witness_ != org.tron.trident.proto.Common.Permission.getDefaultInstance()) { getWitnessBuilder().mergeFrom(value); } else { witness_ = value; } } else { witnessBuilder_.mergeFrom(value); } if (witness_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public Builder clearWitness() { bitField0_ = (bitField0_ & ~0x00000004); witness_ = null; if (witnessBuilder_ != null) { witnessBuilder_.dispose(); witnessBuilder_ = null; } onChanged(); return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public org.tron.trident.proto.Common.Permission.Builder getWitnessBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWitnessFieldBuilder().getBuilder(); } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ public org.tron.trident.proto.Common.PermissionOrBuilder getWitnessOrBuilder() { if (witnessBuilder_ != null) { return witnessBuilder_.getMessageOrBuilder(); } else { return witness_ == null ? org.tron.trident.proto.Common.Permission.getDefaultInstance() : witness_; } } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> getWitnessFieldBuilder() { if (witnessBuilder_ == null) { witnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( getWitness(), getParentForChildren(), isClean()); witness_ = null; } return witnessBuilder_; } private java.util.List actives_ = java.util.Collections.emptyList(); private void ensureActivesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { actives_ = new java.util.ArrayList(actives_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder> activesBuilder_; /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public java.util.List getActivesList() { if (activesBuilder_ == null) { return java.util.Collections.unmodifiableList(actives_); } else { return activesBuilder_.getMessageList(); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public int getActivesCount() { if (activesBuilder_ == null) { return actives_.size(); } else { return activesBuilder_.getCount(); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public org.tron.trident.proto.Common.Permission getActives(int index) { if (activesBuilder_ == null) { return actives_.get(index); } else { return activesBuilder_.getMessage(index); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder setActives( int index, org.tron.trident.proto.Common.Permission value) { if (activesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivesIsMutable(); actives_.set(index, value); onChanged(); } else { activesBuilder_.setMessage(index, value); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder setActives( int index, org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activesBuilder_ == null) { ensureActivesIsMutable(); actives_.set(index, builderForValue.build()); onChanged(); } else { activesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder addActives(org.tron.trident.proto.Common.Permission value) { if (activesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivesIsMutable(); actives_.add(value); onChanged(); } else { activesBuilder_.addMessage(value); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder addActives( int index, org.tron.trident.proto.Common.Permission value) { if (activesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActivesIsMutable(); actives_.add(index, value); onChanged(); } else { activesBuilder_.addMessage(index, value); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder addActives( org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activesBuilder_ == null) { ensureActivesIsMutable(); actives_.add(builderForValue.build()); onChanged(); } else { activesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder addActives( int index, org.tron.trident.proto.Common.Permission.Builder builderForValue) { if (activesBuilder_ == null) { ensureActivesIsMutable(); actives_.add(index, builderForValue.build()); onChanged(); } else { activesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder addAllActives( java.lang.Iterable values) { if (activesBuilder_ == null) { ensureActivesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actives_); onChanged(); } else { activesBuilder_.addAllMessages(values); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder clearActives() { if (activesBuilder_ == null) { actives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { activesBuilder_.clear(); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public Builder removeActives(int index) { if (activesBuilder_ == null) { ensureActivesIsMutable(); actives_.remove(index); onChanged(); } else { activesBuilder_.remove(index); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public org.tron.trident.proto.Common.Permission.Builder getActivesBuilder( int index) { return getActivesFieldBuilder().getBuilder(index); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public org.tron.trident.proto.Common.PermissionOrBuilder getActivesOrBuilder( int index) { if (activesBuilder_ == null) { return actives_.get(index); } else { return activesBuilder_.getMessageOrBuilder(index); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public java.util.List getActivesOrBuilderList() { if (activesBuilder_ != null) { return activesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actives_); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public org.tron.trident.proto.Common.Permission.Builder addActivesBuilder() { return getActivesFieldBuilder().addBuilder( org.tron.trident.proto.Common.Permission.getDefaultInstance()); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public org.tron.trident.proto.Common.Permission.Builder addActivesBuilder( int index) { return getActivesFieldBuilder().addBuilder( index, org.tron.trident.proto.Common.Permission.getDefaultInstance()); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; */ public java.util.List getActivesBuilderList() { return getActivesFieldBuilder().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> getActivesFieldBuilder() { if (activesBuilder_ == null) { activesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Common.Permission, org.tron.trident.proto.Common.Permission.Builder, org.tron.trident.proto.Common.PermissionOrBuilder>( actives_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); actives_ = null; } return activesBuilder_; } @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.AccountPermissionUpdateContract) } // @@protoc_insertion_point(class_scope:protocol.AccountPermissionUpdateContract) private static final org.tron.trident.proto.Contract.AccountPermissionUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.AccountPermissionUpdateContract(); } public static org.tron.trident.proto.Contract.AccountPermissionUpdateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountPermissionUpdateContract 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.Contract.AccountPermissionUpdateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssetIssueContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AssetIssueContract) com.google.protobuf.MessageOrBuilder { /** * string id = 41; * @return The id. */ java.lang.String getId(); /** * string id = 41; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes name = 2; * @return The name. */ com.google.protobuf.ByteString getName(); /** * bytes abbr = 3; * @return The abbr. */ com.google.protobuf.ByteString getAbbr(); /** * int64 total_supply = 4; * @return The totalSupply. */ long getTotalSupply(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ java.util.List getFrozenSupplyList(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply getFrozenSupply(int index); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ int getFrozenSupplyCount(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ java.util.List getFrozenSupplyOrBuilderList(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder getFrozenSupplyOrBuilder( int index); /** * int32 trx_num = 6; * @return The trxNum. */ int getTrxNum(); /** * int32 precision = 7; * @return The precision. */ int getPrecision(); /** * int32 num = 8; * @return The num. */ int getNum(); /** * int64 start_time = 9; * @return The startTime. */ long getStartTime(); /** * int64 end_time = 10; * @return The endTime. */ long getEndTime(); /** *
     * useless
     * 
* * int64 order = 11; * @return The order. */ long getOrder(); /** * int32 vote_score = 16; * @return The voteScore. */ int getVoteScore(); /** * bytes description = 20; * @return The description. */ com.google.protobuf.ByteString getDescription(); /** * bytes url = 21; * @return The url. */ com.google.protobuf.ByteString getUrl(); /** * int64 free_asset_net_limit = 22; * @return The freeAssetNetLimit. */ long getFreeAssetNetLimit(); /** * int64 public_free_asset_net_limit = 23; * @return The publicFreeAssetNetLimit. */ long getPublicFreeAssetNetLimit(); /** * int64 public_free_asset_net_usage = 24; * @return The publicFreeAssetNetUsage. */ long getPublicFreeAssetNetUsage(); /** * int64 public_latest_free_net_time = 25; * @return The publicLatestFreeNetTime. */ long getPublicLatestFreeNetTime(); } /** * Protobuf type {@code protocol.AssetIssueContract} */ public static final class AssetIssueContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AssetIssueContract) AssetIssueContractOrBuilder { private static final long serialVersionUID = 0L; // Use AssetIssueContract.newBuilder() to construct. private AssetIssueContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetIssueContract() { id_ = ""; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; name_ = com.google.protobuf.ByteString.EMPTY; abbr_ = com.google.protobuf.ByteString.EMPTY; frozenSupply_ = java.util.Collections.emptyList(); description_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetIssueContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AssetIssueContract.class, org.tron.trident.proto.Contract.AssetIssueContract.Builder.class); } public interface FrozenSupplyOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AssetIssueContract.FrozenSupply) com.google.protobuf.MessageOrBuilder { /** * int64 frozen_amount = 1; * @return The frozenAmount. */ long getFrozenAmount(); /** * int64 frozen_days = 2; * @return The frozenDays. */ long getFrozenDays(); } /** * Protobuf type {@code protocol.AssetIssueContract.FrozenSupply} */ public static final class FrozenSupply extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AssetIssueContract.FrozenSupply) FrozenSupplyOrBuilder { private static final long serialVersionUID = 0L; // Use FrozenSupply.newBuilder() to construct. private FrozenSupply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FrozenSupply() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FrozenSupply(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.class, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder.class); } public static final int FROZEN_AMOUNT_FIELD_NUMBER = 1; private long frozenAmount_ = 0L; /** * int64 frozen_amount = 1; * @return The frozenAmount. */ @java.lang.Override public long getFrozenAmount() { return frozenAmount_; } public static final int FROZEN_DAYS_FIELD_NUMBER = 2; private long frozenDays_ = 0L; /** * int64 frozen_days = 2; * @return The frozenDays. */ @java.lang.Override public long getFrozenDays() { return frozenDays_; } 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 (frozenAmount_ != 0L) { output.writeInt64(1, frozenAmount_); } if (frozenDays_ != 0L) { output.writeInt64(2, frozenDays_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (frozenAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, frozenAmount_); } if (frozenDays_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, frozenDays_); } 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.Contract.AssetIssueContract.FrozenSupply)) { return super.equals(obj); } org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply other = (org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply) obj; if (getFrozenAmount() != other.getFrozenAmount()) return false; if (getFrozenDays() != other.getFrozenDays()) 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_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenAmount()); hash = (37 * hash) + FROZEN_DAYS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenDays()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply 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.AssetIssueContract.FrozenSupply} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AssetIssueContract.FrozenSupply) org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.class, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder.class); } // Construct using org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; frozenAmount_ = 0L; frozenDays_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply getDefaultInstanceForType() { return org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply build() { org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply buildPartial() { org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply result = new org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.frozenAmount_ = frozenAmount_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.frozenDays_ = frozenDays_; } } @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.Contract.AssetIssueContract.FrozenSupply) { return mergeFrom((org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply other) { if (other == org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()) return this; if (other.getFrozenAmount() != 0L) { setFrozenAmount(other.getFrozenAmount()); } if (other.getFrozenDays() != 0L) { setFrozenDays(other.getFrozenDays()); } 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: { frozenAmount_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { frozenDays_ = 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 frozenAmount_ ; /** * int64 frozen_amount = 1; * @return The frozenAmount. */ @java.lang.Override public long getFrozenAmount() { return frozenAmount_; } /** * int64 frozen_amount = 1; * @param value The frozenAmount to set. * @return This builder for chaining. */ public Builder setFrozenAmount(long value) { frozenAmount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 frozen_amount = 1; * @return This builder for chaining. */ public Builder clearFrozenAmount() { bitField0_ = (bitField0_ & ~0x00000001); frozenAmount_ = 0L; onChanged(); return this; } private long frozenDays_ ; /** * int64 frozen_days = 2; * @return The frozenDays. */ @java.lang.Override public long getFrozenDays() { return frozenDays_; } /** * int64 frozen_days = 2; * @param value The frozenDays to set. * @return This builder for chaining. */ public Builder setFrozenDays(long value) { frozenDays_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 frozen_days = 2; * @return This builder for chaining. */ public Builder clearFrozenDays() { bitField0_ = (bitField0_ & ~0x00000002); frozenDays_ = 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.AssetIssueContract.FrozenSupply) } // @@protoc_insertion_point(class_scope:protocol.AssetIssueContract.FrozenSupply) private static final org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply(); } public static org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FrozenSupply 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.Contract.AssetIssueContract.FrozenSupply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 41; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * string id = 41; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 41; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int NAME_FIELD_NUMBER = 2; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * bytes name = 2; * @return The name. */ @java.lang.Override public com.google.protobuf.ByteString getName() { return name_; } public static final int ABBR_FIELD_NUMBER = 3; private com.google.protobuf.ByteString abbr_ = com.google.protobuf.ByteString.EMPTY; /** * bytes abbr = 3; * @return The abbr. */ @java.lang.Override public com.google.protobuf.ByteString getAbbr() { return abbr_; } public static final int TOTAL_SUPPLY_FIELD_NUMBER = 4; private long totalSupply_ = 0L; /** * int64 total_supply = 4; * @return The totalSupply. */ @java.lang.Override public long getTotalSupply() { return totalSupply_; } public static final int FROZEN_SUPPLY_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List frozenSupply_; /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public java.util.List getFrozenSupplyList() { return frozenSupply_; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public java.util.List getFrozenSupplyOrBuilderList() { return frozenSupply_; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public int getFrozenSupplyCount() { return frozenSupply_.size(); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply getFrozenSupply(int index) { return frozenSupply_.get(index); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder getFrozenSupplyOrBuilder( int index) { return frozenSupply_.get(index); } public static final int TRX_NUM_FIELD_NUMBER = 6; private int trxNum_ = 0; /** * int32 trx_num = 6; * @return The trxNum. */ @java.lang.Override public int getTrxNum() { return trxNum_; } public static final int PRECISION_FIELD_NUMBER = 7; private int precision_ = 0; /** * int32 precision = 7; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } public static final int NUM_FIELD_NUMBER = 8; private int num_ = 0; /** * int32 num = 8; * @return The num. */ @java.lang.Override public int getNum() { return num_; } public static final int START_TIME_FIELD_NUMBER = 9; private long startTime_ = 0L; /** * int64 start_time = 9; * @return The startTime. */ @java.lang.Override public long getStartTime() { return startTime_; } public static final int END_TIME_FIELD_NUMBER = 10; private long endTime_ = 0L; /** * int64 end_time = 10; * @return The endTime. */ @java.lang.Override public long getEndTime() { return endTime_; } public static final int ORDER_FIELD_NUMBER = 11; private long order_ = 0L; /** *
     * useless
     * 
* * int64 order = 11; * @return The order. */ @java.lang.Override public long getOrder() { return order_; } public static final int VOTE_SCORE_FIELD_NUMBER = 16; private int voteScore_ = 0; /** * int32 vote_score = 16; * @return The voteScore. */ @java.lang.Override public int getVoteScore() { return voteScore_; } public static final int DESCRIPTION_FIELD_NUMBER = 20; private com.google.protobuf.ByteString description_ = com.google.protobuf.ByteString.EMPTY; /** * bytes description = 20; * @return The description. */ @java.lang.Override public com.google.protobuf.ByteString getDescription() { return description_; } public static final int URL_FIELD_NUMBER = 21; private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 21; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } public static final int FREE_ASSET_NET_LIMIT_FIELD_NUMBER = 22; private long freeAssetNetLimit_ = 0L; /** * int64 free_asset_net_limit = 22; * @return The freeAssetNetLimit. */ @java.lang.Override public long getFreeAssetNetLimit() { return freeAssetNetLimit_; } public static final int PUBLIC_FREE_ASSET_NET_LIMIT_FIELD_NUMBER = 23; private long publicFreeAssetNetLimit_ = 0L; /** * int64 public_free_asset_net_limit = 23; * @return The publicFreeAssetNetLimit. */ @java.lang.Override public long getPublicFreeAssetNetLimit() { return publicFreeAssetNetLimit_; } public static final int PUBLIC_FREE_ASSET_NET_USAGE_FIELD_NUMBER = 24; private long publicFreeAssetNetUsage_ = 0L; /** * int64 public_free_asset_net_usage = 24; * @return The publicFreeAssetNetUsage. */ @java.lang.Override public long getPublicFreeAssetNetUsage() { return publicFreeAssetNetUsage_; } public static final int PUBLIC_LATEST_FREE_NET_TIME_FIELD_NUMBER = 25; private long publicLatestFreeNetTime_ = 0L; /** * int64 public_latest_free_net_time = 25; * @return The publicLatestFreeNetTime. */ @java.lang.Override public long getPublicLatestFreeNetTime() { return publicLatestFreeNetTime_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!name_.isEmpty()) { output.writeBytes(2, name_); } if (!abbr_.isEmpty()) { output.writeBytes(3, abbr_); } if (totalSupply_ != 0L) { output.writeInt64(4, totalSupply_); } for (int i = 0; i < frozenSupply_.size(); i++) { output.writeMessage(5, frozenSupply_.get(i)); } if (trxNum_ != 0) { output.writeInt32(6, trxNum_); } if (precision_ != 0) { output.writeInt32(7, precision_); } if (num_ != 0) { output.writeInt32(8, num_); } if (startTime_ != 0L) { output.writeInt64(9, startTime_); } if (endTime_ != 0L) { output.writeInt64(10, endTime_); } if (order_ != 0L) { output.writeInt64(11, order_); } if (voteScore_ != 0) { output.writeInt32(16, voteScore_); } if (!description_.isEmpty()) { output.writeBytes(20, description_); } if (!url_.isEmpty()) { output.writeBytes(21, url_); } if (freeAssetNetLimit_ != 0L) { output.writeInt64(22, freeAssetNetLimit_); } if (publicFreeAssetNetLimit_ != 0L) { output.writeInt64(23, publicFreeAssetNetLimit_); } if (publicFreeAssetNetUsage_ != 0L) { output.writeInt64(24, publicFreeAssetNetUsage_); } if (publicLatestFreeNetTime_ != 0L) { output.writeInt64(25, publicLatestFreeNetTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 41, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!name_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, name_); } if (!abbr_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, abbr_); } if (totalSupply_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, totalSupply_); } for (int i = 0; i < frozenSupply_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, frozenSupply_.get(i)); } if (trxNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, trxNum_); } if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, precision_); } if (num_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, num_); } if (startTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, startTime_); } if (endTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, endTime_); } if (order_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, order_); } if (voteScore_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, voteScore_); } if (!description_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, description_); } if (!url_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(21, url_); } if (freeAssetNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, freeAssetNetLimit_); } if (publicFreeAssetNetLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(23, publicFreeAssetNetLimit_); } if (publicFreeAssetNetUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(24, publicFreeAssetNetUsage_); } if (publicLatestFreeNetTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(25, publicLatestFreeNetTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, id_); } 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.Contract.AssetIssueContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.AssetIssueContract other = (org.tron.trident.proto.Contract.AssetIssueContract) obj; if (!getId() .equals(other.getId())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getName() .equals(other.getName())) return false; if (!getAbbr() .equals(other.getAbbr())) return false; if (getTotalSupply() != other.getTotalSupply()) return false; if (!getFrozenSupplyList() .equals(other.getFrozenSupplyList())) return false; if (getTrxNum() != other.getTrxNum()) return false; if (getPrecision() != other.getPrecision()) return false; if (getNum() != other.getNum()) return false; if (getStartTime() != other.getStartTime()) return false; if (getEndTime() != other.getEndTime()) return false; if (getOrder() != other.getOrder()) return false; if (getVoteScore() != other.getVoteScore()) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (getFreeAssetNetLimit() != other.getFreeAssetNetLimit()) return false; if (getPublicFreeAssetNetLimit() != other.getPublicFreeAssetNetLimit()) return false; if (getPublicFreeAssetNetUsage() != other.getPublicFreeAssetNetUsage()) return false; if (getPublicLatestFreeNetTime() != other.getPublicLatestFreeNetTime()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ABBR_FIELD_NUMBER; hash = (53 * hash) + getAbbr().hashCode(); hash = (37 * hash) + TOTAL_SUPPLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSupply()); if (getFrozenSupplyCount() > 0) { hash = (37 * hash) + FROZEN_SUPPLY_FIELD_NUMBER; hash = (53 * hash) + getFrozenSupplyList().hashCode(); } hash = (37 * hash) + TRX_NUM_FIELD_NUMBER; hash = (53 * hash) + getTrxNum(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision(); hash = (37 * hash) + NUM_FIELD_NUMBER; hash = (53 * hash) + getNum(); hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTime()); hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTime()); hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOrder()); hash = (37 * hash) + VOTE_SCORE_FIELD_NUMBER; hash = (53 * hash) + getVoteScore(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + FREE_ASSET_NET_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeAssetNetLimit()); hash = (37 * hash) + PUBLIC_FREE_ASSET_NET_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPublicFreeAssetNetLimit()); hash = (37 * hash) + PUBLIC_FREE_ASSET_NET_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPublicFreeAssetNetUsage()); hash = (37 * hash) + PUBLIC_LATEST_FREE_NET_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPublicLatestFreeNetTime()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.AssetIssueContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract 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.Contract.AssetIssueContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract 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.Contract.AssetIssueContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.AssetIssueContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.AssetIssueContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract 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.Contract.AssetIssueContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract 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.Contract.AssetIssueContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.AssetIssueContract 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.Contract.AssetIssueContract 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.AssetIssueContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AssetIssueContract) org.tron.trident.proto.Contract.AssetIssueContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.AssetIssueContract.class, org.tron.trident.proto.Contract.AssetIssueContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.AssetIssueContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; name_ = com.google.protobuf.ByteString.EMPTY; abbr_ = com.google.protobuf.ByteString.EMPTY; totalSupply_ = 0L; if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); } else { frozenSupply_ = null; frozenSupplyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); trxNum_ = 0; precision_ = 0; num_ = 0; startTime_ = 0L; endTime_ = 0L; order_ = 0L; voteScore_ = 0; description_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; freeAssetNetLimit_ = 0L; publicFreeAssetNetLimit_ = 0L; publicFreeAssetNetUsage_ = 0L; publicLatestFreeNetTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract build() { org.tron.trident.proto.Contract.AssetIssueContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.AssetIssueContract buildPartial() { org.tron.trident.proto.Contract.AssetIssueContract result = new org.tron.trident.proto.Contract.AssetIssueContract(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Contract.AssetIssueContract result) { if (frozenSupplyBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); bitField0_ = (bitField0_ & ~0x00000020); } result.frozenSupply_ = frozenSupply_; } else { result.frozenSupply_ = frozenSupplyBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Contract.AssetIssueContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.abbr_ = abbr_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.totalSupply_ = totalSupply_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.trxNum_ = trxNum_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.precision_ = precision_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.num_ = num_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.startTime_ = startTime_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.endTime_ = endTime_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.order_ = order_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.voteScore_ = voteScore_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.url_ = url_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.freeAssetNetLimit_ = freeAssetNetLimit_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.publicFreeAssetNetLimit_ = publicFreeAssetNetLimit_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.publicFreeAssetNetUsage_ = publicFreeAssetNetUsage_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.publicLatestFreeNetTime_ = publicLatestFreeNetTime_; } } @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.Contract.AssetIssueContract) { return mergeFrom((org.tron.trident.proto.Contract.AssetIssueContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.AssetIssueContract other) { if (other == org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getName() != com.google.protobuf.ByteString.EMPTY) { setName(other.getName()); } if (other.getAbbr() != com.google.protobuf.ByteString.EMPTY) { setAbbr(other.getAbbr()); } if (other.getTotalSupply() != 0L) { setTotalSupply(other.getTotalSupply()); } if (frozenSupplyBuilder_ == null) { if (!other.frozenSupply_.isEmpty()) { if (frozenSupply_.isEmpty()) { frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFrozenSupplyIsMutable(); frozenSupply_.addAll(other.frozenSupply_); } onChanged(); } } else { if (!other.frozenSupply_.isEmpty()) { if (frozenSupplyBuilder_.isEmpty()) { frozenSupplyBuilder_.dispose(); frozenSupplyBuilder_ = null; frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00000020); frozenSupplyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenSupplyFieldBuilder() : null; } else { frozenSupplyBuilder_.addAllMessages(other.frozenSupply_); } } } if (other.getTrxNum() != 0) { setTrxNum(other.getTrxNum()); } if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getNum() != 0) { setNum(other.getNum()); } if (other.getStartTime() != 0L) { setStartTime(other.getStartTime()); } if (other.getEndTime() != 0L) { setEndTime(other.getEndTime()); } if (other.getOrder() != 0L) { setOrder(other.getOrder()); } if (other.getVoteScore() != 0) { setVoteScore(other.getVoteScore()); } if (other.getDescription() != com.google.protobuf.ByteString.EMPTY) { setDescription(other.getDescription()); } if (other.getUrl() != com.google.protobuf.ByteString.EMPTY) { setUrl(other.getUrl()); } if (other.getFreeAssetNetLimit() != 0L) { setFreeAssetNetLimit(other.getFreeAssetNetLimit()); } if (other.getPublicFreeAssetNetLimit() != 0L) { setPublicFreeAssetNetLimit(other.getPublicFreeAssetNetLimit()); } if (other.getPublicFreeAssetNetUsage() != 0L) { setPublicFreeAssetNetUsage(other.getPublicFreeAssetNetUsage()); } if (other.getPublicLatestFreeNetTime() != 0L) { setPublicLatestFreeNetTime(other.getPublicLatestFreeNetTime()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 10 case 18: { name_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 18 case 26: { abbr_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 26 case 32: { totalSupply_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 32 case 42: { org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply m = input.readMessage( org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.parser(), extensionRegistry); if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(m); } else { frozenSupplyBuilder_.addMessage(m); } break; } // case 42 case 48: { trxNum_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 48 case 56: { precision_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 56 case 64: { num_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 64 case 72: { startTime_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 72 case 80: { endTime_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 80 case 88: { order_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 88 case 128: { voteScore_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 128 case 162: { description_ = input.readBytes(); bitField0_ |= 0x00002000; break; } // case 162 case 170: { url_ = input.readBytes(); bitField0_ |= 0x00004000; break; } // case 170 case 176: { freeAssetNetLimit_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 176 case 184: { publicFreeAssetNetLimit_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 184 case 192: { publicFreeAssetNetUsage_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 192 case 200: { publicLatestFreeNetTime_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 200 case 330: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 330 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 id_ = ""; /** * string id = 41; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 41; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 41; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string id = 41; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string id = 41; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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 = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000002); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * bytes name = 2; * @return The name. */ @java.lang.Override public com.google.protobuf.ByteString getName() { return name_; } /** * bytes name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } private com.google.protobuf.ByteString abbr_ = com.google.protobuf.ByteString.EMPTY; /** * bytes abbr = 3; * @return The abbr. */ @java.lang.Override public com.google.protobuf.ByteString getAbbr() { return abbr_; } /** * bytes abbr = 3; * @param value The abbr to set. * @return This builder for chaining. */ public Builder setAbbr(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } abbr_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes abbr = 3; * @return This builder for chaining. */ public Builder clearAbbr() { bitField0_ = (bitField0_ & ~0x00000008); abbr_ = getDefaultInstance().getAbbr(); onChanged(); return this; } private long totalSupply_ ; /** * int64 total_supply = 4; * @return The totalSupply. */ @java.lang.Override public long getTotalSupply() { return totalSupply_; } /** * int64 total_supply = 4; * @param value The totalSupply to set. * @return This builder for chaining. */ public Builder setTotalSupply(long value) { totalSupply_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 total_supply = 4; * @return This builder for chaining. */ public Builder clearTotalSupply() { bitField0_ = (bitField0_ & ~0x00000010); totalSupply_ = 0L; onChanged(); return this; } private java.util.List frozenSupply_ = java.util.Collections.emptyList(); private void ensureFrozenSupplyIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { frozenSupply_ = new java.util.ArrayList(frozenSupply_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder> frozenSupplyBuilder_; /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public java.util.List getFrozenSupplyList() { if (frozenSupplyBuilder_ == null) { return java.util.Collections.unmodifiableList(frozenSupply_); } else { return frozenSupplyBuilder_.getMessageList(); } } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public int getFrozenSupplyCount() { if (frozenSupplyBuilder_ == null) { return frozenSupply_.size(); } else { return frozenSupplyBuilder_.getCount(); } } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply getFrozenSupply(int index) { if (frozenSupplyBuilder_ == null) { return frozenSupply_.get(index); } else { return frozenSupplyBuilder_.getMessage(index); } } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder setFrozenSupply( int index, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.set(index, value); onChanged(); } else { frozenSupplyBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder setFrozenSupply( int index, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.set(index, builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder addFrozenSupply(org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.add(value); onChanged(); } else { frozenSupplyBuilder_.addMessage(value); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder addFrozenSupply( int index, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply value) { if (frozenSupplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrozenSupplyIsMutable(); frozenSupply_.add(index, value); onChanged(); } else { frozenSupplyBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder addFrozenSupply( org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder addFrozenSupply( int index, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder builderForValue) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.add(index, builderForValue.build()); onChanged(); } else { frozenSupplyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ 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; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder clearFrozenSupply() { if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { frozenSupplyBuilder_.clear(); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public Builder removeFrozenSupply(int index) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); frozenSupply_.remove(index); onChanged(); } else { frozenSupplyBuilder_.remove(index); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder getFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().getBuilder(index); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder getFrozenSupplyOrBuilder( int index) { if (frozenSupplyBuilder_ == null) { return frozenSupply_.get(index); } else { return frozenSupplyBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public java.util.List getFrozenSupplyOrBuilderList() { if (frozenSupplyBuilder_ != null) { return frozenSupplyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frozenSupply_); } } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder addFrozenSupplyBuilder() { return getFrozenSupplyFieldBuilder().addBuilder( org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder addFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().addBuilder( index, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ public java.util.List getFrozenSupplyBuilderList() { return getFrozenSupplyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder> getFrozenSupplyFieldBuilder() { if (frozenSupplyBuilder_ == null) { frozenSupplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.tron.trident.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder>( frozenSupply_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); frozenSupply_ = null; } return frozenSupplyBuilder_; } private int trxNum_ ; /** * int32 trx_num = 6; * @return The trxNum. */ @java.lang.Override public int getTrxNum() { return trxNum_; } /** * int32 trx_num = 6; * @param value The trxNum to set. * @return This builder for chaining. */ public Builder setTrxNum(int value) { trxNum_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int32 trx_num = 6; * @return This builder for chaining. */ public Builder clearTrxNum() { bitField0_ = (bitField0_ & ~0x00000040); trxNum_ = 0; onChanged(); return this; } private int precision_ ; /** * int32 precision = 7; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } /** * int32 precision = 7; * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { precision_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int32 precision = 7; * @return This builder for chaining. */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000080); precision_ = 0; onChanged(); return this; } private int num_ ; /** * int32 num = 8; * @return The num. */ @java.lang.Override public int getNum() { return num_; } /** * int32 num = 8; * @param value The num to set. * @return This builder for chaining. */ public Builder setNum(int value) { num_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int32 num = 8; * @return This builder for chaining. */ public Builder clearNum() { bitField0_ = (bitField0_ & ~0x00000100); num_ = 0; onChanged(); return this; } private long startTime_ ; /** * int64 start_time = 9; * @return The startTime. */ @java.lang.Override public long getStartTime() { return startTime_; } /** * int64 start_time = 9; * @param value The startTime to set. * @return This builder for chaining. */ public Builder setStartTime(long value) { startTime_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * int64 start_time = 9; * @return This builder for chaining. */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000200); startTime_ = 0L; onChanged(); return this; } private long endTime_ ; /** * int64 end_time = 10; * @return The endTime. */ @java.lang.Override public long getEndTime() { return endTime_; } /** * int64 end_time = 10; * @param value The endTime to set. * @return This builder for chaining. */ public Builder setEndTime(long value) { endTime_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int64 end_time = 10; * @return This builder for chaining. */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000400); endTime_ = 0L; onChanged(); return this; } private long order_ ; /** *
       * useless
       * 
* * int64 order = 11; * @return The order. */ @java.lang.Override public long getOrder() { return order_; } /** *
       * useless
       * 
* * int64 order = 11; * @param value The order to set. * @return This builder for chaining. */ public Builder setOrder(long value) { order_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * useless
       * 
* * int64 order = 11; * @return This builder for chaining. */ public Builder clearOrder() { bitField0_ = (bitField0_ & ~0x00000800); order_ = 0L; onChanged(); return this; } private int voteScore_ ; /** * int32 vote_score = 16; * @return The voteScore. */ @java.lang.Override public int getVoteScore() { return voteScore_; } /** * int32 vote_score = 16; * @param value The voteScore to set. * @return This builder for chaining. */ public Builder setVoteScore(int value) { voteScore_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int32 vote_score = 16; * @return This builder for chaining. */ public Builder clearVoteScore() { bitField0_ = (bitField0_ & ~0x00001000); voteScore_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString description_ = com.google.protobuf.ByteString.EMPTY; /** * bytes description = 20; * @return The description. */ @java.lang.Override public com.google.protobuf.ByteString getDescription() { return description_; } /** * bytes description = 20; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * bytes description = 20; * @return This builder for chaining. */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00002000); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 21; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } /** * bytes url = 21; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * bytes url = 21; * @return This builder for chaining. */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00004000); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } private long freeAssetNetLimit_ ; /** * int64 free_asset_net_limit = 22; * @return The freeAssetNetLimit. */ @java.lang.Override public long getFreeAssetNetLimit() { return freeAssetNetLimit_; } /** * int64 free_asset_net_limit = 22; * @param value The freeAssetNetLimit to set. * @return This builder for chaining. */ public Builder setFreeAssetNetLimit(long value) { freeAssetNetLimit_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * int64 free_asset_net_limit = 22; * @return This builder for chaining. */ public Builder clearFreeAssetNetLimit() { bitField0_ = (bitField0_ & ~0x00008000); freeAssetNetLimit_ = 0L; onChanged(); return this; } private long publicFreeAssetNetLimit_ ; /** * int64 public_free_asset_net_limit = 23; * @return The publicFreeAssetNetLimit. */ @java.lang.Override public long getPublicFreeAssetNetLimit() { return publicFreeAssetNetLimit_; } /** * int64 public_free_asset_net_limit = 23; * @param value The publicFreeAssetNetLimit to set. * @return This builder for chaining. */ public Builder setPublicFreeAssetNetLimit(long value) { publicFreeAssetNetLimit_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * int64 public_free_asset_net_limit = 23; * @return This builder for chaining. */ public Builder clearPublicFreeAssetNetLimit() { bitField0_ = (bitField0_ & ~0x00010000); publicFreeAssetNetLimit_ = 0L; onChanged(); return this; } private long publicFreeAssetNetUsage_ ; /** * int64 public_free_asset_net_usage = 24; * @return The publicFreeAssetNetUsage. */ @java.lang.Override public long getPublicFreeAssetNetUsage() { return publicFreeAssetNetUsage_; } /** * int64 public_free_asset_net_usage = 24; * @param value The publicFreeAssetNetUsage to set. * @return This builder for chaining. */ public Builder setPublicFreeAssetNetUsage(long value) { publicFreeAssetNetUsage_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * int64 public_free_asset_net_usage = 24; * @return This builder for chaining. */ public Builder clearPublicFreeAssetNetUsage() { bitField0_ = (bitField0_ & ~0x00020000); publicFreeAssetNetUsage_ = 0L; onChanged(); return this; } private long publicLatestFreeNetTime_ ; /** * int64 public_latest_free_net_time = 25; * @return The publicLatestFreeNetTime. */ @java.lang.Override public long getPublicLatestFreeNetTime() { return publicLatestFreeNetTime_; } /** * int64 public_latest_free_net_time = 25; * @param value The publicLatestFreeNetTime to set. * @return This builder for chaining. */ public Builder setPublicLatestFreeNetTime(long value) { publicLatestFreeNetTime_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * int64 public_latest_free_net_time = 25; * @return This builder for chaining. */ public Builder clearPublicLatestFreeNetTime() { bitField0_ = (bitField0_ & ~0x00040000); publicLatestFreeNetTime_ = 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.AssetIssueContract) } // @@protoc_insertion_point(class_scope:protocol.AssetIssueContract) private static final org.tron.trident.proto.Contract.AssetIssueContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.AssetIssueContract(); } public static org.tron.trident.proto.Contract.AssetIssueContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetIssueContract 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.Contract.AssetIssueContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferAssetContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransferAssetContract) com.google.protobuf.MessageOrBuilder { /** *
     * this field is token name before the proposal
     * 
* * bytes asset_name = 1; * @return The assetName. */ com.google.protobuf.ByteString getAssetName(); /** *
     * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
     * token id and token is should be in string format.
     * 
* * bytes owner_address = 2; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes to_address = 3; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * int64 amount = 4; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.TransferAssetContract} */ public static final class TransferAssetContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransferAssetContract) TransferAssetContractOrBuilder { private static final long serialVersionUID = 0L; // Use TransferAssetContract.newBuilder() to construct. private TransferAssetContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferAssetContract() { assetName_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = 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 TransferAssetContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TransferAssetContract.class, org.tron.trident.proto.Contract.TransferAssetContract.Builder.class); } public static final int ASSET_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString assetName_ = com.google.protobuf.ByteString.EMPTY; /** *
     * this field is token name before the proposal
     * 
* * bytes asset_name = 1; * @return The assetName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetName() { return assetName_; } public static final int OWNER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
     * token id and token is should be in string format.
     * 
* * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int TO_ADDRESS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes to_address = 3; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } public static final int AMOUNT_FIELD_NUMBER = 4; private long amount_ = 0L; /** * int64 amount = 4; * @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 (!assetName_.isEmpty()) { output.writeBytes(1, assetName_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } if (!toAddress_.isEmpty()) { output.writeBytes(3, toAddress_); } if (amount_ != 0L) { output.writeInt64(4, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!assetName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, assetName_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, toAddress_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.Contract.TransferAssetContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.TransferAssetContract other = (org.tron.trident.proto.Contract.TransferAssetContract) obj; if (!getAssetName() .equals(other.getAssetName())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getToAddress() .equals(other.getToAddress())) 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) + ASSET_NAME_FIELD_NUMBER; hash = (53 * hash) + getAssetName().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().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.Contract.TransferAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferAssetContract 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.Contract.TransferAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferAssetContract 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.Contract.TransferAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.TransferAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferAssetContract 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.Contract.TransferAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferAssetContract 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.Contract.TransferAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferAssetContract 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.Contract.TransferAssetContract 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.TransferAssetContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransferAssetContract) org.tron.trident.proto.Contract.TransferAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TransferAssetContract.class, org.tron.trident.proto.Contract.TransferAssetContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.TransferAssetContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; assetName_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.TransferAssetContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.TransferAssetContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.TransferAssetContract build() { org.tron.trident.proto.Contract.TransferAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.TransferAssetContract buildPartial() { org.tron.trident.proto.Contract.TransferAssetContract result = new org.tron.trident.proto.Contract.TransferAssetContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.TransferAssetContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.assetName_ = assetName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000008) != 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.Contract.TransferAssetContract) { return mergeFrom((org.tron.trident.proto.Contract.TransferAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.TransferAssetContract other) { if (other == org.tron.trident.proto.Contract.TransferAssetContract.getDefaultInstance()) return this; if (other.getAssetName() != com.google.protobuf.ByteString.EMPTY) { setAssetName(other.getAssetName()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } 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 10: { assetName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { amount_ = 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 assetName_ = com.google.protobuf.ByteString.EMPTY; /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 1; * @return The assetName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetName() { return assetName_; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 1; * @param value The assetName to set. * @return This builder for chaining. */ public Builder setAssetName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } assetName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 1; * @return This builder for chaining. */ public Builder clearAssetName() { bitField0_ = (bitField0_ & ~0x00000001); assetName_ = getDefaultInstance().getAssetName(); onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * 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; } /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000002); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes to_address = 3; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes to_address = 3; * @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_ |= 0x00000004; onChanged(); return this; } /** * bytes to_address = 3; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000004); toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } private long amount_ ; /** * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 4; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); 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.TransferAssetContract) } // @@protoc_insertion_point(class_scope:protocol.TransferAssetContract) private static final org.tron.trident.proto.Contract.TransferAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.TransferAssetContract(); } public static org.tron.trident.proto.Contract.TransferAssetContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransferAssetContract 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.Contract.TransferAssetContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnfreezeAssetContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UnfreezeAssetContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.UnfreezeAssetContract} */ public static final class UnfreezeAssetContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UnfreezeAssetContract) UnfreezeAssetContractOrBuilder { private static final long serialVersionUID = 0L; // Use UnfreezeAssetContract.newBuilder() to construct. private UnfreezeAssetContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnfreezeAssetContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnfreezeAssetContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeAssetContract.class, org.tron.trident.proto.Contract.UnfreezeAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } 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.Contract.UnfreezeAssetContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UnfreezeAssetContract other = (org.tron.trident.proto.Contract.UnfreezeAssetContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UnfreezeAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract 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.Contract.UnfreezeAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract 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.Contract.UnfreezeAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract 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.Contract.UnfreezeAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract 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.Contract.UnfreezeAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract 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.Contract.UnfreezeAssetContract 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.UnfreezeAssetContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UnfreezeAssetContract) org.tron.trident.proto.Contract.UnfreezeAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeAssetContract.class, org.tron.trident.proto.Contract.UnfreezeAssetContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UnfreezeAssetContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeAssetContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UnfreezeAssetContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeAssetContract build() { org.tron.trident.proto.Contract.UnfreezeAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeAssetContract buildPartial() { org.tron.trident.proto.Contract.UnfreezeAssetContract result = new org.tron.trident.proto.Contract.UnfreezeAssetContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UnfreezeAssetContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.UnfreezeAssetContract) { return mergeFrom((org.tron.trident.proto.Contract.UnfreezeAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UnfreezeAssetContract other) { if (other == org.tron.trident.proto.Contract.UnfreezeAssetContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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.UnfreezeAssetContract) } // @@protoc_insertion_point(class_scope:protocol.UnfreezeAssetContract) private static final org.tron.trident.proto.Contract.UnfreezeAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UnfreezeAssetContract(); } public static org.tron.trident.proto.Contract.UnfreezeAssetContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnfreezeAssetContract 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.Contract.UnfreezeAssetContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateAssetContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UpdateAssetContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes description = 2; * @return The description. */ com.google.protobuf.ByteString getDescription(); /** * bytes url = 3; * @return The url. */ com.google.protobuf.ByteString getUrl(); /** * int64 new_limit = 4; * @return The newLimit. */ long getNewLimit(); /** * int64 new_public_limit = 5; * @return The newPublicLimit. */ long getNewPublicLimit(); } /** * Protobuf type {@code protocol.UpdateAssetContract} */ public static final class UpdateAssetContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UpdateAssetContract) UpdateAssetContractOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateAssetContract.newBuilder() to construct. private UpdateAssetContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateAssetContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; description_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateAssetContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateAssetContract.class, org.tron.trident.proto.Contract.UpdateAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private com.google.protobuf.ByteString description_ = com.google.protobuf.ByteString.EMPTY; /** * bytes description = 2; * @return The description. */ @java.lang.Override public com.google.protobuf.ByteString getDescription() { return description_; } public static final int URL_FIELD_NUMBER = 3; private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 3; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } public static final int NEW_LIMIT_FIELD_NUMBER = 4; private long newLimit_ = 0L; /** * int64 new_limit = 4; * @return The newLimit. */ @java.lang.Override public long getNewLimit() { return newLimit_; } public static final int NEW_PUBLIC_LIMIT_FIELD_NUMBER = 5; private long newPublicLimit_ = 0L; /** * int64 new_public_limit = 5; * @return The newPublicLimit. */ @java.lang.Override public long getNewPublicLimit() { return newPublicLimit_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!description_.isEmpty()) { output.writeBytes(2, description_); } if (!url_.isEmpty()) { output.writeBytes(3, url_); } if (newLimit_ != 0L) { output.writeInt64(4, newLimit_); } if (newPublicLimit_ != 0L) { output.writeInt64(5, newPublicLimit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!description_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, description_); } if (!url_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, url_); } if (newLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, newLimit_); } if (newPublicLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, newPublicLimit_); } 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.Contract.UpdateAssetContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UpdateAssetContract other = (org.tron.trident.proto.Contract.UpdateAssetContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (getNewLimit() != other.getNewLimit()) return false; if (getNewPublicLimit() != other.getNewPublicLimit()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + NEW_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewLimit()); hash = (37 * hash) + NEW_PUBLIC_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewPublicLimit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UpdateAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateAssetContract 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.Contract.UpdateAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateAssetContract 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.Contract.UpdateAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UpdateAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateAssetContract 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.Contract.UpdateAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateAssetContract 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.Contract.UpdateAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateAssetContract 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.Contract.UpdateAssetContract 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.UpdateAssetContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UpdateAssetContract) org.tron.trident.proto.Contract.UpdateAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateAssetContract.class, org.tron.trident.proto.Contract.UpdateAssetContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UpdateAssetContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; description_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; newLimit_ = 0L; newPublicLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateAssetContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UpdateAssetContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UpdateAssetContract build() { org.tron.trident.proto.Contract.UpdateAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateAssetContract buildPartial() { org.tron.trident.proto.Contract.UpdateAssetContract result = new org.tron.trident.proto.Contract.UpdateAssetContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UpdateAssetContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.url_ = url_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.newLimit_ = newLimit_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.newPublicLimit_ = newPublicLimit_; } } @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.Contract.UpdateAssetContract) { return mergeFrom((org.tron.trident.proto.Contract.UpdateAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UpdateAssetContract other) { if (other == org.tron.trident.proto.Contract.UpdateAssetContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getDescription() != com.google.protobuf.ByteString.EMPTY) { setDescription(other.getDescription()); } if (other.getUrl() != com.google.protobuf.ByteString.EMPTY) { setUrl(other.getUrl()); } if (other.getNewLimit() != 0L) { setNewLimit(other.getNewLimit()); } if (other.getNewPublicLimit() != 0L) { setNewPublicLimit(other.getNewPublicLimit()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { url_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { newLimit_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { newPublicLimit_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString description_ = com.google.protobuf.ByteString.EMPTY; /** * bytes description = 2; * @return The description. */ @java.lang.Override public com.google.protobuf.ByteString getDescription() { return description_; } /** * bytes description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes description = 2; * @return This builder for chaining. */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 3; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } /** * bytes url = 3; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes url = 3; * @return This builder for chaining. */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000004); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } private long newLimit_ ; /** * int64 new_limit = 4; * @return The newLimit. */ @java.lang.Override public long getNewLimit() { return newLimit_; } /** * int64 new_limit = 4; * @param value The newLimit to set. * @return This builder for chaining. */ public Builder setNewLimit(long value) { newLimit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 new_limit = 4; * @return This builder for chaining. */ public Builder clearNewLimit() { bitField0_ = (bitField0_ & ~0x00000008); newLimit_ = 0L; onChanged(); return this; } private long newPublicLimit_ ; /** * int64 new_public_limit = 5; * @return The newPublicLimit. */ @java.lang.Override public long getNewPublicLimit() { return newPublicLimit_; } /** * int64 new_public_limit = 5; * @param value The newPublicLimit to set. * @return This builder for chaining. */ public Builder setNewPublicLimit(long value) { newPublicLimit_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 new_public_limit = 5; * @return This builder for chaining. */ public Builder clearNewPublicLimit() { bitField0_ = (bitField0_ & ~0x00000010); newPublicLimit_ = 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.UpdateAssetContract) } // @@protoc_insertion_point(class_scope:protocol.UpdateAssetContract) private static final org.tron.trident.proto.Contract.UpdateAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UpdateAssetContract(); } public static org.tron.trident.proto.Contract.UpdateAssetContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateAssetContract 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.Contract.UpdateAssetContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParticipateAssetIssueContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ParticipateAssetIssueContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes to_address = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** *
     * this field is token name before the proposal
     * 
* * bytes asset_name = 3; * @return The assetName. */ com.google.protobuf.ByteString getAssetName(); /** *
     * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
     * token id and token is should be in string format.
     * 
* * int64 amount = 4; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.ParticipateAssetIssueContract} */ public static final class ParticipateAssetIssueContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ParticipateAssetIssueContract) ParticipateAssetIssueContractOrBuilder { private static final long serialVersionUID = 0L; // Use ParticipateAssetIssueContract.newBuilder() to construct. private ParticipateAssetIssueContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParticipateAssetIssueContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetName_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParticipateAssetIssueContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ParticipateAssetIssueContract.class, org.tron.trident.proto.Contract.ParticipateAssetIssueContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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_; } public static final int ASSET_NAME_FIELD_NUMBER = 3; private com.google.protobuf.ByteString assetName_ = com.google.protobuf.ByteString.EMPTY; /** *
     * this field is token name before the proposal
     * 
* * bytes asset_name = 3; * @return The assetName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetName() { return assetName_; } public static final int AMOUNT_FIELD_NUMBER = 4; private long amount_ = 0L; /** *
     * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
     * token id and token is should be in string format.
     * 
* * int64 amount = 4; * @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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } if (!assetName_.isEmpty()) { output.writeBytes(3, assetName_); } if (amount_ != 0L) { output.writeInt64(4, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } if (!assetName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, assetName_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.Contract.ParticipateAssetIssueContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ParticipateAssetIssueContract other = (org.tron.trident.proto.Contract.ParticipateAssetIssueContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (!getAssetName() .equals(other.getAssetName())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (37 * hash) + ASSET_NAME_FIELD_NUMBER; hash = (53 * hash) + getAssetName().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.Contract.ParticipateAssetIssueContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract 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.ParticipateAssetIssueContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ParticipateAssetIssueContract) org.tron.trident.proto.Contract.ParticipateAssetIssueContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ParticipateAssetIssueContract.class, org.tron.trident.proto.Contract.ParticipateAssetIssueContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ParticipateAssetIssueContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetName_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ParticipateAssetIssueContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ParticipateAssetIssueContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ParticipateAssetIssueContract build() { org.tron.trident.proto.Contract.ParticipateAssetIssueContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ParticipateAssetIssueContract buildPartial() { org.tron.trident.proto.Contract.ParticipateAssetIssueContract result = new org.tron.trident.proto.Contract.ParticipateAssetIssueContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ParticipateAssetIssueContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.assetName_ = assetName_; } if (((from_bitField0_ & 0x00000008) != 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.Contract.ParticipateAssetIssueContract) { return mergeFrom((org.tron.trident.proto.Contract.ParticipateAssetIssueContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ParticipateAssetIssueContract other) { if (other == org.tron.trident.proto.Contract.ParticipateAssetIssueContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } if (other.getAssetName() != com.google.protobuf.ByteString.EMPTY) { setAssetName(other.getAssetName()); } 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 10: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { assetName_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { amount_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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; } private com.google.protobuf.ByteString assetName_ = com.google.protobuf.ByteString.EMPTY; /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 3; * @return The assetName. */ @java.lang.Override public com.google.protobuf.ByteString getAssetName() { return assetName_; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 3; * @param value The assetName to set. * @return This builder for chaining. */ public Builder setAssetName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } assetName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 3; * @return This builder for chaining. */ public Builder clearAssetName() { bitField0_ = (bitField0_ & ~0x00000004); assetName_ = getDefaultInstance().getAssetName(); onChanged(); return this; } private long amount_ ; /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * int64 amount = 4; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * ALLOW_SAME_TOKEN_NAME is active, otherwise it is
       * token id and token is should be in string format.
       * 
* * int64 amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); 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.ParticipateAssetIssueContract) } // @@protoc_insertion_point(class_scope:protocol.ParticipateAssetIssueContract) private static final org.tron.trident.proto.Contract.ParticipateAssetIssueContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ParticipateAssetIssueContract(); } public static org.tron.trident.proto.Contract.ParticipateAssetIssueContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParticipateAssetIssueContract 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.Contract.ParticipateAssetIssueContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FreezeBalanceContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.FreezeBalanceContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 frozen_balance = 2; * @return The frozenBalance. */ long getFrozenBalance(); /** * int64 frozen_duration = 3; * @return The frozenDuration. */ long getFrozenDuration(); /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 10; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); /** * bytes receiver_address = 15; * @return The receiverAddress. */ com.google.protobuf.ByteString getReceiverAddress(); } /** * Protobuf type {@code protocol.FreezeBalanceContract} */ public static final class FreezeBalanceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.FreezeBalanceContract) FreezeBalanceContractOrBuilder { private static final long serialVersionUID = 0L; // Use FreezeBalanceContract.newBuilder() to construct. private FreezeBalanceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FreezeBalanceContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FreezeBalanceContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.FreezeBalanceContract.class, org.tron.trident.proto.Contract.FreezeBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int FROZEN_BALANCE_FIELD_NUMBER = 2; private long frozenBalance_ = 0L; /** * int64 frozen_balance = 2; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } public static final int FROZEN_DURATION_FIELD_NUMBER = 3; private long frozenDuration_ = 0L; /** * int64 frozen_duration = 3; * @return The frozenDuration. */ @java.lang.Override public long getFrozenDuration() { return frozenDuration_; } public static final int RESOURCE_FIELD_NUMBER = 10; private int resource_ = 0; /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 15; private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 15; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (frozenBalance_ != 0L) { output.writeInt64(2, frozenBalance_); } if (frozenDuration_ != 0L) { output.writeInt64(3, frozenDuration_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(10, resource_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(15, receiverAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (frozenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, frozenBalance_); } if (frozenDuration_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, frozenDuration_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, resource_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, receiverAddress_); } 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.Contract.FreezeBalanceContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.FreezeBalanceContract other = (org.tron.trident.proto.Contract.FreezeBalanceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getFrozenBalance() != other.getFrozenBalance()) return false; if (getFrozenDuration() != other.getFrozenDuration()) return false; if (resource_ != other.resource_) return false; if (!getReceiverAddress() .equals(other.getReceiverAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + FROZEN_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalance()); hash = (37 * hash) + FROZEN_DURATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenDuration()); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getReceiverAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.FreezeBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceContract 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.Contract.FreezeBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceContract 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.Contract.FreezeBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.FreezeBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceContract 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.Contract.FreezeBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceContract 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.Contract.FreezeBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceContract 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.Contract.FreezeBalanceContract 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.FreezeBalanceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.FreezeBalanceContract) org.tron.trident.proto.Contract.FreezeBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.FreezeBalanceContract.class, org.tron.trident.proto.Contract.FreezeBalanceContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.FreezeBalanceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; frozenBalance_ = 0L; frozenDuration_ = 0L; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.FreezeBalanceContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceContract build() { org.tron.trident.proto.Contract.FreezeBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceContract buildPartial() { org.tron.trident.proto.Contract.FreezeBalanceContract result = new org.tron.trident.proto.Contract.FreezeBalanceContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.FreezeBalanceContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.frozenBalance_ = frozenBalance_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.frozenDuration_ = frozenDuration_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.receiverAddress_ = receiverAddress_; } } @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.Contract.FreezeBalanceContract) { return mergeFrom((org.tron.trident.proto.Contract.FreezeBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.FreezeBalanceContract other) { if (other == org.tron.trident.proto.Contract.FreezeBalanceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getFrozenBalance() != 0L) { setFrozenBalance(other.getFrozenBalance()); } if (other.getFrozenDuration() != 0L) { setFrozenDuration(other.getFrozenDuration()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } if (other.getReceiverAddress() != com.google.protobuf.ByteString.EMPTY) { setReceiverAddress(other.getReceiverAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { frozenBalance_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { frozenDuration_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 80: { resource_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 80 case 122: { receiverAddress_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 122 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long frozenBalance_ ; /** * int64 frozen_balance = 2; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } /** * int64 frozen_balance = 2; * @param value The frozenBalance to set. * @return This builder for chaining. */ public Builder setFrozenBalance(long value) { frozenBalance_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 frozen_balance = 2; * @return This builder for chaining. */ public Builder clearFrozenBalance() { bitField0_ = (bitField0_ & ~0x00000002); frozenBalance_ = 0L; onChanged(); return this; } private long frozenDuration_ ; /** * int64 frozen_duration = 3; * @return The frozenDuration. */ @java.lang.Override public long getFrozenDuration() { return frozenDuration_; } /** * int64 frozen_duration = 3; * @param value The frozenDuration to set. * @return This builder for chaining. */ public Builder setFrozenDuration(long value) { frozenDuration_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 frozen_duration = 3; * @return This builder for chaining. */ public Builder clearFrozenDuration() { bitField0_ = (bitField0_ & ~0x00000004); frozenDuration_ = 0L; onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 10; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 10; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000008); resource_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 15; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } /** * bytes receiver_address = 15; * @param value The receiverAddress to set. * @return This builder for chaining. */ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } receiverAddress_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes receiver_address = 15; * @return This builder for chaining. */ public Builder clearReceiverAddress() { bitField0_ = (bitField0_ & ~0x00000010); receiverAddress_ = getDefaultInstance().getReceiverAddress(); 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.FreezeBalanceContract) } // @@protoc_insertion_point(class_scope:protocol.FreezeBalanceContract) private static final org.tron.trident.proto.Contract.FreezeBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.FreezeBalanceContract(); } public static org.tron.trident.proto.Contract.FreezeBalanceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FreezeBalanceContract 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.Contract.FreezeBalanceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnfreezeBalanceContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UnfreezeBalanceContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 10; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); /** * bytes receiver_address = 15; * @return The receiverAddress. */ com.google.protobuf.ByteString getReceiverAddress(); } /** * Protobuf type {@code protocol.UnfreezeBalanceContract} */ public static final class UnfreezeBalanceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UnfreezeBalanceContract) UnfreezeBalanceContractOrBuilder { private static final long serialVersionUID = 0L; // Use UnfreezeBalanceContract.newBuilder() to construct. private UnfreezeBalanceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnfreezeBalanceContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnfreezeBalanceContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeBalanceContract.class, org.tron.trident.proto.Contract.UnfreezeBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int RESOURCE_FIELD_NUMBER = 10; private int resource_ = 0; /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 15; private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 15; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(10, resource_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(15, receiverAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, resource_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, receiverAddress_); } 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.Contract.UnfreezeBalanceContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UnfreezeBalanceContract other = (org.tron.trident.proto.Contract.UnfreezeBalanceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (resource_ != other.resource_) return false; if (!getReceiverAddress() .equals(other.getReceiverAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getReceiverAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract 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.UnfreezeBalanceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UnfreezeBalanceContract) org.tron.trident.proto.Contract.UnfreezeBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeBalanceContract.class, org.tron.trident.proto.Contract.UnfreezeBalanceContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UnfreezeBalanceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UnfreezeBalanceContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceContract build() { org.tron.trident.proto.Contract.UnfreezeBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceContract buildPartial() { org.tron.trident.proto.Contract.UnfreezeBalanceContract result = new org.tron.trident.proto.Contract.UnfreezeBalanceContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UnfreezeBalanceContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.receiverAddress_ = receiverAddress_; } } @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.Contract.UnfreezeBalanceContract) { return mergeFrom((org.tron.trident.proto.Contract.UnfreezeBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UnfreezeBalanceContract other) { if (other == org.tron.trident.proto.Contract.UnfreezeBalanceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } if (other.getReceiverAddress() != com.google.protobuf.ByteString.EMPTY) { setReceiverAddress(other.getReceiverAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 80: { resource_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 80 case 122: { receiverAddress_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 122 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 10; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 10; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 10; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); resource_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 15; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } /** * bytes receiver_address = 15; * @param value The receiverAddress to set. * @return This builder for chaining. */ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } receiverAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes receiver_address = 15; * @return This builder for chaining. */ public Builder clearReceiverAddress() { bitField0_ = (bitField0_ & ~0x00000004); receiverAddress_ = getDefaultInstance().getReceiverAddress(); 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.UnfreezeBalanceContract) } // @@protoc_insertion_point(class_scope:protocol.UnfreezeBalanceContract) private static final org.tron.trident.proto.Contract.UnfreezeBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UnfreezeBalanceContract(); } public static org.tron.trident.proto.Contract.UnfreezeBalanceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnfreezeBalanceContract 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.Contract.UnfreezeBalanceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WithdrawBalanceContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WithdrawBalanceContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.WithdrawBalanceContract} */ public static final class WithdrawBalanceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WithdrawBalanceContract) WithdrawBalanceContractOrBuilder { private static final long serialVersionUID = 0L; // Use WithdrawBalanceContract.newBuilder() to construct. private WithdrawBalanceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WithdrawBalanceContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WithdrawBalanceContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WithdrawBalanceContract.class, org.tron.trident.proto.Contract.WithdrawBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } 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.Contract.WithdrawBalanceContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.WithdrawBalanceContract other = (org.tron.trident.proto.Contract.WithdrawBalanceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.WithdrawBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract 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.Contract.WithdrawBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract 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.Contract.WithdrawBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract 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.Contract.WithdrawBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract 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.Contract.WithdrawBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract 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.Contract.WithdrawBalanceContract 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.WithdrawBalanceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WithdrawBalanceContract) org.tron.trident.proto.Contract.WithdrawBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WithdrawBalanceContract.class, org.tron.trident.proto.Contract.WithdrawBalanceContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.WithdrawBalanceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawBalanceContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.WithdrawBalanceContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawBalanceContract build() { org.tron.trident.proto.Contract.WithdrawBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawBalanceContract buildPartial() { org.tron.trident.proto.Contract.WithdrawBalanceContract result = new org.tron.trident.proto.Contract.WithdrawBalanceContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.WithdrawBalanceContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.WithdrawBalanceContract) { return mergeFrom((org.tron.trident.proto.Contract.WithdrawBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.WithdrawBalanceContract other) { if (other == org.tron.trident.proto.Contract.WithdrawBalanceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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.WithdrawBalanceContract) } // @@protoc_insertion_point(class_scope:protocol.WithdrawBalanceContract) private static final org.tron.trident.proto.Contract.WithdrawBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.WithdrawBalanceContract(); } public static org.tron.trident.proto.Contract.WithdrawBalanceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WithdrawBalanceContract 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.Contract.WithdrawBalanceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransferContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes to_address = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * int64 amount = 3; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.TransferContract} */ public static final class TransferContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransferContract) TransferContractOrBuilder { private static final long serialVersionUID = 0L; // Use TransferContract.newBuilder() to construct. private TransferContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferContract() { ownerAddress_ = 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 TransferContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TransferContract.class, org.tron.trident.proto.Contract.TransferContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } 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 (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } 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.Contract.TransferContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.TransferContract other = (org.tron.trident.proto.Contract.TransferContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getToAddress() .equals(other.getToAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().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.Contract.TransferContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferContract 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.Contract.TransferContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferContract 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.Contract.TransferContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TransferContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.TransferContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferContract 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.Contract.TransferContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferContract 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.Contract.TransferContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TransferContract 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.Contract.TransferContract 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.TransferContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransferContract) org.tron.trident.proto.Contract.TransferContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TransferContract.class, org.tron.trident.proto.Contract.TransferContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.TransferContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.TransferContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.TransferContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.TransferContract build() { org.tron.trident.proto.Contract.TransferContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.TransferContract buildPartial() { org.tron.trident.proto.Contract.TransferContract result = new org.tron.trident.proto.Contract.TransferContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.TransferContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } 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.Contract.TransferContract) { return mergeFrom((org.tron.trident.proto.Contract.TransferContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.TransferContract other) { if (other == org.tron.trident.proto.Contract.TransferContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } 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 10: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = 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 com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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; } 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.TransferContract) } // @@protoc_insertion_point(class_scope:protocol.TransferContract) private static final org.tron.trident.proto.Contract.TransferContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.TransferContract(); } public static org.tron.trident.proto.Contract.TransferContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransferContract 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.Contract.TransferContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketSellAssetContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketSellAssetContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes sell_token_id = 2; * @return The sellTokenId. */ com.google.protobuf.ByteString getSellTokenId(); /** * int64 sell_token_quantity = 3; * @return The sellTokenQuantity. */ long getSellTokenQuantity(); /** * bytes buy_token_id = 4; * @return The buyTokenId. */ com.google.protobuf.ByteString getBuyTokenId(); /** *
     * min to receive
     * 
* * int64 buy_token_quantity = 5; * @return The buyTokenQuantity. */ long getBuyTokenQuantity(); /** *
     * order price position
     * 
* * bytes pre_price_key = 6; * @return The prePriceKey. */ com.google.protobuf.ByteString getPrePriceKey(); } /** * Protobuf type {@code protocol.MarketSellAssetContract} */ public static final class MarketSellAssetContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketSellAssetContract) MarketSellAssetContractOrBuilder { private static final long serialVersionUID = 0L; // Use MarketSellAssetContract.newBuilder() to construct. private MarketSellAssetContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketSellAssetContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; sellTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; prePriceKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketSellAssetContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketSellAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.MarketSellAssetContract.class, org.tron.trident.proto.Contract.MarketSellAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int SELL_TOKEN_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString sellTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sell_token_id = 2; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } public static final int SELL_TOKEN_QUANTITY_FIELD_NUMBER = 3; private long sellTokenQuantity_ = 0L; /** * int64 sell_token_quantity = 3; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } public static final int BUY_TOKEN_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 4; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } public static final int BUY_TOKEN_QUANTITY_FIELD_NUMBER = 5; private long buyTokenQuantity_ = 0L; /** *
     * min to receive
     * 
* * int64 buy_token_quantity = 5; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } public static final int PRE_PRICE_KEY_FIELD_NUMBER = 6; private com.google.protobuf.ByteString prePriceKey_ = com.google.protobuf.ByteString.EMPTY; /** *
     * order price position
     * 
* * bytes pre_price_key = 6; * @return The prePriceKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrePriceKey() { return prePriceKey_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!sellTokenId_.isEmpty()) { output.writeBytes(2, sellTokenId_); } if (sellTokenQuantity_ != 0L) { output.writeInt64(3, sellTokenQuantity_); } if (!buyTokenId_.isEmpty()) { output.writeBytes(4, buyTokenId_); } if (buyTokenQuantity_ != 0L) { output.writeInt64(5, buyTokenQuantity_); } if (!prePriceKey_.isEmpty()) { output.writeBytes(6, prePriceKey_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!sellTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, sellTokenId_); } if (sellTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, sellTokenQuantity_); } if (!buyTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, buyTokenId_); } if (buyTokenQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, buyTokenQuantity_); } if (!prePriceKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, prePriceKey_); } 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.Contract.MarketSellAssetContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.MarketSellAssetContract other = (org.tron.trident.proto.Contract.MarketSellAssetContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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 (!getPrePriceKey() .equals(other.getPrePriceKey())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); 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) + PRE_PRICE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPrePriceKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.MarketSellAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketSellAssetContract 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.Contract.MarketSellAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketSellAssetContract 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.Contract.MarketSellAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketSellAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.MarketSellAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketSellAssetContract 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.Contract.MarketSellAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketSellAssetContract 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.Contract.MarketSellAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketSellAssetContract 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.Contract.MarketSellAssetContract 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.MarketSellAssetContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketSellAssetContract) org.tron.trident.proto.Contract.MarketSellAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketSellAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.MarketSellAssetContract.class, org.tron.trident.proto.Contract.MarketSellAssetContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.MarketSellAssetContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; sellTokenId_ = com.google.protobuf.ByteString.EMPTY; sellTokenQuantity_ = 0L; buyTokenId_ = com.google.protobuf.ByteString.EMPTY; buyTokenQuantity_ = 0L; prePriceKey_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.MarketSellAssetContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.MarketSellAssetContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.MarketSellAssetContract build() { org.tron.trident.proto.Contract.MarketSellAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.MarketSellAssetContract buildPartial() { org.tron.trident.proto.Contract.MarketSellAssetContract result = new org.tron.trident.proto.Contract.MarketSellAssetContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.MarketSellAssetContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sellTokenId_ = sellTokenId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sellTokenQuantity_ = sellTokenQuantity_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.buyTokenId_ = buyTokenId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.buyTokenQuantity_ = buyTokenQuantity_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.prePriceKey_ = prePriceKey_; } } @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.Contract.MarketSellAssetContract) { return mergeFrom((org.tron.trident.proto.Contract.MarketSellAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.MarketSellAssetContract other) { if (other == org.tron.trident.proto.Contract.MarketSellAssetContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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.getPrePriceKey() != com.google.protobuf.ByteString.EMPTY) { setPrePriceKey(other.getPrePriceKey()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { sellTokenId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { sellTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { buyTokenId_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { buyTokenQuantity_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { prePriceKey_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString sellTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sell_token_id = 2; * @return The sellTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSellTokenId() { return sellTokenId_; } /** * bytes sell_token_id = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes sell_token_id = 2; * @return This builder for chaining. */ public Builder clearSellTokenId() { bitField0_ = (bitField0_ & ~0x00000002); sellTokenId_ = getDefaultInstance().getSellTokenId(); onChanged(); return this; } private long sellTokenQuantity_ ; /** * int64 sell_token_quantity = 3; * @return The sellTokenQuantity. */ @java.lang.Override public long getSellTokenQuantity() { return sellTokenQuantity_; } /** * int64 sell_token_quantity = 3; * @param value The sellTokenQuantity to set. * @return This builder for chaining. */ public Builder setSellTokenQuantity(long value) { sellTokenQuantity_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 sell_token_quantity = 3; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000004); sellTokenQuantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 4; * @return The buyTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyTokenId() { return buyTokenId_; } /** * bytes buy_token_id = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** * bytes buy_token_id = 4; * @return This builder for chaining. */ public Builder clearBuyTokenId() { bitField0_ = (bitField0_ & ~0x00000008); buyTokenId_ = getDefaultInstance().getBuyTokenId(); onChanged(); return this; } private long buyTokenQuantity_ ; /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 5; * @return The buyTokenQuantity. */ @java.lang.Override public long getBuyTokenQuantity() { return buyTokenQuantity_; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 5; * @param value The buyTokenQuantity to set. * @return This builder for chaining. */ public Builder setBuyTokenQuantity(long value) { buyTokenQuantity_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 5; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { bitField0_ = (bitField0_ & ~0x00000010); buyTokenQuantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString prePriceKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * order price position
       * 
* * bytes pre_price_key = 6; * @return The prePriceKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrePriceKey() { return prePriceKey_; } /** *
       * order price position
       * 
* * bytes pre_price_key = 6; * @param value The prePriceKey to set. * @return This builder for chaining. */ public Builder setPrePriceKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } prePriceKey_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * order price position
       * 
* * bytes pre_price_key = 6; * @return This builder for chaining. */ public Builder clearPrePriceKey() { bitField0_ = (bitField0_ & ~0x00000020); prePriceKey_ = getDefaultInstance().getPrePriceKey(); 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.MarketSellAssetContract) } // @@protoc_insertion_point(class_scope:protocol.MarketSellAssetContract) private static final org.tron.trident.proto.Contract.MarketSellAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.MarketSellAssetContract(); } public static org.tron.trident.proto.Contract.MarketSellAssetContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketSellAssetContract 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.Contract.MarketSellAssetContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketCancelOrderContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.MarketCancelOrderContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes order_id = 2; * @return The orderId. */ com.google.protobuf.ByteString getOrderId(); } /** * Protobuf type {@code protocol.MarketCancelOrderContract} */ public static final class MarketCancelOrderContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.MarketCancelOrderContract) MarketCancelOrderContractOrBuilder { private static final long serialVersionUID = 0L; // Use MarketCancelOrderContract.newBuilder() to construct. private MarketCancelOrderContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketCancelOrderContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; orderId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketCancelOrderContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.MarketCancelOrderContract.class, org.tron.trident.proto.Contract.MarketCancelOrderContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int ORDER_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes order_id = 2; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!orderId_.isEmpty()) { output.writeBytes(2, orderId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!orderId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, orderId_); } 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.Contract.MarketCancelOrderContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.MarketCancelOrderContract other = (org.tron.trident.proto.Contract.MarketCancelOrderContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getOrderId() .equals(other.getOrderId())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; hash = (53 * hash) + getOrderId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.MarketCancelOrderContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract 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.Contract.MarketCancelOrderContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract 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.Contract.MarketCancelOrderContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract 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.Contract.MarketCancelOrderContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract 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.Contract.MarketCancelOrderContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract 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.Contract.MarketCancelOrderContract 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.MarketCancelOrderContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.MarketCancelOrderContract) org.tron.trident.proto.Contract.MarketCancelOrderContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.MarketCancelOrderContract.class, org.tron.trident.proto.Contract.MarketCancelOrderContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.MarketCancelOrderContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; orderId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.MarketCancelOrderContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.MarketCancelOrderContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.MarketCancelOrderContract build() { org.tron.trident.proto.Contract.MarketCancelOrderContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.MarketCancelOrderContract buildPartial() { org.tron.trident.proto.Contract.MarketCancelOrderContract result = new org.tron.trident.proto.Contract.MarketCancelOrderContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.MarketCancelOrderContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.orderId_ = orderId_; } } @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.Contract.MarketCancelOrderContract) { return mergeFrom((org.tron.trident.proto.Contract.MarketCancelOrderContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.MarketCancelOrderContract other) { if (other == org.tron.trident.proto.Contract.MarketCancelOrderContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getOrderId() != com.google.protobuf.ByteString.EMPTY) { setOrderId(other.getOrderId()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { orderId_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes order_id = 2; * @return The orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderId() { return orderId_; } /** * bytes order_id = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes order_id = 2; * @return This builder for chaining. */ public Builder clearOrderId() { bitField0_ = (bitField0_ & ~0x00000002); orderId_ = getDefaultInstance().getOrderId(); 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.MarketCancelOrderContract) } // @@protoc_insertion_point(class_scope:protocol.MarketCancelOrderContract) private static final org.tron.trident.proto.Contract.MarketCancelOrderContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.MarketCancelOrderContract(); } public static org.tron.trident.proto.Contract.MarketCancelOrderContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketCancelOrderContract 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.Contract.MarketCancelOrderContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalApproveContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ProposalApproveContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 proposal_id = 2; * @return The proposalId. */ long getProposalId(); /** *
     * add or remove approval
     * 
* * bool is_add_approval = 3; * @return The isAddApproval. */ boolean getIsAddApproval(); } /** * Protobuf type {@code protocol.ProposalApproveContract} */ public static final class ProposalApproveContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ProposalApproveContract) ProposalApproveContractOrBuilder { private static final long serialVersionUID = 0L; // Use ProposalApproveContract.newBuilder() to construct. private ProposalApproveContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalApproveContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProposalApproveContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalApproveContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalApproveContract.class, org.tron.trident.proto.Contract.ProposalApproveContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int PROPOSAL_ID_FIELD_NUMBER = 2; private long proposalId_ = 0L; /** * int64 proposal_id = 2; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } public static final int IS_ADD_APPROVAL_FIELD_NUMBER = 3; private boolean isAddApproval_ = false; /** *
     * add or remove approval
     * 
* * bool is_add_approval = 3; * @return The isAddApproval. */ @java.lang.Override public boolean getIsAddApproval() { return isAddApproval_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (proposalId_ != 0L) { output.writeInt64(2, proposalId_); } if (isAddApproval_ != false) { output.writeBool(3, isAddApproval_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (proposalId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, proposalId_); } if (isAddApproval_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isAddApproval_); } 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.Contract.ProposalApproveContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ProposalApproveContract other = (org.tron.trident.proto.Contract.ProposalApproveContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getProposalId() != other.getProposalId()) return false; if (getIsAddApproval() != other.getIsAddApproval()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProposalId()); hash = (37 * hash) + IS_ADD_APPROVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsAddApproval()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ProposalApproveContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalApproveContract 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.Contract.ProposalApproveContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalApproveContract 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.Contract.ProposalApproveContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalApproveContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ProposalApproveContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalApproveContract 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.Contract.ProposalApproveContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalApproveContract 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.Contract.ProposalApproveContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalApproveContract 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.Contract.ProposalApproveContract 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.ProposalApproveContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ProposalApproveContract) org.tron.trident.proto.Contract.ProposalApproveContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalApproveContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalApproveContract.class, org.tron.trident.proto.Contract.ProposalApproveContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ProposalApproveContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; proposalId_ = 0L; isAddApproval_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalApproveContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ProposalApproveContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ProposalApproveContract build() { org.tron.trident.proto.Contract.ProposalApproveContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalApproveContract buildPartial() { org.tron.trident.proto.Contract.ProposalApproveContract result = new org.tron.trident.proto.Contract.ProposalApproveContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ProposalApproveContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.proposalId_ = proposalId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isAddApproval_ = isAddApproval_; } } @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.Contract.ProposalApproveContract) { return mergeFrom((org.tron.trident.proto.Contract.ProposalApproveContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ProposalApproveContract other) { if (other == org.tron.trident.proto.Contract.ProposalApproveContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getProposalId() != 0L) { setProposalId(other.getProposalId()); } if (other.getIsAddApproval() != false) { setIsAddApproval(other.getIsAddApproval()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { proposalId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { isAddApproval_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long proposalId_ ; /** * int64 proposal_id = 2; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } /** * int64 proposal_id = 2; * @param value The proposalId to set. * @return This builder for chaining. */ public Builder setProposalId(long value) { proposalId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 proposal_id = 2; * @return This builder for chaining. */ public Builder clearProposalId() { bitField0_ = (bitField0_ & ~0x00000002); proposalId_ = 0L; onChanged(); return this; } private boolean isAddApproval_ ; /** *
       * add or remove approval
       * 
* * bool is_add_approval = 3; * @return The isAddApproval. */ @java.lang.Override public boolean getIsAddApproval() { return isAddApproval_; } /** *
       * add or remove approval
       * 
* * bool is_add_approval = 3; * @param value The isAddApproval to set. * @return This builder for chaining. */ public Builder setIsAddApproval(boolean value) { isAddApproval_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * add or remove approval
       * 
* * bool is_add_approval = 3; * @return This builder for chaining. */ public Builder clearIsAddApproval() { bitField0_ = (bitField0_ & ~0x00000004); isAddApproval_ = 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.ProposalApproveContract) } // @@protoc_insertion_point(class_scope:protocol.ProposalApproveContract) private static final org.tron.trident.proto.Contract.ProposalApproveContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ProposalApproveContract(); } public static org.tron.trident.proto.Contract.ProposalApproveContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProposalApproveContract 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.Contract.ProposalApproveContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalCreateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ProposalCreateContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * map<int64, int64> parameters = 2; */ int getParametersCount(); /** * map<int64, int64> parameters = 2; */ boolean containsParameters( long key); /** * Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map getParameters(); /** * map<int64, int64> parameters = 2; */ java.util.Map getParametersMap(); /** * map<int64, int64> parameters = 2; */ long getParametersOrDefault( long key, long defaultValue); /** * map<int64, int64> parameters = 2; */ long getParametersOrThrow( long key); } /** * Protobuf type {@code protocol.ProposalCreateContract} */ public static final class ProposalCreateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ProposalCreateContract) ProposalCreateContractOrBuilder { private static final long serialVersionUID = 0L; // Use ProposalCreateContract.newBuilder() to construct. private ProposalCreateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalCreateContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProposalCreateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: 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.Contract.internal_static_protocol_ProposalCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalCreateContract.class, org.tron.trident.proto.Contract.ProposalCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int PARAMETERS_FIELD_NUMBER = 2; 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.Contract.internal_static_protocol_ProposalCreateContract_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 = 2; */ @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 = 2; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * map<int64, int64> parameters = 2; */ @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 = 2; */ @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); } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } 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(2, parameters__); } 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.Contract.ProposalCreateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ProposalCreateContract other = (org.tron.trident.proto.Contract.ProposalCreateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!internalGetParameters().equals( other.internalGetParameters())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (!internalGetParameters().getMap().isEmpty()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ProposalCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalCreateContract 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.Contract.ProposalCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalCreateContract 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.Contract.ProposalCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ProposalCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalCreateContract 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.Contract.ProposalCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalCreateContract 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.Contract.ProposalCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalCreateContract 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.Contract.ProposalCreateContract 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.ProposalCreateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ProposalCreateContract) org.tron.trident.proto.Contract.ProposalCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: 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.Contract.internal_static_protocol_ProposalCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalCreateContract.class, org.tron.trident.proto.Contract.ProposalCreateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ProposalCreateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableParameters().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalCreateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ProposalCreateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ProposalCreateContract build() { org.tron.trident.proto.Contract.ProposalCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalCreateContract buildPartial() { org.tron.trident.proto.Contract.ProposalCreateContract result = new org.tron.trident.proto.Contract.ProposalCreateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ProposalCreateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); } } @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.Contract.ProposalCreateContract) { return mergeFrom((org.tron.trident.proto.Contract.ProposalCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ProposalCreateContract other) { if (other == org.tron.trident.proto.Contract.ProposalCreateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } internalGetMutableParameters().mergeFrom( other.internalGetParameters()); bitField0_ |= 0x00000002; 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParameters().getMutableMap().put( parameters__.getKey(), parameters__.getValue()); 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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_ |= 0x00000002; onChanged(); return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * map<int64, int64> parameters = 2; */ @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 = 2; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * map<int64, int64> parameters = 2; */ @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 = 2; */ @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_ & ~0x00000002); internalGetMutableParameters().getMutableMap() .clear(); return this; } /** * map<int64, int64> parameters = 2; */ 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_ |= 0x00000002; return internalGetMutableParameters().getMutableMap(); } /** * map<int64, int64> parameters = 2; */ public Builder putParameters( long key, long value) { internalGetMutableParameters().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<int64, int64> parameters = 2; */ public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; 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.ProposalCreateContract) } // @@protoc_insertion_point(class_scope:protocol.ProposalCreateContract) private static final org.tron.trident.proto.Contract.ProposalCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ProposalCreateContract(); } public static org.tron.trident.proto.Contract.ProposalCreateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProposalCreateContract 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.Contract.ProposalCreateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalDeleteContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ProposalDeleteContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 proposal_id = 2; * @return The proposalId. */ long getProposalId(); } /** * Protobuf type {@code protocol.ProposalDeleteContract} */ public static final class ProposalDeleteContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ProposalDeleteContract) ProposalDeleteContractOrBuilder { private static final long serialVersionUID = 0L; // Use ProposalDeleteContract.newBuilder() to construct. private ProposalDeleteContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalDeleteContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProposalDeleteContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalDeleteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalDeleteContract.class, org.tron.trident.proto.Contract.ProposalDeleteContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int PROPOSAL_ID_FIELD_NUMBER = 2; private long proposalId_ = 0L; /** * int64 proposal_id = 2; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (proposalId_ != 0L) { output.writeInt64(2, proposalId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (proposalId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, proposalId_); } 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.Contract.ProposalDeleteContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ProposalDeleteContract other = (org.tron.trident.proto.Contract.ProposalDeleteContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getProposalId() != other.getProposalId()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + PROPOSAL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProposalId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ProposalDeleteContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalDeleteContract 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.Contract.ProposalDeleteContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalDeleteContract 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.Contract.ProposalDeleteContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ProposalDeleteContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ProposalDeleteContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalDeleteContract 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.Contract.ProposalDeleteContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalDeleteContract 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.Contract.ProposalDeleteContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ProposalDeleteContract 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.Contract.ProposalDeleteContract 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.ProposalDeleteContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ProposalDeleteContract) org.tron.trident.proto.Contract.ProposalDeleteContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalDeleteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ProposalDeleteContract.class, org.tron.trident.proto.Contract.ProposalDeleteContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ProposalDeleteContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; proposalId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalDeleteContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ProposalDeleteContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ProposalDeleteContract build() { org.tron.trident.proto.Contract.ProposalDeleteContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ProposalDeleteContract buildPartial() { org.tron.trident.proto.Contract.ProposalDeleteContract result = new org.tron.trident.proto.Contract.ProposalDeleteContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ProposalDeleteContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.proposalId_ = proposalId_; } } @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.Contract.ProposalDeleteContract) { return mergeFrom((org.tron.trident.proto.Contract.ProposalDeleteContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ProposalDeleteContract other) { if (other == org.tron.trident.proto.Contract.ProposalDeleteContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getProposalId() != 0L) { setProposalId(other.getProposalId()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { proposalId_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long proposalId_ ; /** * int64 proposal_id = 2; * @return The proposalId. */ @java.lang.Override public long getProposalId() { return proposalId_; } /** * int64 proposal_id = 2; * @param value The proposalId to set. * @return This builder for chaining. */ public Builder setProposalId(long value) { proposalId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 proposal_id = 2; * @return This builder for chaining. */ public Builder clearProposalId() { bitField0_ = (bitField0_ & ~0x00000002); proposalId_ = 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.ProposalDeleteContract) } // @@protoc_insertion_point(class_scope:protocol.ProposalDeleteContract) private static final org.tron.trident.proto.Contract.ProposalDeleteContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ProposalDeleteContract(); } public static org.tron.trident.proto.Contract.ProposalDeleteContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProposalDeleteContract 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.Contract.ProposalDeleteContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateSmartContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CreateSmartContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * .protocol.SmartContract new_contract = 2; * @return Whether the newContract field is set. */ boolean hasNewContract(); /** * .protocol.SmartContract new_contract = 2; * @return The newContract. */ org.tron.trident.proto.Common.SmartContract getNewContract(); /** * .protocol.SmartContract new_contract = 2; */ org.tron.trident.proto.Common.SmartContractOrBuilder getNewContractOrBuilder(); /** * int64 call_token_value = 3; * @return The callTokenValue. */ long getCallTokenValue(); /** * int64 token_id = 4; * @return The tokenId. */ long getTokenId(); } /** * Protobuf type {@code protocol.CreateSmartContract} */ public static final class CreateSmartContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CreateSmartContract) CreateSmartContractOrBuilder { private static final long serialVersionUID = 0L; // Use CreateSmartContract.newBuilder() to construct. private CreateSmartContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateSmartContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateSmartContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_CreateSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.CreateSmartContract.class, org.tron.trident.proto.Contract.CreateSmartContract.Builder.class); } private int bitField0_; public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int NEW_CONTRACT_FIELD_NUMBER = 2; private org.tron.trident.proto.Common.SmartContract newContract_; /** * .protocol.SmartContract new_contract = 2; * @return Whether the newContract field is set. */ @java.lang.Override public boolean hasNewContract() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.SmartContract new_contract = 2; * @return The newContract. */ @java.lang.Override public org.tron.trident.proto.Common.SmartContract getNewContract() { return newContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : newContract_; } /** * .protocol.SmartContract new_contract = 2; */ @java.lang.Override public org.tron.trident.proto.Common.SmartContractOrBuilder getNewContractOrBuilder() { return newContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : newContract_; } public static final int CALL_TOKEN_VALUE_FIELD_NUMBER = 3; private long callTokenValue_ = 0L; /** * int64 call_token_value = 3; * @return The callTokenValue. */ @java.lang.Override public long getCallTokenValue() { return callTokenValue_; } public static final int TOKEN_ID_FIELD_NUMBER = 4; private long tokenId_ = 0L; /** * int64 token_id = 4; * @return The tokenId. */ @java.lang.Override public long getTokenId() { return tokenId_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNewContract()); } if (callTokenValue_ != 0L) { output.writeInt64(3, callTokenValue_); } if (tokenId_ != 0L) { output.writeInt64(4, tokenId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNewContract()); } if (callTokenValue_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, callTokenValue_); } if (tokenId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, 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.Contract.CreateSmartContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.CreateSmartContract other = (org.tron.trident.proto.Contract.CreateSmartContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (hasNewContract() != other.hasNewContract()) return false; if (hasNewContract()) { if (!getNewContract() .equals(other.getNewContract())) return false; } if (getCallTokenValue() != other.getCallTokenValue()) return false; if (getTokenId() != 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (hasNewContract()) { hash = (37 * hash) + NEW_CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getNewContract().hashCode(); } hash = (37 * hash) + CALL_TOKEN_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallTokenValue()); hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTokenId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.CreateSmartContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CreateSmartContract 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.Contract.CreateSmartContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CreateSmartContract 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.Contract.CreateSmartContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CreateSmartContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.CreateSmartContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CreateSmartContract 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.Contract.CreateSmartContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CreateSmartContract 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.Contract.CreateSmartContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CreateSmartContract 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.Contract.CreateSmartContract 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.CreateSmartContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CreateSmartContract) org.tron.trident.proto.Contract.CreateSmartContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_CreateSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.CreateSmartContract.class, org.tron.trident.proto.Contract.CreateSmartContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.CreateSmartContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNewContractFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; newContract_ = null; if (newContractBuilder_ != null) { newContractBuilder_.dispose(); newContractBuilder_ = null; } callTokenValue_ = 0L; tokenId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.CreateSmartContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.CreateSmartContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.CreateSmartContract build() { org.tron.trident.proto.Contract.CreateSmartContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.CreateSmartContract buildPartial() { org.tron.trident.proto.Contract.CreateSmartContract result = new org.tron.trident.proto.Contract.CreateSmartContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.CreateSmartContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.newContract_ = newContractBuilder_ == null ? newContract_ : newContractBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.callTokenValue_ = callTokenValue_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.tokenId_ = tokenId_; } 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.Contract.CreateSmartContract) { return mergeFrom((org.tron.trident.proto.Contract.CreateSmartContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.CreateSmartContract other) { if (other == org.tron.trident.proto.Contract.CreateSmartContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.hasNewContract()) { mergeNewContract(other.getNewContract()); } if (other.getCallTokenValue() != 0L) { setCallTokenValue(other.getCallTokenValue()); } if (other.getTokenId() != 0L) { setTokenId(other.getTokenId()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNewContractFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { callTokenValue_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { tokenId_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private org.tron.trident.proto.Common.SmartContract newContract_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder> newContractBuilder_; /** * .protocol.SmartContract new_contract = 2; * @return Whether the newContract field is set. */ public boolean hasNewContract() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.SmartContract new_contract = 2; * @return The newContract. */ public org.tron.trident.proto.Common.SmartContract getNewContract() { if (newContractBuilder_ == null) { return newContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : newContract_; } else { return newContractBuilder_.getMessage(); } } /** * .protocol.SmartContract new_contract = 2; */ public Builder setNewContract(org.tron.trident.proto.Common.SmartContract value) { if (newContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newContract_ = value; } else { newContractBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.SmartContract new_contract = 2; */ public Builder setNewContract( org.tron.trident.proto.Common.SmartContract.Builder builderForValue) { if (newContractBuilder_ == null) { newContract_ = builderForValue.build(); } else { newContractBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.SmartContract new_contract = 2; */ public Builder mergeNewContract(org.tron.trident.proto.Common.SmartContract value) { if (newContractBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && newContract_ != null && newContract_ != org.tron.trident.proto.Common.SmartContract.getDefaultInstance()) { getNewContractBuilder().mergeFrom(value); } else { newContract_ = value; } } else { newContractBuilder_.mergeFrom(value); } if (newContract_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .protocol.SmartContract new_contract = 2; */ public Builder clearNewContract() { bitField0_ = (bitField0_ & ~0x00000002); newContract_ = null; if (newContractBuilder_ != null) { newContractBuilder_.dispose(); newContractBuilder_ = null; } onChanged(); return this; } /** * .protocol.SmartContract new_contract = 2; */ public org.tron.trident.proto.Common.SmartContract.Builder getNewContractBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNewContractFieldBuilder().getBuilder(); } /** * .protocol.SmartContract new_contract = 2; */ public org.tron.trident.proto.Common.SmartContractOrBuilder getNewContractOrBuilder() { if (newContractBuilder_ != null) { return newContractBuilder_.getMessageOrBuilder(); } else { return newContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : newContract_; } } /** * .protocol.SmartContract new_contract = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder> getNewContractFieldBuilder() { if (newContractBuilder_ == null) { newContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder>( getNewContract(), getParentForChildren(), isClean()); newContract_ = null; } return newContractBuilder_; } private long callTokenValue_ ; /** * int64 call_token_value = 3; * @return The callTokenValue. */ @java.lang.Override public long getCallTokenValue() { return callTokenValue_; } /** * int64 call_token_value = 3; * @param value The callTokenValue to set. * @return This builder for chaining. */ public Builder setCallTokenValue(long value) { callTokenValue_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 call_token_value = 3; * @return This builder for chaining. */ public Builder clearCallTokenValue() { bitField0_ = (bitField0_ & ~0x00000004); callTokenValue_ = 0L; onChanged(); return this; } private long tokenId_ ; /** * int64 token_id = 4; * @return The tokenId. */ @java.lang.Override public long getTokenId() { return tokenId_; } /** * int64 token_id = 4; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId(long value) { tokenId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 token_id = 4; * @return This builder for chaining. */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000008); tokenId_ = 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.CreateSmartContract) } // @@protoc_insertion_point(class_scope:protocol.CreateSmartContract) private static final org.tron.trident.proto.Contract.CreateSmartContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.CreateSmartContract(); } public static org.tron.trident.proto.Contract.CreateSmartContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateSmartContract 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.Contract.CreateSmartContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TriggerSmartContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TriggerSmartContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes contract_address = 2; * @return The contractAddress. */ com.google.protobuf.ByteString getContractAddress(); /** * int64 call_value = 3; * @return The callValue. */ long getCallValue(); /** * bytes data = 4; * @return The data. */ com.google.protobuf.ByteString getData(); /** * int64 call_token_value = 5; * @return The callTokenValue. */ long getCallTokenValue(); /** * int64 token_id = 6; * @return The tokenId. */ long getTokenId(); } /** * Protobuf type {@code protocol.TriggerSmartContract} */ public static final class TriggerSmartContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TriggerSmartContract) TriggerSmartContractOrBuilder { private static final long serialVersionUID = 0L; // Use TriggerSmartContract.newBuilder() to construct. private TriggerSmartContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TriggerSmartContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TriggerSmartContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TriggerSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TriggerSmartContract.class, org.tron.trident.proto.Contract.TriggerSmartContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } public static final int CALL_VALUE_FIELD_NUMBER = 3; private long callValue_ = 0L; /** * int64 call_value = 3; * @return The callValue. */ @java.lang.Override public long getCallValue() { return callValue_; } public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 4; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int CALL_TOKEN_VALUE_FIELD_NUMBER = 5; private long callTokenValue_ = 0L; /** * int64 call_token_value = 5; * @return The callTokenValue. */ @java.lang.Override public long getCallTokenValue() { return callTokenValue_; } public static final int TOKEN_ID_FIELD_NUMBER = 6; private long tokenId_ = 0L; /** * int64 token_id = 6; * @return The tokenId. */ @java.lang.Override public long getTokenId() { return tokenId_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { output.writeBytes(2, contractAddress_); } if (callValue_ != 0L) { output.writeInt64(3, callValue_); } if (!data_.isEmpty()) { output.writeBytes(4, data_); } if (callTokenValue_ != 0L) { output.writeInt64(5, callTokenValue_); } if (tokenId_ != 0L) { output.writeInt64(6, tokenId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddress_); } if (callValue_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, callValue_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } if (callTokenValue_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, callTokenValue_); } if (tokenId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, 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.Contract.TriggerSmartContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.TriggerSmartContract other = (org.tron.trident.proto.Contract.TriggerSmartContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (getCallValue() != other.getCallValue()) return false; if (!getData() .equals(other.getData())) return false; if (getCallTokenValue() != other.getCallTokenValue()) return false; if (getTokenId() != 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (37 * hash) + CALL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallValue()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + CALL_TOKEN_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallTokenValue()); hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTokenId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.TriggerSmartContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TriggerSmartContract 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.Contract.TriggerSmartContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TriggerSmartContract 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.Contract.TriggerSmartContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.TriggerSmartContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.TriggerSmartContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TriggerSmartContract 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.Contract.TriggerSmartContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TriggerSmartContract 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.Contract.TriggerSmartContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.TriggerSmartContract 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.Contract.TriggerSmartContract 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.TriggerSmartContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TriggerSmartContract) org.tron.trident.proto.Contract.TriggerSmartContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_TriggerSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.TriggerSmartContract.class, org.tron.trident.proto.Contract.TriggerSmartContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.TriggerSmartContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; callValue_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; callTokenValue_ = 0L; tokenId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.TriggerSmartContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.TriggerSmartContract build() { org.tron.trident.proto.Contract.TriggerSmartContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.TriggerSmartContract buildPartial() { org.tron.trident.proto.Contract.TriggerSmartContract result = new org.tron.trident.proto.Contract.TriggerSmartContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.TriggerSmartContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contractAddress_ = contractAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.callValue_ = callValue_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.callTokenValue_ = callTokenValue_; } if (((from_bitField0_ & 0x00000020) != 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.Contract.TriggerSmartContract) { return mergeFrom((org.tron.trident.proto.Contract.TriggerSmartContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.TriggerSmartContract other) { if (other == org.tron.trident.proto.Contract.TriggerSmartContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } if (other.getCallValue() != 0L) { setCallValue(other.getCallValue()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getCallTokenValue() != 0L) { setCallTokenValue(other.getCallTokenValue()); } if (other.getTokenId() != 0L) { setTokenId(other.getTokenId()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contractAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { callValue_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { data_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { callTokenValue_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { tokenId_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** * bytes contract_address = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { bitField0_ = (bitField0_ & ~0x00000002); contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private long callValue_ ; /** * int64 call_value = 3; * @return The callValue. */ @java.lang.Override public long getCallValue() { return callValue_; } /** * int64 call_value = 3; * @param value The callValue to set. * @return This builder for chaining. */ public Builder setCallValue(long value) { callValue_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 call_value = 3; * @return This builder for chaining. */ public Builder clearCallValue() { bitField0_ = (bitField0_ & ~0x00000004); callValue_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 4; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** * bytes data = 4; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000008); data_ = getDefaultInstance().getData(); onChanged(); return this; } private long callTokenValue_ ; /** * int64 call_token_value = 5; * @return The callTokenValue. */ @java.lang.Override public long getCallTokenValue() { return callTokenValue_; } /** * int64 call_token_value = 5; * @param value The callTokenValue to set. * @return This builder for chaining. */ public Builder setCallTokenValue(long value) { callTokenValue_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 call_token_value = 5; * @return This builder for chaining. */ public Builder clearCallTokenValue() { bitField0_ = (bitField0_ & ~0x00000010); callTokenValue_ = 0L; onChanged(); return this; } private long tokenId_ ; /** * int64 token_id = 6; * @return The tokenId. */ @java.lang.Override public long getTokenId() { return tokenId_; } /** * int64 token_id = 6; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId(long value) { tokenId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 token_id = 6; * @return This builder for chaining. */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000020); tokenId_ = 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.TriggerSmartContract) } // @@protoc_insertion_point(class_scope:protocol.TriggerSmartContract) private static final org.tron.trident.proto.Contract.TriggerSmartContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.TriggerSmartContract(); } public static org.tron.trident.proto.Contract.TriggerSmartContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TriggerSmartContract 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.Contract.TriggerSmartContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClearABIContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ClearABIContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes contract_address = 2; * @return The contractAddress. */ com.google.protobuf.ByteString getContractAddress(); } /** * Protobuf type {@code protocol.ClearABIContract} */ public static final class ClearABIContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ClearABIContract) ClearABIContractOrBuilder { private static final long serialVersionUID = 0L; // Use ClearABIContract.newBuilder() to construct. private ClearABIContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClearABIContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClearABIContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ClearABIContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ClearABIContract.class, org.tron.trident.proto.Contract.ClearABIContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { output.writeBytes(2, contractAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddress_); } 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.Contract.ClearABIContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ClearABIContract other = (org.tron.trident.proto.Contract.ClearABIContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ClearABIContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ClearABIContract 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.Contract.ClearABIContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ClearABIContract 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.Contract.ClearABIContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ClearABIContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ClearABIContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ClearABIContract 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.Contract.ClearABIContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ClearABIContract 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.Contract.ClearABIContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ClearABIContract 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.Contract.ClearABIContract 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.ClearABIContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ClearABIContract) org.tron.trident.proto.Contract.ClearABIContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ClearABIContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ClearABIContract.class, org.tron.trident.proto.Contract.ClearABIContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ClearABIContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ClearABIContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ClearABIContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ClearABIContract build() { org.tron.trident.proto.Contract.ClearABIContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ClearABIContract buildPartial() { org.tron.trident.proto.Contract.ClearABIContract result = new org.tron.trident.proto.Contract.ClearABIContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ClearABIContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contractAddress_ = contractAddress_; } } @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.Contract.ClearABIContract) { return mergeFrom((org.tron.trident.proto.Contract.ClearABIContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ClearABIContract other) { if (other == org.tron.trident.proto.Contract.ClearABIContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contractAddress_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** * bytes contract_address = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { bitField0_ = (bitField0_ & ~0x00000002); contractAddress_ = getDefaultInstance().getContractAddress(); 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.ClearABIContract) } // @@protoc_insertion_point(class_scope:protocol.ClearABIContract) private static final org.tron.trident.proto.Contract.ClearABIContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ClearABIContract(); } public static org.tron.trident.proto.Contract.ClearABIContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClearABIContract 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.Contract.ClearABIContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSettingContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UpdateSettingContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes contract_address = 2; * @return The contractAddress. */ com.google.protobuf.ByteString getContractAddress(); /** * int64 consume_user_resource_percent = 3; * @return The consumeUserResourcePercent. */ long getConsumeUserResourcePercent(); } /** * Protobuf type {@code protocol.UpdateSettingContract} */ public static final class UpdateSettingContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UpdateSettingContract) UpdateSettingContractOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSettingContract.newBuilder() to construct. private UpdateSettingContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSettingContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSettingContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateSettingContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateSettingContract.class, org.tron.trident.proto.Contract.UpdateSettingContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } public static final int CONSUME_USER_RESOURCE_PERCENT_FIELD_NUMBER = 3; private long consumeUserResourcePercent_ = 0L; /** * int64 consume_user_resource_percent = 3; * @return The consumeUserResourcePercent. */ @java.lang.Override public long getConsumeUserResourcePercent() { return consumeUserResourcePercent_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { output.writeBytes(2, contractAddress_); } if (consumeUserResourcePercent_ != 0L) { output.writeInt64(3, consumeUserResourcePercent_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddress_); } if (consumeUserResourcePercent_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, consumeUserResourcePercent_); } 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.Contract.UpdateSettingContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UpdateSettingContract other = (org.tron.trident.proto.Contract.UpdateSettingContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (getConsumeUserResourcePercent() != other.getConsumeUserResourcePercent()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (37 * hash) + CONSUME_USER_RESOURCE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConsumeUserResourcePercent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UpdateSettingContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateSettingContract 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.Contract.UpdateSettingContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateSettingContract 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.Contract.UpdateSettingContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateSettingContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UpdateSettingContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateSettingContract 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.Contract.UpdateSettingContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateSettingContract 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.Contract.UpdateSettingContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateSettingContract 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.Contract.UpdateSettingContract 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.UpdateSettingContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UpdateSettingContract) org.tron.trident.proto.Contract.UpdateSettingContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateSettingContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateSettingContract.class, org.tron.trident.proto.Contract.UpdateSettingContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UpdateSettingContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; consumeUserResourcePercent_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateSettingContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UpdateSettingContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UpdateSettingContract build() { org.tron.trident.proto.Contract.UpdateSettingContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateSettingContract buildPartial() { org.tron.trident.proto.Contract.UpdateSettingContract result = new org.tron.trident.proto.Contract.UpdateSettingContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UpdateSettingContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contractAddress_ = contractAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consumeUserResourcePercent_ = consumeUserResourcePercent_; } } @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.Contract.UpdateSettingContract) { return mergeFrom((org.tron.trident.proto.Contract.UpdateSettingContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UpdateSettingContract other) { if (other == org.tron.trident.proto.Contract.UpdateSettingContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } if (other.getConsumeUserResourcePercent() != 0L) { setConsumeUserResourcePercent(other.getConsumeUserResourcePercent()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contractAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { consumeUserResourcePercent_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** * bytes contract_address = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { bitField0_ = (bitField0_ & ~0x00000002); contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private long consumeUserResourcePercent_ ; /** * int64 consume_user_resource_percent = 3; * @return The consumeUserResourcePercent. */ @java.lang.Override public long getConsumeUserResourcePercent() { return consumeUserResourcePercent_; } /** * int64 consume_user_resource_percent = 3; * @param value The consumeUserResourcePercent to set. * @return This builder for chaining. */ public Builder setConsumeUserResourcePercent(long value) { consumeUserResourcePercent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 consume_user_resource_percent = 3; * @return This builder for chaining. */ public Builder clearConsumeUserResourcePercent() { bitField0_ = (bitField0_ & ~0x00000004); consumeUserResourcePercent_ = 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.UpdateSettingContract) } // @@protoc_insertion_point(class_scope:protocol.UpdateSettingContract) private static final org.tron.trident.proto.Contract.UpdateSettingContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UpdateSettingContract(); } public static org.tron.trident.proto.Contract.UpdateSettingContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSettingContract 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.Contract.UpdateSettingContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateEnergyLimitContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UpdateEnergyLimitContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes contract_address = 2; * @return The contractAddress. */ com.google.protobuf.ByteString getContractAddress(); /** * int64 origin_energy_limit = 3; * @return The originEnergyLimit. */ long getOriginEnergyLimit(); } /** * Protobuf type {@code protocol.UpdateEnergyLimitContract} */ public static final class UpdateEnergyLimitContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UpdateEnergyLimitContract) UpdateEnergyLimitContractOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateEnergyLimitContract.newBuilder() to construct. private UpdateEnergyLimitContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateEnergyLimitContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateEnergyLimitContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateEnergyLimitContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateEnergyLimitContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateEnergyLimitContract.class, org.tron.trident.proto.Contract.UpdateEnergyLimitContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } public static final int ORIGIN_ENERGY_LIMIT_FIELD_NUMBER = 3; private long originEnergyLimit_ = 0L; /** * int64 origin_energy_limit = 3; * @return The originEnergyLimit. */ @java.lang.Override public long getOriginEnergyLimit() { return originEnergyLimit_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { output.writeBytes(2, contractAddress_); } if (originEnergyLimit_ != 0L) { output.writeInt64(3, originEnergyLimit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!contractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddress_); } if (originEnergyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, originEnergyLimit_); } 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.Contract.UpdateEnergyLimitContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UpdateEnergyLimitContract other = (org.tron.trident.proto.Contract.UpdateEnergyLimitContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (getOriginEnergyLimit() != other.getOriginEnergyLimit()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (37 * hash) + ORIGIN_ENERGY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginEnergyLimit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract 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.UpdateEnergyLimitContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UpdateEnergyLimitContract) org.tron.trident.proto.Contract.UpdateEnergyLimitContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateEnergyLimitContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateEnergyLimitContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateEnergyLimitContract.class, org.tron.trident.proto.Contract.UpdateEnergyLimitContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UpdateEnergyLimitContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; originEnergyLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateEnergyLimitContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateEnergyLimitContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UpdateEnergyLimitContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UpdateEnergyLimitContract build() { org.tron.trident.proto.Contract.UpdateEnergyLimitContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateEnergyLimitContract buildPartial() { org.tron.trident.proto.Contract.UpdateEnergyLimitContract result = new org.tron.trident.proto.Contract.UpdateEnergyLimitContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UpdateEnergyLimitContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contractAddress_ = contractAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.originEnergyLimit_ = originEnergyLimit_; } } @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.Contract.UpdateEnergyLimitContract) { return mergeFrom((org.tron.trident.proto.Contract.UpdateEnergyLimitContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UpdateEnergyLimitContract other) { if (other == org.tron.trident.proto.Contract.UpdateEnergyLimitContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } if (other.getOriginEnergyLimit() != 0L) { setOriginEnergyLimit(other.getOriginEnergyLimit()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contractAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { originEnergyLimit_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** * bytes contract_address = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { bitField0_ = (bitField0_ & ~0x00000002); contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private long originEnergyLimit_ ; /** * int64 origin_energy_limit = 3; * @return The originEnergyLimit. */ @java.lang.Override public long getOriginEnergyLimit() { return originEnergyLimit_; } /** * int64 origin_energy_limit = 3; * @param value The originEnergyLimit to set. * @return This builder for chaining. */ public Builder setOriginEnergyLimit(long value) { originEnergyLimit_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 origin_energy_limit = 3; * @return This builder for chaining. */ public Builder clearOriginEnergyLimit() { bitField0_ = (bitField0_ & ~0x00000004); originEnergyLimit_ = 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.UpdateEnergyLimitContract) } // @@protoc_insertion_point(class_scope:protocol.UpdateEnergyLimitContract) private static final org.tron.trident.proto.Contract.UpdateEnergyLimitContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UpdateEnergyLimitContract(); } public static org.tron.trident.proto.Contract.UpdateEnergyLimitContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateEnergyLimitContract 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.Contract.UpdateEnergyLimitContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateBrokerageContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UpdateBrokerageContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** *
     * 1 mean 1%
     * 
* * int32 brokerage = 2; * @return The brokerage. */ int getBrokerage(); } /** * Protobuf type {@code protocol.UpdateBrokerageContract} */ public static final class UpdateBrokerageContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UpdateBrokerageContract) UpdateBrokerageContractOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateBrokerageContract.newBuilder() to construct. private UpdateBrokerageContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateBrokerageContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateBrokerageContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateBrokerageContract.class, org.tron.trident.proto.Contract.UpdateBrokerageContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int BROKERAGE_FIELD_NUMBER = 2; private int brokerage_ = 0; /** *
     * 1 mean 1%
     * 
* * int32 brokerage = 2; * @return The brokerage. */ @java.lang.Override public int getBrokerage() { return brokerage_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (brokerage_ != 0) { output.writeInt32(2, brokerage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (brokerage_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, brokerage_); } 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.Contract.UpdateBrokerageContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UpdateBrokerageContract other = (org.tron.trident.proto.Contract.UpdateBrokerageContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getBrokerage() != other.getBrokerage()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + BROKERAGE_FIELD_NUMBER; hash = (53 * hash) + getBrokerage(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UpdateBrokerageContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract 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.Contract.UpdateBrokerageContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract 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.Contract.UpdateBrokerageContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract 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.Contract.UpdateBrokerageContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract 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.Contract.UpdateBrokerageContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract 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.Contract.UpdateBrokerageContract 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.UpdateBrokerageContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UpdateBrokerageContract) org.tron.trident.proto.Contract.UpdateBrokerageContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UpdateBrokerageContract.class, org.tron.trident.proto.Contract.UpdateBrokerageContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UpdateBrokerageContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; brokerage_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateBrokerageContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UpdateBrokerageContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UpdateBrokerageContract build() { org.tron.trident.proto.Contract.UpdateBrokerageContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UpdateBrokerageContract buildPartial() { org.tron.trident.proto.Contract.UpdateBrokerageContract result = new org.tron.trident.proto.Contract.UpdateBrokerageContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UpdateBrokerageContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.brokerage_ = brokerage_; } } @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.Contract.UpdateBrokerageContract) { return mergeFrom((org.tron.trident.proto.Contract.UpdateBrokerageContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UpdateBrokerageContract other) { if (other == org.tron.trident.proto.Contract.UpdateBrokerageContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getBrokerage() != 0) { setBrokerage(other.getBrokerage()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { brokerage_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private int brokerage_ ; /** *
       * 1 mean 1%
       * 
* * int32 brokerage = 2; * @return The brokerage. */ @java.lang.Override public int getBrokerage() { return brokerage_; } /** *
       * 1 mean 1%
       * 
* * int32 brokerage = 2; * @param value The brokerage to set. * @return This builder for chaining. */ public Builder setBrokerage(int value) { brokerage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * 1 mean 1%
       * 
* * int32 brokerage = 2; * @return This builder for chaining. */ public Builder clearBrokerage() { bitField0_ = (bitField0_ & ~0x00000002); brokerage_ = 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.UpdateBrokerageContract) } // @@protoc_insertion_point(class_scope:protocol.UpdateBrokerageContract) private static final org.tron.trident.proto.Contract.UpdateBrokerageContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UpdateBrokerageContract(); } public static org.tron.trident.proto.Contract.UpdateBrokerageContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateBrokerageContract 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.Contract.UpdateBrokerageContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteAssetContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.VoteAssetContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * repeated bytes vote_address = 2; * @return A list containing the voteAddress. */ java.util.List getVoteAddressList(); /** * repeated bytes vote_address = 2; * @return The count of voteAddress. */ int getVoteAddressCount(); /** * repeated bytes vote_address = 2; * @param index The index of the element to return. * @return The voteAddress at the given index. */ com.google.protobuf.ByteString getVoteAddress(int index); /** * bool support = 3; * @return The support. */ boolean getSupport(); /** * int32 count = 5; * @return The count. */ int getCount(); } /** * Protobuf type {@code protocol.VoteAssetContract} */ public static final class VoteAssetContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.VoteAssetContract) VoteAssetContractOrBuilder { private static final long serialVersionUID = 0L; // Use VoteAssetContract.newBuilder() to construct. private VoteAssetContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VoteAssetContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; voteAddress_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteAssetContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteAssetContract.class, org.tron.trident.proto.Contract.VoteAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int VOTE_ADDRESS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList voteAddress_ = emptyList(com.google.protobuf.ByteString.class); /** * repeated bytes vote_address = 2; * @return A list containing the voteAddress. */ @java.lang.Override public java.util.List getVoteAddressList() { return voteAddress_; } /** * repeated bytes vote_address = 2; * @return The count of voteAddress. */ public int getVoteAddressCount() { return voteAddress_.size(); } /** * repeated bytes vote_address = 2; * @param index The index of the element to return. * @return The voteAddress at the given index. */ public com.google.protobuf.ByteString getVoteAddress(int index) { return voteAddress_.get(index); } public static final int SUPPORT_FIELD_NUMBER = 3; private boolean support_ = false; /** * bool support = 3; * @return The support. */ @java.lang.Override public boolean getSupport() { return support_; } public static final int COUNT_FIELD_NUMBER = 5; private int count_ = 0; /** * int32 count = 5; * @return The count. */ @java.lang.Override public int getCount() { return count_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } for (int i = 0; i < voteAddress_.size(); i++) { output.writeBytes(2, voteAddress_.get(i)); } if (support_ != false) { output.writeBool(3, support_); } if (count_ != 0) { output.writeInt32(5, count_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } { int dataSize = 0; for (int i = 0; i < voteAddress_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(voteAddress_.get(i)); } size += dataSize; size += 1 * getVoteAddressList().size(); } if (support_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, support_); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, count_); } 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.Contract.VoteAssetContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.VoteAssetContract other = (org.tron.trident.proto.Contract.VoteAssetContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getVoteAddressList() .equals(other.getVoteAddressList())) return false; if (getSupport() != other.getSupport()) return false; if (getCount() != other.getCount()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (getVoteAddressCount() > 0) { hash = (37 * hash) + VOTE_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getVoteAddressList().hashCode(); } hash = (37 * hash) + SUPPORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSupport()); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.VoteAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteAssetContract 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.Contract.VoteAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteAssetContract 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.Contract.VoteAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.VoteAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteAssetContract 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.Contract.VoteAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteAssetContract 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.Contract.VoteAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteAssetContract 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.Contract.VoteAssetContract 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.VoteAssetContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.VoteAssetContract) org.tron.trident.proto.Contract.VoteAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteAssetContract.class, org.tron.trident.proto.Contract.VoteAssetContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.VoteAssetContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; voteAddress_ = emptyList(com.google.protobuf.ByteString.class); support_ = false; count_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.VoteAssetContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.VoteAssetContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.VoteAssetContract build() { org.tron.trident.proto.Contract.VoteAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.VoteAssetContract buildPartial() { org.tron.trident.proto.Contract.VoteAssetContract result = new org.tron.trident.proto.Contract.VoteAssetContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.VoteAssetContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { voteAddress_.makeImmutable(); result.voteAddress_ = voteAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.support_ = support_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.count_ = count_; } } @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.Contract.VoteAssetContract) { return mergeFrom((org.tron.trident.proto.Contract.VoteAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.VoteAssetContract other) { if (other == org.tron.trident.proto.Contract.VoteAssetContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (!other.voteAddress_.isEmpty()) { if (voteAddress_.isEmpty()) { voteAddress_ = other.voteAddress_; voteAddress_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureVoteAddressIsMutable(); voteAddress_.addAll(other.voteAddress_); } onChanged(); } if (other.getSupport() != false) { setSupport(other.getSupport()); } if (other.getCount() != 0) { setCount(other.getCount()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureVoteAddressIsMutable(); voteAddress_.add(v); break; } // case 18 case 24: { support_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 40: { count_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList voteAddress_ = emptyList(com.google.protobuf.ByteString.class); private void ensureVoteAddressIsMutable() { if (!voteAddress_.isModifiable()) { voteAddress_ = makeMutableCopy(voteAddress_); } bitField0_ |= 0x00000002; } /** * repeated bytes vote_address = 2; * @return A list containing the voteAddress. */ public java.util.List getVoteAddressList() { voteAddress_.makeImmutable(); return voteAddress_; } /** * repeated bytes vote_address = 2; * @return The count of voteAddress. */ public int getVoteAddressCount() { return voteAddress_.size(); } /** * repeated bytes vote_address = 2; * @param index The index of the element to return. * @return The voteAddress at the given index. */ public com.google.protobuf.ByteString getVoteAddress(int index) { return voteAddress_.get(index); } /** * repeated bytes vote_address = 2; * @param index The index to set the value at. * @param value The voteAddress to set. * @return This builder for chaining. */ public Builder setVoteAddress( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureVoteAddressIsMutable(); voteAddress_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes vote_address = 2; * @param value The voteAddress to add. * @return This builder for chaining. */ public Builder addVoteAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureVoteAddressIsMutable(); voteAddress_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes vote_address = 2; * @param values The voteAddress to add. * @return This builder for chaining. */ public Builder addAllVoteAddress( java.lang.Iterable values) { ensureVoteAddressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, voteAddress_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated bytes vote_address = 2; * @return This builder for chaining. */ public Builder clearVoteAddress() { voteAddress_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private boolean support_ ; /** * bool support = 3; * @return The support. */ @java.lang.Override public boolean getSupport() { return support_; } /** * bool support = 3; * @param value The support to set. * @return This builder for chaining. */ public Builder setSupport(boolean value) { support_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool support = 3; * @return This builder for chaining. */ public Builder clearSupport() { bitField0_ = (bitField0_ & ~0x00000004); support_ = false; onChanged(); return this; } private int count_ ; /** * int32 count = 5; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** * int32 count = 5; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int32 count = 5; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000008); count_ = 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.VoteAssetContract) } // @@protoc_insertion_point(class_scope:protocol.VoteAssetContract) private static final org.tron.trident.proto.Contract.VoteAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.VoteAssetContract(); } public static org.tron.trident.proto.Contract.VoteAssetContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VoteAssetContract 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.Contract.VoteAssetContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WitnessCreateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WitnessCreateContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes url = 2; * @return The url. */ com.google.protobuf.ByteString getUrl(); } /** * Protobuf type {@code protocol.WitnessCreateContract} */ public static final class WitnessCreateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WitnessCreateContract) WitnessCreateContractOrBuilder { private static final long serialVersionUID = 0L; // Use WitnessCreateContract.newBuilder() to construct. private WitnessCreateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WitnessCreateContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WitnessCreateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WitnessCreateContract.class, org.tron.trident.proto.Contract.WitnessCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int URL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 2; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!url_.isEmpty()) { output.writeBytes(2, url_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!url_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, url_); } 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.Contract.WitnessCreateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.WitnessCreateContract other = (org.tron.trident.proto.Contract.WitnessCreateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUrl() .equals(other.getUrl())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.WitnessCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessCreateContract 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.Contract.WitnessCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessCreateContract 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.Contract.WitnessCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.WitnessCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessCreateContract 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.Contract.WitnessCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessCreateContract 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.Contract.WitnessCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessCreateContract 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.Contract.WitnessCreateContract 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.WitnessCreateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WitnessCreateContract) org.tron.trident.proto.Contract.WitnessCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WitnessCreateContract.class, org.tron.trident.proto.Contract.WitnessCreateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.WitnessCreateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; url_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.WitnessCreateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.WitnessCreateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.WitnessCreateContract build() { org.tron.trident.proto.Contract.WitnessCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.WitnessCreateContract buildPartial() { org.tron.trident.proto.Contract.WitnessCreateContract result = new org.tron.trident.proto.Contract.WitnessCreateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.WitnessCreateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.url_ = url_; } } @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.Contract.WitnessCreateContract) { return mergeFrom((org.tron.trident.proto.Contract.WitnessCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.WitnessCreateContract other) { if (other == org.tron.trident.proto.Contract.WitnessCreateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getUrl() != com.google.protobuf.ByteString.EMPTY) { setUrl(other.getUrl()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { url_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString url_ = com.google.protobuf.ByteString.EMPTY; /** * bytes url = 2; * @return The url. */ @java.lang.Override public com.google.protobuf.ByteString getUrl() { return url_; } /** * bytes url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes url = 2; * @return This builder for chaining. */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000002); url_ = getDefaultInstance().getUrl(); 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.WitnessCreateContract) } // @@protoc_insertion_point(class_scope:protocol.WitnessCreateContract) private static final org.tron.trident.proto.Contract.WitnessCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.WitnessCreateContract(); } public static org.tron.trident.proto.Contract.WitnessCreateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WitnessCreateContract 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.Contract.WitnessCreateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WitnessUpdateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WitnessUpdateContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes update_url = 12; * @return The updateUrl. */ com.google.protobuf.ByteString getUpdateUrl(); } /** * Protobuf type {@code protocol.WitnessUpdateContract} */ public static final class WitnessUpdateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WitnessUpdateContract) WitnessUpdateContractOrBuilder { private static final long serialVersionUID = 0L; // Use WitnessUpdateContract.newBuilder() to construct. private WitnessUpdateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WitnessUpdateContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; updateUrl_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WitnessUpdateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WitnessUpdateContract.class, org.tron.trident.proto.Contract.WitnessUpdateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int UPDATE_URL_FIELD_NUMBER = 12; private com.google.protobuf.ByteString updateUrl_ = com.google.protobuf.ByteString.EMPTY; /** * bytes update_url = 12; * @return The updateUrl. */ @java.lang.Override public com.google.protobuf.ByteString getUpdateUrl() { return updateUrl_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!updateUrl_.isEmpty()) { output.writeBytes(12, updateUrl_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!updateUrl_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, updateUrl_); } 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.Contract.WitnessUpdateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.WitnessUpdateContract other = (org.tron.trident.proto.Contract.WitnessUpdateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUpdateUrl() .equals(other.getUpdateUrl())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + UPDATE_URL_FIELD_NUMBER; hash = (53 * hash) + getUpdateUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.WitnessUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessUpdateContract 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.Contract.WitnessUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessUpdateContract 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.Contract.WitnessUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WitnessUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.WitnessUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessUpdateContract 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.Contract.WitnessUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessUpdateContract 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.Contract.WitnessUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WitnessUpdateContract 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.Contract.WitnessUpdateContract 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.WitnessUpdateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WitnessUpdateContract) org.tron.trident.proto.Contract.WitnessUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WitnessUpdateContract.class, org.tron.trident.proto.Contract.WitnessUpdateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.WitnessUpdateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; updateUrl_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.WitnessUpdateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.WitnessUpdateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.WitnessUpdateContract build() { org.tron.trident.proto.Contract.WitnessUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.WitnessUpdateContract buildPartial() { org.tron.trident.proto.Contract.WitnessUpdateContract result = new org.tron.trident.proto.Contract.WitnessUpdateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.WitnessUpdateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateUrl_ = updateUrl_; } } @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.Contract.WitnessUpdateContract) { return mergeFrom((org.tron.trident.proto.Contract.WitnessUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.WitnessUpdateContract other) { if (other == org.tron.trident.proto.Contract.WitnessUpdateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getUpdateUrl() != com.google.protobuf.ByteString.EMPTY) { setUpdateUrl(other.getUpdateUrl()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 98: { updateUrl_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString updateUrl_ = com.google.protobuf.ByteString.EMPTY; /** * bytes update_url = 12; * @return The updateUrl. */ @java.lang.Override public com.google.protobuf.ByteString getUpdateUrl() { return updateUrl_; } /** * bytes update_url = 12; * @param value The updateUrl to set. * @return This builder for chaining. */ public Builder setUpdateUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } updateUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes update_url = 12; * @return This builder for chaining. */ public Builder clearUpdateUrl() { bitField0_ = (bitField0_ & ~0x00000002); updateUrl_ = getDefaultInstance().getUpdateUrl(); 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.WitnessUpdateContract) } // @@protoc_insertion_point(class_scope:protocol.WitnessUpdateContract) private static final org.tron.trident.proto.Contract.WitnessUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.WitnessUpdateContract(); } public static org.tron.trident.proto.Contract.WitnessUpdateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WitnessUpdateContract 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.Contract.WitnessUpdateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteWitnessContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.VoteWitnessContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ java.util.List getVotesList(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ org.tron.trident.proto.Contract.VoteWitnessContract.Vote getVotes(int index); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ int getVotesCount(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ java.util.List getVotesOrBuilderList(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder getVotesOrBuilder( int index); /** * bool support = 3; * @return The support. */ boolean getSupport(); } /** * Protobuf type {@code protocol.VoteWitnessContract} */ public static final class VoteWitnessContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.VoteWitnessContract) VoteWitnessContractOrBuilder { private static final long serialVersionUID = 0L; // Use VoteWitnessContract.newBuilder() to construct. private VoteWitnessContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VoteWitnessContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; votes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteWitnessContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteWitnessContract.class, org.tron.trident.proto.Contract.VoteWitnessContract.Builder.class); } public interface VoteOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.VoteWitnessContract.Vote) com.google.protobuf.MessageOrBuilder { /** * bytes vote_address = 1; * @return The voteAddress. */ com.google.protobuf.ByteString getVoteAddress(); /** * int64 vote_count = 2; * @return The voteCount. */ long getVoteCount(); } /** * Protobuf type {@code protocol.VoteWitnessContract.Vote} */ public static final class Vote extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.VoteWitnessContract.Vote) VoteOrBuilder { private static final long serialVersionUID = 0L; // Use Vote.newBuilder() to construct. private Vote(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Vote() { voteAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Vote(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteWitnessContract.Vote.class, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder.class); } public static final int VOTE_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString voteAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes vote_address = 1; * @return The voteAddress. */ @java.lang.Override public com.google.protobuf.ByteString getVoteAddress() { return voteAddress_; } public static final int VOTE_COUNT_FIELD_NUMBER = 2; private long voteCount_ = 0L; /** * int64 vote_count = 2; * @return The voteCount. */ @java.lang.Override public long getVoteCount() { return voteCount_; } 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 (!voteAddress_.isEmpty()) { output.writeBytes(1, voteAddress_); } if (voteCount_ != 0L) { output.writeInt64(2, voteCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!voteAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, voteAddress_); } if (voteCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, voteCount_); } 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.Contract.VoteWitnessContract.Vote)) { return super.equals(obj); } org.tron.trident.proto.Contract.VoteWitnessContract.Vote other = (org.tron.trident.proto.Contract.VoteWitnessContract.Vote) obj; if (!getVoteAddress() .equals(other.getVoteAddress())) return false; if (getVoteCount() != other.getVoteCount()) 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) + VOTE_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getVoteAddress().hashCode(); hash = (37 * hash) + VOTE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVoteCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote 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.Contract.VoteWitnessContract.Vote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote 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.Contract.VoteWitnessContract.Vote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote 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.Contract.VoteWitnessContract.Vote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote 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.Contract.VoteWitnessContract.Vote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote 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.Contract.VoteWitnessContract.Vote 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.VoteWitnessContract.Vote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.VoteWitnessContract.Vote) org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteWitnessContract.Vote.class, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder.class); } // Construct using org.tron.trident.proto.Contract.VoteWitnessContract.Vote.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; voteAddress_ = com.google.protobuf.ByteString.EMPTY; voteCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract.Vote getDefaultInstanceForType() { return org.tron.trident.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract.Vote build() { org.tron.trident.proto.Contract.VoteWitnessContract.Vote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract.Vote buildPartial() { org.tron.trident.proto.Contract.VoteWitnessContract.Vote result = new org.tron.trident.proto.Contract.VoteWitnessContract.Vote(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.VoteWitnessContract.Vote result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.voteAddress_ = voteAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.voteCount_ = voteCount_; } } @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.Contract.VoteWitnessContract.Vote) { return mergeFrom((org.tron.trident.proto.Contract.VoteWitnessContract.Vote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.VoteWitnessContract.Vote other) { if (other == org.tron.trident.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance()) return this; if (other.getVoteAddress() != com.google.protobuf.ByteString.EMPTY) { setVoteAddress(other.getVoteAddress()); } if (other.getVoteCount() != 0L) { setVoteCount(other.getVoteCount()); } 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: { voteAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { voteCount_ = 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 voteAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes vote_address = 1; * @return The voteAddress. */ @java.lang.Override public com.google.protobuf.ByteString getVoteAddress() { return voteAddress_; } /** * bytes vote_address = 1; * @param value The voteAddress to set. * @return This builder for chaining. */ public Builder setVoteAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } voteAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes vote_address = 1; * @return This builder for chaining. */ public Builder clearVoteAddress() { bitField0_ = (bitField0_ & ~0x00000001); voteAddress_ = getDefaultInstance().getVoteAddress(); onChanged(); return this; } private long voteCount_ ; /** * int64 vote_count = 2; * @return The voteCount. */ @java.lang.Override public long getVoteCount() { return voteCount_; } /** * int64 vote_count = 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 vote_count = 2; * @return This builder for chaining. */ public Builder clearVoteCount() { bitField0_ = (bitField0_ & ~0x00000002); voteCount_ = 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.VoteWitnessContract.Vote) } // @@protoc_insertion_point(class_scope:protocol.VoteWitnessContract.Vote) private static final org.tron.trident.proto.Contract.VoteWitnessContract.Vote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.VoteWitnessContract.Vote(); } public static org.tron.trident.proto.Contract.VoteWitnessContract.Vote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Vote 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.Contract.VoteWitnessContract.Vote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int VOTES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List votes_; /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public java.util.List getVotesList() { return votes_; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public java.util.List getVotesOrBuilderList() { return votes_; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public int getVotesCount() { return votes_.size(); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract.Vote getVotes(int index) { return votes_.get(index); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder getVotesOrBuilder( int index) { return votes_.get(index); } public static final int SUPPORT_FIELD_NUMBER = 3; private boolean support_ = false; /** * bool support = 3; * @return The support. */ @java.lang.Override public boolean getSupport() { return support_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } for (int i = 0; i < votes_.size(); i++) { output.writeMessage(2, votes_.get(i)); } if (support_ != false) { output.writeBool(3, support_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } for (int i = 0; i < votes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, votes_.get(i)); } if (support_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, support_); } 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.Contract.VoteWitnessContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.VoteWitnessContract other = (org.tron.trident.proto.Contract.VoteWitnessContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getVotesList() .equals(other.getVotesList())) return false; if (getSupport() != other.getSupport()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (getVotesCount() > 0) { hash = (37 * hash) + VOTES_FIELD_NUMBER; hash = (53 * hash) + getVotesList().hashCode(); } hash = (37 * hash) + SUPPORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSupport()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.VoteWitnessContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract 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.Contract.VoteWitnessContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract 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.Contract.VoteWitnessContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.VoteWitnessContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.VoteWitnessContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract 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.Contract.VoteWitnessContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract 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.Contract.VoteWitnessContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.VoteWitnessContract 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.Contract.VoteWitnessContract 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.VoteWitnessContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.VoteWitnessContract) org.tron.trident.proto.Contract.VoteWitnessContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.VoteWitnessContract.class, org.tron.trident.proto.Contract.VoteWitnessContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.VoteWitnessContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); } else { votes_ = null; votesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); support_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.VoteWitnessContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract build() { org.tron.trident.proto.Contract.VoteWitnessContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.VoteWitnessContract buildPartial() { org.tron.trident.proto.Contract.VoteWitnessContract result = new org.tron.trident.proto.Contract.VoteWitnessContract(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.proto.Contract.VoteWitnessContract result) { if (votesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); bitField0_ = (bitField0_ & ~0x00000002); } result.votes_ = votes_; } else { result.votes_ = votesBuilder_.build(); } } private void buildPartial0(org.tron.trident.proto.Contract.VoteWitnessContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.support_ = support_; } } @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.Contract.VoteWitnessContract) { return mergeFrom((org.tron.trident.proto.Contract.VoteWitnessContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.VoteWitnessContract other) { if (other == org.tron.trident.proto.Contract.VoteWitnessContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (votesBuilder_ == null) { if (!other.votes_.isEmpty()) { if (votes_.isEmpty()) { votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVotesIsMutable(); votes_.addAll(other.votes_); } onChanged(); } } else { if (!other.votes_.isEmpty()) { if (votesBuilder_.isEmpty()) { votesBuilder_.dispose(); votesBuilder_ = null; votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000002); votesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotesFieldBuilder() : null; } else { votesBuilder_.addAllMessages(other.votes_); } } } if (other.getSupport() != false) { setSupport(other.getSupport()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.tron.trident.proto.Contract.VoteWitnessContract.Vote m = input.readMessage( org.tron.trident.proto.Contract.VoteWitnessContract.Vote.parser(), extensionRegistry); if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(m); } else { votesBuilder_.addMessage(m); } break; } // case 18 case 24: { support_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private java.util.List votes_ = java.util.Collections.emptyList(); private void ensureVotesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { votes_ = new java.util.ArrayList(votes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.VoteWitnessContract.Vote, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder, org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder> votesBuilder_; /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public java.util.List getVotesList() { if (votesBuilder_ == null) { return java.util.Collections.unmodifiableList(votes_); } else { return votesBuilder_.getMessageList(); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public int getVotesCount() { if (votesBuilder_ == null) { return votes_.size(); } else { return votesBuilder_.getCount(); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public org.tron.trident.proto.Contract.VoteWitnessContract.Vote getVotes(int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessage(index); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder setVotes( int index, org.tron.trident.proto.Contract.VoteWitnessContract.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.set(index, value); onChanged(); } else { votesBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder setVotes( int index, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.set(index, builderForValue.build()); onChanged(); } else { votesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder addVotes(org.tron.trident.proto.Contract.VoteWitnessContract.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(value); onChanged(); } else { votesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder addVotes( int index, org.tron.trident.proto.Contract.VoteWitnessContract.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(index, value); onChanged(); } else { votesBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder addVotes( org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder addVotes( int index, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(index, builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ 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; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder clearVotes() { if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { votesBuilder_.clear(); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public Builder removeVotes(int index) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.remove(index); onChanged(); } else { votesBuilder_.remove(index); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder getVotesBuilder( int index) { return getVotesFieldBuilder().getBuilder(index); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder getVotesOrBuilder( int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public java.util.List getVotesOrBuilderList() { if (votesBuilder_ != null) { return votesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(votes_); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder addVotesBuilder() { return getVotesFieldBuilder().addBuilder( org.tron.trident.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance()); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder addVotesBuilder( int index) { return getVotesFieldBuilder().addBuilder( index, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance()); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ public java.util.List getVotesBuilderList() { return getVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.VoteWitnessContract.Vote, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder, org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder> getVotesFieldBuilder() { if (votesBuilder_ == null) { votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.proto.Contract.VoteWitnessContract.Vote, org.tron.trident.proto.Contract.VoteWitnessContract.Vote.Builder, org.tron.trident.proto.Contract.VoteWitnessContract.VoteOrBuilder>( votes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); votes_ = null; } return votesBuilder_; } private boolean support_ ; /** * bool support = 3; * @return The support. */ @java.lang.Override public boolean getSupport() { return support_; } /** * bool support = 3; * @param value The support to set. * @return This builder for chaining. */ public Builder setSupport(boolean value) { support_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool support = 3; * @return This builder for chaining. */ public Builder clearSupport() { bitField0_ = (bitField0_ & ~0x00000004); support_ = 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.VoteWitnessContract) } // @@protoc_insertion_point(class_scope:protocol.VoteWitnessContract) private static final org.tron.trident.proto.Contract.VoteWitnessContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.VoteWitnessContract(); } public static org.tron.trident.proto.Contract.VoteWitnessContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VoteWitnessContract 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.Contract.VoteWitnessContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeCreateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExchangeCreateContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * bytes first_token_id = 2; * @return The firstTokenId. */ com.google.protobuf.ByteString getFirstTokenId(); /** * int64 first_token_balance = 3; * @return The firstTokenBalance. */ long getFirstTokenBalance(); /** * bytes second_token_id = 4; * @return The secondTokenId. */ com.google.protobuf.ByteString getSecondTokenId(); /** * int64 second_token_balance = 5; * @return The secondTokenBalance. */ long getSecondTokenBalance(); } /** * Protobuf type {@code protocol.ExchangeCreateContract} */ public static final class ExchangeCreateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExchangeCreateContract) ExchangeCreateContractOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeCreateContract.newBuilder() to construct. private ExchangeCreateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeCreateContract() { ownerAddress_ = 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 ExchangeCreateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeCreateContract.class, org.tron.trident.proto.Contract.ExchangeCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int FIRST_TOKEN_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString firstTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes first_token_id = 2; * @return The firstTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getFirstTokenId() { return firstTokenId_; } public static final int FIRST_TOKEN_BALANCE_FIELD_NUMBER = 3; private long firstTokenBalance_ = 0L; /** * int64 first_token_balance = 3; * @return The firstTokenBalance. */ @java.lang.Override public long getFirstTokenBalance() { return firstTokenBalance_; } public static final int SECOND_TOKEN_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString secondTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes second_token_id = 4; * @return The secondTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSecondTokenId() { return secondTokenId_; } public static final int SECOND_TOKEN_BALANCE_FIELD_NUMBER = 5; private long secondTokenBalance_ = 0L; /** * int64 second_token_balance = 5; * @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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (!firstTokenId_.isEmpty()) { output.writeBytes(2, firstTokenId_); } if (firstTokenBalance_ != 0L) { output.writeInt64(3, firstTokenBalance_); } if (!secondTokenId_.isEmpty()) { output.writeBytes(4, secondTokenId_); } if (secondTokenBalance_ != 0L) { output.writeInt64(5, secondTokenBalance_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (!firstTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, firstTokenId_); } if (firstTokenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, firstTokenBalance_); } if (!secondTokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, secondTokenId_); } if (secondTokenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, 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.Contract.ExchangeCreateContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ExchangeCreateContract other = (org.tron.trident.proto.Contract.ExchangeCreateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); 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.Contract.ExchangeCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeCreateContract 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.Contract.ExchangeCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeCreateContract 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.Contract.ExchangeCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ExchangeCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeCreateContract 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.Contract.ExchangeCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeCreateContract 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.Contract.ExchangeCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeCreateContract 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.Contract.ExchangeCreateContract 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.ExchangeCreateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExchangeCreateContract) org.tron.trident.proto.Contract.ExchangeCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeCreateContract.class, org.tron.trident.proto.Contract.ExchangeCreateContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ExchangeCreateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; 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.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeCreateContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ExchangeCreateContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeCreateContract build() { org.tron.trident.proto.Contract.ExchangeCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeCreateContract buildPartial() { org.tron.trident.proto.Contract.ExchangeCreateContract result = new org.tron.trident.proto.Contract.ExchangeCreateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ExchangeCreateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.firstTokenId_ = firstTokenId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.firstTokenBalance_ = firstTokenBalance_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.secondTokenId_ = secondTokenId_; } if (((from_bitField0_ & 0x00000010) != 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.Contract.ExchangeCreateContract) { return mergeFrom((org.tron.trident.proto.Contract.ExchangeCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ExchangeCreateContract other) { if (other == org.tron.trident.proto.Contract.ExchangeCreateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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 10: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { firstTokenId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { firstTokenBalance_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { secondTokenId_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { secondTokenBalance_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.google.protobuf.ByteString firstTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes first_token_id = 2; * @return The firstTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getFirstTokenId() { return firstTokenId_; } /** * bytes first_token_id = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** * bytes first_token_id = 2; * @return This builder for chaining. */ public Builder clearFirstTokenId() { bitField0_ = (bitField0_ & ~0x00000002); firstTokenId_ = getDefaultInstance().getFirstTokenId(); onChanged(); return this; } private long firstTokenBalance_ ; /** * int64 first_token_balance = 3; * @return The firstTokenBalance. */ @java.lang.Override public long getFirstTokenBalance() { return firstTokenBalance_; } /** * int64 first_token_balance = 3; * @param value The firstTokenBalance to set. * @return This builder for chaining. */ public Builder setFirstTokenBalance(long value) { firstTokenBalance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 first_token_balance = 3; * @return This builder for chaining. */ public Builder clearFirstTokenBalance() { bitField0_ = (bitField0_ & ~0x00000004); firstTokenBalance_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString secondTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes second_token_id = 4; * @return The secondTokenId. */ @java.lang.Override public com.google.protobuf.ByteString getSecondTokenId() { return secondTokenId_; } /** * bytes second_token_id = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** * bytes second_token_id = 4; * @return This builder for chaining. */ public Builder clearSecondTokenId() { bitField0_ = (bitField0_ & ~0x00000008); secondTokenId_ = getDefaultInstance().getSecondTokenId(); onChanged(); return this; } private long secondTokenBalance_ ; /** * int64 second_token_balance = 5; * @return The secondTokenBalance. */ @java.lang.Override public long getSecondTokenBalance() { return secondTokenBalance_; } /** * int64 second_token_balance = 5; * @param value The secondTokenBalance to set. * @return This builder for chaining. */ public Builder setSecondTokenBalance(long value) { secondTokenBalance_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 second_token_balance = 5; * @return This builder for chaining. */ public Builder clearSecondTokenBalance() { bitField0_ = (bitField0_ & ~0x00000010); 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.ExchangeCreateContract) } // @@protoc_insertion_point(class_scope:protocol.ExchangeCreateContract) private static final org.tron.trident.proto.Contract.ExchangeCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ExchangeCreateContract(); } public static org.tron.trident.proto.Contract.ExchangeCreateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeCreateContract 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.Contract.ExchangeCreateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeInjectContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExchangeInjectContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 exchange_id = 2; * @return The exchangeId. */ long getExchangeId(); /** * bytes token_id = 3; * @return The tokenId. */ com.google.protobuf.ByteString getTokenId(); /** * int64 quant = 4; * @return The quant. */ long getQuant(); } /** * Protobuf type {@code protocol.ExchangeInjectContract} */ public static final class ExchangeInjectContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExchangeInjectContract) ExchangeInjectContractOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeInjectContract.newBuilder() to construct. private ExchangeInjectContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeInjectContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; tokenId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeInjectContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeInjectContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeInjectContract.class, org.tron.trident.proto.Contract.ExchangeInjectContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int EXCHANGE_ID_FIELD_NUMBER = 2; private long exchangeId_ = 0L; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int TOKEN_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } public static final int QUANT_FIELD_NUMBER = 4; private long quant_ = 0L; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (exchangeId_ != 0L) { output.writeInt64(2, exchangeId_); } if (!tokenId_.isEmpty()) { output.writeBytes(3, tokenId_); } if (quant_ != 0L) { output.writeInt64(4, quant_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, exchangeId_); } if (!tokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tokenId_); } if (quant_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, quant_); } 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.Contract.ExchangeInjectContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ExchangeInjectContract other = (org.tron.trident.proto.Contract.ExchangeInjectContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getExchangeId() != other.getExchangeId()) return false; if (!getTokenId() .equals(other.getTokenId())) return false; if (getQuant() != other.getQuant()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); hash = (37 * hash) + QUANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuant()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ExchangeInjectContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeInjectContract 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.Contract.ExchangeInjectContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeInjectContract 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.Contract.ExchangeInjectContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeInjectContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ExchangeInjectContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeInjectContract 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.Contract.ExchangeInjectContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeInjectContract 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.Contract.ExchangeInjectContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeInjectContract 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.Contract.ExchangeInjectContract 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.ExchangeInjectContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExchangeInjectContract) org.tron.trident.proto.Contract.ExchangeInjectContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeInjectContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeInjectContract.class, org.tron.trident.proto.Contract.ExchangeInjectContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ExchangeInjectContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; exchangeId_ = 0L; tokenId_ = com.google.protobuf.ByteString.EMPTY; quant_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeInjectContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ExchangeInjectContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeInjectContract build() { org.tron.trident.proto.Contract.ExchangeInjectContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeInjectContract buildPartial() { org.tron.trident.proto.Contract.ExchangeInjectContract result = new org.tron.trident.proto.Contract.ExchangeInjectContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ExchangeInjectContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exchangeId_ = exchangeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tokenId_ = tokenId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.quant_ = quant_; } } @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.Contract.ExchangeInjectContract) { return mergeFrom((org.tron.trident.proto.Contract.ExchangeInjectContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ExchangeInjectContract other) { if (other == org.tron.trident.proto.Contract.ExchangeInjectContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getTokenId() != com.google.protobuf.ByteString.EMPTY) { setTokenId(other.getTokenId()); } if (other.getQuant() != 0L) { setQuant(other.getQuant()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { exchangeId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { tokenId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { quant_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long exchangeId_ ; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 2; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { bitField0_ = (bitField0_ & ~0x00000002); exchangeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } /** * bytes token_id = 3; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000004); tokenId_ = getDefaultInstance().getTokenId(); onChanged(); return this; } private long quant_ ; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } /** * int64 quant = 4; * @param value The quant to set. * @return This builder for chaining. */ public Builder setQuant(long value) { quant_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { bitField0_ = (bitField0_ & ~0x00000008); quant_ = 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.ExchangeInjectContract) } // @@protoc_insertion_point(class_scope:protocol.ExchangeInjectContract) private static final org.tron.trident.proto.Contract.ExchangeInjectContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ExchangeInjectContract(); } public static org.tron.trident.proto.Contract.ExchangeInjectContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeInjectContract 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.Contract.ExchangeInjectContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeWithdrawContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExchangeWithdrawContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 exchange_id = 2; * @return The exchangeId. */ long getExchangeId(); /** * bytes token_id = 3; * @return The tokenId. */ com.google.protobuf.ByteString getTokenId(); /** * int64 quant = 4; * @return The quant. */ long getQuant(); } /** * Protobuf type {@code protocol.ExchangeWithdrawContract} */ public static final class ExchangeWithdrawContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExchangeWithdrawContract) ExchangeWithdrawContractOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeWithdrawContract.newBuilder() to construct. private ExchangeWithdrawContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeWithdrawContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; tokenId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeWithdrawContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeWithdrawContract.class, org.tron.trident.proto.Contract.ExchangeWithdrawContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int EXCHANGE_ID_FIELD_NUMBER = 2; private long exchangeId_ = 0L; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int TOKEN_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } public static final int QUANT_FIELD_NUMBER = 4; private long quant_ = 0L; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (exchangeId_ != 0L) { output.writeInt64(2, exchangeId_); } if (!tokenId_.isEmpty()) { output.writeBytes(3, tokenId_); } if (quant_ != 0L) { output.writeInt64(4, quant_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, exchangeId_); } if (!tokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tokenId_); } if (quant_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, quant_); } 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.Contract.ExchangeWithdrawContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ExchangeWithdrawContract other = (org.tron.trident.proto.Contract.ExchangeWithdrawContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getExchangeId() != other.getExchangeId()) return false; if (!getTokenId() .equals(other.getTokenId())) return false; if (getQuant() != other.getQuant()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); hash = (37 * hash) + QUANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuant()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract 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.ExchangeWithdrawContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExchangeWithdrawContract) org.tron.trident.proto.Contract.ExchangeWithdrawContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeWithdrawContract.class, org.tron.trident.proto.Contract.ExchangeWithdrawContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ExchangeWithdrawContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; exchangeId_ = 0L; tokenId_ = com.google.protobuf.ByteString.EMPTY; quant_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeWithdrawContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ExchangeWithdrawContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeWithdrawContract build() { org.tron.trident.proto.Contract.ExchangeWithdrawContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeWithdrawContract buildPartial() { org.tron.trident.proto.Contract.ExchangeWithdrawContract result = new org.tron.trident.proto.Contract.ExchangeWithdrawContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ExchangeWithdrawContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exchangeId_ = exchangeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tokenId_ = tokenId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.quant_ = quant_; } } @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.Contract.ExchangeWithdrawContract) { return mergeFrom((org.tron.trident.proto.Contract.ExchangeWithdrawContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ExchangeWithdrawContract other) { if (other == org.tron.trident.proto.Contract.ExchangeWithdrawContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getTokenId() != com.google.protobuf.ByteString.EMPTY) { setTokenId(other.getTokenId()); } if (other.getQuant() != 0L) { setQuant(other.getQuant()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { exchangeId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { tokenId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { quant_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long exchangeId_ ; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 2; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { bitField0_ = (bitField0_ & ~0x00000002); exchangeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } /** * bytes token_id = 3; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000004); tokenId_ = getDefaultInstance().getTokenId(); onChanged(); return this; } private long quant_ ; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } /** * int64 quant = 4; * @param value The quant to set. * @return This builder for chaining. */ public Builder setQuant(long value) { quant_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { bitField0_ = (bitField0_ & ~0x00000008); quant_ = 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.ExchangeWithdrawContract) } // @@protoc_insertion_point(class_scope:protocol.ExchangeWithdrawContract) private static final org.tron.trident.proto.Contract.ExchangeWithdrawContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ExchangeWithdrawContract(); } public static org.tron.trident.proto.Contract.ExchangeWithdrawContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeWithdrawContract 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.Contract.ExchangeWithdrawContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeTransactionContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExchangeTransactionContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 exchange_id = 2; * @return The exchangeId. */ long getExchangeId(); /** * bytes token_id = 3; * @return The tokenId. */ com.google.protobuf.ByteString getTokenId(); /** * int64 quant = 4; * @return The quant. */ long getQuant(); /** * int64 expected = 5; * @return The expected. */ long getExpected(); } /** * Protobuf type {@code protocol.ExchangeTransactionContract} */ public static final class ExchangeTransactionContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExchangeTransactionContract) ExchangeTransactionContractOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeTransactionContract.newBuilder() to construct. private ExchangeTransactionContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeTransactionContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; tokenId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeTransactionContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeTransactionContract.class, org.tron.trident.proto.Contract.ExchangeTransactionContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int EXCHANGE_ID_FIELD_NUMBER = 2; private long exchangeId_ = 0L; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } public static final int TOKEN_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } public static final int QUANT_FIELD_NUMBER = 4; private long quant_ = 0L; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } public static final int EXPECTED_FIELD_NUMBER = 5; private long expected_ = 0L; /** * int64 expected = 5; * @return The expected. */ @java.lang.Override public long getExpected() { return expected_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (exchangeId_ != 0L) { output.writeInt64(2, exchangeId_); } if (!tokenId_.isEmpty()) { output.writeBytes(3, tokenId_); } if (quant_ != 0L) { output.writeInt64(4, quant_); } if (expected_ != 0L) { output.writeInt64(5, expected_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (exchangeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, exchangeId_); } if (!tokenId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tokenId_); } if (quant_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, quant_); } if (expected_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, expected_); } 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.Contract.ExchangeTransactionContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.ExchangeTransactionContract other = (org.tron.trident.proto.Contract.ExchangeTransactionContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getExchangeId() != other.getExchangeId()) return false; if (!getTokenId() .equals(other.getTokenId())) return false; if (getQuant() != other.getQuant()) return false; if (getExpected() != other.getExpected()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExchangeId()); hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); hash = (37 * hash) + QUANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuant()); hash = (37 * hash) + EXPECTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpected()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.ExchangeTransactionContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract 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.Contract.ExchangeTransactionContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract 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.Contract.ExchangeTransactionContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract 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.Contract.ExchangeTransactionContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract 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.Contract.ExchangeTransactionContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract 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.Contract.ExchangeTransactionContract 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.ExchangeTransactionContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExchangeTransactionContract) org.tron.trident.proto.Contract.ExchangeTransactionContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.ExchangeTransactionContract.class, org.tron.trident.proto.Contract.ExchangeTransactionContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.ExchangeTransactionContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; exchangeId_ = 0L; tokenId_ = com.google.protobuf.ByteString.EMPTY; quant_ = 0L; expected_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeTransactionContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.ExchangeTransactionContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeTransactionContract build() { org.tron.trident.proto.Contract.ExchangeTransactionContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.ExchangeTransactionContract buildPartial() { org.tron.trident.proto.Contract.ExchangeTransactionContract result = new org.tron.trident.proto.Contract.ExchangeTransactionContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.ExchangeTransactionContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exchangeId_ = exchangeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tokenId_ = tokenId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.quant_ = quant_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.expected_ = expected_; } } @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.Contract.ExchangeTransactionContract) { return mergeFrom((org.tron.trident.proto.Contract.ExchangeTransactionContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.ExchangeTransactionContract other) { if (other == org.tron.trident.proto.Contract.ExchangeTransactionContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getExchangeId() != 0L) { setExchangeId(other.getExchangeId()); } if (other.getTokenId() != com.google.protobuf.ByteString.EMPTY) { setTokenId(other.getTokenId()); } if (other.getQuant() != 0L) { setQuant(other.getQuant()); } if (other.getExpected() != 0L) { setExpected(other.getExpected()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { exchangeId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { tokenId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { quant_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { expected_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long exchangeId_ ; /** * int64 exchange_id = 2; * @return The exchangeId. */ @java.lang.Override public long getExchangeId() { return exchangeId_; } /** * int64 exchange_id = 2; * @param value The exchangeId to set. * @return This builder for chaining. */ public Builder setExchangeId(long value) { exchangeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { bitField0_ = (bitField0_ & ~0x00000002); exchangeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString tokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_id = 3; * @return The tokenId. */ @java.lang.Override public com.google.protobuf.ByteString getTokenId() { return tokenId_; } /** * bytes token_id = 3; * @param value The tokenId to set. * @return This builder for chaining. */ public Builder setTokenId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000004); tokenId_ = getDefaultInstance().getTokenId(); onChanged(); return this; } private long quant_ ; /** * int64 quant = 4; * @return The quant. */ @java.lang.Override public long getQuant() { return quant_; } /** * int64 quant = 4; * @param value The quant to set. * @return This builder for chaining. */ public Builder setQuant(long value) { quant_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { bitField0_ = (bitField0_ & ~0x00000008); quant_ = 0L; onChanged(); return this; } private long expected_ ; /** * int64 expected = 5; * @return The expected. */ @java.lang.Override public long getExpected() { return expected_; } /** * int64 expected = 5; * @param value The expected to set. * @return This builder for chaining. */ public Builder setExpected(long value) { expected_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 expected = 5; * @return This builder for chaining. */ public Builder clearExpected() { bitField0_ = (bitField0_ & ~0x00000010); expected_ = 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.ExchangeTransactionContract) } // @@protoc_insertion_point(class_scope:protocol.ExchangeTransactionContract) private static final org.tron.trident.proto.Contract.ExchangeTransactionContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.ExchangeTransactionContract(); } public static org.tron.trident.proto.Contract.ExchangeTransactionContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeTransactionContract 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.Contract.ExchangeTransactionContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FreezeBalanceV2ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.FreezeBalanceV2Contract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 frozen_balance = 2; * @return The frozenBalance. */ long getFrozenBalance(); /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 3; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); } /** *
   *stake 2.0
   * 
* * Protobuf type {@code protocol.FreezeBalanceV2Contract} */ public static final class FreezeBalanceV2Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.FreezeBalanceV2Contract) FreezeBalanceV2ContractOrBuilder { private static final long serialVersionUID = 0L; // Use FreezeBalanceV2Contract.newBuilder() to construct. private FreezeBalanceV2Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FreezeBalanceV2Contract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FreezeBalanceV2Contract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.FreezeBalanceV2Contract.class, org.tron.trident.proto.Contract.FreezeBalanceV2Contract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int FROZEN_BALANCE_FIELD_NUMBER = 2; private long frozenBalance_ = 0L; /** * int64 frozen_balance = 2; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } public static final int RESOURCE_FIELD_NUMBER = 3; private int resource_ = 0; /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 3; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (frozenBalance_ != 0L) { output.writeInt64(2, frozenBalance_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(3, resource_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (frozenBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, frozenBalance_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, resource_); } 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.Contract.FreezeBalanceV2Contract)) { return super.equals(obj); } org.tron.trident.proto.Contract.FreezeBalanceV2Contract other = (org.tron.trident.proto.Contract.FreezeBalanceV2Contract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getFrozenBalance() != other.getFrozenBalance()) return false; if (resource_ != other.resource_) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + FROZEN_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFrozenBalance()); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract 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; } /** *
     *stake 2.0
     * 
* * Protobuf type {@code protocol.FreezeBalanceV2Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.FreezeBalanceV2Contract) org.tron.trident.proto.Contract.FreezeBalanceV2ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.FreezeBalanceV2Contract.class, org.tron.trident.proto.Contract.FreezeBalanceV2Contract.Builder.class); } // Construct using org.tron.trident.proto.Contract.FreezeBalanceV2Contract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; frozenBalance_ = 0L; resource_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_FreezeBalanceV2Contract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceV2Contract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.FreezeBalanceV2Contract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceV2Contract build() { org.tron.trident.proto.Contract.FreezeBalanceV2Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.FreezeBalanceV2Contract buildPartial() { org.tron.trident.proto.Contract.FreezeBalanceV2Contract result = new org.tron.trident.proto.Contract.FreezeBalanceV2Contract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.FreezeBalanceV2Contract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.frozenBalance_ = frozenBalance_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; } } @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.Contract.FreezeBalanceV2Contract) { return mergeFrom((org.tron.trident.proto.Contract.FreezeBalanceV2Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.FreezeBalanceV2Contract other) { if (other == org.tron.trident.proto.Contract.FreezeBalanceV2Contract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getFrozenBalance() != 0L) { setFrozenBalance(other.getFrozenBalance()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { frozenBalance_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { resource_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long frozenBalance_ ; /** * int64 frozen_balance = 2; * @return The frozenBalance. */ @java.lang.Override public long getFrozenBalance() { return frozenBalance_; } /** * int64 frozen_balance = 2; * @param value The frozenBalance to set. * @return This builder for chaining. */ public Builder setFrozenBalance(long value) { frozenBalance_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 frozen_balance = 2; * @return This builder for chaining. */ public Builder clearFrozenBalance() { bitField0_ = (bitField0_ & ~0x00000002); frozenBalance_ = 0L; onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 3; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .protocol.ResourceCode resource = 3; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 3; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 3; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000004); resource_ = 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.FreezeBalanceV2Contract) } // @@protoc_insertion_point(class_scope:protocol.FreezeBalanceV2Contract) private static final org.tron.trident.proto.Contract.FreezeBalanceV2Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.FreezeBalanceV2Contract(); } public static org.tron.trident.proto.Contract.FreezeBalanceV2Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FreezeBalanceV2Contract 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.Contract.FreezeBalanceV2Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnfreezeBalanceV2ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UnfreezeBalanceV2Contract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 unfreeze_balance = 2; * @return The unfreezeBalance. */ long getUnfreezeBalance(); /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 3; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); } /** * Protobuf type {@code protocol.UnfreezeBalanceV2Contract} */ public static final class UnfreezeBalanceV2Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UnfreezeBalanceV2Contract) UnfreezeBalanceV2ContractOrBuilder { private static final long serialVersionUID = 0L; // Use UnfreezeBalanceV2Contract.newBuilder() to construct. private UnfreezeBalanceV2Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnfreezeBalanceV2Contract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnfreezeBalanceV2Contract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.class, org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int UNFREEZE_BALANCE_FIELD_NUMBER = 2; private long unfreezeBalance_ = 0L; /** * int64 unfreeze_balance = 2; * @return The unfreezeBalance. */ @java.lang.Override public long getUnfreezeBalance() { return unfreezeBalance_; } public static final int RESOURCE_FIELD_NUMBER = 3; private int resource_ = 0; /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 3; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (unfreezeBalance_ != 0L) { output.writeInt64(2, unfreezeBalance_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(3, resource_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (unfreezeBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, unfreezeBalance_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, resource_); } 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.Contract.UnfreezeBalanceV2Contract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract other = (org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getUnfreezeBalance() != other.getUnfreezeBalance()) return false; if (resource_ != other.resource_) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + UNFREEZE_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnfreezeBalance()); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract 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.UnfreezeBalanceV2Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UnfreezeBalanceV2Contract) org.tron.trident.proto.Contract.UnfreezeBalanceV2ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.class, org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; unfreezeBalance_ = 0L; resource_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UnfreezeBalanceV2Contract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract build() { org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract buildPartial() { org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract result = new org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.unfreezeBalance_ = unfreezeBalance_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; } } @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.Contract.UnfreezeBalanceV2Contract) { return mergeFrom((org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract other) { if (other == org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getUnfreezeBalance() != 0L) { setUnfreezeBalance(other.getUnfreezeBalance()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { unfreezeBalance_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { resource_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long unfreezeBalance_ ; /** * int64 unfreeze_balance = 2; * @return The unfreezeBalance. */ @java.lang.Override public long getUnfreezeBalance() { return unfreezeBalance_; } /** * int64 unfreeze_balance = 2; * @param value The unfreezeBalance to set. * @return This builder for chaining. */ public Builder setUnfreezeBalance(long value) { unfreezeBalance_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 unfreeze_balance = 2; * @return This builder for chaining. */ public Builder clearUnfreezeBalance() { bitField0_ = (bitField0_ & ~0x00000002); unfreezeBalance_ = 0L; onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 3; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 3; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .protocol.ResourceCode resource = 3; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 3; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 3; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000004); resource_ = 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.UnfreezeBalanceV2Contract) } // @@protoc_insertion_point(class_scope:protocol.UnfreezeBalanceV2Contract) private static final org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract(); } public static org.tron.trident.proto.Contract.UnfreezeBalanceV2Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnfreezeBalanceV2Contract 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.Contract.UnfreezeBalanceV2Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelegateResourceContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DelegateResourceContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 2; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); /** * int64 balance = 3; * @return The balance. */ long getBalance(); /** * bytes receiver_address = 4; * @return The receiverAddress. */ com.google.protobuf.ByteString getReceiverAddress(); /** * bool lock = 5; * @return The lock. */ boolean getLock(); /** * int64 lock_period = 6; * @return The lockPeriod. */ long getLockPeriod(); } /** * Protobuf type {@code protocol.DelegateResourceContract} */ public static final class DelegateResourceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DelegateResourceContract) DelegateResourceContractOrBuilder { private static final long serialVersionUID = 0L; // Use DelegateResourceContract.newBuilder() to construct. private DelegateResourceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelegateResourceContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelegateResourceContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_DelegateResourceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_DelegateResourceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.DelegateResourceContract.class, org.tron.trident.proto.Contract.DelegateResourceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int RESOURCE_FIELD_NUMBER = 2; private int resource_ = 0; /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 2; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int BALANCE_FIELD_NUMBER = 3; private long balance_ = 0L; /** * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 4; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } public static final int LOCK_FIELD_NUMBER = 5; private boolean lock_ = false; /** * bool lock = 5; * @return The lock. */ @java.lang.Override public boolean getLock() { return lock_; } public static final int LOCK_PERIOD_FIELD_NUMBER = 6; private long lockPeriod_ = 0L; /** * int64 lock_period = 6; * @return The lockPeriod. */ @java.lang.Override public long getLockPeriod() { return lockPeriod_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(2, resource_); } if (balance_ != 0L) { output.writeInt64(3, balance_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(4, receiverAddress_); } if (lock_ != false) { output.writeBool(5, lock_); } if (lockPeriod_ != 0L) { output.writeInt64(6, lockPeriod_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, resource_); } if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, balance_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, receiverAddress_); } if (lock_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, lock_); } if (lockPeriod_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, lockPeriod_); } 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.Contract.DelegateResourceContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.DelegateResourceContract other = (org.tron.trident.proto.Contract.DelegateResourceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (resource_ != other.resource_) return false; if (getBalance() != other.getBalance()) return false; if (!getReceiverAddress() .equals(other.getReceiverAddress())) return false; if (getLock() != other.getLock()) return false; if (getLockPeriod() != other.getLockPeriod()) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBalance()); hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getReceiverAddress().hashCode(); hash = (37 * hash) + LOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLock()); hash = (37 * hash) + LOCK_PERIOD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockPeriod()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.DelegateResourceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.DelegateResourceContract 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.Contract.DelegateResourceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.DelegateResourceContract 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.Contract.DelegateResourceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.DelegateResourceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.DelegateResourceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.DelegateResourceContract 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.Contract.DelegateResourceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.DelegateResourceContract 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.Contract.DelegateResourceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.DelegateResourceContract 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.Contract.DelegateResourceContract 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.DelegateResourceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DelegateResourceContract) org.tron.trident.proto.Contract.DelegateResourceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_DelegateResourceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_DelegateResourceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.DelegateResourceContract.class, org.tron.trident.proto.Contract.DelegateResourceContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.DelegateResourceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; balance_ = 0L; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; lock_ = false; lockPeriod_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_DelegateResourceContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.DelegateResourceContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.DelegateResourceContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.DelegateResourceContract build() { org.tron.trident.proto.Contract.DelegateResourceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.DelegateResourceContract buildPartial() { org.tron.trident.proto.Contract.DelegateResourceContract result = new org.tron.trident.proto.Contract.DelegateResourceContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.DelegateResourceContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.balance_ = balance_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.receiverAddress_ = receiverAddress_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.lock_ = lock_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.lockPeriod_ = lockPeriod_; } } @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.Contract.DelegateResourceContract) { return mergeFrom((org.tron.trident.proto.Contract.DelegateResourceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.DelegateResourceContract other) { if (other == org.tron.trident.proto.Contract.DelegateResourceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } if (other.getBalance() != 0L) { setBalance(other.getBalance()); } if (other.getReceiverAddress() != com.google.protobuf.ByteString.EMPTY) { setReceiverAddress(other.getReceiverAddress()); } if (other.getLock() != false) { setLock(other.getLock()); } if (other.getLockPeriod() != 0L) { setLockPeriod(other.getLockPeriod()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { resource_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { balance_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { receiverAddress_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { lock_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { lockPeriod_ = 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 2; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.ResourceCode resource = 2; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 2; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 2; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); resource_ = 0; onChanged(); return this; } private long balance_ ; /** * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** * int64 balance = 3; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 balance = 3; * @return This builder for chaining. */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000004); balance_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 4; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } /** * bytes receiver_address = 4; * @param value The receiverAddress to set. * @return This builder for chaining. */ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } receiverAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes receiver_address = 4; * @return This builder for chaining. */ public Builder clearReceiverAddress() { bitField0_ = (bitField0_ & ~0x00000008); receiverAddress_ = getDefaultInstance().getReceiverAddress(); onChanged(); return this; } private boolean lock_ ; /** * bool lock = 5; * @return The lock. */ @java.lang.Override public boolean getLock() { return lock_; } /** * bool lock = 5; * @param value The lock to set. * @return This builder for chaining. */ public Builder setLock(boolean value) { lock_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bool lock = 5; * @return This builder for chaining. */ public Builder clearLock() { bitField0_ = (bitField0_ & ~0x00000010); lock_ = false; onChanged(); return this; } private long lockPeriod_ ; /** * int64 lock_period = 6; * @return The lockPeriod. */ @java.lang.Override public long getLockPeriod() { return lockPeriod_; } /** * int64 lock_period = 6; * @param value The lockPeriod to set. * @return This builder for chaining. */ public Builder setLockPeriod(long value) { lockPeriod_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int64 lock_period = 6; * @return This builder for chaining. */ public Builder clearLockPeriod() { bitField0_ = (bitField0_ & ~0x00000020); lockPeriod_ = 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.DelegateResourceContract) } // @@protoc_insertion_point(class_scope:protocol.DelegateResourceContract) private static final org.tron.trident.proto.Contract.DelegateResourceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.DelegateResourceContract(); } public static org.tron.trident.proto.Contract.DelegateResourceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelegateResourceContract 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.Contract.DelegateResourceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnDelegateResourceContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UnDelegateResourceContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .protocol.ResourceCode resource = 2; * @return The resource. */ org.tron.trident.proto.Common.ResourceCode getResource(); /** * int64 balance = 3; * @return The balance. */ long getBalance(); /** * bytes receiver_address = 4; * @return The receiverAddress. */ com.google.protobuf.ByteString getReceiverAddress(); } /** * Protobuf type {@code protocol.UnDelegateResourceContract} */ public static final class UnDelegateResourceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UnDelegateResourceContract) UnDelegateResourceContractOrBuilder { private static final long serialVersionUID = 0L; // Use UnDelegateResourceContract.newBuilder() to construct. private UnDelegateResourceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnDelegateResourceContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnDelegateResourceContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnDelegateResourceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnDelegateResourceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnDelegateResourceContract.class, org.tron.trident.proto.Contract.UnDelegateResourceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int RESOURCE_FIELD_NUMBER = 2; private int resource_ = 0; /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 2; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int BALANCE_FIELD_NUMBER = 3; private long balance_ = 0L; /** * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 4; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { output.writeEnum(2, resource_); } if (balance_ != 0L) { output.writeInt64(3, balance_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(4, receiverAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (resource_ != org.tron.trident.proto.Common.ResourceCode.BANDWIDTH.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, resource_); } if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, balance_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, receiverAddress_); } 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.Contract.UnDelegateResourceContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.UnDelegateResourceContract other = (org.tron.trident.proto.Contract.UnDelegateResourceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (resource_ != other.resource_) return false; if (getBalance() != other.getBalance()) return false; if (!getReceiverAddress() .equals(other.getReceiverAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBalance()); hash = (37 * hash) + RECEIVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getReceiverAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.UnDelegateResourceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract 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.Contract.UnDelegateResourceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract 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.Contract.UnDelegateResourceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract 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.Contract.UnDelegateResourceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract 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.Contract.UnDelegateResourceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract 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.Contract.UnDelegateResourceContract 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.UnDelegateResourceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UnDelegateResourceContract) org.tron.trident.proto.Contract.UnDelegateResourceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_UnDelegateResourceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_UnDelegateResourceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.UnDelegateResourceContract.class, org.tron.trident.proto.Contract.UnDelegateResourceContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.UnDelegateResourceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; resource_ = 0; balance_ = 0L; receiverAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_UnDelegateResourceContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.UnDelegateResourceContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.UnDelegateResourceContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.UnDelegateResourceContract build() { org.tron.trident.proto.Contract.UnDelegateResourceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.UnDelegateResourceContract buildPartial() { org.tron.trident.proto.Contract.UnDelegateResourceContract result = new org.tron.trident.proto.Contract.UnDelegateResourceContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.UnDelegateResourceContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.balance_ = balance_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.receiverAddress_ = receiverAddress_; } } @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.Contract.UnDelegateResourceContract) { return mergeFrom((org.tron.trident.proto.Contract.UnDelegateResourceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.UnDelegateResourceContract other) { if (other == org.tron.trident.proto.Contract.UnDelegateResourceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } if (other.getBalance() != 0L) { setBalance(other.getBalance()); } if (other.getReceiverAddress() != com.google.protobuf.ByteString.EMPTY) { setReceiverAddress(other.getReceiverAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { resource_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { balance_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { receiverAddress_ = input.readBytes(); 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 ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private int resource_ = 0; /** * .protocol.ResourceCode resource = 2; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .protocol.ResourceCode resource = 2; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.ResourceCode resource = 2; * @return The resource. */ @java.lang.Override public org.tron.trident.proto.Common.ResourceCode getResource() { org.tron.trident.proto.Common.ResourceCode result = org.tron.trident.proto.Common.ResourceCode.forNumber(resource_); return result == null ? org.tron.trident.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 2; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.tron.trident.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 2; * @return This builder for chaining. */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); resource_ = 0; onChanged(); return this; } private long balance_ ; /** * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** * int64 balance = 3; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 balance = 3; * @return This builder for chaining. */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000004); balance_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString receiverAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes receiver_address = 4; * @return The receiverAddress. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; } /** * bytes receiver_address = 4; * @param value The receiverAddress to set. * @return This builder for chaining. */ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } receiverAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes receiver_address = 4; * @return This builder for chaining. */ public Builder clearReceiverAddress() { bitField0_ = (bitField0_ & ~0x00000008); receiverAddress_ = getDefaultInstance().getReceiverAddress(); 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.UnDelegateResourceContract) } // @@protoc_insertion_point(class_scope:protocol.UnDelegateResourceContract) private static final org.tron.trident.proto.Contract.UnDelegateResourceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.UnDelegateResourceContract(); } public static org.tron.trident.proto.Contract.UnDelegateResourceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnDelegateResourceContract 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.Contract.UnDelegateResourceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WithdrawExpireUnfreezeContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WithdrawExpireUnfreezeContract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.WithdrawExpireUnfreezeContract} */ public static final class WithdrawExpireUnfreezeContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WithdrawExpireUnfreezeContract) WithdrawExpireUnfreezeContractOrBuilder { private static final long serialVersionUID = 0L; // Use WithdrawExpireUnfreezeContract.newBuilder() to construct. private WithdrawExpireUnfreezeContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WithdrawExpireUnfreezeContract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WithdrawExpireUnfreezeContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawExpireUnfreezeContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.class, org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } 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.Contract.WithdrawExpireUnfreezeContract)) { return super.equals(obj); } org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract other = (org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract 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.WithdrawExpireUnfreezeContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WithdrawExpireUnfreezeContract) org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawExpireUnfreezeContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.class, org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.Builder.class); } // Construct using org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract build() { org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract buildPartial() { org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract result = new org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.WithdrawExpireUnfreezeContract) { return mergeFrom((org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract other) { if (other == org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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.WithdrawExpireUnfreezeContract) } // @@protoc_insertion_point(class_scope:protocol.WithdrawExpireUnfreezeContract) private static final org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract(); } public static org.tron.trident.proto.Contract.WithdrawExpireUnfreezeContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WithdrawExpireUnfreezeContract 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.Contract.WithdrawExpireUnfreezeContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelAllUnfreezeV2ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CancelAllUnfreezeV2Contract) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.CancelAllUnfreezeV2Contract} */ public static final class CancelAllUnfreezeV2Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CancelAllUnfreezeV2Contract) CancelAllUnfreezeV2ContractOrBuilder { private static final long serialVersionUID = 0L; // Use CancelAllUnfreezeV2Contract.newBuilder() to construct. private CancelAllUnfreezeV2Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelAllUnfreezeV2Contract() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CancelAllUnfreezeV2Contract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_CancelAllUnfreezeV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.class, org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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 (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } 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.Contract.CancelAllUnfreezeV2Contract)) { return super.equals(obj); } org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract other = (org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) 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) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract 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.CancelAllUnfreezeV2Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CancelAllUnfreezeV2Contract) org.tron.trident.proto.Contract.CancelAllUnfreezeV2ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.proto.Contract.internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.proto.Contract.internal_static_protocol_CancelAllUnfreezeV2Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.class, org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.Builder.class); } // Construct using org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.proto.Contract.internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor; } @java.lang.Override public org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract getDefaultInstanceForType() { return org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.getDefaultInstance(); } @java.lang.Override public org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract build() { org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract buildPartial() { org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract result = new org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } } @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.Contract.CancelAllUnfreezeV2Contract) { return mergeFrom((org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract other) { if (other == org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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.CancelAllUnfreezeV2Contract) } // @@protoc_insertion_point(class_scope:protocol.CancelAllUnfreezeV2Contract) private static final org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract(); } public static org.tron.trident.proto.Contract.CancelAllUnfreezeV2Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CancelAllUnfreezeV2Contract 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.Contract.CancelAllUnfreezeV2Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountCreateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountCreateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountUpdateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountUpdateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_SetAccountIdContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_SetAccountIdContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountPermissionUpdateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AssetIssueContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AssetIssueContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransferAssetContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransferAssetContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UnfreezeAssetContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UpdateAssetContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UpdateAssetContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ParticipateAssetIssueContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_FreezeBalanceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_FreezeBalanceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UnfreezeBalanceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WithdrawBalanceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransferContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransferContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketSellAssetContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketSellAssetContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_MarketCancelOrderContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ProposalApproveContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ProposalApproveContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ProposalCreateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ProposalCreateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ProposalCreateContract_ParametersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ProposalCreateContract_ParametersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ProposalDeleteContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ProposalDeleteContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CreateSmartContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CreateSmartContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TriggerSmartContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TriggerSmartContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ClearABIContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ClearABIContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UpdateSettingContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UpdateSettingContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UpdateEnergyLimitContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UpdateEnergyLimitContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UpdateBrokerageContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_VoteAssetContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_VoteAssetContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WitnessCreateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WitnessCreateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WitnessUpdateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WitnessUpdateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_VoteWitnessContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_VoteWitnessContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_VoteWitnessContract_Vote_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExchangeCreateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExchangeCreateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExchangeInjectContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExchangeInjectContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExchangeWithdrawContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExchangeTransactionContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_FreezeBalanceV2Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_FreezeBalanceV2Contract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UnfreezeBalanceV2Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UnfreezeBalanceV2Contract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DelegateResourceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DelegateResourceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UnDelegateResourceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UnDelegateResourceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WithdrawExpireUnfreezeContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CancelAllUnfreezeV2Contract_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/contract.proto\022\010protocol\032\021core/co" + "mmon.proto\"l\n\025AccountCreateContract\022\025\n\ro" + "wner_address\030\001 \001(\014\022\027\n\017account_address\030\002 " + "\001(\014\022#\n\004type\030\003 \001(\0162\025.protocol.AccountType" + "\"D\n\025AccountUpdateContract\022\024\n\014account_nam" + "e\030\001 \001(\014\022\025\n\rowner_address\030\002 \001(\014\"A\n\024SetAcc" + "ountIdContract\022\022\n\naccount_id\030\001 \001(\014\022\025\n\row" + "ner_address\030\002 \001(\014\"\253\001\n\037AccountPermissionU" + "pdateContract\022\025\n\rowner_address\030\001 \001(\014\022#\n\005" + "owner\030\002 \001(\0132\024.protocol.Permission\022%\n\007wit" + "ness\030\003 \001(\0132\024.protocol.Permission\022%\n\007acti" + "ves\030\004 \003(\0132\024.protocol.Permission\"\220\004\n\022Asse" + "tIssueContract\022\n\n\002id\030) \001(\t\022\025\n\rowner_addr" + "ess\030\001 \001(\014\022\014\n\004name\030\002 \001(\014\022\014\n\004abbr\030\003 \001(\014\022\024\n" + "\014total_supply\030\004 \001(\003\022@\n\rfrozen_supply\030\005 \003" + "(\0132).protocol.AssetIssueContract.FrozenS" + "upply\022\017\n\007trx_num\030\006 \001(\005\022\021\n\tprecision\030\007 \001(" + "\005\022\013\n\003num\030\010 \001(\005\022\022\n\nstart_time\030\t \001(\003\022\020\n\010en" + "d_time\030\n \001(\003\022\r\n\005order\030\013 \001(\003\022\022\n\nvote_scor" + "e\030\020 \001(\005\022\023\n\013description\030\024 \001(\014\022\013\n\003url\030\025 \001(" + "\014\022\034\n\024free_asset_net_limit\030\026 \001(\003\022#\n\033publi" + "c_free_asset_net_limit\030\027 \001(\003\022#\n\033public_f" + "ree_asset_net_usage\030\030 \001(\003\022#\n\033public_late" + "st_free_net_time\030\031 \001(\003\032:\n\014FrozenSupply\022\025" + "\n\rfrozen_amount\030\001 \001(\003\022\023\n\013frozen_days\030\002 \001" + "(\003\"f\n\025TransferAssetContract\022\022\n\nasset_nam" + "e\030\001 \001(\014\022\025\n\rowner_address\030\002 \001(\014\022\022\n\nto_add" + "ress\030\003 \001(\014\022\016\n\006amount\030\004 \001(\003\".\n\025UnfreezeAs" + "setContract\022\025\n\rowner_address\030\001 \001(\014\"{\n\023Up" + "dateAssetContract\022\025\n\rowner_address\030\001 \001(\014" + "\022\023\n\013description\030\002 \001(\014\022\013\n\003url\030\003 \001(\014\022\021\n\tne" + "w_limit\030\004 \001(\003\022\030\n\020new_public_limit\030\005 \001(\003\"" + "n\n\035ParticipateAssetIssueContract\022\025\n\rowne" + "r_address\030\001 \001(\014\022\022\n\nto_address\030\002 \001(\014\022\022\n\na" + "sset_name\030\003 \001(\014\022\016\n\006amount\030\004 \001(\003\"\243\001\n\025Free" + "zeBalanceContract\022\025\n\rowner_address\030\001 \001(\014" + "\022\026\n\016frozen_balance\030\002 \001(\003\022\027\n\017frozen_durat" + "ion\030\003 \001(\003\022(\n\010resource\030\n \001(\0162\026.protocol.R" + "esourceCode\022\030\n\020receiver_address\030\017 \001(\014\"t\n" + "\027UnfreezeBalanceContract\022\025\n\rowner_addres" + "s\030\001 \001(\014\022(\n\010resource\030\n \001(\0162\026.protocol.Res" + "ourceCode\022\030\n\020receiver_address\030\017 \001(\014\"0\n\027W" + "ithdrawBalanceContract\022\025\n\rowner_address\030" + "\001 \001(\014\"M\n\020TransferContract\022\025\n\rowner_addre" + "ss\030\001 \001(\014\022\022\n\nto_address\030\002 \001(\014\022\016\n\006amount\030\003" + " \001(\003\"\255\001\n\027MarketSellAssetContract\022\025\n\rowne" + "r_address\030\001 \001(\014\022\025\n\rsell_token_id\030\002 \001(\014\022\033" + "\n\023sell_token_quantity\030\003 \001(\003\022\024\n\014buy_token" + "_id\030\004 \001(\014\022\032\n\022buy_token_quantity\030\005 \001(\003\022\025\n" + "\rpre_price_key\030\006 \001(\014\"D\n\031MarketCancelOrde" + "rContract\022\025\n\rowner_address\030\001 \001(\014\022\020\n\010orde" + "r_id\030\002 \001(\014\"^\n\027ProposalApproveContract\022\025\n" + "\rowner_address\030\001 \001(\014\022\023\n\013proposal_id\030\002 \001(" + "\003\022\027\n\017is_add_approval\030\003 \001(\010\"\250\001\n\026ProposalC" + "reateContract\022\025\n\rowner_address\030\001 \001(\014\022D\n\n" + "parameters\030\002 \003(\01320.protocol.ProposalCrea" + "teContract.ParametersEntry\0321\n\017Parameters" + "Entry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\"D\n" + "\026ProposalDeleteContract\022\025\n\rowner_address" + "\030\001 \001(\014\022\023\n\013proposal_id\030\002 \001(\003\"\207\001\n\023CreateSm" + "artContract\022\025\n\rowner_address\030\001 \001(\014\022-\n\014ne" + "w_contract\030\002 \001(\0132\027.protocol.SmartContrac" + "t\022\030\n\020call_token_value\030\003 \001(\003\022\020\n\010token_id\030" + "\004 \001(\003\"\225\001\n\024TriggerSmartContract\022\025\n\rowner_" + "address\030\001 \001(\014\022\030\n\020contract_address\030\002 \001(\014\022" + "\022\n\ncall_value\030\003 \001(\003\022\014\n\004data\030\004 \001(\014\022\030\n\020cal" + "l_token_value\030\005 \001(\003\022\020\n\010token_id\030\006 \001(\003\"C\n" + "\020ClearABIContract\022\025\n\rowner_address\030\001 \001(\014" + "\022\030\n\020contract_address\030\002 \001(\014\"o\n\025UpdateSett" + "ingContract\022\025\n\rowner_address\030\001 \001(\014\022\030\n\020co" + "ntract_address\030\002 \001(\014\022%\n\035consume_user_res" + "ource_percent\030\003 \001(\003\"i\n\031UpdateEnergyLimit" + "Contract\022\025\n\rowner_address\030\001 \001(\014\022\030\n\020contr" + "act_address\030\002 \001(\014\022\033\n\023origin_energy_limit" + "\030\003 \001(\003\"C\n\027UpdateBrokerageContract\022\025\n\rown" + "er_address\030\001 \001(\014\022\021\n\tbrokerage\030\002 \001(\005\"`\n\021V" + "oteAssetContract\022\025\n\rowner_address\030\001 \001(\014\022" + "\024\n\014vote_address\030\002 \003(\014\022\017\n\007support\030\003 \001(\010\022\r" + "\n\005count\030\005 \001(\005\";\n\025WitnessCreateContract\022\025" + "\n\rowner_address\030\001 \001(\014\022\013\n\003url\030\002 \001(\014\"B\n\025Wi" + "tnessUpdateContract\022\025\n\rowner_address\030\001 \001" + "(\014\022\022\n\nupdate_url\030\014 \001(\014\"\242\001\n\023VoteWitnessCo" + "ntract\022\025\n\rowner_address\030\001 \001(\014\0221\n\005votes\030\002" + " \003(\0132\".protocol.VoteWitnessContract.Vote" + "\022\017\n\007support\030\003 \001(\010\0320\n\004Vote\022\024\n\014vote_addres" + "s\030\001 \001(\014\022\022\n\nvote_count\030\002 \001(\003\"\233\001\n\026Exchange" + "CreateContract\022\025\n\rowner_address\030\001 \001(\014\022\026\n" + "\016first_token_id\030\002 \001(\014\022\033\n\023first_token_bal" + "ance\030\003 \001(\003\022\027\n\017second_token_id\030\004 \001(\014\022\034\n\024s" + "econd_token_balance\030\005 \001(\003\"e\n\026ExchangeInj" + "ectContract\022\025\n\rowner_address\030\001 \001(\014\022\023\n\013ex" + "change_id\030\002 \001(\003\022\020\n\010token_id\030\003 \001(\014\022\r\n\005qua" + "nt\030\004 \001(\003\"g\n\030ExchangeWithdrawContract\022\025\n\r" + "owner_address\030\001 \001(\014\022\023\n\013exchange_id\030\002 \001(\003" + "\022\020\n\010token_id\030\003 \001(\014\022\r\n\005quant\030\004 \001(\003\"|\n\033Exc" + "hangeTransactionContract\022\025\n\rowner_addres" + "s\030\001 \001(\014\022\023\n\013exchange_id\030\002 \001(\003\022\020\n\010token_id" + "\030\003 \001(\014\022\r\n\005quant\030\004 \001(\003\022\020\n\010expected\030\005 \001(\003\"" + "r\n\027FreezeBalanceV2Contract\022\025\n\rowner_addr" + "ess\030\001 \001(\014\022\026\n\016frozen_balance\030\002 \001(\003\022(\n\010res" + "ource\030\003 \001(\0162\026.protocol.ResourceCode\"v\n\031U" + "nfreezeBalanceV2Contract\022\025\n\rowner_addres" + "s\030\001 \001(\014\022\030\n\020unfreeze_balance\030\002 \001(\003\022(\n\010res" + "ource\030\003 \001(\0162\026.protocol.ResourceCode\"\251\001\n\030" + "DelegateResourceContract\022\025\n\rowner_addres" + "s\030\001 \001(\014\022(\n\010resource\030\002 \001(\0162\026.protocol.Res" + "ourceCode\022\017\n\007balance\030\003 \001(\003\022\030\n\020receiver_a" + "ddress\030\004 \001(\014\022\014\n\004lock\030\005 \001(\010\022\023\n\013lock_perio" + "d\030\006 \001(\003\"\210\001\n\032UnDelegateResourceContract\022\025" + "\n\rowner_address\030\001 \001(\014\022(\n\010resource\030\002 \001(\0162" + "\026.protocol.ResourceCode\022\017\n\007balance\030\003 \001(\003" + "\022\030\n\020receiver_address\030\004 \001(\014\"7\n\036WithdrawEx" + "pireUnfreezeContract\022\025\n\rowner_address\030\001 " + "\001(\014\"4\n\033CancelAllUnfreezeV2Contract\022\025\n\row" + "ner_address\030\001 \001(\014B\030\n\026org.tron.trident.pr" + "otob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tron.trident.proto.Common.getDescriptor(), }); internal_static_protocol_AccountCreateContract_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_AccountCreateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountCreateContract_descriptor, new java.lang.String[] { "OwnerAddress", "AccountAddress", "Type", }); internal_static_protocol_AccountUpdateContract_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_AccountUpdateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountUpdateContract_descriptor, new java.lang.String[] { "AccountName", "OwnerAddress", }); internal_static_protocol_SetAccountIdContract_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_SetAccountIdContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_SetAccountIdContract_descriptor, new java.lang.String[] { "AccountId", "OwnerAddress", }); internal_static_protocol_AccountPermissionUpdateContract_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountPermissionUpdateContract_descriptor, new java.lang.String[] { "OwnerAddress", "Owner", "Witness", "Actives", }); internal_static_protocol_AssetIssueContract_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protocol_AssetIssueContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AssetIssueContract_descriptor, new java.lang.String[] { "Id", "OwnerAddress", "Name", "Abbr", "TotalSupply", "FrozenSupply", "TrxNum", "Precision", "Num", "StartTime", "EndTime", "Order", "VoteScore", "Description", "Url", "FreeAssetNetLimit", "PublicFreeAssetNetLimit", "PublicFreeAssetNetUsage", "PublicLatestFreeNetTime", }); internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor = internal_static_protocol_AssetIssueContract_descriptor.getNestedTypes().get(0); internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor, new java.lang.String[] { "FrozenAmount", "FrozenDays", }); internal_static_protocol_TransferAssetContract_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protocol_TransferAssetContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransferAssetContract_descriptor, new java.lang.String[] { "AssetName", "OwnerAddress", "ToAddress", "Amount", }); internal_static_protocol_UnfreezeAssetContract_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UnfreezeAssetContract_descriptor, new java.lang.String[] { "OwnerAddress", }); internal_static_protocol_UpdateAssetContract_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protocol_UpdateAssetContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UpdateAssetContract_descriptor, new java.lang.String[] { "OwnerAddress", "Description", "Url", "NewLimit", "NewPublicLimit", }); internal_static_protocol_ParticipateAssetIssueContract_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ParticipateAssetIssueContract_descriptor, new java.lang.String[] { "OwnerAddress", "ToAddress", "AssetName", "Amount", }); internal_static_protocol_FreezeBalanceContract_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protocol_FreezeBalanceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_FreezeBalanceContract_descriptor, new java.lang.String[] { "OwnerAddress", "FrozenBalance", "FrozenDuration", "Resource", "ReceiverAddress", }); internal_static_protocol_UnfreezeBalanceContract_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UnfreezeBalanceContract_descriptor, new java.lang.String[] { "OwnerAddress", "Resource", "ReceiverAddress", }); internal_static_protocol_WithdrawBalanceContract_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WithdrawBalanceContract_descriptor, new java.lang.String[] { "OwnerAddress", }); internal_static_protocol_TransferContract_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protocol_TransferContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransferContract_descriptor, new java.lang.String[] { "OwnerAddress", "ToAddress", "Amount", }); internal_static_protocol_MarketSellAssetContract_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protocol_MarketSellAssetContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketSellAssetContract_descriptor, new java.lang.String[] { "OwnerAddress", "SellTokenId", "SellTokenQuantity", "BuyTokenId", "BuyTokenQuantity", "PrePriceKey", }); internal_static_protocol_MarketCancelOrderContract_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_MarketCancelOrderContract_descriptor, new java.lang.String[] { "OwnerAddress", "OrderId", }); internal_static_protocol_ProposalApproveContract_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protocol_ProposalApproveContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ProposalApproveContract_descriptor, new java.lang.String[] { "OwnerAddress", "ProposalId", "IsAddApproval", }); internal_static_protocol_ProposalCreateContract_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protocol_ProposalCreateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ProposalCreateContract_descriptor, new java.lang.String[] { "OwnerAddress", "Parameters", }); internal_static_protocol_ProposalCreateContract_ParametersEntry_descriptor = internal_static_protocol_ProposalCreateContract_descriptor.getNestedTypes().get(0); internal_static_protocol_ProposalCreateContract_ParametersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ProposalCreateContract_ParametersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_ProposalDeleteContract_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protocol_ProposalDeleteContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ProposalDeleteContract_descriptor, new java.lang.String[] { "OwnerAddress", "ProposalId", }); internal_static_protocol_CreateSmartContract_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protocol_CreateSmartContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CreateSmartContract_descriptor, new java.lang.String[] { "OwnerAddress", "NewContract", "CallTokenValue", "TokenId", }); internal_static_protocol_TriggerSmartContract_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protocol_TriggerSmartContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TriggerSmartContract_descriptor, new java.lang.String[] { "OwnerAddress", "ContractAddress", "CallValue", "Data", "CallTokenValue", "TokenId", }); internal_static_protocol_ClearABIContract_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protocol_ClearABIContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ClearABIContract_descriptor, new java.lang.String[] { "OwnerAddress", "ContractAddress", }); internal_static_protocol_UpdateSettingContract_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protocol_UpdateSettingContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UpdateSettingContract_descriptor, new java.lang.String[] { "OwnerAddress", "ContractAddress", "ConsumeUserResourcePercent", }); internal_static_protocol_UpdateEnergyLimitContract_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protocol_UpdateEnergyLimitContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UpdateEnergyLimitContract_descriptor, new java.lang.String[] { "OwnerAddress", "ContractAddress", "OriginEnergyLimit", }); internal_static_protocol_UpdateBrokerageContract_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UpdateBrokerageContract_descriptor, new java.lang.String[] { "OwnerAddress", "Brokerage", }); internal_static_protocol_VoteAssetContract_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_protocol_VoteAssetContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_VoteAssetContract_descriptor, new java.lang.String[] { "OwnerAddress", "VoteAddress", "Support", "Count", }); internal_static_protocol_WitnessCreateContract_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protocol_WitnessCreateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WitnessCreateContract_descriptor, new java.lang.String[] { "OwnerAddress", "Url", }); internal_static_protocol_WitnessUpdateContract_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_protocol_WitnessUpdateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WitnessUpdateContract_descriptor, new java.lang.String[] { "OwnerAddress", "UpdateUrl", }); internal_static_protocol_VoteWitnessContract_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_protocol_VoteWitnessContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_VoteWitnessContract_descriptor, new java.lang.String[] { "OwnerAddress", "Votes", "Support", }); internal_static_protocol_VoteWitnessContract_Vote_descriptor = internal_static_protocol_VoteWitnessContract_descriptor.getNestedTypes().get(0); internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_VoteWitnessContract_Vote_descriptor, new java.lang.String[] { "VoteAddress", "VoteCount", }); internal_static_protocol_ExchangeCreateContract_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_protocol_ExchangeCreateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExchangeCreateContract_descriptor, new java.lang.String[] { "OwnerAddress", "FirstTokenId", "FirstTokenBalance", "SecondTokenId", "SecondTokenBalance", }); internal_static_protocol_ExchangeInjectContract_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_protocol_ExchangeInjectContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExchangeInjectContract_descriptor, new java.lang.String[] { "OwnerAddress", "ExchangeId", "TokenId", "Quant", }); internal_static_protocol_ExchangeWithdrawContract_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExchangeWithdrawContract_descriptor, new java.lang.String[] { "OwnerAddress", "ExchangeId", "TokenId", "Quant", }); internal_static_protocol_ExchangeTransactionContract_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExchangeTransactionContract_descriptor, new java.lang.String[] { "OwnerAddress", "ExchangeId", "TokenId", "Quant", "Expected", }); internal_static_protocol_FreezeBalanceV2Contract_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_protocol_FreezeBalanceV2Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_FreezeBalanceV2Contract_descriptor, new java.lang.String[] { "OwnerAddress", "FrozenBalance", "Resource", }); internal_static_protocol_UnfreezeBalanceV2Contract_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_protocol_UnfreezeBalanceV2Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UnfreezeBalanceV2Contract_descriptor, new java.lang.String[] { "OwnerAddress", "UnfreezeBalance", "Resource", }); internal_static_protocol_DelegateResourceContract_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_protocol_DelegateResourceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DelegateResourceContract_descriptor, new java.lang.String[] { "OwnerAddress", "Resource", "Balance", "ReceiverAddress", "Lock", "LockPeriod", }); internal_static_protocol_UnDelegateResourceContract_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_protocol_UnDelegateResourceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UnDelegateResourceContract_descriptor, new java.lang.String[] { "OwnerAddress", "Resource", "Balance", "ReceiverAddress", }); internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_protocol_WithdrawExpireUnfreezeContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WithdrawExpireUnfreezeContract_descriptor, new java.lang.String[] { "OwnerAddress", }); internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_protocol_CancelAllUnfreezeV2Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CancelAllUnfreezeV2Contract_descriptor, new java.lang.String[] { "OwnerAddress", }); org.tron.trident.proto.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy