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

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

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

package org.vision.visionjsdk.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.vision.visionjsdk.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();
    }

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

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

              accountAddress_ = input.readBytes();
              break;
            }
            case 24: {
              int rawValue = input.readEnum();

              type_ = rawValue;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountCreateContract_descriptor;
    }

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

    public static final int OWNER_ADDRESS_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString ownerAddress_;
    /**
     * 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_;
    /**
     * 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_;
    /**
     * .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.vision.visionjsdk.proto.Common.AccountType getType() {
      @SuppressWarnings("deprecation")
      org.vision.visionjsdk.proto.Common.AccountType result = org.vision.visionjsdk.proto.Common.AccountType.valueOf(type_);
      return result == null ? org.vision.visionjsdk.proto.Common.AccountType.UNRECOGNIZED : result;
    }

    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.vision.visionjsdk.proto.Common.AccountType.Normal.getNumber()) {
        output.writeEnum(3, type_);
      }
      unknownFields.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.vision.visionjsdk.proto.Common.AccountType.Normal.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, type_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.vision.visionjsdk.proto.Contract.AccountCreateContract)) {
        return super.equals(obj);
      }
      org.vision.visionjsdk.proto.Contract.AccountCreateContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

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

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

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

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

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        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.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountCreateContract_descriptor;
      }

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

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

      @java.lang.Override
      public org.vision.visionjsdk.proto.Contract.AccountCreateContract buildPartial() {
        org.vision.visionjsdk.proto.Contract.AccountCreateContract result = new org.vision.visionjsdk.proto.Contract.AccountCreateContract(this);
        result.ownerAddress_ = ownerAddress_;
        result.accountAddress_ = accountAddress_;
        result.type_ = type_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.vision.visionjsdk.proto.Contract.AccountCreateContract) {
          return mergeFrom((org.vision.visionjsdk.proto.Contract.AccountCreateContract)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.AccountCreateContract other) {
        if (other == org.vision.visionjsdk.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.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.vision.visionjsdk.proto.Contract.AccountCreateContract parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.vision.visionjsdk.proto.Contract.AccountCreateContract) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        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;
        onChanged();
        return this;
      }
      /**
       * bytes owner_address = 1;
       * @return This builder for chaining.
       */
      public Builder clearOwnerAddress() {
        
        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;
        onChanged();
        return this;
      }
      /**
       * bytes account_address = 2;
       * @return This builder for chaining.
       */
      public Builder clearAccountAddress() {
        
        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;
        onChanged();
        return this;
      }
      /**
       * .protocol.AccountType type = 3;
       * @return The type.
       */
      @java.lang.Override
      public org.vision.visionjsdk.proto.Common.AccountType getType() {
        @SuppressWarnings("deprecation")
        org.vision.visionjsdk.proto.Common.AccountType result = org.vision.visionjsdk.proto.Common.AccountType.valueOf(type_);
        return result == null ? org.vision.visionjsdk.proto.Common.AccountType.UNRECOGNIZED : result;
      }
      /**
       * .protocol.AccountType type = 3;
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(org.vision.visionjsdk.proto.Common.AccountType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .protocol.AccountType type = 3;
       * @return This builder for chaining.
       */
      public Builder clearType() {
        
        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.vision.visionjsdk.proto.Contract.AccountCreateContract DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.AccountCreateContract();
    }

    public static org.vision.visionjsdk.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 {
        return new AccountCreateContract(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountUpdateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { accountName_ = input.readBytes(); break; } case 18: { ownerAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AccountUpdateContract.class, org.vision.visionjsdk.proto.Contract.AccountUpdateContract.Builder.class); } public static final int ACCOUNT_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString accountName_; /** * 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_; /** * 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_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!accountName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, accountName_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.AccountUpdateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.AccountUpdateContract other = (org.vision.visionjsdk.proto.Contract.AccountUpdateContract) obj; if (!getAccountName() .equals(other.getAccountName())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getAccountName().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AccountUpdateContract.class, org.vision.visionjsdk.proto.Contract.AccountUpdateContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.AccountUpdateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountUpdateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountUpdateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.AccountUpdateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountUpdateContract build() { org.vision.visionjsdk.proto.Contract.AccountUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountUpdateContract buildPartial() { org.vision.visionjsdk.proto.Contract.AccountUpdateContract result = new org.vision.visionjsdk.proto.Contract.AccountUpdateContract(this); result.accountName_ = accountName_; result.ownerAddress_ = ownerAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.AccountUpdateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.AccountUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.AccountUpdateContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.AccountUpdateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.AccountUpdateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * bytes account_name = 1; * @return This builder for chaining. */ public Builder clearAccountName() { 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; onChanged(); return this; } /** * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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.vision.visionjsdk.proto.Contract.AccountUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.AccountUpdateContract(); } public static org.vision.visionjsdk.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 { return new AccountUpdateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetAccountIdContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { accountId_ = input.readBytes(); break; } case 18: { ownerAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_SetAccountIdContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.SetAccountIdContract.class, org.vision.visionjsdk.proto.Contract.SetAccountIdContract.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString accountId_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.SetAccountIdContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.SetAccountIdContract other = (org.vision.visionjsdk.proto.Contract.SetAccountIdContract) obj; if (!getAccountId() .equals(other.getAccountId())) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.SetAccountIdContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.SetAccountIdContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.SetAccountIdContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_SetAccountIdContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.SetAccountIdContract.class, org.vision.visionjsdk.proto.Contract.SetAccountIdContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.SetAccountIdContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_SetAccountIdContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.SetAccountIdContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.SetAccountIdContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.SetAccountIdContract build() { org.vision.visionjsdk.proto.Contract.SetAccountIdContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.SetAccountIdContract buildPartial() { org.vision.visionjsdk.proto.Contract.SetAccountIdContract result = new org.vision.visionjsdk.proto.Contract.SetAccountIdContract(this); result.accountId_ = accountId_; result.ownerAddress_ = ownerAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.SetAccountIdContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.SetAccountIdContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.SetAccountIdContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.SetAccountIdContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.SetAccountIdContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * bytes account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { 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; onChanged(); return this; } /** * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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.vision.visionjsdk.proto.Contract.SetAccountIdContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.SetAccountIdContract(); } public static org.vision.visionjsdk.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 { return new SetAccountIdContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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.vision.visionjsdk.proto.Common.Permission getOwner(); /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return PermissionOrBuilder */ org.vision.visionjsdk.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.vision.visionjsdk.proto.Common.Permission getWitness(); /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return PermissionOrBuilder */ org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessOrBuilder(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; * @return list */ java.util.List getActivesList(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return Permission */ org.vision.visionjsdk.proto.Common.Permission getActives(int index); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; * @return int */ int getActivesCount(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; * @return list */ java.util.List getActivesOrBuilderList(); /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return PermissionOrBuilder */ org.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountPermissionUpdateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { org.vision.visionjsdk.proto.Common.Permission.Builder subBuilder = null; if (owner_ != null) { subBuilder = owner_.toBuilder(); } owner_ = input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(owner_); owner_ = subBuilder.buildPartial(); } break; } case 26: { org.vision.visionjsdk.proto.Common.Permission.Builder subBuilder = null; if (witness_ != null) { subBuilder = witness_.toBuilder(); } witness_ = input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(witness_); witness_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { actives_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } actives_.add( input.readMessage(org.vision.visionjsdk.proto.Common.Permission.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { actives_ = java.util.Collections.unmodifiableList(actives_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract.class, org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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.vision.visionjsdk.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 owner_ != null; } /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; * @return The owner. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getOwner() { return owner_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : owner_; } /** *
     * Empty is invalidate
     * 
* * .protocol.Permission owner = 2; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerOrBuilder() { return getOwner(); } public static final int WITNESS_FIELD_NUMBER = 3; private org.vision.visionjsdk.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 witness_ != null; } /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; * @return The witness. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.Permission getWitness() { return witness_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witness_; } /** *
     * Can be empty
     * 
* * .protocol.Permission witness = 3; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessOrBuilder() { return getWitness(); } public static final int ACTIVES_FIELD_NUMBER = 4; 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.vision.visionjsdk.proto.Common.Permission getActives(int index) { return actives_.get(index); } /** *
     * Empty is invalidate
     * 
* * repeated .protocol.Permission actives = 4; */ @java.lang.Override public org.vision.visionjsdk.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 (owner_ != null) { output.writeMessage(2, getOwner()); } if (witness_ != null) { output.writeMessage(3, getWitness()); } for (int i = 0; i < actives_.size(); i++) { output.writeMessage(4, actives_.get(i)); } unknownFields.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 (owner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOwner()); } if (witness_ != null) { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract.class, org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract.Builder.class); } // Construct using org.vision.visionjsdk.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) { getActivesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; if (ownerBuilder_ == null) { owner_ = null; } else { owner_ = null; ownerBuilder_ = null; } if (witnessBuilder_ == null) { witness_ = null; } else { witness_ = null; witnessBuilder_ = null; } if (activesBuilder_ == null) { actives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { activesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AccountPermissionUpdateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract build() { org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract buildPartial() { org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract result = new org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract(this); int from_bitField0_ = bitField0_; result.ownerAddress_ = ownerAddress_; if (ownerBuilder_ == null) { result.owner_ = owner_; } else { result.owner_ = ownerBuilder_.build(); } if (witnessBuilder_ == null) { result.witness_ = witness_; } else { result.witness_ = witnessBuilder_.build(); } if (activesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actives_ = java.util.Collections.unmodifiableList(actives_); bitField0_ = (bitField0_ & ~0x00000001); } result.actives_ = actives_; } else { result.actives_ = activesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract other) { if (other == org.vision.visionjsdk.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_ & ~0x00000001); } else { ensureActivesIsMutable(); actives_.addAll(other.actives_); } onChanged(); } } else { if (!other.actives_.isEmpty()) { if (activesBuilder_.isEmpty()) { activesBuilder_.dispose(); activesBuilder_ = null; actives_ = other.actives_; bitField0_ = (bitField0_ & ~0x00000001); activesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActivesFieldBuilder() : null; } else { activesBuilder_.addAllMessages(other.actives_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private org.vision.visionjsdk.proto.Common.Permission owner_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> ownerBuilder_; /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return Whether the owner field is set. */ public boolean hasOwner() { return ownerBuilder_ != null || owner_ != null; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return The owner. */ public org.vision.visionjsdk.proto.Common.Permission getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @param value value * @return Builder */ public Builder setOwner(org.vision.visionjsdk.proto.Common.Permission value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); } else { ownerBuilder_.setMessage(value); } return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @param builderForValue builderForValue * @return Builder */ public Builder setOwner( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); onChanged(); } else { ownerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @param value value * @return Builder */ public Builder mergeOwner(org.vision.visionjsdk.proto.Common.Permission value) { if (ownerBuilder_ == null) { if (owner_ != null) { owner_ = org.vision.visionjsdk.proto.Common.Permission.newBuilder(owner_).mergeFrom(value).buildPartial(); } else { owner_ = value; } onChanged(); } else { ownerBuilder_.mergeFrom(value); } return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return Builder */ public Builder clearOwner() { if (ownerBuilder_ == null) { owner_ = null; onChanged(); } else { owner_ = null; ownerBuilder_ = null; } return this; } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return Builder */ public org.vision.visionjsdk.proto.Common.Permission.Builder getOwnerBuilder() { onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return PermissionOrBuilder */ public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : owner_; } } /** *
       * Empty is invalidate
       * 
* * .protocol.Permission owner = 2; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private org.vision.visionjsdk.proto.Common.Permission witness_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> witnessBuilder_; /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return Whether the witness field is set. */ public boolean hasWitness() { return witnessBuilder_ != null || witness_ != null; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return The witness. */ public org.vision.visionjsdk.proto.Common.Permission getWitness() { if (witnessBuilder_ == null) { return witness_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witness_; } else { return witnessBuilder_.getMessage(); } } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @param value value * @return Builder */ public Builder setWitness(org.vision.visionjsdk.proto.Common.Permission value) { if (witnessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } witness_ = value; onChanged(); } else { witnessBuilder_.setMessage(value); } return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @param builderForValue builderForValue * @return Builder */ public Builder setWitness( org.vision.visionjsdk.proto.Common.Permission.Builder builderForValue) { if (witnessBuilder_ == null) { witness_ = builderForValue.build(); onChanged(); } else { witnessBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @param value value * @return Builder */ public Builder mergeWitness(org.vision.visionjsdk.proto.Common.Permission value) { if (witnessBuilder_ == null) { if (witness_ != null) { witness_ = org.vision.visionjsdk.proto.Common.Permission.newBuilder(witness_).mergeFrom(value).buildPartial(); } else { witness_ = value; } onChanged(); } else { witnessBuilder_.mergeFrom(value); } return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return Builder */ public Builder clearWitness() { if (witnessBuilder_ == null) { witness_ = null; onChanged(); } else { witness_ = null; witnessBuilder_ = null; } return this; } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return Builder */ public org.vision.visionjsdk.proto.Common.Permission.Builder getWitnessBuilder() { onChanged(); return getWitnessFieldBuilder().getBuilder(); } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return PermissionOrBuilder */ public org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessOrBuilder() { if (witnessBuilder_ != null) { return witnessBuilder_.getMessageOrBuilder(); } else { return witness_ == null ? org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance() : witness_; } } /** *
       * Can be empty
       * 
* * .protocol.Permission witness = 3; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getWitnessFieldBuilder() { if (witnessBuilder_ == null) { witnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( getWitness(), getParentForChildren(), isClean()); witness_ = null; } return witnessBuilder_; } private java.util.List actives_ = java.util.Collections.emptyList(); private void ensureActivesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actives_ = new java.util.ArrayList(actives_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> activesBuilder_; /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @return list */ 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; * @return int */ public int getActivesCount() { if (activesBuilder_ == null) { return actives_.size(); } else { return activesBuilder_.getCount(); } } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return Permission */ public org.vision.visionjsdk.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; * @param index index * @param value value * @return Builder */ public Builder setActives( int index, org.vision.visionjsdk.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; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setActives( int index, org.vision.visionjsdk.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; * @param value value * @return builderForValue */ public Builder addActives(org.vision.visionjsdk.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; * @param value value * @param index index * @return Builder */ public Builder addActives( int index, org.vision.visionjsdk.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; * @param builderForValue builderForValue * @return Builder */ public Builder addActives( org.vision.visionjsdk.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; * @param builderForValue builderForValue * @param index index * @return Builder */ public Builder addActives( int index, org.vision.visionjsdk.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; * @param values valuesß * @return Builder */ 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; * @return Builder */ public Builder clearActives() { if (activesBuilder_ == null) { actives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { activesBuilder_.clear(); } return this; } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return Builder */ 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; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.Permission.Builder getActivesBuilder( int index) { return getActivesFieldBuilder().getBuilder(index); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return PermissionOrBuilder */ public org.vision.visionjsdk.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; * @return list */ 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; * @return Builder */ public org.vision.visionjsdk.proto.Common.Permission.Builder addActivesBuilder() { return getActivesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance()); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Common.Permission.Builder addActivesBuilder( int index) { return getActivesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance()); } /** *
       * Empty is invalidate
       * 
* * repeated .protocol.Permission actives = 4; * @return list */ public java.util.List getActivesBuilderList() { return getActivesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder> getActivesFieldBuilder() { if (activesBuilder_ == null) { activesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Common.Permission, org.vision.visionjsdk.proto.Common.Permission.Builder, org.vision.visionjsdk.proto.Common.PermissionOrBuilder>( actives_, ((bitField0_ & 0x00000001) != 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.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract(); } public static org.vision.visionjsdk.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 { return new AccountPermissionUpdateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AccountPermissionUpdateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssetIssueContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AssetIssueContract) com.google.protobuf.MessageOrBuilder { /** * string id = 46; * @return The id. */ java.lang.String getId(); /** * string id = 46; * @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; * @return list */ java.util.List getFrozenSupplyList(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @param index index * @return FrozenSupply */ org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply getFrozenSupply(int index); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @return int */ int getFrozenSupplyCount(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @return list */ java.util.List getFrozenSupplyOrBuilderList(); /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @param index index * @return FrozenSupplyOrBuilder */ org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder getFrozenSupplyOrBuilder( int index); /** * int32 vs_num = 6; * @return The vsNum. */ int getVsNum(); /** * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssetIssueContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { name_ = input.readBytes(); break; } case 26: { abbr_ = input.readBytes(); break; } case 32: { totalSupply_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { frozenSupply_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } frozenSupply_.add( input.readMessage(org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.parser(), extensionRegistry)); break; } case 48: { vsNum_ = input.readInt32(); break; } case 56: { precision_ = input.readInt32(); break; } case 64: { num_ = input.readInt32(); break; } case 72: { startTime_ = input.readInt64(); break; } case 80: { endTime_ = input.readInt64(); break; } case 88: { order_ = input.readInt64(); break; } case 128: { voteScore_ = input.readInt32(); break; } case 162: { description_ = input.readBytes(); break; } case 170: { url_ = input.readBytes(); break; } case 176: { freeAssetNetLimit_ = input.readInt64(); break; } case 184: { publicFreeAssetNetLimit_ = input.readInt64(); break; } case 192: { publicFreeAssetNetUsage_ = input.readInt64(); break; } case 200: { publicLatestFreeNetTime_ = input.readInt64(); break; } case 330: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AssetIssueContract.class, org.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FrozenSupply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { frozenAmount_ = input.readInt64(); break; } case 16: { frozenDays_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.class, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder.class); } public static final int FROZEN_AMOUNT_FIELD_NUMBER = 1; private long frozenAmount_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply other = (org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply) obj; if (getFrozenAmount() != other.getFrozenAmount()) return false; if (getFrozenDays() != other.getFrozenDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROZEN_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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.class, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); frozenAmount_ = 0L; frozenDays_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_FrozenSupply_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply build() { org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply buildPartial() { org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply result = new org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply(this); result.frozenAmount_ = frozenAmount_; result.frozenDays_ = frozenDays_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply) { return mergeFrom((org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply other) { if (other == org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()) return this; if (other.getFrozenAmount() != 0L) { setFrozenAmount(other.getFrozenAmount()); } if (other.getFrozenDays() != 0L) { setFrozenDays(other.getFrozenDays()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * int64 frozen_amount = 1; * @return This builder for chaining. */ public Builder clearFrozenAmount() { 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; onChanged(); return this; } /** * int64 frozen_days = 2; * @return This builder for chaining. */ public Builder clearFrozenDays() { 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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply(); } public static org.vision.visionjsdk.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 { return new FrozenSupply(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ID_FIELD_NUMBER = 46; private volatile java.lang.Object id_; /** * string id = 46; * @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 = 46; * @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_; /** * 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_; /** * 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_; /** * 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_; /** * int64 total_supply = 4; * @return The totalSupply. */ @java.lang.Override public long getTotalSupply() { return totalSupply_; } public static final int FROZEN_SUPPLY_FIELD_NUMBER = 5; 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.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply getFrozenSupply(int index) { return frozenSupply_.get(index); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; */ @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder getFrozenSupplyOrBuilder( int index) { return frozenSupply_.get(index); } public static final int VRC_NUM_FIELD_NUMBER = 6; private int vsNum_; /** * int32 vs_num = 6; * @return The vsNum. */ @java.lang.Override public int getVsNum() { return vsNum_; } public static final int PRECISION_FIELD_NUMBER = 7; private int precision_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** *
     * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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 (vsNum_ != 0) { output.writeInt32(6, vsNum_); } 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 (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 46, id_); } unknownFields.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 (vsNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, vsNum_); } 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 (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(46, id_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.AssetIssueContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.AssetIssueContract other = (org.vision.visionjsdk.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 (getVsNum() != other.getVsNum()) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + 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) + VRC_NUM_FIELD_NUMBER; hash = (53 * hash) + getVsNum(); 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.AssetIssueContract.class, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.AssetIssueContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFrozenSupplyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); 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(); bitField0_ = (bitField0_ & ~0x00000001); } else { frozenSupplyBuilder_.clear(); } vsNum_ = 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.vision.visionjsdk.proto.Contract.internal_static_protocol_AssetIssueContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract build() { org.vision.visionjsdk.proto.Contract.AssetIssueContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.AssetIssueContract buildPartial() { org.vision.visionjsdk.proto.Contract.AssetIssueContract result = new org.vision.visionjsdk.proto.Contract.AssetIssueContract(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.ownerAddress_ = ownerAddress_; result.name_ = name_; result.abbr_ = abbr_; result.totalSupply_ = totalSupply_; if (frozenSupplyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { frozenSupply_ = java.util.Collections.unmodifiableList(frozenSupply_); bitField0_ = (bitField0_ & ~0x00000001); } result.frozenSupply_ = frozenSupply_; } else { result.frozenSupply_ = frozenSupplyBuilder_.build(); } result.vsNum_ = vsNum_; result.precision_ = precision_; result.num_ = num_; result.startTime_ = startTime_; result.endTime_ = endTime_; result.order_ = order_; result.voteScore_ = voteScore_; result.description_ = description_; result.url_ = url_; result.freeAssetNetLimit_ = freeAssetNetLimit_; result.publicFreeAssetNetLimit_ = publicFreeAssetNetLimit_; result.publicFreeAssetNetUsage_ = publicFreeAssetNetUsage_; result.publicLatestFreeNetTime_ = publicLatestFreeNetTime_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.AssetIssueContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.AssetIssueContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.AssetIssueContract other) { if (other == org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; 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_ & ~0x00000001); } else { ensureFrozenSupplyIsMutable(); frozenSupply_.addAll(other.frozenSupply_); } onChanged(); } } else { if (!other.frozenSupply_.isEmpty()) { if (frozenSupplyBuilder_.isEmpty()) { frozenSupplyBuilder_.dispose(); frozenSupplyBuilder_ = null; frozenSupply_ = other.frozenSupply_; bitField0_ = (bitField0_ & ~0x00000001); frozenSupplyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrozenSupplyFieldBuilder() : null; } else { frozenSupplyBuilder_.addAllMessages(other.frozenSupply_); } } } if (other.getVsNum() != 0) { setVsNum(other.getVsNum()); } 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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.AssetIssueContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.AssetIssueContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 46; * @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 = 46; * @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 = 46; * @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; onChanged(); return this; } /** * string id = 46; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 46; * @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; 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes name = 2; * @return This builder for chaining. */ public Builder clearName() { 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; onChanged(); return this; } /** * bytes abbr = 3; * @return This builder for chaining. */ public Builder clearAbbr() { 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; onChanged(); return this; } /** * int64 total_supply = 4; * @return This builder for chaining. */ public Builder clearTotalSupply() { totalSupply_ = 0L; onChanged(); return this; } private java.util.List frozenSupply_ = java.util.Collections.emptyList(); private void ensureFrozenSupplyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { frozenSupply_ = new java.util.ArrayList(frozenSupply_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.vision.visionjsdk.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; * @param index index * @return FrozenSupply */ public org.vision.visionjsdk.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; * @param index index * @param value value * @return Builder */ public Builder setFrozenSupply( int index, org.vision.visionjsdk.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; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setFrozenSupply( int index, org.vision.visionjsdk.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; * @param value value * @return Builder */ public Builder addFrozenSupply(org.vision.visionjsdk.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; * @param index index * @param value value * @return Builder */ public Builder addFrozenSupply( int index, org.vision.visionjsdk.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; * @param builderForValue builderForValue * @return Builder */ public Builder addFrozenSupply( org.vision.visionjsdk.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; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addFrozenSupply( int index, org.vision.visionjsdk.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; * @param values values * @return Builder */ public Builder addAllFrozenSupply( java.lang.Iterable values) { if (frozenSupplyBuilder_ == null) { ensureFrozenSupplyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frozenSupply_); onChanged(); } else { frozenSupplyBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @return Builder */ public Builder clearFrozenSupply() { if (frozenSupplyBuilder_ == null) { frozenSupply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { frozenSupplyBuilder_.clear(); } return this; } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @param index index * @return Builder */ 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; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder getFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().getBuilder(index); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @param index index * @return FrozenSupplyOrBuilder */ public org.vision.visionjsdk.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; * @return list */ 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; * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder addFrozenSupplyBuilder() { return getFrozenSupplyFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder addFrozenSupplyBuilder( int index) { return getFrozenSupplyFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.getDefaultInstance()); } /** * repeated .protocol.AssetIssueContract.FrozenSupply frozen_supply = 5; * @return list */ public java.util.List getFrozenSupplyBuilderList() { return getFrozenSupplyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder> getFrozenSupplyFieldBuilder() { if (frozenSupplyBuilder_ == null) { frozenSupplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupply.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContract.FrozenSupplyOrBuilder>( frozenSupply_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frozenSupply_ = null; } return frozenSupplyBuilder_; } private int vsNum_ ; /** * int32 vs_num = 6; * @return The vsNum. */ @java.lang.Override public int getVsNum() { return vsNum_; } /** * int32 vs_num = 6; * @param value The vsNum to set. * @return This builder for chaining. */ public Builder setVsNum(int value) { vsNum_ = value; onChanged(); return this; } /** * int32 vs_num = 6; * @return This builder for chaining. */ public Builder clearVsNum() { vsNum_ = 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; onChanged(); return this; } /** * int32 precision = 7; * @return This builder for chaining. */ public Builder clearPrecision() { 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; onChanged(); return this; } /** * int32 num = 8; * @return This builder for chaining. */ public Builder clearNum() { 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; onChanged(); return this; } /** * int64 start_time = 9; * @return This builder for chaining. */ public Builder clearStartTime() { 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; onChanged(); return this; } /** * int64 end_time = 10; * @return This builder for chaining. */ public Builder clearEndTime() { 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; onChanged(); return this; } /** *
       * useless
       * 
* * int64 order = 11; * @return This builder for chaining. */ public Builder clearOrder() { 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; onChanged(); return this; } /** * int32 vote_score = 16; * @return This builder for chaining. */ public Builder clearVoteScore() { 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; onChanged(); return this; } /** * bytes description = 20; * @return This builder for chaining. */ public Builder clearDescription() { 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; onChanged(); return this; } /** * bytes url = 21; * @return This builder for chaining. */ public Builder clearUrl() { 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; onChanged(); return this; } /** * int64 free_asset_net_limit = 22; * @return This builder for chaining. */ public Builder clearFreeAssetNetLimit() { 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; onChanged(); return this; } /** * int64 public_free_asset_net_limit = 23; * @return This builder for chaining. */ public Builder clearPublicFreeAssetNetLimit() { 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; onChanged(); return this; } /** * int64 public_free_asset_net_usage = 24; * @return This builder for chaining. */ public Builder clearPublicFreeAssetNetUsage() { 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; onChanged(); return this; } /** * int64 public_latest_free_net_time = 25; * @return This builder for chaining. */ public Builder clearPublicLatestFreeNetTime() { 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.vision.visionjsdk.proto.Contract.AssetIssueContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.AssetIssueContract(); } public static org.vision.visionjsdk.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 { return new AssetIssueContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferAssetContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { assetName_ = input.readBytes(); break; } case 18: { ownerAddress_ = input.readBytes(); break; } case 26: { toAddress_ = input.readBytes(); break; } case 32: { amount_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TransferAssetContract.class, org.vision.visionjsdk.proto.Contract.TransferAssetContract.Builder.class); } public static final int ASSET_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString assetName_; /** *
     * 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_; /** *
     * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.TransferAssetContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.TransferAssetContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TransferAssetContract.class, org.vision.visionjsdk.proto.Contract.TransferAssetContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.TransferAssetContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferAssetContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferAssetContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.TransferAssetContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferAssetContract build() { org.vision.visionjsdk.proto.Contract.TransferAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferAssetContract buildPartial() { org.vision.visionjsdk.proto.Contract.TransferAssetContract result = new org.vision.visionjsdk.proto.Contract.TransferAssetContract(this); result.assetName_ = assetName_; result.ownerAddress_ = ownerAddress_; result.toAddress_ = toAddress_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.TransferAssetContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.TransferAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.TransferAssetContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.TransferAssetContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.TransferAssetContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 1; * @return This builder for chaining. */ public Builder clearAssetName() { 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; 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() { 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; onChanged(); return this; } /** * bytes to_address = 3; * @return This builder for chaining. */ public Builder clearToAddress() { 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; onChanged(); return this; } /** * int64 amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { 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.vision.visionjsdk.proto.Contract.TransferAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.TransferAssetContract(); } public static org.vision.visionjsdk.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 { return new TransferAssetContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UnfreezeAssetContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.class, org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract other = (org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.class, org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeAssetContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract build() { org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract buildPartial() { org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract result = new org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract(this); result.ownerAddress_ = ownerAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract other) { if (other == org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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.vision.visionjsdk.proto.Contract.UnfreezeAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UnfreezeAssetContract(); } public static org.vision.visionjsdk.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 { return new UnfreezeAssetContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateAssetContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { description_ = input.readBytes(); break; } case 26: { url_ = input.readBytes(); break; } case 32: { newLimit_ = input.readInt64(); break; } case 40: { newPublicLimit_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateAssetContract.class, org.vision.visionjsdk.proto.Contract.UpdateAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UpdateAssetContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UpdateAssetContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateAssetContract.class, org.vision.visionjsdk.proto.Contract.UpdateAssetContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UpdateAssetContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateAssetContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateAssetContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UpdateAssetContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateAssetContract build() { org.vision.visionjsdk.proto.Contract.UpdateAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateAssetContract buildPartial() { org.vision.visionjsdk.proto.Contract.UpdateAssetContract result = new org.vision.visionjsdk.proto.Contract.UpdateAssetContract(this); result.ownerAddress_ = ownerAddress_; result.description_ = description_; result.url_ = url_; result.newLimit_ = newLimit_; result.newPublicLimit_ = newPublicLimit_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UpdateAssetContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UpdateAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UpdateAssetContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UpdateAssetContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UpdateAssetContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes description = 2; * @return This builder for chaining. */ public Builder clearDescription() { 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; onChanged(); return this; } /** * bytes url = 3; * @return This builder for chaining. */ public Builder clearUrl() { 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; onChanged(); return this; } /** * int64 new_limit = 4; * @return This builder for chaining. */ public Builder clearNewLimit() { 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; onChanged(); return this; } /** * int64 new_public_limit = 5; * @return This builder for chaining. */ public Builder clearNewPublicLimit() { 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.vision.visionjsdk.proto.Contract.UpdateAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UpdateAssetContract(); } public static org.vision.visionjsdk.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 { return new UpdateAssetContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ParticipateAssetIssueContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { toAddress_ = input.readBytes(); break; } case 26: { assetName_ = input.readBytes(); break; } case 32: { amount_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.class, org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** *
     * 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_; /** *
     * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.class, org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ParticipateAssetIssueContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract build() { org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract buildPartial() { org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract result = new org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract(this); result.ownerAddress_ = ownerAddress_; result.toAddress_ = toAddress_; result.assetName_ = assetName_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes to_address = 2; * @return This builder for chaining. */ public Builder clearToAddress() { 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; onChanged(); return this; } /** *
       * this field is token name before the proposal
       * 
* * bytes asset_name = 3; * @return This builder for chaining. */ public Builder clearAssetName() { 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; 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() { 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.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ParticipateAssetIssueContract(); } public static org.vision.visionjsdk.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 { return new ParticipateAssetIssueContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FreezeBalanceContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { frozenBalance_ = input.readInt64(); break; } case 24: { frozenDuration_ = input.readInt64(); break; } case 80: { int rawValue = input.readEnum(); resource_ = rawValue; break; } case 122: { receiverAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_FreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.class, org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * .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.vision.visionjsdk.proto.Common.ResourceCode getResource() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.ResourceCode result = org.vision.visionjsdk.proto.Common.ResourceCode.valueOf(resource_); return result == null ? org.vision.visionjsdk.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 15; private com.google.protobuf.ByteString receiverAddress_; /** * 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.vision.visionjsdk.proto.Common.ResourceCode.PHOTON.getNumber()) { output.writeEnum(10, resource_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(15, receiverAddress_); } unknownFields.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.vision.visionjsdk.proto.Common.ResourceCode.PHOTON.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, resource_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, receiverAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.FreezeBalanceContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.FreezeBalanceContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.FreezeBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.FreezeBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_FreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.class, org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_FreezeBalanceContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.FreezeBalanceContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.FreezeBalanceContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.FreezeBalanceContract build() { org.vision.visionjsdk.proto.Contract.FreezeBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.FreezeBalanceContract buildPartial() { org.vision.visionjsdk.proto.Contract.FreezeBalanceContract result = new org.vision.visionjsdk.proto.Contract.FreezeBalanceContract(this); result.ownerAddress_ = ownerAddress_; result.frozenBalance_ = frozenBalance_; result.frozenDuration_ = frozenDuration_; result.resource_ = resource_; result.receiverAddress_ = receiverAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.FreezeBalanceContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.FreezeBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.FreezeBalanceContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.FreezeBalanceContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.FreezeBalanceContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 frozen_balance = 2; * @return This builder for chaining. */ public Builder clearFrozenBalance() { 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; onChanged(); return this; } /** * int64 frozen_duration = 3; * @return This builder for chaining. */ public Builder clearFrozenDuration() { 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; onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.ResourceCode getResource() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.ResourceCode result = org.vision.visionjsdk.proto.Common.ResourceCode.valueOf(resource_); return result == null ? org.vision.visionjsdk.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 10; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.vision.visionjsdk.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return This builder for chaining. */ public Builder clearResource() { 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; onChanged(); return this; } /** * bytes receiver_address = 15; * @return This builder for chaining. */ public Builder clearReceiverAddress() { 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.vision.visionjsdk.proto.Contract.FreezeBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.FreezeBalanceContract(); } public static org.vision.visionjsdk.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 { return new FreezeBalanceContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UnfreezeBalanceContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 80: { int rawValue = input.readEnum(); resource_ = rawValue; break; } case 122: { receiverAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.class, org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * .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.vision.visionjsdk.proto.Common.ResourceCode getResource() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.ResourceCode result = org.vision.visionjsdk.proto.Common.ResourceCode.valueOf(resource_); return result == null ? org.vision.visionjsdk.proto.Common.ResourceCode.UNRECOGNIZED : result; } public static final int RECEIVER_ADDRESS_FIELD_NUMBER = 15; private com.google.protobuf.ByteString receiverAddress_; /** * 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.vision.visionjsdk.proto.Common.ResourceCode.PHOTON.getNumber()) { output.writeEnum(10, resource_); } if (!receiverAddress_.isEmpty()) { output.writeBytes(15, receiverAddress_); } unknownFields.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.vision.visionjsdk.proto.Common.ResourceCode.PHOTON.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, resource_); } if (!receiverAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, receiverAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.class, org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_UnfreezeBalanceContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract build() { org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract buildPartial() { org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract result = new org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract(this); result.ownerAddress_ = ownerAddress_; result.resource_ = resource_; result.receiverAddress_ = receiverAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return The resource. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.ResourceCode getResource() { @SuppressWarnings("deprecation") org.vision.visionjsdk.proto.Common.ResourceCode result = org.vision.visionjsdk.proto.Common.ResourceCode.valueOf(resource_); return result == null ? org.vision.visionjsdk.proto.Common.ResourceCode.UNRECOGNIZED : result; } /** * .protocol.ResourceCode resource = 10; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(org.vision.visionjsdk.proto.Common.ResourceCode value) { if (value == null) { throw new NullPointerException(); } resource_ = value.getNumber(); onChanged(); return this; } /** * .protocol.ResourceCode resource = 10; * @return This builder for chaining. */ public Builder clearResource() { 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; onChanged(); return this; } /** * bytes receiver_address = 15; * @return This builder for chaining. */ public Builder clearReceiverAddress() { 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.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UnfreezeBalanceContract(); } public static org.vision.visionjsdk.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 { return new UnfreezeBalanceContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WithdrawBalanceContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.class, org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract other = (org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WithdrawBalanceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WithdrawBalanceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.class, org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WithdrawBalanceContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract build() { org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract buildPartial() { org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract result = new org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract(this); result.ownerAddress_ = ownerAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract other) { if (other == org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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.vision.visionjsdk.proto.Contract.WithdrawBalanceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.WithdrawBalanceContract(); } public static org.vision.visionjsdk.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 { return new WithdrawBalanceContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { toAddress_ = input.readBytes(); break; } case 24: { amount_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TransferContract.class, org.vision.visionjsdk.proto.Contract.TransferContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.TransferContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.TransferContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.TransferContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.TransferContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.TransferContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TransferContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TransferContract.class, org.vision.visionjsdk.proto.Contract.TransferContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.TransferContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_TransferContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.TransferContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferContract build() { org.vision.visionjsdk.proto.Contract.TransferContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TransferContract buildPartial() { org.vision.visionjsdk.proto.Contract.TransferContract result = new org.vision.visionjsdk.proto.Contract.TransferContract(this); result.ownerAddress_ = ownerAddress_; result.toAddress_ = toAddress_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.TransferContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.TransferContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.TransferContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.TransferContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.TransferContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes to_address = 2; * @return This builder for chaining. */ public Builder clearToAddress() { 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; onChanged(); return this; } /** * int64 amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { 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.vision.visionjsdk.proto.Contract.TransferContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.TransferContract(); } public static org.vision.visionjsdk.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 { return new TransferContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketSellAssetContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { sellTokenId_ = input.readBytes(); break; } case 24: { sellTokenQuantity_ = input.readInt64(); break; } case 34: { buyTokenId_ = input.readBytes(); break; } case 40: { buyTokenQuantity_ = input.readInt64(); break; } case 50: { prePriceKey_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketSellAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.class, org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** *
     * 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_; /** *
     * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.MarketSellAssetContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.MarketSellAssetContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketSellAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketSellAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketSellAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.class, org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketSellAssetContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketSellAssetContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.MarketSellAssetContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketSellAssetContract build() { org.vision.visionjsdk.proto.Contract.MarketSellAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketSellAssetContract buildPartial() { org.vision.visionjsdk.proto.Contract.MarketSellAssetContract result = new org.vision.visionjsdk.proto.Contract.MarketSellAssetContract(this); result.ownerAddress_ = ownerAddress_; result.sellTokenId_ = sellTokenId_; result.sellTokenQuantity_ = sellTokenQuantity_; result.buyTokenId_ = buyTokenId_; result.buyTokenQuantity_ = buyTokenQuantity_; result.prePriceKey_ = prePriceKey_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.MarketSellAssetContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.MarketSellAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.MarketSellAssetContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.MarketSellAssetContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.MarketSellAssetContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes sell_token_id = 2; * @return This builder for chaining. */ public Builder clearSellTokenId() { 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; onChanged(); return this; } /** * int64 sell_token_quantity = 3; * @return This builder for chaining. */ public Builder clearSellTokenQuantity() { sellTokenQuantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString buyTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buy_token_id = 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; onChanged(); return this; } /** * bytes buy_token_id = 4; * @return This builder for chaining. */ public Builder clearBuyTokenId() { 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; onChanged(); return this; } /** *
       * min to receive
       * 
* * int64 buy_token_quantity = 5; * @return This builder for chaining. */ public Builder clearBuyTokenQuantity() { 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; onChanged(); return this; } /** *
       * order price position
       * 
* * bytes pre_price_key = 6; * @return This builder for chaining. */ public Builder clearPrePriceKey() { 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.vision.visionjsdk.proto.Contract.MarketSellAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.MarketSellAssetContract(); } public static org.vision.visionjsdk.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 { return new MarketSellAssetContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketCancelOrderContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { orderId_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.class, org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract other = (org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getOrderId() .equals(other.getOrderId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; hash = (53 * hash) + getOrderId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.MarketCancelOrderContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketCancelOrderContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.class, org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_MarketCancelOrderContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract build() { org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract buildPartial() { org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract result = new org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract(this); result.ownerAddress_ = ownerAddress_; result.orderId_ = orderId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes order_id = 2; * @return This builder for chaining. */ public Builder clearOrderId() { 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.vision.visionjsdk.proto.Contract.MarketCancelOrderContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.MarketCancelOrderContract(); } public static org.vision.visionjsdk.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 { return new MarketCancelOrderContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProposalApproveContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { proposalId_ = input.readInt64(); break; } case 24: { isAddApproval_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalApproveContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalApproveContract.class, org.vision.visionjsdk.proto.Contract.ProposalApproveContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** *
     * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ProposalApproveContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ProposalApproveContract other = (org.vision.visionjsdk.proto.Contract.ProposalApproveContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getProposalId() != other.getProposalId()) return false; if (getIsAddApproval() != other.getIsAddApproval()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalApproveContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalApproveContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalApproveContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalApproveContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalApproveContract.class, org.vision.visionjsdk.proto.Contract.ProposalApproveContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ProposalApproveContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; proposalId_ = 0L; isAddApproval_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalApproveContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalApproveContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ProposalApproveContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalApproveContract build() { org.vision.visionjsdk.proto.Contract.ProposalApproveContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalApproveContract buildPartial() { org.vision.visionjsdk.proto.Contract.ProposalApproveContract result = new org.vision.visionjsdk.proto.Contract.ProposalApproveContract(this); result.ownerAddress_ = ownerAddress_; result.proposalId_ = proposalId_; result.isAddApproval_ = isAddApproval_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ProposalApproveContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ProposalApproveContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ProposalApproveContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ProposalApproveContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ProposalApproveContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 proposal_id = 2; * @return This builder for chaining. */ public Builder clearProposalId() { 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; onChanged(); return this; } /** *
       * add or remove approval
       * 
* * bool is_add_approval = 3; * @return This builder for chaining. */ public Builder clearIsAddApproval() { 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.vision.visionjsdk.proto.Contract.ProposalApproveContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ProposalApproveContract(); } public static org.vision.visionjsdk.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 { return new ProposalApproveContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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; * @return int */ int getParametersCount(); /** * map<int64, int64> parameters = 2; * @param key key * @return boolean */ boolean containsParameters( long key); /** * Use {@link #getParametersMap()} instead. * @return map */ @java.lang.Deprecated java.util.Map getParameters(); /** * map<int64, int64> parameters = 2; * @return map */ java.util.Map getParametersMap(); /** * map<int64, int64> parameters = 2; * @param key key * @param defaultValue defaultValue * @return long */ long getParametersOrDefault( long key, long defaultValue); /** * map<int64, int64> parameters = 2; * @param key key * @return long */ 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProposalCreateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry parameters__ = input.readMessage( ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); parameters_.getMutableMap().put( parameters__.getKey(), parameters__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalCreateContract.class, org.vision.visionjsdk.proto.Contract.ProposalCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_ParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.INT64, 0L); } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> parameters_; private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * 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); unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ProposalCreateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ProposalCreateContract other = (org.vision.visionjsdk.proto.Contract.ProposalCreateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!internalGetParameters().equals( other.internalGetParameters())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalCreateContract.class, org.vision.visionjsdk.proto.Contract.ProposalCreateContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ProposalCreateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableParameters().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalCreateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalCreateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ProposalCreateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalCreateContract build() { org.vision.visionjsdk.proto.Contract.ProposalCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalCreateContract buildPartial() { org.vision.visionjsdk.proto.Contract.ProposalCreateContract result = new org.vision.visionjsdk.proto.Contract.ProposalCreateContract(this); int from_bitField0_ = bitField0_; result.ownerAddress_ = ownerAddress_; result.parameters_ = internalGetParameters(); result.parameters_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ProposalCreateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ProposalCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ProposalCreateContract other) { if (other == org.vision.visionjsdk.proto.Contract.ProposalCreateContract.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } internalGetMutableParameters().mergeFrom( other.internalGetParameters()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ProposalCreateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ProposalCreateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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() { onChanged();; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField( ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } return parameters_; } public int getParametersCount() { return internalGetParameters().getMap().size(); } /** * map<int64, int64> parameters = 2; * @param key key * @return boolean */ @java.lang.Override public boolean containsParameters( long key) { return internalGetParameters().getMap().containsKey(key); } /** * Use {@link #getParametersMap()} instead. * @return map */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** * map<int64, int64> parameters = 2; * @return map */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * map<int64, int64> parameters = 2; * @param key key * @param defaultValue defaultValue * @return long */ @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; * @param key key * @return long */ @java.lang.Override public long getParametersOrThrow( long key) { java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParameters() { internalGetMutableParameters().getMutableMap() .clear(); return this; } /** * map<int64, int64> parameters = 2; * @param key key * @return Builder */ public Builder removeParameters( long key) { internalGetMutableParameters().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. * @return map */ @java.lang.Deprecated public java.util.Map getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** * map<int64, int64> parameters = 2; * @param value value * @param key key * @return Builder */ public Builder putParameters( long key, long value) { internalGetMutableParameters().getMutableMap() .put(key, value); return this; } /** * map<int64, int64> parameters = 2; * @param values values * @return Builder */ public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.ProposalCreateContract) } // @@protoc_insertion_point(class_scope:protocol.ProposalCreateContract) private static final org.vision.visionjsdk.proto.Contract.ProposalCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ProposalCreateContract(); } public static org.vision.visionjsdk.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 { return new ProposalCreateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProposalDeleteContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { proposalId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalDeleteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.class, org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ProposalDeleteContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ProposalDeleteContract other = (org.vision.visionjsdk.proto.Contract.ProposalDeleteContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getProposalId() != other.getProposalId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalDeleteContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ProposalDeleteContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalDeleteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.class, org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; proposalId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ProposalDeleteContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalDeleteContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ProposalDeleteContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalDeleteContract build() { org.vision.visionjsdk.proto.Contract.ProposalDeleteContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ProposalDeleteContract buildPartial() { org.vision.visionjsdk.proto.Contract.ProposalDeleteContract result = new org.vision.visionjsdk.proto.Contract.ProposalDeleteContract(this); result.ownerAddress_ = ownerAddress_; result.proposalId_ = proposalId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ProposalDeleteContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ProposalDeleteContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ProposalDeleteContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ProposalDeleteContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ProposalDeleteContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 proposal_id = 2; * @return This builder for chaining. */ public Builder clearProposalId() { 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.vision.visionjsdk.proto.Contract.ProposalDeleteContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ProposalDeleteContract(); } public static org.vision.visionjsdk.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 { return new ProposalDeleteContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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.vision.visionjsdk.proto.Common.SmartContract getNewContract(); /** * .protocol.SmartContract new_contract = 2; * @return SmartContractOrBuilder */ org.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateSmartContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { org.vision.visionjsdk.proto.Common.SmartContract.Builder subBuilder = null; if (newContract_ != null) { subBuilder = newContract_.toBuilder(); } newContract_ = input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(newContract_); newContract_ = subBuilder.buildPartial(); } break; } case 24: { callTokenValue_ = input.readInt64(); break; } case 32: { tokenId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_CreateSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.CreateSmartContract.class, org.vision.visionjsdk.proto.Contract.CreateSmartContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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.vision.visionjsdk.proto.Common.SmartContract newContract_; /** * .protocol.SmartContract new_contract = 2; * @return Whether the newContract field is set. */ @java.lang.Override public boolean hasNewContract() { return newContract_ != null; } /** * .protocol.SmartContract new_contract = 2; * @return The newContract. */ @java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContract getNewContract() { return newContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : newContract_; } /** * .protocol.SmartContract new_contract = 2; */ @java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getNewContractOrBuilder() { return getNewContract(); } public static final int CALL_TOKEN_VALUE_FIELD_NUMBER = 3; private long callTokenValue_; /** * 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_; /** * 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 (newContract_ != null) { output.writeMessage(2, getNewContract()); } if (callTokenValue_ != 0L) { output.writeInt64(3, callTokenValue_); } if (tokenId_ != 0L) { output.writeInt64(4, tokenId_); } unknownFields.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 (newContract_ != null) { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.CreateSmartContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.CreateSmartContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.CreateSmartContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.CreateSmartContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.CreateSmartContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_CreateSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.CreateSmartContract.class, org.vision.visionjsdk.proto.Contract.CreateSmartContract.Builder.class); } // Construct using org.vision.visionjsdk.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) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; if (newContractBuilder_ == null) { newContract_ = null; } else { newContract_ = null; newContractBuilder_ = null; } callTokenValue_ = 0L; tokenId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_CreateSmartContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.CreateSmartContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.CreateSmartContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.CreateSmartContract build() { org.vision.visionjsdk.proto.Contract.CreateSmartContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.CreateSmartContract buildPartial() { org.vision.visionjsdk.proto.Contract.CreateSmartContract result = new org.vision.visionjsdk.proto.Contract.CreateSmartContract(this); result.ownerAddress_ = ownerAddress_; if (newContractBuilder_ == null) { result.newContract_ = newContract_; } else { result.newContract_ = newContractBuilder_.build(); } result.callTokenValue_ = callTokenValue_; result.tokenId_ = tokenId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.CreateSmartContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.CreateSmartContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.CreateSmartContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.CreateSmartContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.CreateSmartContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private org.vision.visionjsdk.proto.Common.SmartContract newContract_; private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder> newContractBuilder_; /** * .protocol.SmartContract new_contract = 2; * @return Whether the newContract field is set. */ public boolean hasNewContract() { return newContractBuilder_ != null || newContract_ != null; } /** * .protocol.SmartContract new_contract = 2; * @return The newContract. */ public org.vision.visionjsdk.proto.Common.SmartContract getNewContract() { if (newContractBuilder_ == null) { return newContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : newContract_; } else { return newContractBuilder_.getMessage(); } } /** * .protocol.SmartContract new_contract = 2; * @param value value * @return Builder */ public Builder setNewContract(org.vision.visionjsdk.proto.Common.SmartContract value) { if (newContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newContract_ = value; onChanged(); } else { newContractBuilder_.setMessage(value); } return this; } /** * .protocol.SmartContract new_contract = 2; * @param builderForValue builderForValue * @return Builder */ public Builder setNewContract( org.vision.visionjsdk.proto.Common.SmartContract.Builder builderForValue) { if (newContractBuilder_ == null) { newContract_ = builderForValue.build(); onChanged(); } else { newContractBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protocol.SmartContract new_contract = 2; * @param value value * @return Builder */ public Builder mergeNewContract(org.vision.visionjsdk.proto.Common.SmartContract value) { if (newContractBuilder_ == null) { if (newContract_ != null) { newContract_ = org.vision.visionjsdk.proto.Common.SmartContract.newBuilder(newContract_).mergeFrom(value).buildPartial(); } else { newContract_ = value; } onChanged(); } else { newContractBuilder_.mergeFrom(value); } return this; } /** * .protocol.SmartContract new_contract = 2; * @return Builder */ public Builder clearNewContract() { if (newContractBuilder_ == null) { newContract_ = null; onChanged(); } else { newContract_ = null; newContractBuilder_ = null; } return this; } /** * .protocol.SmartContract new_contract = 2; * @return Builder */ public org.vision.visionjsdk.proto.Common.SmartContract.Builder getNewContractBuilder() { onChanged(); return getNewContractFieldBuilder().getBuilder(); } /** * .protocol.SmartContract new_contract = 2; * @return SmartContractOrBuilder */ public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getNewContractOrBuilder() { if (newContractBuilder_ != null) { return newContractBuilder_.getMessageOrBuilder(); } else { return newContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : newContract_; } } /** * .protocol.SmartContract new_contract = 2; * @return SingleFieldBuilderV3 */ private com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder> getNewContractFieldBuilder() { if (newContractBuilder_ == null) { newContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.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; onChanged(); return this; } /** * int64 call_token_value = 3; * @return This builder for chaining. */ public Builder clearCallTokenValue() { 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; onChanged(); return this; } /** * int64 token_id = 4; * @return This builder for chaining. */ public Builder clearTokenId() { 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.vision.visionjsdk.proto.Contract.CreateSmartContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.CreateSmartContract(); } public static org.vision.visionjsdk.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 { return new CreateSmartContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TriggerSmartContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { contractAddress_ = input.readBytes(); break; } case 24: { callValue_ = input.readInt64(); break; } case 34: { data_ = input.readBytes(); break; } case 40: { callTokenValue_ = input.readInt64(); break; } case 48: { tokenId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TriggerSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TriggerSmartContract.class, org.vision.visionjsdk.proto.Contract.TriggerSmartContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.TriggerSmartContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.TriggerSmartContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TriggerSmartContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TriggerSmartContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.TriggerSmartContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_TriggerSmartContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.TriggerSmartContract.class, org.vision.visionjsdk.proto.Contract.TriggerSmartContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.TriggerSmartContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_TriggerSmartContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TriggerSmartContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.TriggerSmartContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TriggerSmartContract build() { org.vision.visionjsdk.proto.Contract.TriggerSmartContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.TriggerSmartContract buildPartial() { org.vision.visionjsdk.proto.Contract.TriggerSmartContract result = new org.vision.visionjsdk.proto.Contract.TriggerSmartContract(this); result.ownerAddress_ = ownerAddress_; result.contractAddress_ = contractAddress_; result.callValue_ = callValue_; result.data_ = data_; result.callTokenValue_ = callTokenValue_; result.tokenId_ = tokenId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.TriggerSmartContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.TriggerSmartContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.TriggerSmartContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.TriggerSmartContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.TriggerSmartContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { 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; onChanged(); return this; } /** * int64 call_value = 3; * @return This builder for chaining. */ public Builder clearCallValue() { 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; onChanged(); return this; } /** * bytes data = 4; * @return This builder for chaining. */ public Builder clearData() { 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; onChanged(); return this; } /** * int64 call_token_value = 5; * @return This builder for chaining. */ public Builder clearCallTokenValue() { 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; onChanged(); return this; } /** * int64 token_id = 6; * @return This builder for chaining. */ public Builder clearTokenId() { 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.vision.visionjsdk.proto.Contract.TriggerSmartContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.TriggerSmartContract(); } public static org.vision.visionjsdk.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 { return new TriggerSmartContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClearABIContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { contractAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ClearABIContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ClearABIContract.class, org.vision.visionjsdk.proto.Contract.ClearABIContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ClearABIContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ClearABIContract other = (org.vision.visionjsdk.proto.Contract.ClearABIContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ClearABIContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ClearABIContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ClearABIContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ClearABIContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ClearABIContract.class, org.vision.visionjsdk.proto.Contract.ClearABIContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ClearABIContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ClearABIContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ClearABIContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ClearABIContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ClearABIContract build() { org.vision.visionjsdk.proto.Contract.ClearABIContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ClearABIContract buildPartial() { org.vision.visionjsdk.proto.Contract.ClearABIContract result = new org.vision.visionjsdk.proto.Contract.ClearABIContract(this); result.ownerAddress_ = ownerAddress_; result.contractAddress_ = contractAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ClearABIContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ClearABIContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ClearABIContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ClearABIContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ClearABIContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { 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.vision.visionjsdk.proto.Contract.ClearABIContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ClearABIContract(); } public static org.vision.visionjsdk.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 { return new ClearABIContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSettingContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { contractAddress_ = input.readBytes(); break; } case 24: { consumeUserResourcePercent_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateSettingContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateSettingContract.class, org.vision.visionjsdk.proto.Contract.UpdateSettingContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UpdateSettingContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UpdateSettingContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateSettingContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateSettingContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateSettingContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateSettingContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateSettingContract.class, org.vision.visionjsdk.proto.Contract.UpdateSettingContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UpdateSettingContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateSettingContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateSettingContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UpdateSettingContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateSettingContract build() { org.vision.visionjsdk.proto.Contract.UpdateSettingContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateSettingContract buildPartial() { org.vision.visionjsdk.proto.Contract.UpdateSettingContract result = new org.vision.visionjsdk.proto.Contract.UpdateSettingContract(this); result.ownerAddress_ = ownerAddress_; result.contractAddress_ = contractAddress_; result.consumeUserResourcePercent_ = consumeUserResourcePercent_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UpdateSettingContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UpdateSettingContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UpdateSettingContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UpdateSettingContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UpdateSettingContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { 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; onChanged(); return this; } /** * int64 consume_user_resource_percent = 3; * @return This builder for chaining. */ public Builder clearConsumeUserResourcePercent() { 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.vision.visionjsdk.proto.Contract.UpdateSettingContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UpdateSettingContract(); } public static org.vision.visionjsdk.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 { return new UpdateSettingContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateSettingContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateEntropyLimitContractOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.UpdateEntropyLimitContract) 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_entropy_limit = 3; * @return The originEntropyLimit. */ long getOriginEntropyLimit(); } /** * Protobuf type {@code protocol.UpdateEntropyLimitContract} */ public static final class UpdateEntropyLimitContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.UpdateEntropyLimitContract) UpdateEntropyLimitContractOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateEntropyLimitContract.newBuilder() to construct. private UpdateEntropyLimitContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateEntropyLimitContract() { 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 UpdateEntropyLimitContract(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateEntropyLimitContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { contractAddress_ = input.readBytes(); break; } case 24: { originEntropyLimit_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateEntropyLimitContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateEntropyLimitContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.class, org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * bytes contract_address = 2; * @return The contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } public static final int ORIGIN_ENTROPY_LIMIT_FIELD_NUMBER = 3; private long originEntropyLimit_; /** * int64 origin_entropy_limit = 3; * @return The originEntropyLimit. */ @java.lang.Override public long getOriginEntropyLimit() { return originEntropyLimit_; } 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 (originEntropyLimit_ != 0L) { output.writeInt64(3, originEntropyLimit_); } unknownFields.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 (originEntropyLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, originEntropyLimit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract other = (org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (getOriginEntropyLimit() != other.getOriginEntropyLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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_ENTROPY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginEntropyLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract 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.UpdateEntropyLimitContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.UpdateEntropyLimitContract) org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateEntropyLimitContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateEntropyLimitContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.class, org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; contractAddress_ = com.google.protobuf.ByteString.EMPTY; originEntropyLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateEntropyLimitContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract build() { org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract buildPartial() { org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract result = new org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract(this); result.ownerAddress_ = ownerAddress_; result.contractAddress_ = contractAddress_; result.originEntropyLimit_ = originEntropyLimit_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract other) { if (other == org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract.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.getOriginEntropyLimit() != 0L) { setOriginEntropyLimit(other.getOriginEntropyLimit()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes contract_address = 2; * @return This builder for chaining. */ public Builder clearContractAddress() { contractAddress_ = getDefaultInstance().getContractAddress(); onChanged(); return this; } private long originEntropyLimit_ ; /** * int64 origin_entropy_limit = 3; * @return The originEntropyLimit. */ @java.lang.Override public long getOriginEntropyLimit() { return originEntropyLimit_; } /** * int64 origin_entropy_limit = 3; * @param value The originEntropyLimit to set. * @return This builder for chaining. */ public Builder setOriginEntropyLimit(long value) { originEntropyLimit_ = value; onChanged(); return this; } /** * int64 origin_entropy_limit = 3; * @return This builder for chaining. */ public Builder clearOriginEntropyLimit() { originEntropyLimit_ = 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.UpdateEntropyLimitContract) } // @@protoc_insertion_point(class_scope:protocol.UpdateEntropyLimitContract) private static final org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract(); } public static org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateEntropyLimitContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateEntropyLimitContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateEntropyLimitContract 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateBrokerageContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { brokerage_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.class, org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** *
     * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract other = (org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getBrokerage() != other.getBrokerage()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + BROKERAGE_FIELD_NUMBER; hash = (53 * hash) + getBrokerage(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.UpdateBrokerageContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateBrokerageContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.class, org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; brokerage_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_UpdateBrokerageContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract build() { org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract buildPartial() { org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract result = new org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract(this); result.ownerAddress_ = ownerAddress_; result.brokerage_ = brokerage_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** *
       * 1 mean 1%
       * 
* * int32 brokerage = 2; * @return This builder for chaining. */ public Builder clearBrokerage() { 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.vision.visionjsdk.proto.Contract.UpdateBrokerageContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.UpdateBrokerageContract(); } public static org.vision.visionjsdk.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 { return new UpdateBrokerageContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteAssetContract(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VoteAssetContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { voteAddress_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } voteAddress_.add(input.readBytes()); break; } case 24: { support_ = input.readBool(); break; } case 40: { count_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { voteAddress_ = java.util.Collections.unmodifiableList(voteAddress_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteAssetContract.class, org.vision.visionjsdk.proto.Contract.VoteAssetContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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; private java.util.List voteAddress_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.VoteAssetContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.VoteAssetContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteAssetContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteAssetContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteAssetContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteAssetContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteAssetContract.class, org.vision.visionjsdk.proto.Contract.VoteAssetContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.VoteAssetContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; voteAddress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); support_ = false; count_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteAssetContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteAssetContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.VoteAssetContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteAssetContract build() { org.vision.visionjsdk.proto.Contract.VoteAssetContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteAssetContract buildPartial() { org.vision.visionjsdk.proto.Contract.VoteAssetContract result = new org.vision.visionjsdk.proto.Contract.VoteAssetContract(this); int from_bitField0_ = bitField0_; result.ownerAddress_ = ownerAddress_; if (((bitField0_ & 0x00000001) != 0)) { voteAddress_ = java.util.Collections.unmodifiableList(voteAddress_); bitField0_ = (bitField0_ & ~0x00000001); } result.voteAddress_ = voteAddress_; result.support_ = support_; result.count_ = count_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.VoteAssetContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.VoteAssetContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.VoteAssetContract other) { if (other == org.vision.visionjsdk.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_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVoteAddressIsMutable(); voteAddress_.addAll(other.voteAddress_); } onChanged(); } if (other.getSupport() != false) { setSupport(other.getSupport()); } if (other.getCount() != 0) { setCount(other.getCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.VoteAssetContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.VoteAssetContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private java.util.List voteAddress_ = java.util.Collections.emptyList(); private void ensureVoteAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voteAddress_ = new java.util.ArrayList(voteAddress_); bitField0_ |= 0x00000001; } } /** * repeated bytes vote_address = 2; * @return A list containing the voteAddress. */ public java.util.List getVoteAddressList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(voteAddress_) : 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); 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); 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_); onChanged(); return this; } /** * repeated bytes vote_address = 2; * @return This builder for chaining. */ public Builder clearVoteAddress() { voteAddress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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; onChanged(); return this; } /** * bool support = 3; * @return This builder for chaining. */ public Builder clearSupport() { 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; onChanged(); return this; } /** * int32 count = 5; * @return This builder for chaining. */ public Builder clearCount() { 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.vision.visionjsdk.proto.Contract.VoteAssetContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.VoteAssetContract(); } public static org.vision.visionjsdk.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 { return new VoteAssetContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WitnessCreateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { url_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WitnessCreateContract.class, org.vision.visionjsdk.proto.Contract.WitnessCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.WitnessCreateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.WitnessCreateContract other = (org.vision.visionjsdk.proto.Contract.WitnessCreateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WitnessCreateContract.class, org.vision.visionjsdk.proto.Contract.WitnessCreateContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.WitnessCreateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessCreateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessCreateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.WitnessCreateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessCreateContract build() { org.vision.visionjsdk.proto.Contract.WitnessCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessCreateContract buildPartial() { org.vision.visionjsdk.proto.Contract.WitnessCreateContract result = new org.vision.visionjsdk.proto.Contract.WitnessCreateContract(this); result.ownerAddress_ = ownerAddress_; result.url_ = url_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.WitnessCreateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.WitnessCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.WitnessCreateContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.WitnessCreateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.WitnessCreateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes url = 2; * @return This builder for chaining. */ public Builder clearUrl() { 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.vision.visionjsdk.proto.Contract.WitnessCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.WitnessCreateContract(); } public static org.vision.visionjsdk.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 { return new WitnessCreateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WitnessUpdateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 98: { updateUrl_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.class, org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.WitnessUpdateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.WitnessUpdateContract other = (org.vision.visionjsdk.proto.Contract.WitnessUpdateContract) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUpdateUrl() .equals(other.getUpdateUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + UPDATE_URL_FIELD_NUMBER; hash = (53 * hash) + getUpdateUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessUpdateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.WitnessUpdateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessUpdateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.class, org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_WitnessUpdateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessUpdateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.WitnessUpdateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessUpdateContract build() { org.vision.visionjsdk.proto.Contract.WitnessUpdateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.WitnessUpdateContract buildPartial() { org.vision.visionjsdk.proto.Contract.WitnessUpdateContract result = new org.vision.visionjsdk.proto.Contract.WitnessUpdateContract(this); result.ownerAddress_ = ownerAddress_; result.updateUrl_ = updateUrl_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.WitnessUpdateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.WitnessUpdateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.WitnessUpdateContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.WitnessUpdateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.WitnessUpdateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes update_url = 12; * @return This builder for chaining. */ public Builder clearUpdateUrl() { 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.vision.visionjsdk.proto.Contract.WitnessUpdateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.WitnessUpdateContract(); } public static org.vision.visionjsdk.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 { return new WitnessUpdateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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; * @return list */ java.util.List getVotesList(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return Vote */ org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote getVotes(int index); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return int */ int getVotesCount(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return list */ java.util.List getVotesOrBuilderList(); /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return VoteOrBuilder */ org.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VoteWitnessContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } votes_.add( input.readMessage(org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.parser(), extensionRegistry)); break; } case 24: { support_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteWitnessContract.class, org.vision.visionjsdk.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vote( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { voteAddress_ = input.readBytes(); break; } case 16: { voteCount_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.class, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder.class); } public static final int VOTE_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString voteAddress_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote other = (org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote) obj; if (!getVoteAddress() .equals(other.getVoteAddress())) return false; if (getVoteCount() != other.getVoteCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract.VoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.class, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); voteAddress_ = com.google.protobuf.ByteString.EMPTY; voteCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_Vote_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote build() { org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote buildPartial() { org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote result = new org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote(this); result.voteAddress_ = voteAddress_; result.voteCount_ = voteCount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote) { return mergeFrom((org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * bytes vote_address = 1; * @return This builder for chaining. */ public Builder clearVoteAddress() { 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; onChanged(); return this; } /** * int64 vote_count = 2; * @return This builder for chaining. */ public Builder clearVoteCount() { 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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote(); } public static org.vision.visionjsdk.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 { return new Vote(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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; 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.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote getVotes(int index) { return votes_.get(index); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; */ @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.VoteOrBuilder getVotesOrBuilder( int index) { return votes_.get(index); } public static final int SUPPORT_FIELD_NUMBER = 3; private boolean support_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.VoteWitnessContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.VoteWitnessContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.VoteWitnessContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.VoteWitnessContract.class, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.VoteWitnessContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVotesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ownerAddress_ = com.google.protobuf.ByteString.EMPTY; if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { votesBuilder_.clear(); } support_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_VoteWitnessContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.VoteWitnessContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract build() { org.vision.visionjsdk.proto.Contract.VoteWitnessContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.VoteWitnessContract buildPartial() { org.vision.visionjsdk.proto.Contract.VoteWitnessContract result = new org.vision.visionjsdk.proto.Contract.VoteWitnessContract(this); int from_bitField0_ = bitField0_; result.ownerAddress_ = ownerAddress_; if (votesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); bitField0_ = (bitField0_ & ~0x00000001); } result.votes_ = votes_; } else { result.votes_ = votesBuilder_.build(); } result.support_ = support_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.VoteWitnessContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.VoteWitnessContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.VoteWitnessContract other) { if (other == org.vision.visionjsdk.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_ & ~0x00000001); } else { ensureVotesIsMutable(); votes_.addAll(other.votes_); } onChanged(); } } else { if (!other.votes_.isEmpty()) { if (votesBuilder_.isEmpty()) { votesBuilder_.dispose(); votesBuilder_ = null; votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000001); votesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotesFieldBuilder() : null; } else { votesBuilder_.addAllMessages(other.votes_); } } } if (other.getSupport() != false) { setSupport(other.getSupport()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.VoteWitnessContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.VoteWitnessContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private java.util.List votes_ = java.util.Collections.emptyList(); private void ensureVotesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(votes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.VoteOrBuilder> votesBuilder_; /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return list */ public java.util.List getVotesList() { if (votesBuilder_ == null) { return java.util.Collections.unmodifiableList(votes_); } else { return votesBuilder_.getMessageList(); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return int */ public int getVotesCount() { if (votesBuilder_ == null) { return votes_.size(); } else { return votesBuilder_.getCount(); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return Vote */ public org.vision.visionjsdk.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; * @param index index * @param value value * @return Builder */ public Builder setVotes( int index, org.vision.visionjsdk.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; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder setVotes( int index, org.vision.visionjsdk.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; * @param value value * @return Builder */ public Builder addVotes(org.vision.visionjsdk.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; * @param index index * @param value value * @return Builder */ public Builder addVotes( int index, org.vision.visionjsdk.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; * @param builderForValue builderForValue * @return Builder */ public Builder addVotes( org.vision.visionjsdk.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; * @param index index * @param builderForValue builderForValue * @return Builder */ public Builder addVotes( int index, org.vision.visionjsdk.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; * @param values values * @return Builder */ public Builder addAllVotes( java.lang.Iterable values) { if (votesBuilder_ == null) { ensureVotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, votes_); onChanged(); } else { votesBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return Builder */ public Builder clearVotes() { if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { votesBuilder_.clear(); } return this; } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return Builder */ 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; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder getVotesBuilder( int index) { return getVotesFieldBuilder().getBuilder(index); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return VoteOrBuilder */ public org.vision.visionjsdk.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; * @return list */ public java.util.List getVotesOrBuilderList() { if (votesBuilder_ != null) { return votesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(votes_); } } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return Builder */ public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder addVotesBuilder() { return getVotesFieldBuilder().addBuilder( org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance()); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @param index index * @return Builder */ public org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder addVotesBuilder( int index) { return getVotesFieldBuilder().addBuilder( index, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.getDefaultInstance()); } /** * repeated .protocol.VoteWitnessContract.Vote votes = 2; * @return list */ public java.util.List getVotesBuilderList() { return getVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.VoteOrBuilder> getVotesFieldBuilder() { if (votesBuilder_ == null) { votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.Vote.Builder, org.vision.visionjsdk.proto.Contract.VoteWitnessContract.VoteOrBuilder>( votes_, ((bitField0_ & 0x00000001) != 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; onChanged(); return this; } /** * bool support = 3; * @return This builder for chaining. */ public Builder clearSupport() { 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.vision.visionjsdk.proto.Contract.VoteWitnessContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.VoteWitnessContract(); } public static org.vision.visionjsdk.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 { return new VoteWitnessContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExchangeCreateContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 18: { firstTokenId_ = input.readBytes(); break; } case 24: { firstTokenBalance_ = input.readInt64(); break; } case 34: { secondTokenId_ = input.readBytes(); break; } case 40: { secondTokenBalance_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.class, org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ExchangeCreateContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ExchangeCreateContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeCreateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeCreateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeCreateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.class, org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeCreateContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeCreateContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ExchangeCreateContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeCreateContract build() { org.vision.visionjsdk.proto.Contract.ExchangeCreateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeCreateContract buildPartial() { org.vision.visionjsdk.proto.Contract.ExchangeCreateContract result = new org.vision.visionjsdk.proto.Contract.ExchangeCreateContract(this); result.ownerAddress_ = ownerAddress_; result.firstTokenId_ = firstTokenId_; result.firstTokenBalance_ = firstTokenBalance_; result.secondTokenId_ = secondTokenId_; result.secondTokenBalance_ = secondTokenBalance_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ExchangeCreateContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ExchangeCreateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ExchangeCreateContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ExchangeCreateContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ExchangeCreateContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * bytes first_token_id = 2; * @return This builder for chaining. */ public Builder clearFirstTokenId() { 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; onChanged(); return this; } /** * int64 first_token_balance = 3; * @return This builder for chaining. */ public Builder clearFirstTokenBalance() { firstTokenBalance_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString secondTokenId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes second_token_id = 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; onChanged(); return this; } /** * bytes second_token_id = 4; * @return This builder for chaining. */ public Builder clearSecondTokenId() { 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; onChanged(); return this; } /** * int64 second_token_balance = 5; * @return This builder for chaining. */ public Builder clearSecondTokenBalance() { secondTokenBalance_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.ExchangeCreateContract) } // @@protoc_insertion_point(class_scope:protocol.ExchangeCreateContract) private static final org.vision.visionjsdk.proto.Contract.ExchangeCreateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ExchangeCreateContract(); } public static org.vision.visionjsdk.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 { return new ExchangeCreateContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExchangeInjectContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { exchangeId_ = input.readInt64(); break; } case 26: { tokenId_ = input.readBytes(); break; } case 32: { quant_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeInjectContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.class, org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ExchangeInjectContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ExchangeInjectContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeInjectContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeInjectContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeInjectContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.class, org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeInjectContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeInjectContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ExchangeInjectContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeInjectContract build() { org.vision.visionjsdk.proto.Contract.ExchangeInjectContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeInjectContract buildPartial() { org.vision.visionjsdk.proto.Contract.ExchangeInjectContract result = new org.vision.visionjsdk.proto.Contract.ExchangeInjectContract(this); result.ownerAddress_ = ownerAddress_; result.exchangeId_ = exchangeId_; result.tokenId_ = tokenId_; result.quant_ = quant_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ExchangeInjectContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ExchangeInjectContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ExchangeInjectContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ExchangeInjectContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ExchangeInjectContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { 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; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { 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; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { 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.vision.visionjsdk.proto.Contract.ExchangeInjectContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ExchangeInjectContract(); } public static org.vision.visionjsdk.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 { return new ExchangeInjectContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExchangeWithdrawContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { exchangeId_ = input.readInt64(); break; } case 26: { tokenId_ = input.readBytes(); break; } case 32: { quant_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.class, org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.class, org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeWithdrawContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract build() { org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract buildPartial() { org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract result = new org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract(this); result.ownerAddress_ = ownerAddress_; result.exchangeId_ = exchangeId_; result.tokenId_ = tokenId_; result.quant_ = quant_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { 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; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { 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; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { 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.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ExchangeWithdrawContract(); } public static org.vision.visionjsdk.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 { return new ExchangeWithdrawContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExchangeTransactionContract( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); break; } case 16: { exchangeId_ = input.readInt64(); break; } case 26: { tokenId_ = input.readBytes(); break; } case 32: { quant_ = input.readInt64(); break; } case 40: { expected_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.class, org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_; /** * 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_; /** * 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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract)) { return super.equals(obj); } org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 46; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Contract.ExchangeTransactionContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeTransactionContract_fieldAccessorTable .ensureFieldAccessorsInitialized( org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.class, org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.Builder.class); } // Construct using org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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.vision.visionjsdk.proto.Contract.internal_static_protocol_ExchangeTransactionContract_descriptor; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract getDefaultInstanceForType() { return org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract.getDefaultInstance(); } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract build() { org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract buildPartial() { org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract result = new org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract(this); result.ownerAddress_ = ownerAddress_; result.exchangeId_ = exchangeId_; result.tokenId_ = tokenId_; result.quant_ = quant_; result.expected_ = expected_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract) { return mergeFrom((org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract other) { if (other == org.vision.visionjsdk.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { 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; onChanged(); return this; } /** * int64 exchange_id = 2; * @return This builder for chaining. */ public Builder clearExchangeId() { 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; onChanged(); return this; } /** * bytes token_id = 3; * @return This builder for chaining. */ public Builder clearTokenId() { 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; onChanged(); return this; } /** * int64 quant = 4; * @return This builder for chaining. */ public Builder clearQuant() { 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; onChanged(); return this; } /** * int64 expected = 5; * @return This builder for chaining. */ public Builder clearExpected() { 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.vision.visionjsdk.proto.Contract.ExchangeTransactionContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract(); } public static org.vision.visionjsdk.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 { return new ExchangeTransactionContract(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.vision.visionjsdk.proto.Contract.ExchangeTransactionContract 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_UpdateEntropyLimitContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_UpdateEntropyLimitContract_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; 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\007vs_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\031UpdateEntropyLimit" + "Contract\022\025\n\rowner_address\030\001 \001(\014\022\030\n\020contr" + "act_address\030\002 \001(\014\022\033\n\023origin_entropy_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(\003B" + "\035\n\033org.vision.visionjsdk.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.vision.visionjsdk.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", "VsNum", "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_UpdateEntropyLimitContract_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protocol_UpdateEntropyLimitContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_UpdateEntropyLimitContract_descriptor, new java.lang.String[] { "OwnerAddress", "ContractAddress", "OriginEntropyLimit", }); 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", }); org.vision.visionjsdk.proto.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy