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

org.tron.trident.api.GrpcAPI Maven / Gradle / Ivy

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

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

public final class GrpcAPI {
  private GrpcAPI() {}
  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 EmptyMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protocol.EmptyMessage)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code protocol.EmptyMessage}
   */
  public static final class EmptyMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.EmptyMessage)
      EmptyMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use EmptyMessage.newBuilder() to construct.
    private EmptyMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private EmptyMessage() {
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_EmptyMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tron.trident.api.GrpcAPI.EmptyMessage.class, org.tron.trident.api.GrpcAPI.EmptyMessage.Builder.class);
    }

    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 {
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

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

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

    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.EmptyMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tron.trident.api.GrpcAPI.EmptyMessage 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.EmptyMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.EmptyMessage)
        org.tron.trident.api.GrpcAPI.EmptyMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_EmptyMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tron.trident.api.GrpcAPI.EmptyMessage.class, org.tron.trident.api.GrpcAPI.EmptyMessage.Builder.class);
      }

      // Construct using org.tron.trident.api.GrpcAPI.EmptyMessage.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
      }

      @java.lang.Override
      public org.tron.trident.api.GrpcAPI.EmptyMessage getDefaultInstanceForType() {
        return org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance();
      }

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

      @java.lang.Override
      public org.tron.trident.api.GrpcAPI.EmptyMessage buildPartial() {
        org.tron.trident.api.GrpcAPI.EmptyMessage result = new org.tron.trident.api.GrpcAPI.EmptyMessage(this);
        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.tron.trident.api.GrpcAPI.EmptyMessage) {
          return mergeFrom((org.tron.trident.api.GrpcAPI.EmptyMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tron.trident.api.GrpcAPI.EmptyMessage other) {
        if (other == org.tron.trident.api.GrpcAPI.EmptyMessage.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      @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.EmptyMessage)
    }

    // @@protoc_insertion_point(class_scope:protocol.EmptyMessage)
    private static final org.tron.trident.api.GrpcAPI.EmptyMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.EmptyMessage();
    }

    public static org.tron.trident.api.GrpcAPI.EmptyMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public EmptyMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.api.GrpcAPI.EmptyMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * int64 num = 1;
     * @return The num.
     */
    long getNum();
  }
  /**
   * Protobuf type {@code protocol.NumberMessage}
   */
  public static final class NumberMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.NumberMessage)
      NumberMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use NumberMessage.newBuilder() to construct.
    private NumberMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private NumberMessage() {
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_NumberMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tron.trident.api.GrpcAPI.NumberMessage.class, org.tron.trident.api.GrpcAPI.NumberMessage.Builder.class);
    }

    public static final int NUM_FIELD_NUMBER = 1;
    private long num_ = 0L;
    /**
     * int64 num = 1;
     * @return The num.
     */
    @java.lang.Override
    public long getNum() {
      return num_;
    }

    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 (num_ != 0L) {
        output.writeInt64(1, num_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (num_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, num_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

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

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNum());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.tron.trident.api.GrpcAPI.NumberMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.api.GrpcAPI.NumberMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.NumberMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tron.trident.api.GrpcAPI.NumberMessage 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.NumberMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.NumberMessage)
        org.tron.trident.api.GrpcAPI.NumberMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_NumberMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tron.trident.api.GrpcAPI.NumberMessage.class, org.tron.trident.api.GrpcAPI.NumberMessage.Builder.class);
      }

      // Construct using org.tron.trident.api.GrpcAPI.NumberMessage.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        num_ = 0L;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
      }

      @java.lang.Override
      public org.tron.trident.api.GrpcAPI.NumberMessage getDefaultInstanceForType() {
        return org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance();
      }

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

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

      private void buildPartial0(org.tron.trident.api.GrpcAPI.NumberMessage result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.num_ = num_;
        }
      }

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

      public Builder mergeFrom(org.tron.trident.api.GrpcAPI.NumberMessage other) {
        if (other == org.tron.trident.api.GrpcAPI.NumberMessage.getDefaultInstance()) return this;
        if (other.getNum() != 0L) {
          setNum(other.getNum());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                num_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long num_ ;
      /**
       * int64 num = 1;
       * @return The num.
       */
      @java.lang.Override
      public long getNum() {
        return num_;
      }
      /**
       * int64 num = 1;
       * @param value The num to set.
       * @return This builder for chaining.
       */
      public Builder setNum(long value) {

        num_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * int64 num = 1;
       * @return This builder for chaining.
       */
      public Builder clearNum() {
        bitField0_ = (bitField0_ & ~0x00000001);
        num_ = 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.NumberMessage)
    }

    // @@protoc_insertion_point(class_scope:protocol.NumberMessage)
    private static final org.tron.trident.api.GrpcAPI.NumberMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.NumberMessage();
    }

    public static org.tron.trident.api.GrpcAPI.NumberMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public NumberMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.api.GrpcAPI.NumberMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * bytes value = 1;
     * @return The value.
     */
    com.google.protobuf.ByteString getValue();
  }
  /**
   * Protobuf type {@code protocol.BytesMessage}
   */
  public static final class BytesMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.BytesMessage)
      BytesMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BytesMessage.newBuilder() to construct.
    private BytesMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BytesMessage() {
      value_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_BytesMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tron.trident.api.GrpcAPI.BytesMessage.class, org.tron.trident.api.GrpcAPI.BytesMessage.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes value = 1;
     * @return The value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getValue() {
      return value_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!value_.isEmpty()) {
        output.writeBytes(1, value_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!value_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, value_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

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

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

    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.tron.trident.api.GrpcAPI.BytesMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.api.GrpcAPI.BytesMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.BytesMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tron.trident.api.GrpcAPI.BytesMessage 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.BytesMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.BytesMessage)
        org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BytesMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tron.trident.api.GrpcAPI.BytesMessage.class, org.tron.trident.api.GrpcAPI.BytesMessage.Builder.class);
      }

      // Construct using org.tron.trident.api.GrpcAPI.BytesMessage.newBuilder()
      private Builder() {

      }

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

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
      }

      @java.lang.Override
      public org.tron.trident.api.GrpcAPI.BytesMessage getDefaultInstanceForType() {
        return org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance();
      }

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

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

      private void buildPartial0(org.tron.trident.api.GrpcAPI.BytesMessage result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.value_ = value_;
        }
      }

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

      public Builder mergeFrom(org.tron.trident.api.GrpcAPI.BytesMessage other) {
        if (other == org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance()) return this;
        if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
          setValue(other.getValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                value_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes value = 1;
       * @return The value.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getValue() {
        return value_;
      }
      /**
       * bytes value = 1;
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        value_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * bytes value = 1;
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = getDefaultInstance().getValue();
        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.BytesMessage)
    }

    // @@protoc_insertion_point(class_scope:protocol.BytesMessage)
    private static final org.tron.trident.api.GrpcAPI.BytesMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.BytesMessage();
    }

    public static org.tron.trident.api.GrpcAPI.BytesMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BytesMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.api.GrpcAPI.BytesMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * int64 startNum = 1;
     * @return The startNum.
     */
    long getStartNum();

    /**
     * int64 endNum = 2;
     * @return The endNum.
     */
    long getEndNum();
  }
  /**
   * Protobuf type {@code protocol.BlockLimit}
   */
  public static final class BlockLimit extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protocol.BlockLimit)
      BlockLimitOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockLimit.newBuilder() to construct.
    private BlockLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BlockLimit() {
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tron.trident.api.GrpcAPI.internal_static_protocol_BlockLimit_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tron.trident.api.GrpcAPI.BlockLimit.class, org.tron.trident.api.GrpcAPI.BlockLimit.Builder.class);
    }

    public static final int STARTNUM_FIELD_NUMBER = 1;
    private long startNum_ = 0L;
    /**
     * int64 startNum = 1;
     * @return The startNum.
     */
    @java.lang.Override
    public long getStartNum() {
      return startNum_;
    }

    public static final int ENDNUM_FIELD_NUMBER = 2;
    private long endNum_ = 0L;
    /**
     * int64 endNum = 2;
     * @return The endNum.
     */
    @java.lang.Override
    public long getEndNum() {
      return endNum_;
    }

    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 (startNum_ != 0L) {
        output.writeInt64(1, startNum_);
      }
      if (endNum_ != 0L) {
        output.writeInt64(2, endNum_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (startNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, startNum_);
      }
      if (endNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, endNum_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (getStartNum()
          != other.getStartNum()) return false;
      if (getEndNum()
          != other.getEndNum()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + STARTNUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStartNum());
      hash = (37 * hash) + ENDNUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEndNum());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.tron.trident.api.GrpcAPI.BlockLimit parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.tron.trident.api.GrpcAPI.BlockLimit parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tron.trident.api.GrpcAPI.BlockLimit parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tron.trident.api.GrpcAPI.BlockLimit 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.BlockLimit}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:protocol.BlockLimit)
        org.tron.trident.api.GrpcAPI.BlockLimitOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BlockLimit_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tron.trident.api.GrpcAPI.BlockLimit.class, org.tron.trident.api.GrpcAPI.BlockLimit.Builder.class);
      }

      // Construct using org.tron.trident.api.GrpcAPI.BlockLimit.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        startNum_ = 0L;
        endNum_ = 0L;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tron.trident.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
      }

      @java.lang.Override
      public org.tron.trident.api.GrpcAPI.BlockLimit getDefaultInstanceForType() {
        return org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance();
      }

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

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

      private void buildPartial0(org.tron.trident.api.GrpcAPI.BlockLimit result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.startNum_ = startNum_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.endNum_ = endNum_;
        }
      }

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

      public Builder mergeFrom(org.tron.trident.api.GrpcAPI.BlockLimit other) {
        if (other == org.tron.trident.api.GrpcAPI.BlockLimit.getDefaultInstance()) return this;
        if (other.getStartNum() != 0L) {
          setStartNum(other.getStartNum());
        }
        if (other.getEndNum() != 0L) {
          setEndNum(other.getEndNum());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                startNum_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                endNum_ = input.readInt64();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long startNum_ ;
      /**
       * int64 startNum = 1;
       * @return The startNum.
       */
      @java.lang.Override
      public long getStartNum() {
        return startNum_;
      }
      /**
       * int64 startNum = 1;
       * @param value The startNum to set.
       * @return This builder for chaining.
       */
      public Builder setStartNum(long value) {

        startNum_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * int64 startNum = 1;
       * @return This builder for chaining.
       */
      public Builder clearStartNum() {
        bitField0_ = (bitField0_ & ~0x00000001);
        startNum_ = 0L;
        onChanged();
        return this;
      }

      private long endNum_ ;
      /**
       * int64 endNum = 2;
       * @return The endNum.
       */
      @java.lang.Override
      public long getEndNum() {
        return endNum_;
      }
      /**
       * int64 endNum = 2;
       * @param value The endNum to set.
       * @return This builder for chaining.
       */
      public Builder setEndNum(long value) {

        endNum_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * int64 endNum = 2;
       * @return This builder for chaining.
       */
      public Builder clearEndNum() {
        bitField0_ = (bitField0_ & ~0x00000002);
        endNum_ = 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.BlockLimit)
    }

    // @@protoc_insertion_point(class_scope:protocol.BlockLimit)
    private static final org.tron.trident.api.GrpcAPI.BlockLimit DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.BlockLimit();
    }

    public static org.tron.trident.api.GrpcAPI.BlockLimit getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BlockLimit parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public org.tron.trident.api.GrpcAPI.BlockLimit getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * bytes address = 3;
     * @return The address.
     */
    com.google.protobuf.ByteString getAddress();
  }
  /**
   * 
   * NOTE: This is used to replace the design flaw of GetAccount.
   * 
* * Protobuf type {@code protocol.AccountAddressMessage} */ public static final class AccountAddressMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountAddressMessage) AccountAddressMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AccountAddressMessage.newBuilder() to construct. private AccountAddressMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountAddressMessage() { address_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountAddressMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, org.tron.trident.api.GrpcAPI.AccountAddressMessage.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 3; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!address_.isEmpty()) { output.writeBytes(3, address_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, address_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.AccountAddressMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.AccountAddressMessage other = (org.tron.trident.api.GrpcAPI.AccountAddressMessage) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.AccountAddressMessage 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; } /** *
     * NOTE: This is used to replace the design flaw of GetAccount.
     * 
* * Protobuf type {@code protocol.AccountAddressMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountAddressMessage) org.tron.trident.api.GrpcAPI.AccountAddressMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.AccountAddressMessage.class, org.tron.trident.api.GrpcAPI.AccountAddressMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.AccountAddressMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountAddressMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountAddressMessage build() { org.tron.trident.api.GrpcAPI.AccountAddressMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountAddressMessage buildPartial() { org.tron.trident.api.GrpcAPI.AccountAddressMessage result = new org.tron.trident.api.GrpcAPI.AccountAddressMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.AccountAddressMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.AccountAddressMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.AccountAddressMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.AccountAddressMessage other) { if (other == org.tron.trident.api.GrpcAPI.AccountAddressMessage.getDefaultInstance()) return this; if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26: { address_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 3; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** * bytes address = 3; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes address = 3; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); 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.AccountAddressMessage) } // @@protoc_insertion_point(class_scope:protocol.AccountAddressMessage) private static final org.tron.trident.api.GrpcAPI.AccountAddressMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.AccountAddressMessage(); } public static org.tron.trident.api.GrpcAPI.AccountAddressMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountAddressMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountAddressMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountIdMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.AccountIdMessage) com.google.protobuf.MessageOrBuilder { /** * bytes id = 23; * @return The id. */ com.google.protobuf.ByteString getId(); } /** * Protobuf type {@code protocol.AccountIdMessage} */ public static final class AccountIdMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.AccountIdMessage) AccountIdMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AccountIdMessage.newBuilder() to construct. private AccountIdMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountIdMessage() { id_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountIdMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountIdMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.AccountIdMessage.class, org.tron.trident.api.GrpcAPI.AccountIdMessage.Builder.class); } public static final int ID_FIELD_NUMBER = 23; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 23; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!id_.isEmpty()) { output.writeBytes(23, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(23, id_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.AccountIdMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.AccountIdMessage other = (org.tron.trident.api.GrpcAPI.AccountIdMessage) obj; if (!getId() .equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.AccountIdMessage 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.AccountIdMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.AccountIdMessage) org.tron.trident.api.GrpcAPI.AccountIdMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountIdMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.AccountIdMessage.class, org.tron.trident.api.GrpcAPI.AccountIdMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.AccountIdMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountIdMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.AccountIdMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountIdMessage build() { org.tron.trident.api.GrpcAPI.AccountIdMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountIdMessage buildPartial() { org.tron.trident.api.GrpcAPI.AccountIdMessage result = new org.tron.trident.api.GrpcAPI.AccountIdMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.AccountIdMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.AccountIdMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.AccountIdMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.AccountIdMessage other) { if (other == org.tron.trident.api.GrpcAPI.AccountIdMessage.getDefaultInstance()) return this; if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 186: { id_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 23; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } /** * bytes id = 23; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes id = 23; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); 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.AccountIdMessage) } // @@protoc_insertion_point(class_scope:protocol.AccountIdMessage) private static final org.tron.trident.api.GrpcAPI.AccountIdMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.AccountIdMessage(); } public static org.tron.trident.api.GrpcAPI.AccountIdMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountIdMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.AccountIdMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PaginatedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.PaginatedMessage) com.google.protobuf.MessageOrBuilder { /** * int64 offset = 1; * @return The offset. */ long getOffset(); /** * int64 limit = 2; * @return The limit. */ long getLimit(); } /** *
   * FLAW: Paginated APIs are usless.
   * 
* * Protobuf type {@code protocol.PaginatedMessage} */ public static final class PaginatedMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.PaginatedMessage) PaginatedMessageOrBuilder { private static final long serialVersionUID = 0L; // Use PaginatedMessage.newBuilder() to construct. private PaginatedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PaginatedMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PaginatedMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaginatedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PaginatedMessage.class, org.tron.trident.api.GrpcAPI.PaginatedMessage.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } public static final int LIMIT_FIELD_NUMBER = 2; private long limit_ = 0L; /** * int64 limit = 2; * @return The limit. */ @java.lang.Override public long getLimit() { return limit_; } 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 (offset_ != 0L) { output.writeInt64(1, offset_); } if (limit_ != 0L) { output.writeInt64(2, limit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, offset_); } if (limit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, limit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.PaginatedMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.PaginatedMessage other = (org.tron.trident.api.GrpcAPI.PaginatedMessage) obj; if (getOffset() != other.getOffset()) return false; if (getLimit() != other.getLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLimit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.PaginatedMessage 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; } /** *
     * FLAW: Paginated APIs are usless.
     * 
* * Protobuf type {@code protocol.PaginatedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.PaginatedMessage) org.tron.trident.api.GrpcAPI.PaginatedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaginatedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PaginatedMessage.class, org.tron.trident.api.GrpcAPI.PaginatedMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.PaginatedMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; offset_ = 0L; limit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaginatedMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaginatedMessage build() { org.tron.trident.api.GrpcAPI.PaginatedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaginatedMessage buildPartial() { org.tron.trident.api.GrpcAPI.PaginatedMessage result = new org.tron.trident.api.GrpcAPI.PaginatedMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.PaginatedMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.offset_ = offset_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limit_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.PaginatedMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.PaginatedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.PaginatedMessage other) { if (other == org.tron.trident.api.GrpcAPI.PaginatedMessage.getDefaultInstance()) return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } if (other.getLimit() != 0L) { setLimit(other.getLimit()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { offset_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { limit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long offset_ ; /** * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** * int64 offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; onChanged(); return this; } private long limit_ ; /** * int64 limit = 2; * @return The limit. */ @java.lang.Override public long getLimit() { return limit_; } /** * int64 limit = 2; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(long value) { limit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 limit = 2; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000002); limit_ = 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.PaginatedMessage) } // @@protoc_insertion_point(class_scope:protocol.PaginatedMessage) private static final org.tron.trident.api.GrpcAPI.PaginatedMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.PaginatedMessage(); } public static org.tron.trident.api.GrpcAPI.PaginatedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PaginatedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaginatedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferMessage) com.google.protobuf.MessageOrBuilder { /** * bytes passPhrase = 1; * @return The passPhrase. */ com.google.protobuf.ByteString getPassPhrase(); /** * bytes toAddress = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * int64 amount = 3; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.EasyTransferMessage} */ public static final class EasyTransferMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EasyTransferMessage) EasyTransferMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EasyTransferMessage.newBuilder() to construct. private EasyTransferMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EasyTransferMessage() { passPhrase_ = 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 EasyTransferMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferMessage.Builder.class); } public static final int PASSPHRASE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY; /** * bytes passPhrase = 1; * @return The passPhrase. */ @java.lang.Override public com.google.protobuf.ByteString getPassPhrase() { return passPhrase_; } public static final int TOADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_ = 0L; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!passPhrase_.isEmpty()) { output.writeBytes(1, passPhrase_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } if (amount_ != 0L) { output.writeInt64(3, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!passPhrase_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, passPhrase_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.EasyTransferMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.EasyTransferMessage other = (org.tron.trident.api.GrpcAPI.EasyTransferMessage) obj; if (!getPassPhrase() .equals(other.getPassPhrase())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER; hash = (53 * hash) + getPassPhrase().hashCode(); hash = (37 * hash) + TOADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.EasyTransferMessage 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.EasyTransferMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EasyTransferMessage) org.tron.trident.api.GrpcAPI.EasyTransferMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.EasyTransferMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; passPhrase_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.EasyTransferMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferMessage build() { org.tron.trident.api.GrpcAPI.EasyTransferMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferMessage buildPartial() { org.tron.trident.api.GrpcAPI.EasyTransferMessage result = new org.tron.trident.api.GrpcAPI.EasyTransferMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.EasyTransferMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.passPhrase_ = passPhrase_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.amount_ = amount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.EasyTransferMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.EasyTransferMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.EasyTransferMessage other) { if (other == org.tron.trident.api.GrpcAPI.EasyTransferMessage.getDefaultInstance()) return this; if (other.getPassPhrase() != com.google.protobuf.ByteString.EMPTY) { setPassPhrase(other.getPassPhrase()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { passPhrase_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { amount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY; /** * bytes passPhrase = 1; * @return The passPhrase. */ @java.lang.Override public com.google.protobuf.ByteString getPassPhrase() { return passPhrase_; } /** * bytes passPhrase = 1; * @param value The passPhrase to set. * @return This builder for chaining. */ public Builder setPassPhrase(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } passPhrase_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes passPhrase = 1; * @return This builder for chaining. */ public Builder clearPassPhrase() { bitField0_ = (bitField0_ & ~0x00000001); passPhrase_ = getDefaultInstance().getPassPhrase(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes toAddress = 2; * @param value The toAddress to set. * @return This builder for chaining. */ public Builder setToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes toAddress = 2; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000002); toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } private long amount_ ; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000004); amount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.EasyTransferMessage) } // @@protoc_insertion_point(class_scope:protocol.EasyTransferMessage) private static final org.tron.trident.api.GrpcAPI.EasyTransferMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.EasyTransferMessage(); } public static org.tron.trident.api.GrpcAPI.EasyTransferMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EasyTransferMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferAssetMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferAssetMessage) com.google.protobuf.MessageOrBuilder { /** * bytes passPhrase = 1; * @return The passPhrase. */ com.google.protobuf.ByteString getPassPhrase(); /** * bytes toAddress = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * string assetId = 3; * @return The assetId. */ java.lang.String getAssetId(); /** * string assetId = 3; * @return The bytes for assetId. */ com.google.protobuf.ByteString getAssetIdBytes(); /** * int64 amount = 4; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.EasyTransferAssetMessage} */ public static final class EasyTransferAssetMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EasyTransferAssetMessage) EasyTransferAssetMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EasyTransferAssetMessage.newBuilder() to construct. private EasyTransferAssetMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EasyTransferAssetMessage() { passPhrase_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EasyTransferAssetMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.Builder.class); } public static final int PASSPHRASE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY; /** * bytes passPhrase = 1; * @return The passPhrase. */ @java.lang.Override public com.google.protobuf.ByteString getPassPhrase() { return passPhrase_; } public static final int TOADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } public static final int ASSETID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object assetId_ = ""; /** * string assetId = 3; * @return The assetId. */ @java.lang.Override public java.lang.String getAssetId() { java.lang.Object ref = assetId_; 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(); assetId_ = s; return s; } } /** * string assetId = 3; * @return The bytes for assetId. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMOUNT_FIELD_NUMBER = 4; private long amount_ = 0L; /** * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!passPhrase_.isEmpty()) { output.writeBytes(1, passPhrase_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetId_); } if (amount_ != 0L) { output.writeInt64(4, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!passPhrase_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, passPhrase_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assetId_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage other = (org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage) obj; if (!getPassPhrase() .equals(other.getPassPhrase())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (!getAssetId() .equals(other.getAssetId())) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER; hash = (53 * hash) + getPassPhrase().hashCode(); hash = (37 * hash) + TOADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (37 * hash) + ASSETID_FIELD_NUMBER; hash = (53 * hash) + getAssetId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage 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.EasyTransferAssetMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EasyTransferAssetMessage) org.tron.trident.api.GrpcAPI.EasyTransferAssetMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; passPhrase_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetId_ = ""; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage build() { org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage buildPartial() { org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage result = new org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.passPhrase_ = passPhrase_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.assetId_ = assetId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.amount_ = amount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage other) { if (other == org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance()) return this; if (other.getPassPhrase() != com.google.protobuf.ByteString.EMPTY) { setPassPhrase(other.getPassPhrase()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } if (!other.getAssetId().isEmpty()) { assetId_ = other.assetId_; bitField0_ |= 0x00000004; onChanged(); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { passPhrase_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { assetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { amount_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY; /** * bytes passPhrase = 1; * @return The passPhrase. */ @java.lang.Override public com.google.protobuf.ByteString getPassPhrase() { return passPhrase_; } /** * bytes passPhrase = 1; * @param value The passPhrase to set. * @return This builder for chaining. */ public Builder setPassPhrase(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } passPhrase_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes passPhrase = 1; * @return This builder for chaining. */ public Builder clearPassPhrase() { bitField0_ = (bitField0_ & ~0x00000001); passPhrase_ = getDefaultInstance().getPassPhrase(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes toAddress = 2; * @param value The toAddress to set. * @return This builder for chaining. */ public Builder setToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes toAddress = 2; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000002); toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } private java.lang.Object assetId_ = ""; /** * string assetId = 3; * @return The assetId. */ public java.lang.String getAssetId() { java.lang.Object ref = assetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string assetId = 3; * @return The bytes for assetId. */ public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string assetId = 3; * @param value The assetId to set. * @return This builder for chaining. */ public Builder setAssetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string assetId = 3; * @return This builder for chaining. */ public Builder clearAssetId() { assetId_ = getDefaultInstance().getAssetId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string assetId = 3; * @param value The bytes for assetId to set. * @return This builder for chaining. */ public Builder setAssetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long amount_ ; /** * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 4; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); amount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.EasyTransferAssetMessage) } // @@protoc_insertion_point(class_scope:protocol.EasyTransferAssetMessage) private static final org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage(); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EasyTransferAssetMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferByPrivateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferByPrivateMessage) com.google.protobuf.MessageOrBuilder { /** * bytes privateKey = 1; * @return The privateKey. */ com.google.protobuf.ByteString getPrivateKey(); /** * bytes toAddress = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * int64 amount = 3; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.EasyTransferByPrivateMessage} */ public static final class EasyTransferByPrivateMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EasyTransferByPrivateMessage) EasyTransferByPrivateMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EasyTransferByPrivateMessage.newBuilder() to construct. private EasyTransferByPrivateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EasyTransferByPrivateMessage() { privateKey_ = 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 EasyTransferByPrivateMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.Builder.class); } public static final int PRIVATEKEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes privateKey = 1; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } public static final int TOADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_ = 0L; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!privateKey_.isEmpty()) { output.writeBytes(1, privateKey_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } if (amount_ != 0L) { output.writeInt64(3, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!privateKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, privateKey_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage other = (org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage) obj; if (!getPrivateKey() .equals(other.getPrivateKey())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (37 * hash) + TOADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage 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.EasyTransferByPrivateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EasyTransferByPrivateMessage) org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; privateKey_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage build() { org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage buildPartial() { org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage result = new org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.privateKey_ = privateKey_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.amount_ = amount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage other) { if (other == org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance()) return this; if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) { setPrivateKey(other.getPrivateKey()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { privateKey_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { amount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes privateKey = 1; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } /** * bytes privateKey = 1; * @param value The privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } privateKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes privateKey = 1; * @return This builder for chaining. */ public Builder clearPrivateKey() { bitField0_ = (bitField0_ & ~0x00000001); privateKey_ = getDefaultInstance().getPrivateKey(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes toAddress = 2; * @param value The toAddress to set. * @return This builder for chaining. */ public Builder setToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes toAddress = 2; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000002); toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } private long amount_ ; /** * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000004); amount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.EasyTransferByPrivateMessage) } // @@protoc_insertion_point(class_scope:protocol.EasyTransferByPrivateMessage) private static final org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage(); } public static org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EasyTransferByPrivateMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EasyTransferAssetByPrivateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.EasyTransferAssetByPrivateMessage) com.google.protobuf.MessageOrBuilder { /** * bytes privateKey = 1; * @return The privateKey. */ com.google.protobuf.ByteString getPrivateKey(); /** * bytes toAddress = 2; * @return The toAddress. */ com.google.protobuf.ByteString getToAddress(); /** * string assetId = 3; * @return The assetId. */ java.lang.String getAssetId(); /** * string assetId = 3; * @return The bytes for assetId. */ com.google.protobuf.ByteString getAssetIdBytes(); /** * int64 amount = 4; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.EasyTransferAssetByPrivateMessage} */ public static final class EasyTransferAssetByPrivateMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.EasyTransferAssetByPrivateMessage) EasyTransferAssetByPrivateMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EasyTransferAssetByPrivateMessage.newBuilder() to construct. private EasyTransferAssetByPrivateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EasyTransferAssetByPrivateMessage() { privateKey_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EasyTransferAssetByPrivateMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.Builder.class); } public static final int PRIVATEKEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes privateKey = 1; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } public static final int TOADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } public static final int ASSETID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object assetId_ = ""; /** * string assetId = 3; * @return The assetId. */ @java.lang.Override public java.lang.String getAssetId() { java.lang.Object ref = assetId_; 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(); assetId_ = s; return s; } } /** * string assetId = 3; * @return The bytes for assetId. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMOUNT_FIELD_NUMBER = 4; private long amount_ = 0L; /** * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!privateKey_.isEmpty()) { output.writeBytes(1, privateKey_); } if (!toAddress_.isEmpty()) { output.writeBytes(2, toAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetId_); } if (amount_ != 0L) { output.writeInt64(4, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!privateKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, privateKey_); } if (!toAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, toAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assetId_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage other = (org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage) obj; if (!getPrivateKey() .equals(other.getPrivateKey())) return false; if (!getToAddress() .equals(other.getToAddress())) return false; if (!getAssetId() .equals(other.getAssetId())) return false; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (37 * hash) + TOADDRESS_FIELD_NUMBER; hash = (53 * hash) + getToAddress().hashCode(); hash = (37 * hash) + ASSETID_FIELD_NUMBER; hash = (53 * hash) + getAssetId().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage 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.EasyTransferAssetByPrivateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.EasyTransferAssetByPrivateMessage) org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; privateKey_ = com.google.protobuf.ByteString.EMPTY; toAddress_ = com.google.protobuf.ByteString.EMPTY; assetId_ = ""; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage build() { org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage buildPartial() { org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage result = new org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.privateKey_ = privateKey_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.toAddress_ = toAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.assetId_ = assetId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.amount_ = amount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage other) { if (other == org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance()) return this; if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) { setPrivateKey(other.getPrivateKey()); } if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) { setToAddress(other.getToAddress()); } if (!other.getAssetId().isEmpty()) { assetId_ = other.assetId_; bitField0_ |= 0x00000004; onChanged(); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { privateKey_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { toAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { assetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { amount_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes privateKey = 1; * @return The privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKey() { return privateKey_; } /** * bytes privateKey = 1; * @param value The privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } privateKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes privateKey = 1; * @return This builder for chaining. */ public Builder clearPrivateKey() { bitField0_ = (bitField0_ & ~0x00000001); privateKey_ = getDefaultInstance().getPrivateKey(); onChanged(); return this; } private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes toAddress = 2; * @return The toAddress. */ @java.lang.Override public com.google.protobuf.ByteString getToAddress() { return toAddress_; } /** * bytes toAddress = 2; * @param value The toAddress to set. * @return This builder for chaining. */ public Builder setToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes toAddress = 2; * @return This builder for chaining. */ public Builder clearToAddress() { bitField0_ = (bitField0_ & ~0x00000002); toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } private java.lang.Object assetId_ = ""; /** * string assetId = 3; * @return The assetId. */ public java.lang.String getAssetId() { java.lang.Object ref = assetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string assetId = 3; * @return The bytes for assetId. */ public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string assetId = 3; * @param value The assetId to set. * @return This builder for chaining. */ public Builder setAssetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string assetId = 3; * @return This builder for chaining. */ public Builder clearAssetId() { assetId_ = getDefaultInstance().getAssetId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string assetId = 3; * @param value The bytes for assetId to set. * @return This builder for chaining. */ public Builder setAssetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long amount_ ; /** * int64 amount = 4; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 4; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000008); amount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.EasyTransferAssetByPrivateMessage) } // @@protoc_insertion_point(class_scope:protocol.EasyTransferAssetByPrivateMessage) private static final org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage(); } public static org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EasyTransferAssetByPrivateMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ViewingKeyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ViewingKeyMessage) com.google.protobuf.MessageOrBuilder { /** * bytes ak = 1; * @return The ak. */ com.google.protobuf.ByteString getAk(); /** * bytes nk = 2; * @return The nk. */ com.google.protobuf.ByteString getNk(); } /** *
   * - Shielded TRC20
   * 
* * Protobuf type {@code protocol.ViewingKeyMessage} */ public static final class ViewingKeyMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ViewingKeyMessage) ViewingKeyMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ViewingKeyMessage.newBuilder() to construct. private ViewingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ViewingKeyMessage() { ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ViewingKeyMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ViewingKeyMessage.class, org.tron.trident.api.GrpcAPI.ViewingKeyMessage.Builder.class); } public static final int AK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 1; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } public static final int NK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 2; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } 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 (!ak_.isEmpty()) { output.writeBytes(1, ak_); } if (!nk_.isEmpty()) { output.writeBytes(2, nk_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ak_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ak_); } if (!nk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ViewingKeyMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ViewingKeyMessage other = (org.tron.trident.api.GrpcAPI.ViewingKeyMessage) obj; if (!getAk() .equals(other.getAk())) return false; if (!getNk() .equals(other.getNk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AK_FIELD_NUMBER; hash = (53 * hash) + getAk().hashCode(); hash = (37 * hash) + NK_FIELD_NUMBER; hash = (53 * hash) + getNk().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ViewingKeyMessage 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; } /** *
     * - Shielded TRC20
     * 
* * Protobuf type {@code protocol.ViewingKeyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ViewingKeyMessage) org.tron.trident.api.GrpcAPI.ViewingKeyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ViewingKeyMessage.class, org.tron.trident.api.GrpcAPI.ViewingKeyMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ViewingKeyMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ViewingKeyMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ViewingKeyMessage build() { org.tron.trident.api.GrpcAPI.ViewingKeyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ViewingKeyMessage buildPartial() { org.tron.trident.api.GrpcAPI.ViewingKeyMessage result = new org.tron.trident.api.GrpcAPI.ViewingKeyMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.ViewingKeyMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ak_ = ak_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nk_ = nk_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ViewingKeyMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.ViewingKeyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ViewingKeyMessage other) { if (other == org.tron.trident.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance()) return this; if (other.getAk() != com.google.protobuf.ByteString.EMPTY) { setAk(other.getAk()); } if (other.getNk() != com.google.protobuf.ByteString.EMPTY) { setNk(other.getNk()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ak_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { nk_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 1; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } /** * bytes ak = 1; * @param value The ak to set. * @return This builder for chaining. */ public Builder setAk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ak_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes ak = 1; * @return This builder for chaining. */ public Builder clearAk() { bitField0_ = (bitField0_ & ~0x00000001); ak_ = getDefaultInstance().getAk(); onChanged(); return this; } private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 2; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } /** * bytes nk = 2; * @param value The nk to set. * @return This builder for chaining. */ public Builder setNk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nk_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes nk = 2; * @return This builder for chaining. */ public Builder clearNk() { bitField0_ = (bitField0_ & ~0x00000002); nk_ = getDefaultInstance().getNk(); 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.ViewingKeyMessage) } // @@protoc_insertion_point(class_scope:protocol.ViewingKeyMessage) private static final org.tron.trident.api.GrpcAPI.ViewingKeyMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ViewingKeyMessage(); } public static org.tron.trident.api.GrpcAPI.ViewingKeyMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ViewingKeyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ViewingKeyMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShieldedAddressInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ShieldedAddressInfo) com.google.protobuf.MessageOrBuilder { /** * bytes sk = 1; * @return The sk. */ com.google.protobuf.ByteString getSk(); /** * bytes ask = 2; * @return The ask. */ com.google.protobuf.ByteString getAsk(); /** * bytes nsk = 3; * @return The nsk. */ com.google.protobuf.ByteString getNsk(); /** * bytes ovk = 4; * @return The ovk. */ com.google.protobuf.ByteString getOvk(); /** * bytes ak = 5; * @return The ak. */ com.google.protobuf.ByteString getAk(); /** * bytes nk = 6; * @return The nk. */ com.google.protobuf.ByteString getNk(); /** * bytes ivk = 7; * @return The ivk. */ com.google.protobuf.ByteString getIvk(); /** * bytes d = 8; * @return The d. */ com.google.protobuf.ByteString getD(); /** * bytes pkD = 9; * @return The pkD. */ com.google.protobuf.ByteString getPkD(); /** * string payment_address = 10; * @return The paymentAddress. */ java.lang.String getPaymentAddress(); /** * string payment_address = 10; * @return The bytes for paymentAddress. */ com.google.protobuf.ByteString getPaymentAddressBytes(); } /** * Protobuf type {@code protocol.ShieldedAddressInfo} */ public static final class ShieldedAddressInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ShieldedAddressInfo) ShieldedAddressInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ShieldedAddressInfo.newBuilder() to construct. private ShieldedAddressInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShieldedAddressInfo() { sk_ = com.google.protobuf.ByteString.EMPTY; ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; ivk_ = com.google.protobuf.ByteString.EMPTY; d_ = com.google.protobuf.ByteString.EMPTY; pkD_ = com.google.protobuf.ByteString.EMPTY; paymentAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShieldedAddressInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.class, org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.Builder.class); } public static final int SK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sk = 1; * @return The sk. */ @java.lang.Override public com.google.protobuf.ByteString getSk() { return sk_; } public static final int ASK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 2; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } public static final int NSK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 3; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } public static final int OVK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 4; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } public static final int AK_FIELD_NUMBER = 5; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 5; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } public static final int NK_FIELD_NUMBER = 6; private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 6; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } public static final int IVK_FIELD_NUMBER = 7; private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 7; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } public static final int D_FIELD_NUMBER = 8; private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d = 8; * @return The d. */ @java.lang.Override public com.google.protobuf.ByteString getD() { return d_; } public static final int PKD_FIELD_NUMBER = 9; private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pkD = 9; * @return The pkD. */ @java.lang.Override public com.google.protobuf.ByteString getPkD() { return pkD_; } public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object paymentAddress_ = ""; /** * string payment_address = 10; * @return The paymentAddress. */ @java.lang.Override public java.lang.String getPaymentAddress() { java.lang.Object ref = paymentAddress_; 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(); paymentAddress_ = s; return s; } } /** * string payment_address = 10; * @return The bytes for paymentAddress. */ @java.lang.Override public com.google.protobuf.ByteString getPaymentAddressBytes() { java.lang.Object ref = paymentAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!sk_.isEmpty()) { output.writeBytes(1, sk_); } if (!ask_.isEmpty()) { output.writeBytes(2, ask_); } if (!nsk_.isEmpty()) { output.writeBytes(3, nsk_); } if (!ovk_.isEmpty()) { output.writeBytes(4, ovk_); } if (!ak_.isEmpty()) { output.writeBytes(5, ak_); } if (!nk_.isEmpty()) { output.writeBytes(6, nk_); } if (!ivk_.isEmpty()) { output.writeBytes(7, ivk_); } if (!d_.isEmpty()) { output.writeBytes(8, d_); } if (!pkD_.isEmpty()) { output.writeBytes(9, pkD_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, paymentAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!sk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, sk_); } if (!ask_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ask_); } if (!nsk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nsk_); } if (!ovk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, ovk_); } if (!ak_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, ak_); } if (!nk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, nk_); } if (!ivk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, ivk_); } if (!d_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, d_); } if (!pkD_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, pkD_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, paymentAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ShieldedAddressInfo)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ShieldedAddressInfo other = (org.tron.trident.api.GrpcAPI.ShieldedAddressInfo) obj; if (!getSk() .equals(other.getSk())) return false; if (!getAsk() .equals(other.getAsk())) return false; if (!getNsk() .equals(other.getNsk())) return false; if (!getOvk() .equals(other.getOvk())) return false; if (!getAk() .equals(other.getAk())) return false; if (!getNk() .equals(other.getNk())) return false; if (!getIvk() .equals(other.getIvk())) return false; if (!getD() .equals(other.getD())) return false; if (!getPkD() .equals(other.getPkD())) return false; if (!getPaymentAddress() .equals(other.getPaymentAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SK_FIELD_NUMBER; hash = (53 * hash) + getSk().hashCode(); hash = (37 * hash) + ASK_FIELD_NUMBER; hash = (53 * hash) + getAsk().hashCode(); hash = (37 * hash) + NSK_FIELD_NUMBER; hash = (53 * hash) + getNsk().hashCode(); hash = (37 * hash) + OVK_FIELD_NUMBER; hash = (53 * hash) + getOvk().hashCode(); hash = (37 * hash) + AK_FIELD_NUMBER; hash = (53 * hash) + getAk().hashCode(); hash = (37 * hash) + NK_FIELD_NUMBER; hash = (53 * hash) + getNk().hashCode(); hash = (37 * hash) + IVK_FIELD_NUMBER; hash = (53 * hash) + getIvk().hashCode(); hash = (37 * hash) + D_FIELD_NUMBER; hash = (53 * hash) + getD().hashCode(); hash = (37 * hash) + PKD_FIELD_NUMBER; hash = (53 * hash) + getPkD().hashCode(); hash = (37 * hash) + PAYMENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getPaymentAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ShieldedAddressInfo 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.ShieldedAddressInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ShieldedAddressInfo) org.tron.trident.api.GrpcAPI.ShieldedAddressInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.class, org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sk_ = com.google.protobuf.ByteString.EMPTY; ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; ivk_ = com.google.protobuf.ByteString.EMPTY; d_ = com.google.protobuf.ByteString.EMPTY; pkD_ = com.google.protobuf.ByteString.EMPTY; paymentAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo build() { org.tron.trident.api.GrpcAPI.ShieldedAddressInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo buildPartial() { org.tron.trident.api.GrpcAPI.ShieldedAddressInfo result = new org.tron.trident.api.GrpcAPI.ShieldedAddressInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.ShieldedAddressInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sk_ = sk_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ask_ = ask_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nsk_ = nsk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ovk_ = ovk_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ak_ = ak_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.nk_ = nk_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.ivk_ = ivk_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.d_ = d_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.pkD_ = pkD_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.paymentAddress_ = paymentAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ShieldedAddressInfo) { return mergeFrom((org.tron.trident.api.GrpcAPI.ShieldedAddressInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ShieldedAddressInfo other) { if (other == org.tron.trident.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance()) return this; if (other.getSk() != com.google.protobuf.ByteString.EMPTY) { setSk(other.getSk()); } if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) { setAsk(other.getAsk()); } if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) { setNsk(other.getNsk()); } if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) { setOvk(other.getOvk()); } if (other.getAk() != com.google.protobuf.ByteString.EMPTY) { setAk(other.getAk()); } if (other.getNk() != com.google.protobuf.ByteString.EMPTY) { setNk(other.getNk()); } if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) { setIvk(other.getIvk()); } if (other.getD() != com.google.protobuf.ByteString.EMPTY) { setD(other.getD()); } if (other.getPkD() != com.google.protobuf.ByteString.EMPTY) { setPkD(other.getPkD()); } if (!other.getPaymentAddress().isEmpty()) { paymentAddress_ = other.paymentAddress_; bitField0_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sk_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ask_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { nsk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { ovk_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ak_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { nk_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { ivk_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { d_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { pkD_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { paymentAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sk = 1; * @return The sk. */ @java.lang.Override public com.google.protobuf.ByteString getSk() { return sk_; } /** * bytes sk = 1; * @param value The sk to set. * @return This builder for chaining. */ public Builder setSk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sk_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes sk = 1; * @return This builder for chaining. */ public Builder clearSk() { bitField0_ = (bitField0_ & ~0x00000001); sk_ = getDefaultInstance().getSk(); onChanged(); return this; } private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 2; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } /** * bytes ask = 2; * @param value The ask to set. * @return This builder for chaining. */ public Builder setAsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ask_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes ask = 2; * @return This builder for chaining. */ public Builder clearAsk() { bitField0_ = (bitField0_ & ~0x00000002); ask_ = getDefaultInstance().getAsk(); onChanged(); return this; } private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 3; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } /** * bytes nsk = 3; * @param value The nsk to set. * @return This builder for chaining. */ public Builder setNsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nsk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes nsk = 3; * @return This builder for chaining. */ public Builder clearNsk() { bitField0_ = (bitField0_ & ~0x00000004); nsk_ = getDefaultInstance().getNsk(); onChanged(); return this; } private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 4; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } /** * bytes ovk = 4; * @param value The ovk to set. * @return This builder for chaining. */ public Builder setOvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ovk_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes ovk = 4; * @return This builder for chaining. */ public Builder clearOvk() { bitField0_ = (bitField0_ & ~0x00000008); ovk_ = getDefaultInstance().getOvk(); onChanged(); return this; } private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 5; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } /** * bytes ak = 5; * @param value The ak to set. * @return This builder for chaining. */ public Builder setAk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ak_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes ak = 5; * @return This builder for chaining. */ public Builder clearAk() { bitField0_ = (bitField0_ & ~0x00000010); ak_ = getDefaultInstance().getAk(); onChanged(); return this; } private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 6; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } /** * bytes nk = 6; * @param value The nk to set. * @return This builder for chaining. */ public Builder setNk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nk_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes nk = 6; * @return This builder for chaining. */ public Builder clearNk() { bitField0_ = (bitField0_ & ~0x00000020); nk_ = getDefaultInstance().getNk(); onChanged(); return this; } private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 7; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } /** * bytes ivk = 7; * @param value The ivk to set. * @return This builder for chaining. */ public Builder setIvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ivk_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bytes ivk = 7; * @return This builder for chaining. */ public Builder clearIvk() { bitField0_ = (bitField0_ & ~0x00000040); ivk_ = getDefaultInstance().getIvk(); onChanged(); return this; } private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d = 8; * @return The d. */ @java.lang.Override public com.google.protobuf.ByteString getD() { return d_; } /** * bytes d = 8; * @param value The d to set. * @return This builder for chaining. */ public Builder setD(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } d_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * bytes d = 8; * @return This builder for chaining. */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000080); d_ = getDefaultInstance().getD(); onChanged(); return this; } private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pkD = 9; * @return The pkD. */ @java.lang.Override public com.google.protobuf.ByteString getPkD() { return pkD_; } /** * bytes pkD = 9; * @param value The pkD to set. * @return This builder for chaining. */ public Builder setPkD(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkD_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bytes pkD = 9; * @return This builder for chaining. */ public Builder clearPkD() { bitField0_ = (bitField0_ & ~0x00000100); pkD_ = getDefaultInstance().getPkD(); onChanged(); return this; } private java.lang.Object paymentAddress_ = ""; /** * string payment_address = 10; * @return The paymentAddress. */ public java.lang.String getPaymentAddress() { java.lang.Object ref = paymentAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string payment_address = 10; * @return The bytes for paymentAddress. */ public com.google.protobuf.ByteString getPaymentAddressBytes() { java.lang.Object ref = paymentAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string payment_address = 10; * @param value The paymentAddress to set. * @return This builder for chaining. */ public Builder setPaymentAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paymentAddress_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * string payment_address = 10; * @return This builder for chaining. */ public Builder clearPaymentAddress() { paymentAddress_ = getDefaultInstance().getPaymentAddress(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * string payment_address = 10; * @param value The bytes for paymentAddress to set. * @return This builder for chaining. */ public Builder setPaymentAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentAddress_ = value; bitField0_ |= 0x00000200; 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.ShieldedAddressInfo) } // @@protoc_insertion_point(class_scope:protocol.ShieldedAddressInfo) private static final org.tron.trident.api.GrpcAPI.ShieldedAddressInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ShieldedAddressInfo(); } public static org.tron.trident.api.GrpcAPI.ShieldedAddressInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShieldedAddressInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedAddressInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PaymentAddressMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.PaymentAddressMessage) com.google.protobuf.MessageOrBuilder { /** * .protocol.DiversifierMessage d = 1; * @return Whether the d field is set. */ boolean hasD(); /** * .protocol.DiversifierMessage d = 1; * @return The d. */ org.tron.trident.api.GrpcAPI.DiversifierMessage getD(); /** * .protocol.DiversifierMessage d = 1; */ org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder(); /** * bytes pkD = 2; * @return The pkD. */ com.google.protobuf.ByteString getPkD(); /** * string payment_address = 3; * @return The paymentAddress. */ java.lang.String getPaymentAddress(); /** * string payment_address = 3; * @return The bytes for paymentAddress. */ com.google.protobuf.ByteString getPaymentAddressBytes(); } /** * Protobuf type {@code protocol.PaymentAddressMessage} */ public static final class PaymentAddressMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.PaymentAddressMessage) PaymentAddressMessageOrBuilder { private static final long serialVersionUID = 0L; // Use PaymentAddressMessage.newBuilder() to construct. private PaymentAddressMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PaymentAddressMessage() { pkD_ = com.google.protobuf.ByteString.EMPTY; paymentAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PaymentAddressMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PaymentAddressMessage.class, org.tron.trident.api.GrpcAPI.PaymentAddressMessage.Builder.class); } private int bitField0_; public static final int D_FIELD_NUMBER = 1; private org.tron.trident.api.GrpcAPI.DiversifierMessage d_; /** * .protocol.DiversifierMessage d = 1; * @return Whether the d field is set. */ @java.lang.Override public boolean hasD() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.DiversifierMessage d = 1; * @return The d. */ @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage getD() { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } /** * .protocol.DiversifierMessage d = 1; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } public static final int PKD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pkD = 2; * @return The pkD. */ @java.lang.Override public com.google.protobuf.ByteString getPkD() { return pkD_; } public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object paymentAddress_ = ""; /** * string payment_address = 3; * @return The paymentAddress. */ @java.lang.Override public java.lang.String getPaymentAddress() { java.lang.Object ref = paymentAddress_; 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(); paymentAddress_ = s; return s; } } /** * string payment_address = 3; * @return The bytes for paymentAddress. */ @java.lang.Override public com.google.protobuf.ByteString getPaymentAddressBytes() { java.lang.Object ref = paymentAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getD()); } if (!pkD_.isEmpty()) { output.writeBytes(2, pkD_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paymentAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getD()); } if (!pkD_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, pkD_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, paymentAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.PaymentAddressMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.PaymentAddressMessage other = (org.tron.trident.api.GrpcAPI.PaymentAddressMessage) obj; if (hasD() != other.hasD()) return false; if (hasD()) { if (!getD() .equals(other.getD())) return false; } if (!getPkD() .equals(other.getPkD())) return false; if (!getPaymentAddress() .equals(other.getPaymentAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasD()) { hash = (37 * hash) + D_FIELD_NUMBER; hash = (53 * hash) + getD().hashCode(); } hash = (37 * hash) + PKD_FIELD_NUMBER; hash = (53 * hash) + getPkD().hashCode(); hash = (37 * hash) + PAYMENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getPaymentAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.PaymentAddressMessage 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.PaymentAddressMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.PaymentAddressMessage) org.tron.trident.api.GrpcAPI.PaymentAddressMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PaymentAddressMessage.class, org.tron.trident.api.GrpcAPI.PaymentAddressMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.PaymentAddressMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; d_ = null; if (dBuilder_ != null) { dBuilder_.dispose(); dBuilder_ = null; } pkD_ = com.google.protobuf.ByteString.EMPTY; paymentAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaymentAddressMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaymentAddressMessage build() { org.tron.trident.api.GrpcAPI.PaymentAddressMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaymentAddressMessage buildPartial() { org.tron.trident.api.GrpcAPI.PaymentAddressMessage result = new org.tron.trident.api.GrpcAPI.PaymentAddressMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.PaymentAddressMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.d_ = dBuilder_ == null ? d_ : dBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pkD_ = pkD_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.paymentAddress_ = paymentAddress_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.PaymentAddressMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.PaymentAddressMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.PaymentAddressMessage other) { if (other == org.tron.trident.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance()) return this; if (other.hasD()) { mergeD(other.getD()); } if (other.getPkD() != com.google.protobuf.ByteString.EMPTY) { setPkD(other.getPkD()); } if (!other.getPaymentAddress().isEmpty()) { paymentAddress_ = other.paymentAddress_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { pkD_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { paymentAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.api.GrpcAPI.DiversifierMessage d_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder> dBuilder_; /** * .protocol.DiversifierMessage d = 1; * @return Whether the d field is set. */ public boolean hasD() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.DiversifierMessage d = 1; * @return The d. */ public org.tron.trident.api.GrpcAPI.DiversifierMessage getD() { if (dBuilder_ == null) { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } else { return dBuilder_.getMessage(); } } /** * .protocol.DiversifierMessage d = 1; */ public Builder setD(org.tron.trident.api.GrpcAPI.DiversifierMessage value) { if (dBuilder_ == null) { if (value == null) { throw new NullPointerException(); } d_ = value; } else { dBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.DiversifierMessage d = 1; */ public Builder setD( org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder builderForValue) { if (dBuilder_ == null) { d_ = builderForValue.build(); } else { dBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.DiversifierMessage d = 1; */ public Builder mergeD(org.tron.trident.api.GrpcAPI.DiversifierMessage value) { if (dBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && d_ != null && d_ != org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance()) { getDBuilder().mergeFrom(value); } else { d_ = value; } } else { dBuilder_.mergeFrom(value); } if (d_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.DiversifierMessage d = 1; */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000001); d_ = null; if (dBuilder_ != null) { dBuilder_.dispose(); dBuilder_ = null; } onChanged(); return this; } /** * .protocol.DiversifierMessage d = 1; */ public org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder getDBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDFieldBuilder().getBuilder(); } /** * .protocol.DiversifierMessage d = 1; */ public org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() { if (dBuilder_ != null) { return dBuilder_.getMessageOrBuilder(); } else { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } } /** * .protocol.DiversifierMessage d = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder> getDFieldBuilder() { if (dBuilder_ == null) { dBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder>( getD(), getParentForChildren(), isClean()); d_ = null; } return dBuilder_; } private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pkD = 2; * @return The pkD. */ @java.lang.Override public com.google.protobuf.ByteString getPkD() { return pkD_; } /** * bytes pkD = 2; * @param value The pkD to set. * @return This builder for chaining. */ public Builder setPkD(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkD_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes pkD = 2; * @return This builder for chaining. */ public Builder clearPkD() { bitField0_ = (bitField0_ & ~0x00000002); pkD_ = getDefaultInstance().getPkD(); onChanged(); return this; } private java.lang.Object paymentAddress_ = ""; /** * string payment_address = 3; * @return The paymentAddress. */ public java.lang.String getPaymentAddress() { java.lang.Object ref = paymentAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string payment_address = 3; * @return The bytes for paymentAddress. */ public com.google.protobuf.ByteString getPaymentAddressBytes() { java.lang.Object ref = paymentAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paymentAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string payment_address = 3; * @param value The paymentAddress to set. * @return This builder for chaining. */ public Builder setPaymentAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paymentAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string payment_address = 3; * @return This builder for chaining. */ public Builder clearPaymentAddress() { paymentAddress_ = getDefaultInstance().getPaymentAddress(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string payment_address = 3; * @param value The bytes for paymentAddress to set. * @return This builder for chaining. */ public Builder setPaymentAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentAddress_ = value; bitField0_ |= 0x00000004; 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.PaymentAddressMessage) } // @@protoc_insertion_point(class_scope:protocol.PaymentAddressMessage) private static final org.tron.trident.api.GrpcAPI.PaymentAddressMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.PaymentAddressMessage(); } public static org.tron.trident.api.GrpcAPI.PaymentAddressMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PaymentAddressMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PaymentAddressMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiversifierMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.DiversifierMessage) com.google.protobuf.MessageOrBuilder { /** * bytes d = 1; * @return The d. */ com.google.protobuf.ByteString getD(); } /** * Protobuf type {@code protocol.DiversifierMessage} */ public static final class DiversifierMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.DiversifierMessage) DiversifierMessageOrBuilder { private static final long serialVersionUID = 0L; // Use DiversifierMessage.newBuilder() to construct. private DiversifierMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiversifierMessage() { d_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiversifierMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_DiversifierMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.DiversifierMessage.class, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder.class); } public static final int D_FIELD_NUMBER = 1; private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d = 1; * @return The d. */ @java.lang.Override public com.google.protobuf.ByteString getD() { return d_; } 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 (!d_.isEmpty()) { output.writeBytes(1, d_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!d_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, d_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.DiversifierMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.DiversifierMessage other = (org.tron.trident.api.GrpcAPI.DiversifierMessage) obj; if (!getD() .equals(other.getD())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + D_FIELD_NUMBER; hash = (53 * hash) + getD().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.DiversifierMessage 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.DiversifierMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.DiversifierMessage) org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_DiversifierMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.DiversifierMessage.class, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.DiversifierMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; d_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage build() { org.tron.trident.api.GrpcAPI.DiversifierMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage buildPartial() { org.tron.trident.api.GrpcAPI.DiversifierMessage result = new org.tron.trident.api.GrpcAPI.DiversifierMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.DiversifierMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.d_ = d_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.DiversifierMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.DiversifierMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.DiversifierMessage other) { if (other == org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance()) return this; if (other.getD() != com.google.protobuf.ByteString.EMPTY) { setD(other.getD()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { d_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d = 1; * @return The d. */ @java.lang.Override public com.google.protobuf.ByteString getD() { return d_; } /** * bytes d = 1; * @param value The d to set. * @return This builder for chaining. */ public Builder setD(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } d_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes d = 1; * @return This builder for chaining. */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000001); d_ = getDefaultInstance().getD(); 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.DiversifierMessage) } // @@protoc_insertion_point(class_scope:protocol.DiversifierMessage) private static final org.tron.trident.api.GrpcAPI.DiversifierMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.DiversifierMessage(); } public static org.tron.trident.api.GrpcAPI.DiversifierMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiversifierMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExpandedSpendingKeyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ExpandedSpendingKeyMessage) com.google.protobuf.MessageOrBuilder { /** * bytes ask = 1; * @return The ask. */ com.google.protobuf.ByteString getAsk(); /** * bytes nsk = 2; * @return The nsk. */ com.google.protobuf.ByteString getNsk(); /** * bytes ovk = 3; * @return The ovk. */ com.google.protobuf.ByteString getOvk(); } /** * Protobuf type {@code protocol.ExpandedSpendingKeyMessage} */ public static final class ExpandedSpendingKeyMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ExpandedSpendingKeyMessage) ExpandedSpendingKeyMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ExpandedSpendingKeyMessage.newBuilder() to construct. private ExpandedSpendingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExpandedSpendingKeyMessage() { ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExpandedSpendingKeyMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.class, org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.Builder.class); } public static final int ASK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 1; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } public static final int NSK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } public static final int OVK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } 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 (!ask_.isEmpty()) { output.writeBytes(1, ask_); } if (!nsk_.isEmpty()) { output.writeBytes(2, nsk_); } if (!ovk_.isEmpty()) { output.writeBytes(3, ovk_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ask_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ask_); } if (!nsk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nsk_); } if (!ovk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, ovk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage other = (org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage) obj; if (!getAsk() .equals(other.getAsk())) return false; if (!getNsk() .equals(other.getNsk())) return false; if (!getOvk() .equals(other.getOvk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ASK_FIELD_NUMBER; hash = (53 * hash) + getAsk().hashCode(); hash = (37 * hash) + NSK_FIELD_NUMBER; hash = (53 * hash) + getNsk().hashCode(); hash = (37 * hash) + OVK_FIELD_NUMBER; hash = (53 * hash) + getOvk().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage 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.ExpandedSpendingKeyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ExpandedSpendingKeyMessage) org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.class, org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage build() { org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage buildPartial() { org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage result = new org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ask_ = ask_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nsk_ = nsk_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ovk_ = ovk_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage other) { if (other == org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance()) return this; if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) { setAsk(other.getAsk()); } if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) { setNsk(other.getNsk()); } if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) { setOvk(other.getOvk()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ask_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { nsk_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { ovk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 1; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } /** * bytes ask = 1; * @param value The ask to set. * @return This builder for chaining. */ public Builder setAsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ask_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes ask = 1; * @return This builder for chaining. */ public Builder clearAsk() { bitField0_ = (bitField0_ & ~0x00000001); ask_ = getDefaultInstance().getAsk(); onChanged(); return this; } private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } /** * bytes nsk = 2; * @param value The nsk to set. * @return This builder for chaining. */ public Builder setNsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nsk_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes nsk = 2; * @return This builder for chaining. */ public Builder clearNsk() { bitField0_ = (bitField0_ & ~0x00000002); nsk_ = getDefaultInstance().getNsk(); onChanged(); return this; } private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } /** * bytes ovk = 3; * @param value The ovk to set. * @return This builder for chaining. */ public Builder setOvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ovk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes ovk = 3; * @return This builder for chaining. */ public Builder clearOvk() { bitField0_ = (bitField0_ & ~0x00000004); ovk_ = getDefaultInstance().getOvk(); 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.ExpandedSpendingKeyMessage) } // @@protoc_insertion_point(class_scope:protocol.ExpandedSpendingKeyMessage) private static final org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage(); } public static org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExpandedSpendingKeyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IncomingViewingKeyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.IncomingViewingKeyMessage) com.google.protobuf.MessageOrBuilder { /** * bytes ivk = 1; * @return The ivk. */ com.google.protobuf.ByteString getIvk(); } /** * Protobuf type {@code protocol.IncomingViewingKeyMessage} */ public static final class IncomingViewingKeyMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.IncomingViewingKeyMessage) IncomingViewingKeyMessageOrBuilder { private static final long serialVersionUID = 0L; // Use IncomingViewingKeyMessage.newBuilder() to construct. private IncomingViewingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IncomingViewingKeyMessage() { ivk_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IncomingViewingKeyMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.class, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder.class); } public static final int IVK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 1; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } 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 (!ivk_.isEmpty()) { output.writeBytes(1, ivk_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ivk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ivk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage other = (org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage) obj; if (!getIvk() .equals(other.getIvk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IVK_FIELD_NUMBER; hash = (53 * hash) + getIvk().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage 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.IncomingViewingKeyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.IncomingViewingKeyMessage) org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.class, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ivk_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage build() { org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage buildPartial() { org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage result = new org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ivk_ = ivk_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage other) { if (other == org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance()) return this; if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) { setIvk(other.getIvk()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ivk_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 1; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } /** * bytes ivk = 1; * @param value The ivk to set. * @return This builder for chaining. */ public Builder setIvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ivk_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes ivk = 1; * @return This builder for chaining. */ public Builder clearIvk() { bitField0_ = (bitField0_ & ~0x00000001); ivk_ = getDefaultInstance().getIvk(); 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.IncomingViewingKeyMessage) } // @@protoc_insertion_point(class_scope:protocol.IncomingViewingKeyMessage) private static final org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage(); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IncomingViewingKeyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IncomingViewingKeyDiversifierMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.IncomingViewingKeyDiversifierMessage) com.google.protobuf.MessageOrBuilder { /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return Whether the ivk field is set. */ boolean hasIvk(); /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return The ivk. */ org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getIvk(); /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder(); /** * .protocol.DiversifierMessage d = 2; * @return Whether the d field is set. */ boolean hasD(); /** * .protocol.DiversifierMessage d = 2; * @return The d. */ org.tron.trident.api.GrpcAPI.DiversifierMessage getD(); /** * .protocol.DiversifierMessage d = 2; */ org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder(); } /** *
   * What's the fucking API design
   * 
* * Protobuf type {@code protocol.IncomingViewingKeyDiversifierMessage} */ public static final class IncomingViewingKeyDiversifierMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.IncomingViewingKeyDiversifierMessage) IncomingViewingKeyDiversifierMessageOrBuilder { private static final long serialVersionUID = 0L; // Use IncomingViewingKeyDiversifierMessage.newBuilder() to construct. private IncomingViewingKeyDiversifierMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IncomingViewingKeyDiversifierMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IncomingViewingKeyDiversifierMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.Builder.class); } private int bitField0_; public static final int IVK_FIELD_NUMBER = 1; private org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage ivk_; /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return Whether the ivk field is set. */ @java.lang.Override public boolean hasIvk() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return The ivk. */ @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getIvk() { return ivk_ == null ? org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_; } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder() { return ivk_ == null ? org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_; } public static final int D_FIELD_NUMBER = 2; private org.tron.trident.api.GrpcAPI.DiversifierMessage d_; /** * .protocol.DiversifierMessage d = 2; * @return Whether the d field is set. */ @java.lang.Override public boolean hasD() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.DiversifierMessage d = 2; * @return The d. */ @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessage getD() { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } /** * .protocol.DiversifierMessage d = 2; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getIvk()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getD()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getIvk()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getD()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage other = (org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage) obj; if (hasIvk() != other.hasIvk()) return false; if (hasIvk()) { if (!getIvk() .equals(other.getIvk())) return false; } if (hasD() != other.hasD()) return false; if (hasD()) { if (!getD() .equals(other.getD())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIvk()) { hash = (37 * hash) + IVK_FIELD_NUMBER; hash = (53 * hash) + getIvk().hashCode(); } if (hasD()) { hash = (37 * hash) + D_FIELD_NUMBER; hash = (53 * hash) + getD().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage 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; } /** *
     * What's the fucking API design
     * 
* * Protobuf type {@code protocol.IncomingViewingKeyDiversifierMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.IncomingViewingKeyDiversifierMessage) org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIvkFieldBuilder(); getDFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ivk_ = null; if (ivkBuilder_ != null) { ivkBuilder_.dispose(); ivkBuilder_ = null; } d_ = null; if (dBuilder_ != null) { dBuilder_.dispose(); dBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage build() { org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage buildPartial() { org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage result = new org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ivk_ = ivkBuilder_ == null ? ivk_ : ivkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.d_ = dBuilder_ == null ? d_ : dBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage other) { if (other == org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance()) return this; if (other.hasIvk()) { mergeIvk(other.getIvk()); } if (other.hasD()) { mergeD(other.getD()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIvkFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage ivk_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder> ivkBuilder_; /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return Whether the ivk field is set. */ public boolean hasIvk() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.IncomingViewingKeyMessage ivk = 1; * @return The ivk. */ public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage getIvk() { if (ivkBuilder_ == null) { return ivk_ == null ? org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_; } else { return ivkBuilder_.getMessage(); } } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public Builder setIvk(org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage value) { if (ivkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ivk_ = value; } else { ivkBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public Builder setIvk( org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder builderForValue) { if (ivkBuilder_ == null) { ivk_ = builderForValue.build(); } else { ivkBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public Builder mergeIvk(org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage value) { if (ivkBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ivk_ != null && ivk_ != org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance()) { getIvkBuilder().mergeFrom(value); } else { ivk_ = value; } } else { ivkBuilder_.mergeFrom(value); } if (ivk_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public Builder clearIvk() { bitField0_ = (bitField0_ & ~0x00000001); ivk_ = null; if (ivkBuilder_ != null) { ivkBuilder_.dispose(); ivkBuilder_ = null; } onChanged(); return this; } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder getIvkBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIvkFieldBuilder().getBuilder(); } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ public org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder() { if (ivkBuilder_ != null) { return ivkBuilder_.getMessageOrBuilder(); } else { return ivk_ == null ? org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_; } } /** * .protocol.IncomingViewingKeyMessage ivk = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder> getIvkFieldBuilder() { if (ivkBuilder_ == null) { ivkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.tron.trident.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder>( getIvk(), getParentForChildren(), isClean()); ivk_ = null; } return ivkBuilder_; } private org.tron.trident.api.GrpcAPI.DiversifierMessage d_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder> dBuilder_; /** * .protocol.DiversifierMessage d = 2; * @return Whether the d field is set. */ public boolean hasD() { return ((bitField0_ & 0x00000002) != 0); } /** * .protocol.DiversifierMessage d = 2; * @return The d. */ public org.tron.trident.api.GrpcAPI.DiversifierMessage getD() { if (dBuilder_ == null) { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } else { return dBuilder_.getMessage(); } } /** * .protocol.DiversifierMessage d = 2; */ public Builder setD(org.tron.trident.api.GrpcAPI.DiversifierMessage value) { if (dBuilder_ == null) { if (value == null) { throw new NullPointerException(); } d_ = value; } else { dBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.DiversifierMessage d = 2; */ public Builder setD( org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder builderForValue) { if (dBuilder_ == null) { d_ = builderForValue.build(); } else { dBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .protocol.DiversifierMessage d = 2; */ public Builder mergeD(org.tron.trident.api.GrpcAPI.DiversifierMessage value) { if (dBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && d_ != null && d_ != org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance()) { getDBuilder().mergeFrom(value); } else { d_ = value; } } else { dBuilder_.mergeFrom(value); } if (d_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .protocol.DiversifierMessage d = 2; */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000002); d_ = null; if (dBuilder_ != null) { dBuilder_.dispose(); dBuilder_ = null; } onChanged(); return this; } /** * .protocol.DiversifierMessage d = 2; */ public org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder getDBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDFieldBuilder().getBuilder(); } /** * .protocol.DiversifierMessage d = 2; */ public org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() { if (dBuilder_ != null) { return dBuilder_.getMessageOrBuilder(); } else { return d_ == null ? org.tron.trident.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_; } } /** * .protocol.DiversifierMessage d = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder> getDFieldBuilder() { if (dBuilder_ == null) { dBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.DiversifierMessage, org.tron.trident.api.GrpcAPI.DiversifierMessage.Builder, org.tron.trident.api.GrpcAPI.DiversifierMessageOrBuilder>( getD(), getParentForChildren(), isClean()); d_ = null; } return dBuilder_; } @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.IncomingViewingKeyDiversifierMessage) } // @@protoc_insertion_point(class_scope:protocol.IncomingViewingKeyDiversifierMessage) private static final org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage(); } public static org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IncomingViewingKeyDiversifierMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReceiveNoteOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ReceiveNote) com.google.protobuf.MessageOrBuilder { /** * .protocol.Note note = 1; * @return Whether the note field is set. */ boolean hasNote(); /** * .protocol.Note note = 1; * @return The note. */ org.tron.trident.proto.Common.Note getNote(); /** * .protocol.Note note = 1; */ org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder(); } /** * Protobuf type {@code protocol.ReceiveNote} */ public static final class ReceiveNote extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ReceiveNote) ReceiveNoteOrBuilder { private static final long serialVersionUID = 0L; // Use ReceiveNote.newBuilder() to construct. private ReceiveNote(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReceiveNote() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReceiveNote(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveNote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ReceiveNote.class, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder.class); } private int bitField0_; public static final int NOTE_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.Note note_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ @java.lang.Override public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ @java.lang.Override public org.tron.trident.proto.Common.Note getNote() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } /** * .protocol.Note note = 1; */ @java.lang.Override public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNote()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNote()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ReceiveNote)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ReceiveNote other = (org.tron.trident.api.GrpcAPI.ReceiveNote) obj; if (hasNote() != other.hasNote()) return false; if (hasNote()) { if (!getNote() .equals(other.getNote())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNote()) { hash = (37 * hash) + NOTE_FIELD_NUMBER; hash = (53 * hash) + getNote().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveNote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ReceiveNote 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.ReceiveNote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ReceiveNote) org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveNote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ReceiveNote.class, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ReceiveNote.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNoteFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote build() { org.tron.trident.api.GrpcAPI.ReceiveNote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote buildPartial() { org.tron.trident.api.GrpcAPI.ReceiveNote result = new org.tron.trident.api.GrpcAPI.ReceiveNote(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.ReceiveNote result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.note_ = noteBuilder_ == null ? note_ : noteBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ReceiveNote) { return mergeFrom((org.tron.trident.api.GrpcAPI.ReceiveNote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ReceiveNote other) { if (other == org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance()) return this; if (other.hasNote()) { mergeNote(other.getNote()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNoteFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.Note note_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> noteBuilder_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ public org.tron.trident.proto.Common.Note getNote() { if (noteBuilder_ == null) { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } else { return noteBuilder_.getMessage(); } } /** * .protocol.Note note = 1; */ public Builder setNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; } else { noteBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder setNote( org.tron.trident.proto.Common.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); } else { noteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder mergeNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && note_ != null && note_ != org.tron.trident.proto.Common.Note.getDefaultInstance()) { getNoteBuilder().mergeFrom(value); } else { note_ = value; } } else { noteBuilder_.mergeFrom(value); } if (note_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Note note = 1; */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000001); note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } onChanged(); return this; } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.Note.Builder getNoteBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNoteFieldBuilder().getBuilder(); } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { if (noteBuilder_ != null) { return noteBuilder_.getMessageOrBuilder(); } else { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } } /** * .protocol.Note note = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> getNoteFieldBuilder() { if (noteBuilder_ == null) { noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder>( getNote(), getParentForChildren(), isClean()); note_ = null; } return noteBuilder_; } @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.ReceiveNote) } // @@protoc_insertion_point(class_scope:protocol.ReceiveNote) private static final org.tron.trident.api.GrpcAPI.ReceiveNote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ReceiveNote(); } public static org.tron.trident.api.GrpcAPI.ReceiveNote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReceiveNote parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpendNoteTRC20OrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.SpendNoteTRC20) com.google.protobuf.MessageOrBuilder { /** * .protocol.Note note = 1; * @return Whether the note field is set. */ boolean hasNote(); /** * .protocol.Note note = 1; * @return The note. */ org.tron.trident.proto.Common.Note getNote(); /** * .protocol.Note note = 1; */ org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder(); /** * bytes alpha = 2; * @return The alpha. */ com.google.protobuf.ByteString getAlpha(); /** * bytes root = 3; * @return The root. */ com.google.protobuf.ByteString getRoot(); /** * bytes path = 4; * @return The path. */ com.google.protobuf.ByteString getPath(); /** * int64 pos = 5; * @return The pos. */ long getPos(); } /** * Protobuf type {@code protocol.SpendNoteTRC20} */ public static final class SpendNoteTRC20 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.SpendNoteTRC20) SpendNoteTRC20OrBuilder { private static final long serialVersionUID = 0L; // Use SpendNoteTRC20.newBuilder() to construct. private SpendNoteTRC20(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpendNoteTRC20() { alpha_ = com.google.protobuf.ByteString.EMPTY; root_ = com.google.protobuf.ByteString.EMPTY; path_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpendNoteTRC20(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendNoteTRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendNoteTRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.class, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder.class); } private int bitField0_; public static final int NOTE_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.Note note_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ @java.lang.Override public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ @java.lang.Override public org.tron.trident.proto.Common.Note getNote() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } /** * .protocol.Note note = 1; */ @java.lang.Override public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } public static final int ALPHA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString alpha_ = com.google.protobuf.ByteString.EMPTY; /** * bytes alpha = 2; * @return The alpha. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha() { return alpha_; } public static final int ROOT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY; /** * bytes root = 3; * @return The root. */ @java.lang.Override public com.google.protobuf.ByteString getRoot() { return root_; } public static final int PATH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; /** * bytes path = 4; * @return The path. */ @java.lang.Override public com.google.protobuf.ByteString getPath() { return path_; } public static final int POS_FIELD_NUMBER = 5; private long pos_ = 0L; /** * int64 pos = 5; * @return The pos. */ @java.lang.Override public long getPos() { return pos_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNote()); } if (!alpha_.isEmpty()) { output.writeBytes(2, alpha_); } if (!root_.isEmpty()) { output.writeBytes(3, root_); } if (!path_.isEmpty()) { output.writeBytes(4, path_); } if (pos_ != 0L) { output.writeInt64(5, pos_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNote()); } if (!alpha_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, alpha_); } if (!root_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, root_); } if (!path_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, path_); } if (pos_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, pos_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.SpendNoteTRC20)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.SpendNoteTRC20 other = (org.tron.trident.api.GrpcAPI.SpendNoteTRC20) obj; if (hasNote() != other.hasNote()) return false; if (hasNote()) { if (!getNote() .equals(other.getNote())) return false; } if (!getAlpha() .equals(other.getAlpha())) return false; if (!getRoot() .equals(other.getRoot())) return false; if (!getPath() .equals(other.getPath())) return false; if (getPos() != other.getPos()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNote()) { hash = (37 * hash) + NOTE_FIELD_NUMBER; hash = (53 * hash) + getNote().hashCode(); } hash = (37 * hash) + ALPHA_FIELD_NUMBER; hash = (53 * hash) + getAlpha().hashCode(); hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPos()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.SpendNoteTRC20 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.SpendNoteTRC20} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.SpendNoteTRC20) org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendNoteTRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendNoteTRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.class, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.SpendNoteTRC20.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNoteFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } alpha_ = com.google.protobuf.ByteString.EMPTY; root_ = com.google.protobuf.ByteString.EMPTY; path_ = com.google.protobuf.ByteString.EMPTY; pos_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendNoteTRC20_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 build() { org.tron.trident.api.GrpcAPI.SpendNoteTRC20 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 buildPartial() { org.tron.trident.api.GrpcAPI.SpendNoteTRC20 result = new org.tron.trident.api.GrpcAPI.SpendNoteTRC20(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.SpendNoteTRC20 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.note_ = noteBuilder_ == null ? note_ : noteBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.alpha_ = alpha_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.root_ = root_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.pos_ = pos_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.SpendNoteTRC20) { return mergeFrom((org.tron.trident.api.GrpcAPI.SpendNoteTRC20)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.SpendNoteTRC20 other) { if (other == org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance()) return this; if (other.hasNote()) { mergeNote(other.getNote()); } if (other.getAlpha() != com.google.protobuf.ByteString.EMPTY) { setAlpha(other.getAlpha()); } if (other.getRoot() != com.google.protobuf.ByteString.EMPTY) { setRoot(other.getRoot()); } if (other.getPath() != com.google.protobuf.ByteString.EMPTY) { setPath(other.getPath()); } if (other.getPos() != 0L) { setPos(other.getPos()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNoteFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { alpha_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { root_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { path_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { pos_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.Note note_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> noteBuilder_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ public org.tron.trident.proto.Common.Note getNote() { if (noteBuilder_ == null) { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } else { return noteBuilder_.getMessage(); } } /** * .protocol.Note note = 1; */ public Builder setNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; } else { noteBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder setNote( org.tron.trident.proto.Common.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); } else { noteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder mergeNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && note_ != null && note_ != org.tron.trident.proto.Common.Note.getDefaultInstance()) { getNoteBuilder().mergeFrom(value); } else { note_ = value; } } else { noteBuilder_.mergeFrom(value); } if (note_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Note note = 1; */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000001); note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } onChanged(); return this; } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.Note.Builder getNoteBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNoteFieldBuilder().getBuilder(); } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { if (noteBuilder_ != null) { return noteBuilder_.getMessageOrBuilder(); } else { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } } /** * .protocol.Note note = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> getNoteFieldBuilder() { if (noteBuilder_ == null) { noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder>( getNote(), getParentForChildren(), isClean()); note_ = null; } return noteBuilder_; } private com.google.protobuf.ByteString alpha_ = com.google.protobuf.ByteString.EMPTY; /** * bytes alpha = 2; * @return The alpha. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha() { return alpha_; } /** * bytes alpha = 2; * @param value The alpha to set. * @return This builder for chaining. */ public Builder setAlpha(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } alpha_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes alpha = 2; * @return This builder for chaining. */ public Builder clearAlpha() { bitField0_ = (bitField0_ & ~0x00000002); alpha_ = getDefaultInstance().getAlpha(); onChanged(); return this; } private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY; /** * bytes root = 3; * @return The root. */ @java.lang.Override public com.google.protobuf.ByteString getRoot() { return root_; } /** * bytes root = 3; * @param value The root to set. * @return This builder for chaining. */ public Builder setRoot(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } root_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes root = 3; * @return This builder for chaining. */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000004); root_ = getDefaultInstance().getRoot(); onChanged(); return this; } private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY; /** * bytes path = 4; * @return The path. */ @java.lang.Override public com.google.protobuf.ByteString getPath() { return path_; } /** * bytes path = 4; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes path = 4; * @return This builder for chaining. */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000008); path_ = getDefaultInstance().getPath(); onChanged(); return this; } private long pos_ ; /** * int64 pos = 5; * @return The pos. */ @java.lang.Override public long getPos() { return pos_; } /** * int64 pos = 5; * @param value The pos to set. * @return This builder for chaining. */ public Builder setPos(long value) { pos_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 pos = 5; * @return This builder for chaining. */ public Builder clearPos() { bitField0_ = (bitField0_ & ~0x00000010); pos_ = 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.SpendNoteTRC20) } // @@protoc_insertion_point(class_scope:protocol.SpendNoteTRC20) private static final org.tron.trident.api.GrpcAPI.SpendNoteTRC20 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.SpendNoteTRC20(); } public static org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpendNoteTRC20 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrivateShieldedTRC20ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.PrivateShieldedTRC20Parameters) com.google.protobuf.MessageOrBuilder { /** * bytes ask = 1; * @return The ask. */ com.google.protobuf.ByteString getAsk(); /** * bytes nsk = 2; * @return The nsk. */ com.google.protobuf.ByteString getNsk(); /** * bytes ovk = 3; * @return The ovk. */ com.google.protobuf.ByteString getOvk(); /** * string from_amount = 4; * @return The fromAmount. */ java.lang.String getFromAmount(); /** * string from_amount = 4; * @return The bytes for fromAmount. */ com.google.protobuf.ByteString getFromAmountBytes(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ java.util.List getShieldedSpendsList(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ int getShieldedSpendsCount(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ java.util.List getShieldedSpendsOrBuilderList(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ java.util.List getShieldedReceivesList(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ int getShieldedReceivesCount(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ java.util.List getShieldedReceivesOrBuilderList(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index); /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ com.google.protobuf.ByteString getTransparentToAddress(); /** * string to_amount = 8; * @return The toAmount. */ java.lang.String getToAmount(); /** * string to_amount = 8; * @return The bytes for toAmount. */ com.google.protobuf.ByteString getToAmountBytes(); /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ com.google.protobuf.ByteString getShieldedTRC20ContractAddress(); } /** * Protobuf type {@code protocol.PrivateShieldedTRC20Parameters} */ public static final class PrivateShieldedTRC20Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.PrivateShieldedTRC20Parameters) PrivateShieldedTRC20ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use PrivateShieldedTRC20Parameters.newBuilder() to construct. private PrivateShieldedTRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivateShieldedTRC20Parameters() { ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; fromAmount_ = ""; shieldedSpends_ = java.util.Collections.emptyList(); shieldedReceives_ = java.util.Collections.emptyList(); transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; toAmount_ = ""; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrivateShieldedTRC20Parameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.class, org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.Builder.class); } public static final int ASK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 1; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } public static final int NSK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } public static final int OVK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } public static final int FROM_AMOUNT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object fromAmount_ = ""; /** * string from_amount = 4; * @return The fromAmount. */ @java.lang.Override public java.lang.String getFromAmount() { java.lang.Object ref = fromAmount_; 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(); fromAmount_ = s; return s; } } /** * string from_amount = 4; * @return The bytes for fromAmount. */ @java.lang.Override public com.google.protobuf.ByteString getFromAmountBytes() { java.lang.Object ref = fromAmount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHIELDED_SPENDS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List shieldedSpends_; /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public java.util.List getShieldedSpendsList() { return shieldedSpends_; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public java.util.List getShieldedSpendsOrBuilderList() { return shieldedSpends_; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public int getShieldedSpendsCount() { return shieldedSpends_.size(); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index) { return shieldedSpends_.get(index); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index) { return shieldedSpends_.get(index); } public static final int SHIELDED_RECEIVES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List shieldedReceives_; /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public java.util.List getShieldedReceivesList() { return shieldedReceives_; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public java.util.List getShieldedReceivesOrBuilderList() { return shieldedReceives_; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public int getShieldedReceivesCount() { return shieldedReceives_.size(); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) { return shieldedReceives_.get(index); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index) { return shieldedReceives_.get(index); } public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } public static final int TO_AMOUNT_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object toAmount_ = ""; /** * string to_amount = 8; * @return The toAmount. */ @java.lang.Override public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAmount_ = s; return s; } } /** * string to_amount = 8; * @return The bytes for toAmount. */ @java.lang.Override public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 9; private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } 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 (!ask_.isEmpty()) { output.writeBytes(1, ask_); } if (!nsk_.isEmpty()) { output.writeBytes(2, nsk_); } if (!ovk_.isEmpty()) { output.writeBytes(3, ovk_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromAmount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromAmount_); } for (int i = 0; i < shieldedSpends_.size(); i++) { output.writeMessage(5, shieldedSpends_.get(i)); } for (int i = 0; i < shieldedReceives_.size(); i++) { output.writeMessage(6, shieldedReceives_.get(i)); } if (!transparentToAddress_.isEmpty()) { output.writeBytes(7, transparentToAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, toAmount_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { output.writeBytes(9, shieldedTRC20ContractAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ask_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ask_); } if (!nsk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nsk_); } if (!ovk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, ovk_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromAmount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromAmount_); } for (int i = 0; i < shieldedSpends_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, shieldedSpends_.get(i)); } for (int i = 0; i < shieldedReceives_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, shieldedReceives_.get(i)); } if (!transparentToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, transparentToAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, toAmount_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, shieldedTRC20ContractAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters other = (org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters) obj; if (!getAsk() .equals(other.getAsk())) return false; if (!getNsk() .equals(other.getNsk())) return false; if (!getOvk() .equals(other.getOvk())) return false; if (!getFromAmount() .equals(other.getFromAmount())) return false; if (!getShieldedSpendsList() .equals(other.getShieldedSpendsList())) return false; if (!getShieldedReceivesList() .equals(other.getShieldedReceivesList())) return false; if (!getTransparentToAddress() .equals(other.getTransparentToAddress())) return false; if (!getToAmount() .equals(other.getToAmount())) return false; if (!getShieldedTRC20ContractAddress() .equals(other.getShieldedTRC20ContractAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ASK_FIELD_NUMBER; hash = (53 * hash) + getAsk().hashCode(); hash = (37 * hash) + NSK_FIELD_NUMBER; hash = (53 * hash) + getNsk().hashCode(); hash = (37 * hash) + OVK_FIELD_NUMBER; hash = (53 * hash) + getOvk().hashCode(); hash = (37 * hash) + FROM_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getFromAmount().hashCode(); if (getShieldedSpendsCount() > 0) { hash = (37 * hash) + SHIELDED_SPENDS_FIELD_NUMBER; hash = (53 * hash) + getShieldedSpendsList().hashCode(); } if (getShieldedReceivesCount() > 0) { hash = (37 * hash) + SHIELDED_RECEIVES_FIELD_NUMBER; hash = (53 * hash) + getShieldedReceivesList().hashCode(); } hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTransparentToAddress().hashCode(); hash = (37 * hash) + TO_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getToAmount().hashCode(); hash = (37 * hash) + SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20ContractAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters 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.PrivateShieldedTRC20Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.PrivateShieldedTRC20Parameters) org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.class, org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ask_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; fromAmount_ = ""; if (shieldedSpendsBuilder_ == null) { shieldedSpends_ = java.util.Collections.emptyList(); } else { shieldedSpends_ = null; shieldedSpendsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (shieldedReceivesBuilder_ == null) { shieldedReceives_ = java.util.Collections.emptyList(); } else { shieldedReceives_ = null; shieldedReceivesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; toAmount_ = ""; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters build() { org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters buildPartial() { org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters result = new org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters result) { if (shieldedSpendsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_); bitField0_ = (bitField0_ & ~0x00000010); } result.shieldedSpends_ = shieldedSpends_; } else { result.shieldedSpends_ = shieldedSpendsBuilder_.build(); } if (shieldedReceivesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_); bitField0_ = (bitField0_ & ~0x00000020); } result.shieldedReceives_ = shieldedReceives_; } else { result.shieldedReceives_ = shieldedReceivesBuilder_.build(); } } private void buildPartial0(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ask_ = ask_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nsk_ = nsk_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ovk_ = ovk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fromAmount_ = fromAmount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.transparentToAddress_ = transparentToAddress_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.toAmount_ = toAmount_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.shieldedTRC20ContractAddress_ = shieldedTRC20ContractAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters other) { if (other == org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters.getDefaultInstance()) return this; if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) { setAsk(other.getAsk()); } if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) { setNsk(other.getNsk()); } if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) { setOvk(other.getOvk()); } if (!other.getFromAmount().isEmpty()) { fromAmount_ = other.fromAmount_; bitField0_ |= 0x00000008; onChanged(); } if (shieldedSpendsBuilder_ == null) { if (!other.shieldedSpends_.isEmpty()) { if (shieldedSpends_.isEmpty()) { shieldedSpends_ = other.shieldedSpends_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShieldedSpendsIsMutable(); shieldedSpends_.addAll(other.shieldedSpends_); } onChanged(); } } else { if (!other.shieldedSpends_.isEmpty()) { if (shieldedSpendsBuilder_.isEmpty()) { shieldedSpendsBuilder_.dispose(); shieldedSpendsBuilder_ = null; shieldedSpends_ = other.shieldedSpends_; bitField0_ = (bitField0_ & ~0x00000010); shieldedSpendsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShieldedSpendsFieldBuilder() : null; } else { shieldedSpendsBuilder_.addAllMessages(other.shieldedSpends_); } } } if (shieldedReceivesBuilder_ == null) { if (!other.shieldedReceives_.isEmpty()) { if (shieldedReceives_.isEmpty()) { shieldedReceives_ = other.shieldedReceives_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureShieldedReceivesIsMutable(); shieldedReceives_.addAll(other.shieldedReceives_); } onChanged(); } } else { if (!other.shieldedReceives_.isEmpty()) { if (shieldedReceivesBuilder_.isEmpty()) { shieldedReceivesBuilder_.dispose(); shieldedReceivesBuilder_ = null; shieldedReceives_ = other.shieldedReceives_; bitField0_ = (bitField0_ & ~0x00000020); shieldedReceivesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShieldedReceivesFieldBuilder() : null; } else { shieldedReceivesBuilder_.addAllMessages(other.shieldedReceives_); } } } if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransparentToAddress(other.getTransparentToAddress()); } if (!other.getToAmount().isEmpty()) { toAmount_ = other.toAmount_; bitField0_ |= 0x00000080; onChanged(); } if (other.getShieldedTRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) { setShieldedTRC20ContractAddress(other.getShieldedTRC20ContractAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ask_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { nsk_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { ovk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { fromAmount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { org.tron.trident.api.GrpcAPI.SpendNoteTRC20 m = input.readMessage( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.parser(), extensionRegistry); if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(m); } else { shieldedSpendsBuilder_.addMessage(m); } break; } // case 42 case 50: { org.tron.trident.api.GrpcAPI.ReceiveNote m = input.readMessage( org.tron.trident.api.GrpcAPI.ReceiveNote.parser(), extensionRegistry); if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(m); } else { shieldedReceivesBuilder_.addMessage(m); } break; } // case 50 case 58: { transparentToAddress_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { toAmount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { shieldedTRC20ContractAddress_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ask = 1; * @return The ask. */ @java.lang.Override public com.google.protobuf.ByteString getAsk() { return ask_; } /** * bytes ask = 1; * @param value The ask to set. * @return This builder for chaining. */ public Builder setAsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ask_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes ask = 1; * @return This builder for chaining. */ public Builder clearAsk() { bitField0_ = (bitField0_ & ~0x00000001); ask_ = getDefaultInstance().getAsk(); onChanged(); return this; } private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } /** * bytes nsk = 2; * @param value The nsk to set. * @return This builder for chaining. */ public Builder setNsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nsk_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes nsk = 2; * @return This builder for chaining. */ public Builder clearNsk() { bitField0_ = (bitField0_ & ~0x00000002); nsk_ = getDefaultInstance().getNsk(); onChanged(); return this; } private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } /** * bytes ovk = 3; * @param value The ovk to set. * @return This builder for chaining. */ public Builder setOvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ovk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes ovk = 3; * @return This builder for chaining. */ public Builder clearOvk() { bitField0_ = (bitField0_ & ~0x00000004); ovk_ = getDefaultInstance().getOvk(); onChanged(); return this; } private java.lang.Object fromAmount_ = ""; /** * string from_amount = 4; * @return The fromAmount. */ public java.lang.String getFromAmount() { java.lang.Object ref = fromAmount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fromAmount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string from_amount = 4; * @return The bytes for fromAmount. */ public com.google.protobuf.ByteString getFromAmountBytes() { java.lang.Object ref = fromAmount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string from_amount = 4; * @param value The fromAmount to set. * @return This builder for chaining. */ public Builder setFromAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fromAmount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string from_amount = 4; * @return This builder for chaining. */ public Builder clearFromAmount() { fromAmount_ = getDefaultInstance().getFromAmount(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string from_amount = 4; * @param value The bytes for fromAmount to set. * @return This builder for chaining. */ public Builder setFromAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fromAmount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List shieldedSpends_ = java.util.Collections.emptyList(); private void ensureShieldedSpendsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { shieldedSpends_ = new java.util.ArrayList(shieldedSpends_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder> shieldedSpendsBuilder_; /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsList() { if (shieldedSpendsBuilder_ == null) { return java.util.Collections.unmodifiableList(shieldedSpends_); } else { return shieldedSpendsBuilder_.getMessageList(); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public int getShieldedSpendsCount() { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.size(); } else { return shieldedSpendsBuilder_.getCount(); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index) { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.get(index); } else { return shieldedSpendsBuilder_.getMessage(index); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder setShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.set(index, value); onChanged(); } else { shieldedSpendsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder setShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.set(index, builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends(org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.add(value); onChanged(); } else { shieldedSpendsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.add(index, value); onChanged(); } else { shieldedSpendsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(index, builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addAllShieldedSpends( java.lang.Iterable values) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shieldedSpends_); onChanged(); } else { shieldedSpendsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder clearShieldedSpends() { if (shieldedSpendsBuilder_ == null) { shieldedSpends_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { shieldedSpendsBuilder_.clear(); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder removeShieldedSpends(int index) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.remove(index); onChanged(); } else { shieldedSpendsBuilder_.remove(index); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder getShieldedSpendsBuilder( int index) { return getShieldedSpendsFieldBuilder().getBuilder(index); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index) { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.get(index); } else { return shieldedSpendsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsOrBuilderList() { if (shieldedSpendsBuilder_ != null) { return shieldedSpendsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shieldedSpends_); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder addShieldedSpendsBuilder() { return getShieldedSpendsFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance()); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder addShieldedSpendsBuilder( int index) { return getShieldedSpendsFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance()); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsBuilderList() { return getShieldedSpendsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder> getShieldedSpendsFieldBuilder() { if (shieldedSpendsBuilder_ == null) { shieldedSpendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder>( shieldedSpends_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); shieldedSpends_ = null; } return shieldedSpendsBuilder_; } private java.util.List shieldedReceives_ = java.util.Collections.emptyList(); private void ensureShieldedReceivesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { shieldedReceives_ = new java.util.ArrayList(shieldedReceives_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder> shieldedReceivesBuilder_; /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesList() { if (shieldedReceivesBuilder_ == null) { return java.util.Collections.unmodifiableList(shieldedReceives_); } else { return shieldedReceivesBuilder_.getMessageList(); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public int getShieldedReceivesCount() { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.size(); } else { return shieldedReceivesBuilder_.getCount(); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.get(index); } else { return shieldedReceivesBuilder_.getMessage(index); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder setShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.set(index, value); onChanged(); } else { shieldedReceivesBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder setShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.set(index, builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives(org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.add(value); onChanged(); } else { shieldedReceivesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.add(index, value); onChanged(); } else { shieldedReceivesBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(index, builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addAllShieldedReceives( java.lang.Iterable values) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shieldedReceives_); onChanged(); } else { shieldedReceivesBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder clearShieldedReceives() { if (shieldedReceivesBuilder_ == null) { shieldedReceives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { shieldedReceivesBuilder_.clear(); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder removeShieldedReceives(int index) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.remove(index); onChanged(); } else { shieldedReceivesBuilder_.remove(index); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder getShieldedReceivesBuilder( int index) { return getShieldedReceivesFieldBuilder().getBuilder(index); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index) { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.get(index); } else { return shieldedReceivesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesOrBuilderList() { if (shieldedReceivesBuilder_ != null) { return shieldedReceivesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shieldedReceives_); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder() { return getShieldedReceivesFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance()); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder( int index) { return getShieldedReceivesFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance()); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesBuilderList() { return getShieldedReceivesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder> getShieldedReceivesFieldBuilder() { if (shieldedReceivesBuilder_ == null) { shieldedReceivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder>( shieldedReceives_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); shieldedReceives_ = null; } return shieldedReceivesBuilder_; } private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } /** * bytes transparent_to_address = 7; * @param value The transparentToAddress to set. * @return This builder for chaining. */ public Builder setTransparentToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transparentToAddress_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bytes transparent_to_address = 7; * @return This builder for chaining. */ public Builder clearTransparentToAddress() { bitField0_ = (bitField0_ & ~0x00000040); transparentToAddress_ = getDefaultInstance().getTransparentToAddress(); onChanged(); return this; } private java.lang.Object toAmount_ = ""; /** * string to_amount = 8; * @return The toAmount. */ public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAmount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string to_amount = 8; * @return The bytes for toAmount. */ public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string to_amount = 8; * @param value The toAmount to set. * @return This builder for chaining. */ public Builder setToAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } toAmount_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * string to_amount = 8; * @return This builder for chaining. */ public Builder clearToAmount() { toAmount_ = getDefaultInstance().getToAmount(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * string to_amount = 8; * @param value The bytes for toAmount to set. * @return This builder for chaining. */ public Builder setToAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); toAmount_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } /** * bytes shielded_TRC20_contract_address = 9; * @param value The shieldedTRC20ContractAddress to set. * @return This builder for chaining. */ public Builder setShieldedTRC20ContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shieldedTRC20ContractAddress_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bytes shielded_TRC20_contract_address = 9; * @return This builder for chaining. */ public Builder clearShieldedTRC20ContractAddress() { bitField0_ = (bitField0_ & ~0x00000100); shieldedTRC20ContractAddress_ = getDefaultInstance().getShieldedTRC20ContractAddress(); 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.PrivateShieldedTRC20Parameters) } // @@protoc_insertion_point(class_scope:protocol.PrivateShieldedTRC20Parameters) private static final org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters(); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrivateShieldedTRC20Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrivateShieldedTRC20ParametersWithoutAskOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.PrivateShieldedTRC20ParametersWithoutAsk) com.google.protobuf.MessageOrBuilder { /** * bytes ak = 1; * @return The ak. */ com.google.protobuf.ByteString getAk(); /** * bytes nsk = 2; * @return The nsk. */ com.google.protobuf.ByteString getNsk(); /** * bytes ovk = 3; * @return The ovk. */ com.google.protobuf.ByteString getOvk(); /** * string from_amount = 4; * @return The fromAmount. */ java.lang.String getFromAmount(); /** * string from_amount = 4; * @return The bytes for fromAmount. */ com.google.protobuf.ByteString getFromAmountBytes(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ java.util.List getShieldedSpendsList(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ int getShieldedSpendsCount(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ java.util.List getShieldedSpendsOrBuilderList(); /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ java.util.List getShieldedReceivesList(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ int getShieldedReceivesCount(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ java.util.List getShieldedReceivesOrBuilderList(); /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index); /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ com.google.protobuf.ByteString getTransparentToAddress(); /** * string to_amount = 8; * @return The toAmount. */ java.lang.String getToAmount(); /** * string to_amount = 8; * @return The bytes for toAmount. */ com.google.protobuf.ByteString getToAmountBytes(); /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ com.google.protobuf.ByteString getShieldedTRC20ContractAddress(); } /** * Protobuf type {@code protocol.PrivateShieldedTRC20ParametersWithoutAsk} */ public static final class PrivateShieldedTRC20ParametersWithoutAsk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.PrivateShieldedTRC20ParametersWithoutAsk) PrivateShieldedTRC20ParametersWithoutAskOrBuilder { private static final long serialVersionUID = 0L; // Use PrivateShieldedTRC20ParametersWithoutAsk.newBuilder() to construct. private PrivateShieldedTRC20ParametersWithoutAsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivateShieldedTRC20ParametersWithoutAsk() { ak_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; fromAmount_ = ""; shieldedSpends_ = java.util.Collections.emptyList(); shieldedReceives_ = java.util.Collections.emptyList(); transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; toAmount_ = ""; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrivateShieldedTRC20ParametersWithoutAsk(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.class, org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.Builder.class); } public static final int AK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 1; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } public static final int NSK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } public static final int OVK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } public static final int FROM_AMOUNT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object fromAmount_ = ""; /** * string from_amount = 4; * @return The fromAmount. */ @java.lang.Override public java.lang.String getFromAmount() { java.lang.Object ref = fromAmount_; 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(); fromAmount_ = s; return s; } } /** * string from_amount = 4; * @return The bytes for fromAmount. */ @java.lang.Override public com.google.protobuf.ByteString getFromAmountBytes() { java.lang.Object ref = fromAmount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHIELDED_SPENDS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List shieldedSpends_; /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public java.util.List getShieldedSpendsList() { return shieldedSpends_; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public java.util.List getShieldedSpendsOrBuilderList() { return shieldedSpends_; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public int getShieldedSpendsCount() { return shieldedSpends_.size(); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index) { return shieldedSpends_.get(index); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index) { return shieldedSpends_.get(index); } public static final int SHIELDED_RECEIVES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List shieldedReceives_; /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public java.util.List getShieldedReceivesList() { return shieldedReceives_; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public java.util.List getShieldedReceivesOrBuilderList() { return shieldedReceives_; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public int getShieldedReceivesCount() { return shieldedReceives_.size(); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) { return shieldedReceives_.get(index); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index) { return shieldedReceives_.get(index); } public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } public static final int TO_AMOUNT_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object toAmount_ = ""; /** * string to_amount = 8; * @return The toAmount. */ @java.lang.Override public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAmount_ = s; return s; } } /** * string to_amount = 8; * @return The bytes for toAmount. */ @java.lang.Override public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 9; private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } 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 (!ak_.isEmpty()) { output.writeBytes(1, ak_); } if (!nsk_.isEmpty()) { output.writeBytes(2, nsk_); } if (!ovk_.isEmpty()) { output.writeBytes(3, ovk_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromAmount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromAmount_); } for (int i = 0; i < shieldedSpends_.size(); i++) { output.writeMessage(5, shieldedSpends_.get(i)); } for (int i = 0; i < shieldedReceives_.size(); i++) { output.writeMessage(6, shieldedReceives_.get(i)); } if (!transparentToAddress_.isEmpty()) { output.writeBytes(7, transparentToAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, toAmount_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { output.writeBytes(9, shieldedTRC20ContractAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ak_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ak_); } if (!nsk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, nsk_); } if (!ovk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, ovk_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromAmount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromAmount_); } for (int i = 0; i < shieldedSpends_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, shieldedSpends_.get(i)); } for (int i = 0; i < shieldedReceives_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, shieldedReceives_.get(i)); } if (!transparentToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, transparentToAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toAmount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, toAmount_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, shieldedTRC20ContractAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk other = (org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk) obj; if (!getAk() .equals(other.getAk())) return false; if (!getNsk() .equals(other.getNsk())) return false; if (!getOvk() .equals(other.getOvk())) return false; if (!getFromAmount() .equals(other.getFromAmount())) return false; if (!getShieldedSpendsList() .equals(other.getShieldedSpendsList())) return false; if (!getShieldedReceivesList() .equals(other.getShieldedReceivesList())) return false; if (!getTransparentToAddress() .equals(other.getTransparentToAddress())) return false; if (!getToAmount() .equals(other.getToAmount())) return false; if (!getShieldedTRC20ContractAddress() .equals(other.getShieldedTRC20ContractAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AK_FIELD_NUMBER; hash = (53 * hash) + getAk().hashCode(); hash = (37 * hash) + NSK_FIELD_NUMBER; hash = (53 * hash) + getNsk().hashCode(); hash = (37 * hash) + OVK_FIELD_NUMBER; hash = (53 * hash) + getOvk().hashCode(); hash = (37 * hash) + FROM_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getFromAmount().hashCode(); if (getShieldedSpendsCount() > 0) { hash = (37 * hash) + SHIELDED_SPENDS_FIELD_NUMBER; hash = (53 * hash) + getShieldedSpendsList().hashCode(); } if (getShieldedReceivesCount() > 0) { hash = (37 * hash) + SHIELDED_RECEIVES_FIELD_NUMBER; hash = (53 * hash) + getShieldedReceivesList().hashCode(); } hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTransparentToAddress().hashCode(); hash = (37 * hash) + TO_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getToAmount().hashCode(); hash = (37 * hash) + SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20ContractAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk 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.PrivateShieldedTRC20ParametersWithoutAsk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.PrivateShieldedTRC20ParametersWithoutAsk) org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.class, org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ak_ = com.google.protobuf.ByteString.EMPTY; nsk_ = com.google.protobuf.ByteString.EMPTY; ovk_ = com.google.protobuf.ByteString.EMPTY; fromAmount_ = ""; if (shieldedSpendsBuilder_ == null) { shieldedSpends_ = java.util.Collections.emptyList(); } else { shieldedSpends_ = null; shieldedSpendsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (shieldedReceivesBuilder_ == null) { shieldedReceives_ = java.util.Collections.emptyList(); } else { shieldedReceives_ = null; shieldedReceivesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; toAmount_ = ""; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk build() { org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk buildPartial() { org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk result = new org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk result) { if (shieldedSpendsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_); bitField0_ = (bitField0_ & ~0x00000010); } result.shieldedSpends_ = shieldedSpends_; } else { result.shieldedSpends_ = shieldedSpendsBuilder_.build(); } if (shieldedReceivesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_); bitField0_ = (bitField0_ & ~0x00000020); } result.shieldedReceives_ = shieldedReceives_; } else { result.shieldedReceives_ = shieldedReceivesBuilder_.build(); } } private void buildPartial0(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ak_ = ak_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nsk_ = nsk_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ovk_ = ovk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fromAmount_ = fromAmount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.transparentToAddress_ = transparentToAddress_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.toAmount_ = toAmount_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.shieldedTRC20ContractAddress_ = shieldedTRC20ContractAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk) { return mergeFrom((org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk other) { if (other == org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk.getDefaultInstance()) return this; if (other.getAk() != com.google.protobuf.ByteString.EMPTY) { setAk(other.getAk()); } if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) { setNsk(other.getNsk()); } if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) { setOvk(other.getOvk()); } if (!other.getFromAmount().isEmpty()) { fromAmount_ = other.fromAmount_; bitField0_ |= 0x00000008; onChanged(); } if (shieldedSpendsBuilder_ == null) { if (!other.shieldedSpends_.isEmpty()) { if (shieldedSpends_.isEmpty()) { shieldedSpends_ = other.shieldedSpends_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShieldedSpendsIsMutable(); shieldedSpends_.addAll(other.shieldedSpends_); } onChanged(); } } else { if (!other.shieldedSpends_.isEmpty()) { if (shieldedSpendsBuilder_.isEmpty()) { shieldedSpendsBuilder_.dispose(); shieldedSpendsBuilder_ = null; shieldedSpends_ = other.shieldedSpends_; bitField0_ = (bitField0_ & ~0x00000010); shieldedSpendsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShieldedSpendsFieldBuilder() : null; } else { shieldedSpendsBuilder_.addAllMessages(other.shieldedSpends_); } } } if (shieldedReceivesBuilder_ == null) { if (!other.shieldedReceives_.isEmpty()) { if (shieldedReceives_.isEmpty()) { shieldedReceives_ = other.shieldedReceives_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureShieldedReceivesIsMutable(); shieldedReceives_.addAll(other.shieldedReceives_); } onChanged(); } } else { if (!other.shieldedReceives_.isEmpty()) { if (shieldedReceivesBuilder_.isEmpty()) { shieldedReceivesBuilder_.dispose(); shieldedReceivesBuilder_ = null; shieldedReceives_ = other.shieldedReceives_; bitField0_ = (bitField0_ & ~0x00000020); shieldedReceivesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShieldedReceivesFieldBuilder() : null; } else { shieldedReceivesBuilder_.addAllMessages(other.shieldedReceives_); } } } if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransparentToAddress(other.getTransparentToAddress()); } if (!other.getToAmount().isEmpty()) { toAmount_ = other.toAmount_; bitField0_ |= 0x00000080; onChanged(); } if (other.getShieldedTRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) { setShieldedTRC20ContractAddress(other.getShieldedTRC20ContractAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ak_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { nsk_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { ovk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { fromAmount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { org.tron.trident.api.GrpcAPI.SpendNoteTRC20 m = input.readMessage( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.parser(), extensionRegistry); if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(m); } else { shieldedSpendsBuilder_.addMessage(m); } break; } // case 42 case 50: { org.tron.trident.api.GrpcAPI.ReceiveNote m = input.readMessage( org.tron.trident.api.GrpcAPI.ReceiveNote.parser(), extensionRegistry); if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(m); } else { shieldedReceivesBuilder_.addMessage(m); } break; } // case 50 case 58: { transparentToAddress_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { toAmount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { shieldedTRC20ContractAddress_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 1; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } /** * bytes ak = 1; * @param value The ak to set. * @return This builder for chaining. */ public Builder setAk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ak_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes ak = 1; * @return This builder for chaining. */ public Builder clearAk() { bitField0_ = (bitField0_ & ~0x00000001); ak_ = getDefaultInstance().getAk(); onChanged(); return this; } private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nsk = 2; * @return The nsk. */ @java.lang.Override public com.google.protobuf.ByteString getNsk() { return nsk_; } /** * bytes nsk = 2; * @param value The nsk to set. * @return This builder for chaining. */ public Builder setNsk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nsk_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes nsk = 2; * @return This builder for chaining. */ public Builder clearNsk() { bitField0_ = (bitField0_ & ~0x00000002); nsk_ = getDefaultInstance().getNsk(); onChanged(); return this; } private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } /** * bytes ovk = 3; * @param value The ovk to set. * @return This builder for chaining. */ public Builder setOvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ovk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes ovk = 3; * @return This builder for chaining. */ public Builder clearOvk() { bitField0_ = (bitField0_ & ~0x00000004); ovk_ = getDefaultInstance().getOvk(); onChanged(); return this; } private java.lang.Object fromAmount_ = ""; /** * string from_amount = 4; * @return The fromAmount. */ public java.lang.String getFromAmount() { java.lang.Object ref = fromAmount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fromAmount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string from_amount = 4; * @return The bytes for fromAmount. */ public com.google.protobuf.ByteString getFromAmountBytes() { java.lang.Object ref = fromAmount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string from_amount = 4; * @param value The fromAmount to set. * @return This builder for chaining. */ public Builder setFromAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fromAmount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string from_amount = 4; * @return This builder for chaining. */ public Builder clearFromAmount() { fromAmount_ = getDefaultInstance().getFromAmount(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string from_amount = 4; * @param value The bytes for fromAmount to set. * @return This builder for chaining. */ public Builder setFromAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fromAmount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List shieldedSpends_ = java.util.Collections.emptyList(); private void ensureShieldedSpendsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { shieldedSpends_ = new java.util.ArrayList(shieldedSpends_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder> shieldedSpendsBuilder_; /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsList() { if (shieldedSpendsBuilder_ == null) { return java.util.Collections.unmodifiableList(shieldedSpends_); } else { return shieldedSpendsBuilder_.getMessageList(); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public int getShieldedSpendsCount() { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.size(); } else { return shieldedSpendsBuilder_.getCount(); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20 getShieldedSpends(int index) { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.get(index); } else { return shieldedSpendsBuilder_.getMessage(index); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder setShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.set(index, value); onChanged(); } else { shieldedSpendsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder setShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.set(index, builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends(org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.add(value); onChanged(); } else { shieldedSpendsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20 value) { if (shieldedSpendsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedSpendsIsMutable(); shieldedSpends_.add(index, value); onChanged(); } else { shieldedSpendsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addShieldedSpends( int index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder builderForValue) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.add(index, builderForValue.build()); onChanged(); } else { shieldedSpendsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder addAllShieldedSpends( java.lang.Iterable values) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shieldedSpends_); onChanged(); } else { shieldedSpendsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder clearShieldedSpends() { if (shieldedSpendsBuilder_ == null) { shieldedSpends_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { shieldedSpendsBuilder_.clear(); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public Builder removeShieldedSpends(int index) { if (shieldedSpendsBuilder_ == null) { ensureShieldedSpendsIsMutable(); shieldedSpends_.remove(index); onChanged(); } else { shieldedSpendsBuilder_.remove(index); } return this; } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder getShieldedSpendsBuilder( int index) { return getShieldedSpendsFieldBuilder().getBuilder(index); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder getShieldedSpendsOrBuilder( int index) { if (shieldedSpendsBuilder_ == null) { return shieldedSpends_.get(index); } else { return shieldedSpendsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsOrBuilderList() { if (shieldedSpendsBuilder_ != null) { return shieldedSpendsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shieldedSpends_); } } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder addShieldedSpendsBuilder() { return getShieldedSpendsFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance()); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder addShieldedSpendsBuilder( int index) { return getShieldedSpendsFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.getDefaultInstance()); } /** * repeated .protocol.SpendNoteTRC20 shielded_spends = 5; */ public java.util.List getShieldedSpendsBuilderList() { return getShieldedSpendsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder> getShieldedSpendsFieldBuilder() { if (shieldedSpendsBuilder_ == null) { shieldedSpendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendNoteTRC20, org.tron.trident.api.GrpcAPI.SpendNoteTRC20.Builder, org.tron.trident.api.GrpcAPI.SpendNoteTRC20OrBuilder>( shieldedSpends_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); shieldedSpends_ = null; } return shieldedSpendsBuilder_; } private java.util.List shieldedReceives_ = java.util.Collections.emptyList(); private void ensureShieldedReceivesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { shieldedReceives_ = new java.util.ArrayList(shieldedReceives_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder> shieldedReceivesBuilder_; /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesList() { if (shieldedReceivesBuilder_ == null) { return java.util.Collections.unmodifiableList(shieldedReceives_); } else { return shieldedReceivesBuilder_.getMessageList(); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public int getShieldedReceivesCount() { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.size(); } else { return shieldedReceivesBuilder_.getCount(); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.get(index); } else { return shieldedReceivesBuilder_.getMessage(index); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder setShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.set(index, value); onChanged(); } else { shieldedReceivesBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder setShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.set(index, builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives(org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.add(value); onChanged(); } else { shieldedReceivesBuilder_.addMessage(value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote value) { if (shieldedReceivesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShieldedReceivesIsMutable(); shieldedReceives_.add(index, value); onChanged(); } else { shieldedReceivesBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addShieldedReceives( int index, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder builderForValue) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.add(index, builderForValue.build()); onChanged(); } else { shieldedReceivesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder addAllShieldedReceives( java.lang.Iterable values) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shieldedReceives_); onChanged(); } else { shieldedReceivesBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder clearShieldedReceives() { if (shieldedReceivesBuilder_ == null) { shieldedReceives_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { shieldedReceivesBuilder_.clear(); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public Builder removeShieldedReceives(int index) { if (shieldedReceivesBuilder_ == null) { ensureShieldedReceivesIsMutable(); shieldedReceives_.remove(index); onChanged(); } else { shieldedReceivesBuilder_.remove(index); } return this; } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder getShieldedReceivesBuilder( int index) { return getShieldedReceivesFieldBuilder().getBuilder(index); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder( int index) { if (shieldedReceivesBuilder_ == null) { return shieldedReceives_.get(index); } else { return shieldedReceivesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesOrBuilderList() { if (shieldedReceivesBuilder_ != null) { return shieldedReceivesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shieldedReceives_); } } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder() { return getShieldedReceivesFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance()); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public org.tron.trident.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder( int index) { return getShieldedReceivesFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.ReceiveNote.getDefaultInstance()); } /** * repeated .protocol.ReceiveNote shielded_receives = 6; */ public java.util.List getShieldedReceivesBuilderList() { return getShieldedReceivesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder> getShieldedReceivesFieldBuilder() { if (shieldedReceivesBuilder_ == null) { shieldedReceivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveNote, org.tron.trident.api.GrpcAPI.ReceiveNote.Builder, org.tron.trident.api.GrpcAPI.ReceiveNoteOrBuilder>( shieldedReceives_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); shieldedReceives_ = null; } return shieldedReceivesBuilder_; } private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 7; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } /** * bytes transparent_to_address = 7; * @param value The transparentToAddress to set. * @return This builder for chaining. */ public Builder setTransparentToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transparentToAddress_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bytes transparent_to_address = 7; * @return This builder for chaining. */ public Builder clearTransparentToAddress() { bitField0_ = (bitField0_ & ~0x00000040); transparentToAddress_ = getDefaultInstance().getTransparentToAddress(); onChanged(); return this; } private java.lang.Object toAmount_ = ""; /** * string to_amount = 8; * @return The toAmount. */ public java.lang.String getToAmount() { java.lang.Object ref = toAmount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAmount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string to_amount = 8; * @return The bytes for toAmount. */ public com.google.protobuf.ByteString getToAmountBytes() { java.lang.Object ref = toAmount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAmount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string to_amount = 8; * @param value The toAmount to set. * @return This builder for chaining. */ public Builder setToAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } toAmount_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * string to_amount = 8; * @return This builder for chaining. */ public Builder clearToAmount() { toAmount_ = getDefaultInstance().getToAmount(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * string to_amount = 8; * @param value The bytes for toAmount to set. * @return This builder for chaining. */ public Builder setToAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); toAmount_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 9; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } /** * bytes shielded_TRC20_contract_address = 9; * @param value The shieldedTRC20ContractAddress to set. * @return This builder for chaining. */ public Builder setShieldedTRC20ContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shieldedTRC20ContractAddress_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bytes shielded_TRC20_contract_address = 9; * @return This builder for chaining. */ public Builder clearShieldedTRC20ContractAddress() { bitField0_ = (bitField0_ & ~0x00000100); shieldedTRC20ContractAddress_ = getDefaultInstance().getShieldedTRC20ContractAddress(); 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.PrivateShieldedTRC20ParametersWithoutAsk) } // @@protoc_insertion_point(class_scope:protocol.PrivateShieldedTRC20ParametersWithoutAsk) private static final org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk(); } public static org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrivateShieldedTRC20ParametersWithoutAsk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.PrivateShieldedTRC20ParametersWithoutAsk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpendDescriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.SpendDescription) com.google.protobuf.MessageOrBuilder { /** * bytes value_commitment = 1; * @return The valueCommitment. */ com.google.protobuf.ByteString getValueCommitment(); /** *
     * merkle root
     * 
* * bytes anchor = 2; * @return The anchor. */ com.google.protobuf.ByteString getAnchor(); /** *
     * used for check double spend
     * 
* * bytes nullifier = 3; * @return The nullifier. */ com.google.protobuf.ByteString getNullifier(); /** *
     * used for check spend authority signature
     * 
* * bytes rk = 4; * @return The rk. */ com.google.protobuf.ByteString getRk(); /** * bytes zkproof = 5; * @return The zkproof. */ com.google.protobuf.ByteString getZkproof(); /** * bytes spend_authority_signature = 6; * @return The spendAuthoritySignature. */ com.google.protobuf.ByteString getSpendAuthoritySignature(); } /** * Protobuf type {@code protocol.SpendDescription} */ public static final class SpendDescription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.SpendDescription) SpendDescriptionOrBuilder { private static final long serialVersionUID = 0L; // Use SpendDescription.newBuilder() to construct. private SpendDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpendDescription() { valueCommitment_ = com.google.protobuf.ByteString.EMPTY; anchor_ = com.google.protobuf.ByteString.EMPTY; nullifier_ = com.google.protobuf.ByteString.EMPTY; rk_ = com.google.protobuf.ByteString.EMPTY; zkproof_ = com.google.protobuf.ByteString.EMPTY; spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpendDescription(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.SpendDescription.class, org.tron.trident.api.GrpcAPI.SpendDescription.Builder.class); } public static final int VALUE_COMMITMENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value_commitment = 1; * @return The valueCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getValueCommitment() { return valueCommitment_; } public static final int ANCHOR_FIELD_NUMBER = 2; private com.google.protobuf.ByteString anchor_ = com.google.protobuf.ByteString.EMPTY; /** *
     * merkle root
     * 
* * bytes anchor = 2; * @return The anchor. */ @java.lang.Override public com.google.protobuf.ByteString getAnchor() { return anchor_; } public static final int NULLIFIER_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nullifier_ = com.google.protobuf.ByteString.EMPTY; /** *
     * used for check double spend
     * 
* * bytes nullifier = 3; * @return The nullifier. */ @java.lang.Override public com.google.protobuf.ByteString getNullifier() { return nullifier_; } public static final int RK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString rk_ = com.google.protobuf.ByteString.EMPTY; /** *
     * used for check spend authority signature
     * 
* * bytes rk = 4; * @return The rk. */ @java.lang.Override public com.google.protobuf.ByteString getRk() { return rk_; } public static final int ZKPROOF_FIELD_NUMBER = 5; private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY; /** * bytes zkproof = 5; * @return The zkproof. */ @java.lang.Override public com.google.protobuf.ByteString getZkproof() { return zkproof_; } public static final int SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes spend_authority_signature = 6; * @return The spendAuthoritySignature. */ @java.lang.Override public com.google.protobuf.ByteString getSpendAuthoritySignature() { return spendAuthoritySignature_; } 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 (!valueCommitment_.isEmpty()) { output.writeBytes(1, valueCommitment_); } if (!anchor_.isEmpty()) { output.writeBytes(2, anchor_); } if (!nullifier_.isEmpty()) { output.writeBytes(3, nullifier_); } if (!rk_.isEmpty()) { output.writeBytes(4, rk_); } if (!zkproof_.isEmpty()) { output.writeBytes(5, zkproof_); } if (!spendAuthoritySignature_.isEmpty()) { output.writeBytes(6, spendAuthoritySignature_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!valueCommitment_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, valueCommitment_); } if (!anchor_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, anchor_); } if (!nullifier_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nullifier_); } if (!rk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, rk_); } if (!zkproof_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, zkproof_); } if (!spendAuthoritySignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, spendAuthoritySignature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.SpendDescription)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.SpendDescription other = (org.tron.trident.api.GrpcAPI.SpendDescription) obj; if (!getValueCommitment() .equals(other.getValueCommitment())) return false; if (!getAnchor() .equals(other.getAnchor())) return false; if (!getNullifier() .equals(other.getNullifier())) return false; if (!getRk() .equals(other.getRk())) return false; if (!getZkproof() .equals(other.getZkproof())) return false; if (!getSpendAuthoritySignature() .equals(other.getSpendAuthoritySignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_COMMITMENT_FIELD_NUMBER; hash = (53 * hash) + getValueCommitment().hashCode(); hash = (37 * hash) + ANCHOR_FIELD_NUMBER; hash = (53 * hash) + getAnchor().hashCode(); hash = (37 * hash) + NULLIFIER_FIELD_NUMBER; hash = (53 * hash) + getNullifier().hashCode(); hash = (37 * hash) + RK_FIELD_NUMBER; hash = (53 * hash) + getRk().hashCode(); hash = (37 * hash) + ZKPROOF_FIELD_NUMBER; hash = (53 * hash) + getZkproof().hashCode(); hash = (37 * hash) + SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSpendAuthoritySignature().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.SpendDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.SpendDescription 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.SpendDescription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.SpendDescription) org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.SpendDescription.class, org.tron.trident.api.GrpcAPI.SpendDescription.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.SpendDescription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueCommitment_ = com.google.protobuf.ByteString.EMPTY; anchor_ = com.google.protobuf.ByteString.EMPTY; nullifier_ = com.google.protobuf.ByteString.EMPTY; rk_ = com.google.protobuf.ByteString.EMPTY; zkproof_ = com.google.protobuf.ByteString.EMPTY; spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescription getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.SpendDescription.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescription build() { org.tron.trident.api.GrpcAPI.SpendDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescription buildPartial() { org.tron.trident.api.GrpcAPI.SpendDescription result = new org.tron.trident.api.GrpcAPI.SpendDescription(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.SpendDescription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.valueCommitment_ = valueCommitment_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.anchor_ = anchor_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nullifier_ = nullifier_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.rk_ = rk_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.zkproof_ = zkproof_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.spendAuthoritySignature_ = spendAuthoritySignature_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.SpendDescription) { return mergeFrom((org.tron.trident.api.GrpcAPI.SpendDescription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.SpendDescription other) { if (other == org.tron.trident.api.GrpcAPI.SpendDescription.getDefaultInstance()) return this; if (other.getValueCommitment() != com.google.protobuf.ByteString.EMPTY) { setValueCommitment(other.getValueCommitment()); } if (other.getAnchor() != com.google.protobuf.ByteString.EMPTY) { setAnchor(other.getAnchor()); } if (other.getNullifier() != com.google.protobuf.ByteString.EMPTY) { setNullifier(other.getNullifier()); } if (other.getRk() != com.google.protobuf.ByteString.EMPTY) { setRk(other.getRk()); } if (other.getZkproof() != com.google.protobuf.ByteString.EMPTY) { setZkproof(other.getZkproof()); } if (other.getSpendAuthoritySignature() != com.google.protobuf.ByteString.EMPTY) { setSpendAuthoritySignature(other.getSpendAuthoritySignature()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { valueCommitment_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { anchor_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { nullifier_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { rk_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { zkproof_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { spendAuthoritySignature_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value_commitment = 1; * @return The valueCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getValueCommitment() { return valueCommitment_; } /** * bytes value_commitment = 1; * @param value The valueCommitment to set. * @return This builder for chaining. */ public Builder setValueCommitment(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCommitment_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes value_commitment = 1; * @return This builder for chaining. */ public Builder clearValueCommitment() { bitField0_ = (bitField0_ & ~0x00000001); valueCommitment_ = getDefaultInstance().getValueCommitment(); onChanged(); return this; } private com.google.protobuf.ByteString anchor_ = com.google.protobuf.ByteString.EMPTY; /** *
       * merkle root
       * 
* * bytes anchor = 2; * @return The anchor. */ @java.lang.Override public com.google.protobuf.ByteString getAnchor() { return anchor_; } /** *
       * merkle root
       * 
* * bytes anchor = 2; * @param value The anchor to set. * @return This builder for chaining. */ public Builder setAnchor(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } anchor_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * merkle root
       * 
* * bytes anchor = 2; * @return This builder for chaining. */ public Builder clearAnchor() { bitField0_ = (bitField0_ & ~0x00000002); anchor_ = getDefaultInstance().getAnchor(); onChanged(); return this; } private com.google.protobuf.ByteString nullifier_ = com.google.protobuf.ByteString.EMPTY; /** *
       * used for check double spend
       * 
* * bytes nullifier = 3; * @return The nullifier. */ @java.lang.Override public com.google.protobuf.ByteString getNullifier() { return nullifier_; } /** *
       * used for check double spend
       * 
* * bytes nullifier = 3; * @param value The nullifier to set. * @return This builder for chaining. */ public Builder setNullifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nullifier_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * used for check double spend
       * 
* * bytes nullifier = 3; * @return This builder for chaining. */ public Builder clearNullifier() { bitField0_ = (bitField0_ & ~0x00000004); nullifier_ = getDefaultInstance().getNullifier(); onChanged(); return this; } private com.google.protobuf.ByteString rk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * used for check spend authority signature
       * 
* * bytes rk = 4; * @return The rk. */ @java.lang.Override public com.google.protobuf.ByteString getRk() { return rk_; } /** *
       * used for check spend authority signature
       * 
* * bytes rk = 4; * @param value The rk to set. * @return This builder for chaining. */ public Builder setRk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rk_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * used for check spend authority signature
       * 
* * bytes rk = 4; * @return This builder for chaining. */ public Builder clearRk() { bitField0_ = (bitField0_ & ~0x00000008); rk_ = getDefaultInstance().getRk(); onChanged(); return this; } private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY; /** * bytes zkproof = 5; * @return The zkproof. */ @java.lang.Override public com.google.protobuf.ByteString getZkproof() { return zkproof_; } /** * bytes zkproof = 5; * @param value The zkproof to set. * @return This builder for chaining. */ public Builder setZkproof(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } zkproof_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes zkproof = 5; * @return This builder for chaining. */ public Builder clearZkproof() { bitField0_ = (bitField0_ & ~0x00000010); zkproof_ = getDefaultInstance().getZkproof(); onChanged(); return this; } private com.google.protobuf.ByteString spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes spend_authority_signature = 6; * @return The spendAuthoritySignature. */ @java.lang.Override public com.google.protobuf.ByteString getSpendAuthoritySignature() { return spendAuthoritySignature_; } /** * bytes spend_authority_signature = 6; * @param value The spendAuthoritySignature to set. * @return This builder for chaining. */ public Builder setSpendAuthoritySignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } spendAuthoritySignature_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes spend_authority_signature = 6; * @return This builder for chaining. */ public Builder clearSpendAuthoritySignature() { bitField0_ = (bitField0_ & ~0x00000020); spendAuthoritySignature_ = getDefaultInstance().getSpendAuthoritySignature(); 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.SpendDescription) } // @@protoc_insertion_point(class_scope:protocol.SpendDescription) private static final org.tron.trident.api.GrpcAPI.SpendDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.SpendDescription(); } public static org.tron.trident.api.GrpcAPI.SpendDescription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpendDescription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReceiveDescriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ReceiveDescription) com.google.protobuf.MessageOrBuilder { /** * bytes value_commitment = 1; * @return The valueCommitment. */ com.google.protobuf.ByteString getValueCommitment(); /** * bytes note_commitment = 2; * @return The noteCommitment. */ com.google.protobuf.ByteString getNoteCommitment(); /** *
     * for Encryption
     * 
* * bytes epk = 3; * @return The epk. */ com.google.protobuf.ByteString getEpk(); /** *
     * Encryption for incoming, decrypt it with ivk
     * 
* * bytes c_enc = 4; * @return The cEnc. */ com.google.protobuf.ByteString getCEnc(); /** *
     * Encryption for audit, decrypt it with ovk
     * 
* * bytes c_out = 5; * @return The cOut. */ com.google.protobuf.ByteString getCOut(); /** * bytes zkproof = 6; * @return The zkproof. */ com.google.protobuf.ByteString getZkproof(); } /** * Protobuf type {@code protocol.ReceiveDescription} */ public static final class ReceiveDescription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ReceiveDescription) ReceiveDescriptionOrBuilder { private static final long serialVersionUID = 0L; // Use ReceiveDescription.newBuilder() to construct. private ReceiveDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReceiveDescription() { valueCommitment_ = com.google.protobuf.ByteString.EMPTY; noteCommitment_ = com.google.protobuf.ByteString.EMPTY; epk_ = com.google.protobuf.ByteString.EMPTY; cEnc_ = com.google.protobuf.ByteString.EMPTY; cOut_ = com.google.protobuf.ByteString.EMPTY; zkproof_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReceiveDescription(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ReceiveDescription.class, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder.class); } public static final int VALUE_COMMITMENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value_commitment = 1; * @return The valueCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getValueCommitment() { return valueCommitment_; } public static final int NOTE_COMMITMENT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString noteCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes note_commitment = 2; * @return The noteCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getNoteCommitment() { return noteCommitment_; } public static final int EPK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString epk_ = com.google.protobuf.ByteString.EMPTY; /** *
     * for Encryption
     * 
* * bytes epk = 3; * @return The epk. */ @java.lang.Override public com.google.protobuf.ByteString getEpk() { return epk_; } public static final int C_ENC_FIELD_NUMBER = 4; private com.google.protobuf.ByteString cEnc_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Encryption for incoming, decrypt it with ivk
     * 
* * bytes c_enc = 4; * @return The cEnc. */ @java.lang.Override public com.google.protobuf.ByteString getCEnc() { return cEnc_; } public static final int C_OUT_FIELD_NUMBER = 5; private com.google.protobuf.ByteString cOut_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Encryption for audit, decrypt it with ovk
     * 
* * bytes c_out = 5; * @return The cOut. */ @java.lang.Override public com.google.protobuf.ByteString getCOut() { return cOut_; } public static final int ZKPROOF_FIELD_NUMBER = 6; private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY; /** * bytes zkproof = 6; * @return The zkproof. */ @java.lang.Override public com.google.protobuf.ByteString getZkproof() { return zkproof_; } 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 (!valueCommitment_.isEmpty()) { output.writeBytes(1, valueCommitment_); } if (!noteCommitment_.isEmpty()) { output.writeBytes(2, noteCommitment_); } if (!epk_.isEmpty()) { output.writeBytes(3, epk_); } if (!cEnc_.isEmpty()) { output.writeBytes(4, cEnc_); } if (!cOut_.isEmpty()) { output.writeBytes(5, cOut_); } if (!zkproof_.isEmpty()) { output.writeBytes(6, zkproof_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!valueCommitment_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, valueCommitment_); } if (!noteCommitment_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, noteCommitment_); } if (!epk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, epk_); } if (!cEnc_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, cEnc_); } if (!cOut_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, cOut_); } if (!zkproof_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, zkproof_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ReceiveDescription)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ReceiveDescription other = (org.tron.trident.api.GrpcAPI.ReceiveDescription) obj; if (!getValueCommitment() .equals(other.getValueCommitment())) return false; if (!getNoteCommitment() .equals(other.getNoteCommitment())) return false; if (!getEpk() .equals(other.getEpk())) return false; if (!getCEnc() .equals(other.getCEnc())) return false; if (!getCOut() .equals(other.getCOut())) return false; if (!getZkproof() .equals(other.getZkproof())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_COMMITMENT_FIELD_NUMBER; hash = (53 * hash) + getValueCommitment().hashCode(); hash = (37 * hash) + NOTE_COMMITMENT_FIELD_NUMBER; hash = (53 * hash) + getNoteCommitment().hashCode(); hash = (37 * hash) + EPK_FIELD_NUMBER; hash = (53 * hash) + getEpk().hashCode(); hash = (37 * hash) + C_ENC_FIELD_NUMBER; hash = (53 * hash) + getCEnc().hashCode(); hash = (37 * hash) + C_OUT_FIELD_NUMBER; hash = (53 * hash) + getCOut().hashCode(); hash = (37 * hash) + ZKPROOF_FIELD_NUMBER; hash = (53 * hash) + getZkproof().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ReceiveDescription 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.ReceiveDescription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ReceiveDescription) org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ReceiveDescription.class, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ReceiveDescription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueCommitment_ = com.google.protobuf.ByteString.EMPTY; noteCommitment_ = com.google.protobuf.ByteString.EMPTY; epk_ = com.google.protobuf.ByteString.EMPTY; cEnc_ = com.google.protobuf.ByteString.EMPTY; cOut_ = com.google.protobuf.ByteString.EMPTY; zkproof_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescription getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ReceiveDescription.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescription build() { org.tron.trident.api.GrpcAPI.ReceiveDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescription buildPartial() { org.tron.trident.api.GrpcAPI.ReceiveDescription result = new org.tron.trident.api.GrpcAPI.ReceiveDescription(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.ReceiveDescription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.valueCommitment_ = valueCommitment_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.noteCommitment_ = noteCommitment_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.epk_ = epk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cEnc_ = cEnc_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cOut_ = cOut_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.zkproof_ = zkproof_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ReceiveDescription) { return mergeFrom((org.tron.trident.api.GrpcAPI.ReceiveDescription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ReceiveDescription other) { if (other == org.tron.trident.api.GrpcAPI.ReceiveDescription.getDefaultInstance()) return this; if (other.getValueCommitment() != com.google.protobuf.ByteString.EMPTY) { setValueCommitment(other.getValueCommitment()); } if (other.getNoteCommitment() != com.google.protobuf.ByteString.EMPTY) { setNoteCommitment(other.getNoteCommitment()); } if (other.getEpk() != com.google.protobuf.ByteString.EMPTY) { setEpk(other.getEpk()); } if (other.getCEnc() != com.google.protobuf.ByteString.EMPTY) { setCEnc(other.getCEnc()); } if (other.getCOut() != com.google.protobuf.ByteString.EMPTY) { setCOut(other.getCOut()); } if (other.getZkproof() != com.google.protobuf.ByteString.EMPTY) { setZkproof(other.getZkproof()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { valueCommitment_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { noteCommitment_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { epk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { cEnc_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { cOut_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { zkproof_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value_commitment = 1; * @return The valueCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getValueCommitment() { return valueCommitment_; } /** * bytes value_commitment = 1; * @param value The valueCommitment to set. * @return This builder for chaining. */ public Builder setValueCommitment(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCommitment_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes value_commitment = 1; * @return This builder for chaining. */ public Builder clearValueCommitment() { bitField0_ = (bitField0_ & ~0x00000001); valueCommitment_ = getDefaultInstance().getValueCommitment(); onChanged(); return this; } private com.google.protobuf.ByteString noteCommitment_ = com.google.protobuf.ByteString.EMPTY; /** * bytes note_commitment = 2; * @return The noteCommitment. */ @java.lang.Override public com.google.protobuf.ByteString getNoteCommitment() { return noteCommitment_; } /** * bytes note_commitment = 2; * @param value The noteCommitment to set. * @return This builder for chaining. */ public Builder setNoteCommitment(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } noteCommitment_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes note_commitment = 2; * @return This builder for chaining. */ public Builder clearNoteCommitment() { bitField0_ = (bitField0_ & ~0x00000002); noteCommitment_ = getDefaultInstance().getNoteCommitment(); onChanged(); return this; } private com.google.protobuf.ByteString epk_ = com.google.protobuf.ByteString.EMPTY; /** *
       * for Encryption
       * 
* * bytes epk = 3; * @return The epk. */ @java.lang.Override public com.google.protobuf.ByteString getEpk() { return epk_; } /** *
       * for Encryption
       * 
* * bytes epk = 3; * @param value The epk to set. * @return This builder for chaining. */ public Builder setEpk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } epk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * for Encryption
       * 
* * bytes epk = 3; * @return This builder for chaining. */ public Builder clearEpk() { bitField0_ = (bitField0_ & ~0x00000004); epk_ = getDefaultInstance().getEpk(); onChanged(); return this; } private com.google.protobuf.ByteString cEnc_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Encryption for incoming, decrypt it with ivk
       * 
* * bytes c_enc = 4; * @return The cEnc. */ @java.lang.Override public com.google.protobuf.ByteString getCEnc() { return cEnc_; } /** *
       * Encryption for incoming, decrypt it with ivk
       * 
* * bytes c_enc = 4; * @param value The cEnc to set. * @return This builder for chaining. */ public Builder setCEnc(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cEnc_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Encryption for incoming, decrypt it with ivk
       * 
* * bytes c_enc = 4; * @return This builder for chaining. */ public Builder clearCEnc() { bitField0_ = (bitField0_ & ~0x00000008); cEnc_ = getDefaultInstance().getCEnc(); onChanged(); return this; } private com.google.protobuf.ByteString cOut_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Encryption for audit, decrypt it with ovk
       * 
* * bytes c_out = 5; * @return The cOut. */ @java.lang.Override public com.google.protobuf.ByteString getCOut() { return cOut_; } /** *
       * Encryption for audit, decrypt it with ovk
       * 
* * bytes c_out = 5; * @param value The cOut to set. * @return This builder for chaining. */ public Builder setCOut(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cOut_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Encryption for audit, decrypt it with ovk
       * 
* * bytes c_out = 5; * @return This builder for chaining. */ public Builder clearCOut() { bitField0_ = (bitField0_ & ~0x00000010); cOut_ = getDefaultInstance().getCOut(); onChanged(); return this; } private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY; /** * bytes zkproof = 6; * @return The zkproof. */ @java.lang.Override public com.google.protobuf.ByteString getZkproof() { return zkproof_; } /** * bytes zkproof = 6; * @param value The zkproof to set. * @return This builder for chaining. */ public Builder setZkproof(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } zkproof_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes zkproof = 6; * @return This builder for chaining. */ public Builder clearZkproof() { bitField0_ = (bitField0_ & ~0x00000020); zkproof_ = getDefaultInstance().getZkproof(); 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.ReceiveDescription) } // @@protoc_insertion_point(class_scope:protocol.ReceiveDescription) private static final org.tron.trident.api.GrpcAPI.ReceiveDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ReceiveDescription(); } public static org.tron.trident.api.GrpcAPI.ReceiveDescription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReceiveDescription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShieldedTRC20ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ShieldedTRC20Parameters) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.SpendDescription spend_description = 1; */ java.util.List getSpendDescriptionList(); /** * repeated .protocol.SpendDescription spend_description = 1; */ org.tron.trident.api.GrpcAPI.SpendDescription getSpendDescription(int index); /** * repeated .protocol.SpendDescription spend_description = 1; */ int getSpendDescriptionCount(); /** * repeated .protocol.SpendDescription spend_description = 1; */ java.util.List getSpendDescriptionOrBuilderList(); /** * repeated .protocol.SpendDescription spend_description = 1; */ org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder( int index); /** * repeated .protocol.ReceiveDescription receive_description = 2; */ java.util.List getReceiveDescriptionList(); /** * repeated .protocol.ReceiveDescription receive_description = 2; */ org.tron.trident.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index); /** * repeated .protocol.ReceiveDescription receive_description = 2; */ int getReceiveDescriptionCount(); /** * repeated .protocol.ReceiveDescription receive_description = 2; */ java.util.List getReceiveDescriptionOrBuilderList(); /** * repeated .protocol.ReceiveDescription receive_description = 2; */ org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder( int index); /** * bytes binding_signature = 3; * @return The bindingSignature. */ com.google.protobuf.ByteString getBindingSignature(); /** * bytes message_hash = 4; * @return The messageHash. */ com.google.protobuf.ByteString getMessageHash(); /** * string trigger_contract_input = 5; * @return The triggerContractInput. */ java.lang.String getTriggerContractInput(); /** * string trigger_contract_input = 5; * @return The bytes for triggerContractInput. */ com.google.protobuf.ByteString getTriggerContractInputBytes(); /** * string parameter_type = 6; * @return The parameterType. */ java.lang.String getParameterType(); /** * string parameter_type = 6; * @return The bytes for parameterType. */ com.google.protobuf.ByteString getParameterTypeBytes(); } /** * Protobuf type {@code protocol.ShieldedTRC20Parameters} */ public static final class ShieldedTRC20Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ShieldedTRC20Parameters) ShieldedTRC20ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use ShieldedTRC20Parameters.newBuilder() to construct. private ShieldedTRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShieldedTRC20Parameters() { spendDescription_ = java.util.Collections.emptyList(); receiveDescription_ = java.util.Collections.emptyList(); bindingSignature_ = com.google.protobuf.ByteString.EMPTY; messageHash_ = com.google.protobuf.ByteString.EMPTY; triggerContractInput_ = ""; parameterType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShieldedTRC20Parameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder.class); } public static final int SPEND_DESCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List spendDescription_; /** * repeated .protocol.SpendDescription spend_description = 1; */ @java.lang.Override public java.util.List getSpendDescriptionList() { return spendDescription_; } /** * repeated .protocol.SpendDescription spend_description = 1; */ @java.lang.Override public java.util.List getSpendDescriptionOrBuilderList() { return spendDescription_; } /** * repeated .protocol.SpendDescription spend_description = 1; */ @java.lang.Override public int getSpendDescriptionCount() { return spendDescription_.size(); } /** * repeated .protocol.SpendDescription spend_description = 1; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescription getSpendDescription(int index) { return spendDescription_.get(index); } /** * repeated .protocol.SpendDescription spend_description = 1; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder( int index) { return spendDescription_.get(index); } public static final int RECEIVE_DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List receiveDescription_; /** * repeated .protocol.ReceiveDescription receive_description = 2; */ @java.lang.Override public java.util.List getReceiveDescriptionList() { return receiveDescription_; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ @java.lang.Override public java.util.List getReceiveDescriptionOrBuilderList() { return receiveDescription_; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ @java.lang.Override public int getReceiveDescriptionCount() { return receiveDescription_.size(); } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index) { return receiveDescription_.get(index); } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder( int index) { return receiveDescription_.get(index); } public static final int BINDING_SIGNATURE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString bindingSignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes binding_signature = 3; * @return The bindingSignature. */ @java.lang.Override public com.google.protobuf.ByteString getBindingSignature() { return bindingSignature_; } public static final int MESSAGE_HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString messageHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes message_hash = 4; * @return The messageHash. */ @java.lang.Override public com.google.protobuf.ByteString getMessageHash() { return messageHash_; } public static final int TRIGGER_CONTRACT_INPUT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object triggerContractInput_ = ""; /** * string trigger_contract_input = 5; * @return The triggerContractInput. */ @java.lang.Override public java.lang.String getTriggerContractInput() { java.lang.Object ref = triggerContractInput_; 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(); triggerContractInput_ = s; return s; } } /** * string trigger_contract_input = 5; * @return The bytes for triggerContractInput. */ @java.lang.Override public com.google.protobuf.ByteString getTriggerContractInputBytes() { java.lang.Object ref = triggerContractInput_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); triggerContractInput_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETER_TYPE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object parameterType_ = ""; /** * string parameter_type = 6; * @return The parameterType. */ @java.lang.Override public java.lang.String getParameterType() { java.lang.Object ref = parameterType_; 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(); parameterType_ = s; return s; } } /** * string parameter_type = 6; * @return The bytes for parameterType. */ @java.lang.Override public com.google.protobuf.ByteString getParameterTypeBytes() { java.lang.Object ref = parameterType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameterType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spendDescription_.size(); i++) { output.writeMessage(1, spendDescription_.get(i)); } for (int i = 0; i < receiveDescription_.size(); i++) { output.writeMessage(2, receiveDescription_.get(i)); } if (!bindingSignature_.isEmpty()) { output.writeBytes(3, bindingSignature_); } if (!messageHash_.isEmpty()) { output.writeBytes(4, messageHash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerContractInput_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, triggerContractInput_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parameterType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < spendDescription_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, spendDescription_.get(i)); } for (int i = 0; i < receiveDescription_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, receiveDescription_.get(i)); } if (!bindingSignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, bindingSignature_); } if (!messageHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, messageHash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerContractInput_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, triggerContractInput_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parameterType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters other = (org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters) obj; if (!getSpendDescriptionList() .equals(other.getSpendDescriptionList())) return false; if (!getReceiveDescriptionList() .equals(other.getReceiveDescriptionList())) return false; if (!getBindingSignature() .equals(other.getBindingSignature())) return false; if (!getMessageHash() .equals(other.getMessageHash())) return false; if (!getTriggerContractInput() .equals(other.getTriggerContractInput())) return false; if (!getParameterType() .equals(other.getParameterType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSpendDescriptionCount() > 0) { hash = (37 * hash) + SPEND_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSpendDescriptionList().hashCode(); } if (getReceiveDescriptionCount() > 0) { hash = (37 * hash) + RECEIVE_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getReceiveDescriptionList().hashCode(); } hash = (37 * hash) + BINDING_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getBindingSignature().hashCode(); hash = (37 * hash) + MESSAGE_HASH_FIELD_NUMBER; hash = (53 * hash) + getMessageHash().hashCode(); hash = (37 * hash) + TRIGGER_CONTRACT_INPUT_FIELD_NUMBER; hash = (53 * hash) + getTriggerContractInput().hashCode(); hash = (37 * hash) + PARAMETER_TYPE_FIELD_NUMBER; hash = (53 * hash) + getParameterType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters 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.ShieldedTRC20Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ShieldedTRC20Parameters) org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.class, org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (spendDescriptionBuilder_ == null) { spendDescription_ = java.util.Collections.emptyList(); } else { spendDescription_ = null; spendDescriptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (receiveDescriptionBuilder_ == null) { receiveDescription_ = java.util.Collections.emptyList(); } else { receiveDescription_ = null; receiveDescriptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); bindingSignature_ = com.google.protobuf.ByteString.EMPTY; messageHash_ = com.google.protobuf.ByteString.EMPTY; triggerContractInput_ = ""; parameterType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20Parameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters build() { org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters buildPartial() { org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters result = new org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters result) { if (spendDescriptionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spendDescription_ = java.util.Collections.unmodifiableList(spendDescription_); bitField0_ = (bitField0_ & ~0x00000001); } result.spendDescription_ = spendDescription_; } else { result.spendDescription_ = spendDescriptionBuilder_.build(); } if (receiveDescriptionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { receiveDescription_ = java.util.Collections.unmodifiableList(receiveDescription_); bitField0_ = (bitField0_ & ~0x00000002); } result.receiveDescription_ = receiveDescription_; } else { result.receiveDescription_ = receiveDescriptionBuilder_.build(); } } private void buildPartial0(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.bindingSignature_ = bindingSignature_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.messageHash_ = messageHash_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.triggerContractInput_ = triggerContractInput_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.parameterType_ = parameterType_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters other) { if (other == org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance()) return this; if (spendDescriptionBuilder_ == null) { if (!other.spendDescription_.isEmpty()) { if (spendDescription_.isEmpty()) { spendDescription_ = other.spendDescription_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpendDescriptionIsMutable(); spendDescription_.addAll(other.spendDescription_); } onChanged(); } } else { if (!other.spendDescription_.isEmpty()) { if (spendDescriptionBuilder_.isEmpty()) { spendDescriptionBuilder_.dispose(); spendDescriptionBuilder_ = null; spendDescription_ = other.spendDescription_; bitField0_ = (bitField0_ & ~0x00000001); spendDescriptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpendDescriptionFieldBuilder() : null; } else { spendDescriptionBuilder_.addAllMessages(other.spendDescription_); } } } if (receiveDescriptionBuilder_ == null) { if (!other.receiveDescription_.isEmpty()) { if (receiveDescription_.isEmpty()) { receiveDescription_ = other.receiveDescription_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReceiveDescriptionIsMutable(); receiveDescription_.addAll(other.receiveDescription_); } onChanged(); } } else { if (!other.receiveDescription_.isEmpty()) { if (receiveDescriptionBuilder_.isEmpty()) { receiveDescriptionBuilder_.dispose(); receiveDescriptionBuilder_ = null; receiveDescription_ = other.receiveDescription_; bitField0_ = (bitField0_ & ~0x00000002); receiveDescriptionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReceiveDescriptionFieldBuilder() : null; } else { receiveDescriptionBuilder_.addAllMessages(other.receiveDescription_); } } } if (other.getBindingSignature() != com.google.protobuf.ByteString.EMPTY) { setBindingSignature(other.getBindingSignature()); } if (other.getMessageHash() != com.google.protobuf.ByteString.EMPTY) { setMessageHash(other.getMessageHash()); } if (!other.getTriggerContractInput().isEmpty()) { triggerContractInput_ = other.triggerContractInput_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getParameterType().isEmpty()) { parameterType_ = other.parameterType_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.tron.trident.api.GrpcAPI.SpendDescription m = input.readMessage( org.tron.trident.api.GrpcAPI.SpendDescription.parser(), extensionRegistry); if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); spendDescription_.add(m); } else { spendDescriptionBuilder_.addMessage(m); } break; } // case 10 case 18: { org.tron.trident.api.GrpcAPI.ReceiveDescription m = input.readMessage( org.tron.trident.api.GrpcAPI.ReceiveDescription.parser(), extensionRegistry); if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); receiveDescription_.add(m); } else { receiveDescriptionBuilder_.addMessage(m); } break; } // case 18 case 26: { bindingSignature_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { messageHash_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { triggerContractInput_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { parameterType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List spendDescription_ = java.util.Collections.emptyList(); private void ensureSpendDescriptionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { spendDescription_ = new java.util.ArrayList(spendDescription_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendDescription, org.tron.trident.api.GrpcAPI.SpendDescription.Builder, org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder> spendDescriptionBuilder_; /** * repeated .protocol.SpendDescription spend_description = 1; */ public java.util.List getSpendDescriptionList() { if (spendDescriptionBuilder_ == null) { return java.util.Collections.unmodifiableList(spendDescription_); } else { return spendDescriptionBuilder_.getMessageList(); } } /** * repeated .protocol.SpendDescription spend_description = 1; */ public int getSpendDescriptionCount() { if (spendDescriptionBuilder_ == null) { return spendDescription_.size(); } else { return spendDescriptionBuilder_.getCount(); } } /** * repeated .protocol.SpendDescription spend_description = 1; */ public org.tron.trident.api.GrpcAPI.SpendDescription getSpendDescription(int index) { if (spendDescriptionBuilder_ == null) { return spendDescription_.get(index); } else { return spendDescriptionBuilder_.getMessage(index); } } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder setSpendDescription( int index, org.tron.trident.api.GrpcAPI.SpendDescription value) { if (spendDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendDescriptionIsMutable(); spendDescription_.set(index, value); onChanged(); } else { spendDescriptionBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder setSpendDescription( int index, org.tron.trident.api.GrpcAPI.SpendDescription.Builder builderForValue) { if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); spendDescription_.set(index, builderForValue.build()); onChanged(); } else { spendDescriptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder addSpendDescription(org.tron.trident.api.GrpcAPI.SpendDescription value) { if (spendDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendDescriptionIsMutable(); spendDescription_.add(value); onChanged(); } else { spendDescriptionBuilder_.addMessage(value); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder addSpendDescription( int index, org.tron.trident.api.GrpcAPI.SpendDescription value) { if (spendDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendDescriptionIsMutable(); spendDescription_.add(index, value); onChanged(); } else { spendDescriptionBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder addSpendDescription( org.tron.trident.api.GrpcAPI.SpendDescription.Builder builderForValue) { if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); spendDescription_.add(builderForValue.build()); onChanged(); } else { spendDescriptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder addSpendDescription( int index, org.tron.trident.api.GrpcAPI.SpendDescription.Builder builderForValue) { if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); spendDescription_.add(index, builderForValue.build()); onChanged(); } else { spendDescriptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder addAllSpendDescription( java.lang.Iterable values) { if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, spendDescription_); onChanged(); } else { spendDescriptionBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder clearSpendDescription() { if (spendDescriptionBuilder_ == null) { spendDescription_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { spendDescriptionBuilder_.clear(); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public Builder removeSpendDescription(int index) { if (spendDescriptionBuilder_ == null) { ensureSpendDescriptionIsMutable(); spendDescription_.remove(index); onChanged(); } else { spendDescriptionBuilder_.remove(index); } return this; } /** * repeated .protocol.SpendDescription spend_description = 1; */ public org.tron.trident.api.GrpcAPI.SpendDescription.Builder getSpendDescriptionBuilder( int index) { return getSpendDescriptionFieldBuilder().getBuilder(index); } /** * repeated .protocol.SpendDescription spend_description = 1; */ public org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder( int index) { if (spendDescriptionBuilder_ == null) { return spendDescription_.get(index); } else { return spendDescriptionBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.SpendDescription spend_description = 1; */ public java.util.List getSpendDescriptionOrBuilderList() { if (spendDescriptionBuilder_ != null) { return spendDescriptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(spendDescription_); } } /** * repeated .protocol.SpendDescription spend_description = 1; */ public org.tron.trident.api.GrpcAPI.SpendDescription.Builder addSpendDescriptionBuilder() { return getSpendDescriptionFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.SpendDescription.getDefaultInstance()); } /** * repeated .protocol.SpendDescription spend_description = 1; */ public org.tron.trident.api.GrpcAPI.SpendDescription.Builder addSpendDescriptionBuilder( int index) { return getSpendDescriptionFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.SpendDescription.getDefaultInstance()); } /** * repeated .protocol.SpendDescription spend_description = 1; */ public java.util.List getSpendDescriptionBuilderList() { return getSpendDescriptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendDescription, org.tron.trident.api.GrpcAPI.SpendDescription.Builder, org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder> getSpendDescriptionFieldBuilder() { if (spendDescriptionBuilder_ == null) { spendDescriptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.SpendDescription, org.tron.trident.api.GrpcAPI.SpendDescription.Builder, org.tron.trident.api.GrpcAPI.SpendDescriptionOrBuilder>( spendDescription_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spendDescription_ = null; } return spendDescriptionBuilder_; } private java.util.List receiveDescription_ = java.util.Collections.emptyList(); private void ensureReceiveDescriptionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { receiveDescription_ = new java.util.ArrayList(receiveDescription_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveDescription, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder, org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder> receiveDescriptionBuilder_; /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public java.util.List getReceiveDescriptionList() { if (receiveDescriptionBuilder_ == null) { return java.util.Collections.unmodifiableList(receiveDescription_); } else { return receiveDescriptionBuilder_.getMessageList(); } } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public int getReceiveDescriptionCount() { if (receiveDescriptionBuilder_ == null) { return receiveDescription_.size(); } else { return receiveDescriptionBuilder_.getCount(); } } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public org.tron.trident.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index) { if (receiveDescriptionBuilder_ == null) { return receiveDescription_.get(index); } else { return receiveDescriptionBuilder_.getMessage(index); } } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder setReceiveDescription( int index, org.tron.trident.api.GrpcAPI.ReceiveDescription value) { if (receiveDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReceiveDescriptionIsMutable(); receiveDescription_.set(index, value); onChanged(); } else { receiveDescriptionBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder setReceiveDescription( int index, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder builderForValue) { if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); receiveDescription_.set(index, builderForValue.build()); onChanged(); } else { receiveDescriptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder addReceiveDescription(org.tron.trident.api.GrpcAPI.ReceiveDescription value) { if (receiveDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReceiveDescriptionIsMutable(); receiveDescription_.add(value); onChanged(); } else { receiveDescriptionBuilder_.addMessage(value); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder addReceiveDescription( int index, org.tron.trident.api.GrpcAPI.ReceiveDescription value) { if (receiveDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReceiveDescriptionIsMutable(); receiveDescription_.add(index, value); onChanged(); } else { receiveDescriptionBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder addReceiveDescription( org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder builderForValue) { if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); receiveDescription_.add(builderForValue.build()); onChanged(); } else { receiveDescriptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder addReceiveDescription( int index, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder builderForValue) { if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); receiveDescription_.add(index, builderForValue.build()); onChanged(); } else { receiveDescriptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder addAllReceiveDescription( java.lang.Iterable values) { if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, receiveDescription_); onChanged(); } else { receiveDescriptionBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder clearReceiveDescription() { if (receiveDescriptionBuilder_ == null) { receiveDescription_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { receiveDescriptionBuilder_.clear(); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public Builder removeReceiveDescription(int index) { if (receiveDescriptionBuilder_ == null) { ensureReceiveDescriptionIsMutable(); receiveDescription_.remove(index); onChanged(); } else { receiveDescriptionBuilder_.remove(index); } return this; } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder getReceiveDescriptionBuilder( int index) { return getReceiveDescriptionFieldBuilder().getBuilder(index); } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder( int index) { if (receiveDescriptionBuilder_ == null) { return receiveDescription_.get(index); } else { return receiveDescriptionBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public java.util.List getReceiveDescriptionOrBuilderList() { if (receiveDescriptionBuilder_ != null) { return receiveDescriptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(receiveDescription_); } } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder addReceiveDescriptionBuilder() { return getReceiveDescriptionFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.ReceiveDescription.getDefaultInstance()); } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder addReceiveDescriptionBuilder( int index) { return getReceiveDescriptionFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.ReceiveDescription.getDefaultInstance()); } /** * repeated .protocol.ReceiveDescription receive_description = 2; */ public java.util.List getReceiveDescriptionBuilderList() { return getReceiveDescriptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveDescription, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder, org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder> getReceiveDescriptionFieldBuilder() { if (receiveDescriptionBuilder_ == null) { receiveDescriptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.ReceiveDescription, org.tron.trident.api.GrpcAPI.ReceiveDescription.Builder, org.tron.trident.api.GrpcAPI.ReceiveDescriptionOrBuilder>( receiveDescription_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); receiveDescription_ = null; } return receiveDescriptionBuilder_; } private com.google.protobuf.ByteString bindingSignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes binding_signature = 3; * @return The bindingSignature. */ @java.lang.Override public com.google.protobuf.ByteString getBindingSignature() { return bindingSignature_; } /** * bytes binding_signature = 3; * @param value The bindingSignature to set. * @return This builder for chaining. */ public Builder setBindingSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bindingSignature_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes binding_signature = 3; * @return This builder for chaining. */ public Builder clearBindingSignature() { bitField0_ = (bitField0_ & ~0x00000004); bindingSignature_ = getDefaultInstance().getBindingSignature(); onChanged(); return this; } private com.google.protobuf.ByteString messageHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes message_hash = 4; * @return The messageHash. */ @java.lang.Override public com.google.protobuf.ByteString getMessageHash() { return messageHash_; } /** * bytes message_hash = 4; * @param value The messageHash to set. * @return This builder for chaining. */ public Builder setMessageHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } messageHash_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes message_hash = 4; * @return This builder for chaining. */ public Builder clearMessageHash() { bitField0_ = (bitField0_ & ~0x00000008); messageHash_ = getDefaultInstance().getMessageHash(); onChanged(); return this; } private java.lang.Object triggerContractInput_ = ""; /** * string trigger_contract_input = 5; * @return The triggerContractInput. */ public java.lang.String getTriggerContractInput() { java.lang.Object ref = triggerContractInput_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerContractInput_ = s; return s; } else { return (java.lang.String) ref; } } /** * string trigger_contract_input = 5; * @return The bytes for triggerContractInput. */ public com.google.protobuf.ByteString getTriggerContractInputBytes() { java.lang.Object ref = triggerContractInput_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); triggerContractInput_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string trigger_contract_input = 5; * @param value The triggerContractInput to set. * @return This builder for chaining. */ public Builder setTriggerContractInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } triggerContractInput_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string trigger_contract_input = 5; * @return This builder for chaining. */ public Builder clearTriggerContractInput() { triggerContractInput_ = getDefaultInstance().getTriggerContractInput(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string trigger_contract_input = 5; * @param value The bytes for triggerContractInput to set. * @return This builder for chaining. */ public Builder setTriggerContractInputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); triggerContractInput_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object parameterType_ = ""; /** * string parameter_type = 6; * @return The parameterType. */ public java.lang.String getParameterType() { java.lang.Object ref = parameterType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parameterType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string parameter_type = 6; * @return The bytes for parameterType. */ public com.google.protobuf.ByteString getParameterTypeBytes() { java.lang.Object ref = parameterType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameterType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string parameter_type = 6; * @param value The parameterType to set. * @return This builder for chaining. */ public Builder setParameterType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parameterType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string parameter_type = 6; * @return This builder for chaining. */ public Builder clearParameterType() { parameterType_ = getDefaultInstance().getParameterType(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * string parameter_type = 6; * @param value The bytes for parameterType to set. * @return This builder for chaining. */ public Builder setParameterTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parameterType_ = value; bitField0_ |= 0x00000020; 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.ShieldedTRC20Parameters) } // @@protoc_insertion_point(class_scope:protocol.ShieldedTRC20Parameters) private static final org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters(); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShieldedTRC20Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IvkDecryptTRC20ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.IvkDecryptTRC20Parameters) com.google.protobuf.MessageOrBuilder { /** * int64 start_block_index = 1; * @return The startBlockIndex. */ long getStartBlockIndex(); /** * int64 end_block_index = 2; * @return The endBlockIndex. */ long getEndBlockIndex(); /** * bytes shielded_TRC20_contract_address = 3; * @return The shieldedTRC20ContractAddress. */ com.google.protobuf.ByteString getShieldedTRC20ContractAddress(); /** * bytes ivk = 4; * @return The ivk. */ com.google.protobuf.ByteString getIvk(); /** * bytes ak = 5; * @return The ak. */ com.google.protobuf.ByteString getAk(); /** * bytes nk = 6; * @return The nk. */ com.google.protobuf.ByteString getNk(); /** * repeated string events = 7; * @return A list containing the events. */ java.util.List getEventsList(); /** * repeated string events = 7; * @return The count of events. */ int getEventsCount(); /** * repeated string events = 7; * @param index The index of the element to return. * @return The events at the given index. */ java.lang.String getEvents(int index); /** * repeated string events = 7; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ com.google.protobuf.ByteString getEventsBytes(int index); } /** * Protobuf type {@code protocol.IvkDecryptTRC20Parameters} */ public static final class IvkDecryptTRC20Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.IvkDecryptTRC20Parameters) IvkDecryptTRC20ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use IvkDecryptTRC20Parameters.newBuilder() to construct. private IvkDecryptTRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IvkDecryptTRC20Parameters() { shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; ivk_ = com.google.protobuf.ByteString.EMPTY; ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IvkDecryptTRC20Parameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IvkDecryptTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IvkDecryptTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.class, org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.Builder.class); } public static final int START_BLOCK_INDEX_FIELD_NUMBER = 1; private long startBlockIndex_ = 0L; /** * int64 start_block_index = 1; * @return The startBlockIndex. */ @java.lang.Override public long getStartBlockIndex() { return startBlockIndex_; } public static final int END_BLOCK_INDEX_FIELD_NUMBER = 2; private long endBlockIndex_ = 0L; /** * int64 end_block_index = 2; * @return The endBlockIndex. */ @java.lang.Override public long getEndBlockIndex() { return endBlockIndex_; } public static final int SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 3; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } public static final int IVK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 4; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } public static final int AK_FIELD_NUMBER = 5; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 5; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } public static final int NK_FIELD_NUMBER = 6; private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 6; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } public static final int EVENTS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string events = 7; * @return A list containing the events. */ public com.google.protobuf.ProtocolStringList getEventsList() { return events_; } /** * repeated string events = 7; * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** * repeated string events = 7; * @param index The index of the element to return. * @return The events at the given index. */ public java.lang.String getEvents(int index) { return events_.get(index); } /** * repeated string events = 7; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(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 (startBlockIndex_ != 0L) { output.writeInt64(1, startBlockIndex_); } if (endBlockIndex_ != 0L) { output.writeInt64(2, endBlockIndex_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { output.writeBytes(3, shieldedTRC20ContractAddress_); } if (!ivk_.isEmpty()) { output.writeBytes(4, ivk_); } if (!ak_.isEmpty()) { output.writeBytes(5, ak_); } if (!nk_.isEmpty()) { output.writeBytes(6, nk_); } for (int i = 0; i < events_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, events_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startBlockIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, startBlockIndex_); } if (endBlockIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, endBlockIndex_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, shieldedTRC20ContractAddress_); } if (!ivk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, ivk_); } if (!ak_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, ak_); } if (!nk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, nk_); } { int dataSize = 0; for (int i = 0; i < events_.size(); i++) { dataSize += computeStringSizeNoTag(events_.getRaw(i)); } size += dataSize; size += 1 * getEventsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters other = (org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters) obj; if (getStartBlockIndex() != other.getStartBlockIndex()) return false; if (getEndBlockIndex() != other.getEndBlockIndex()) return false; if (!getShieldedTRC20ContractAddress() .equals(other.getShieldedTRC20ContractAddress())) return false; if (!getIvk() .equals(other.getIvk())) return false; if (!getAk() .equals(other.getAk())) return false; if (!getNk() .equals(other.getNk())) return false; if (!getEventsList() .equals(other.getEventsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_BLOCK_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartBlockIndex()); hash = (37 * hash) + END_BLOCK_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndBlockIndex()); hash = (37 * hash) + SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20ContractAddress().hashCode(); hash = (37 * hash) + IVK_FIELD_NUMBER; hash = (53 * hash) + getIvk().hashCode(); hash = (37 * hash) + AK_FIELD_NUMBER; hash = (53 * hash) + getAk().hashCode(); hash = (37 * hash) + NK_FIELD_NUMBER; hash = (53 * hash) + getNk().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters 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.IvkDecryptTRC20Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.IvkDecryptTRC20Parameters) org.tron.trident.api.GrpcAPI.IvkDecryptTRC20ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IvkDecryptTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IvkDecryptTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.class, org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startBlockIndex_ = 0L; endBlockIndex_ = 0L; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; ivk_ = com.google.protobuf.ByteString.EMPTY; ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_IvkDecryptTRC20Parameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters build() { org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters buildPartial() { org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters result = new org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.startBlockIndex_ = startBlockIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.endBlockIndex_ = endBlockIndex_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.shieldedTRC20ContractAddress_ = shieldedTRC20ContractAddress_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ivk_ = ivk_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ak_ = ak_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.nk_ = nk_; } if (((from_bitField0_ & 0x00000040) != 0)) { events_.makeImmutable(); result.events_ = events_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters other) { if (other == org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters.getDefaultInstance()) return this; if (other.getStartBlockIndex() != 0L) { setStartBlockIndex(other.getStartBlockIndex()); } if (other.getEndBlockIndex() != 0L) { setEndBlockIndex(other.getEndBlockIndex()); } if (other.getShieldedTRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) { setShieldedTRC20ContractAddress(other.getShieldedTRC20ContractAddress()); } if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) { setIvk(other.getIvk()); } if (other.getAk() != com.google.protobuf.ByteString.EMPTY) { setAk(other.getAk()); } if (other.getNk() != com.google.protobuf.ByteString.EMPTY) { setNk(other.getNk()); } if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ |= 0x00000040; } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startBlockIndex_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { endBlockIndex_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { shieldedTRC20ContractAddress_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { ivk_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ak_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { nk_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureEventsIsMutable(); events_.add(s); break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long startBlockIndex_ ; /** * int64 start_block_index = 1; * @return The startBlockIndex. */ @java.lang.Override public long getStartBlockIndex() { return startBlockIndex_; } /** * int64 start_block_index = 1; * @param value The startBlockIndex to set. * @return This builder for chaining. */ public Builder setStartBlockIndex(long value) { startBlockIndex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 start_block_index = 1; * @return This builder for chaining. */ public Builder clearStartBlockIndex() { bitField0_ = (bitField0_ & ~0x00000001); startBlockIndex_ = 0L; onChanged(); return this; } private long endBlockIndex_ ; /** * int64 end_block_index = 2; * @return The endBlockIndex. */ @java.lang.Override public long getEndBlockIndex() { return endBlockIndex_; } /** * int64 end_block_index = 2; * @param value The endBlockIndex to set. * @return This builder for chaining. */ public Builder setEndBlockIndex(long value) { endBlockIndex_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 end_block_index = 2; * @return This builder for chaining. */ public Builder clearEndBlockIndex() { bitField0_ = (bitField0_ & ~0x00000002); endBlockIndex_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 3; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } /** * bytes shielded_TRC20_contract_address = 3; * @param value The shieldedTRC20ContractAddress to set. * @return This builder for chaining. */ public Builder setShieldedTRC20ContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shieldedTRC20ContractAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes shielded_TRC20_contract_address = 3; * @return This builder for chaining. */ public Builder clearShieldedTRC20ContractAddress() { bitField0_ = (bitField0_ & ~0x00000004); shieldedTRC20ContractAddress_ = getDefaultInstance().getShieldedTRC20ContractAddress(); onChanged(); return this; } private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ivk = 4; * @return The ivk. */ @java.lang.Override public com.google.protobuf.ByteString getIvk() { return ivk_; } /** * bytes ivk = 4; * @param value The ivk to set. * @return This builder for chaining. */ public Builder setIvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ivk_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes ivk = 4; * @return This builder for chaining. */ public Builder clearIvk() { bitField0_ = (bitField0_ & ~0x00000008); ivk_ = getDefaultInstance().getIvk(); onChanged(); return this; } private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 5; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } /** * bytes ak = 5; * @param value The ak to set. * @return This builder for chaining. */ public Builder setAk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ak_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes ak = 5; * @return This builder for chaining. */ public Builder clearAk() { bitField0_ = (bitField0_ & ~0x00000010); ak_ = getDefaultInstance().getAk(); onChanged(); return this; } private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 6; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } /** * bytes nk = 6; * @param value The nk to set. * @return This builder for chaining. */ public Builder setNk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nk_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes nk = 6; * @return This builder for chaining. */ public Builder clearNk() { bitField0_ = (bitField0_ & ~0x00000020); nk_ = getDefaultInstance().getNk(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEventsIsMutable() { if (!events_.isModifiable()) { events_ = new com.google.protobuf.LazyStringArrayList(events_); } bitField0_ |= 0x00000040; } /** * repeated string events = 7; * @return A list containing the events. */ public com.google.protobuf.ProtocolStringList getEventsList() { events_.makeImmutable(); return events_; } /** * repeated string events = 7; * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** * repeated string events = 7; * @param index The index of the element to return. * @return The events at the given index. */ public java.lang.String getEvents(int index) { return events_.get(index); } /** * repeated string events = 7; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(index); } /** * repeated string events = 7; * @param index The index to set the value at. * @param value The events to set. * @return This builder for chaining. */ public Builder setEvents( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string events = 7; * @param value The events to add. * @return This builder for chaining. */ public Builder addEvents( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string events = 7; * @param values The events to add. * @return This builder for chaining. */ public Builder addAllEvents( java.lang.Iterable values) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string events = 7; * @return This builder for chaining. */ public Builder clearEvents() { events_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** * repeated string events = 7; * @param value The bytes of the events to add. * @return This builder for chaining. */ public Builder addEventsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000040; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.IvkDecryptTRC20Parameters) } // @@protoc_insertion_point(class_scope:protocol.IvkDecryptTRC20Parameters) private static final org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters(); } public static org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IvkDecryptTRC20Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.IvkDecryptTRC20Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OvkDecryptTRC20ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.OvkDecryptTRC20Parameters) com.google.protobuf.MessageOrBuilder { /** * int64 start_block_index = 1; * @return The startBlockIndex. */ long getStartBlockIndex(); /** * int64 end_block_index = 2; * @return The endBlockIndex. */ long getEndBlockIndex(); /** * bytes ovk = 3; * @return The ovk. */ com.google.protobuf.ByteString getOvk(); /** * bytes shielded_TRC20_contract_address = 4; * @return The shieldedTRC20ContractAddress. */ com.google.protobuf.ByteString getShieldedTRC20ContractAddress(); /** * repeated string events = 5; * @return A list containing the events. */ java.util.List getEventsList(); /** * repeated string events = 5; * @return The count of events. */ int getEventsCount(); /** * repeated string events = 5; * @param index The index of the element to return. * @return The events at the given index. */ java.lang.String getEvents(int index); /** * repeated string events = 5; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ com.google.protobuf.ByteString getEventsBytes(int index); } /** * Protobuf type {@code protocol.OvkDecryptTRC20Parameters} */ public static final class OvkDecryptTRC20Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.OvkDecryptTRC20Parameters) OvkDecryptTRC20ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use OvkDecryptTRC20Parameters.newBuilder() to construct. private OvkDecryptTRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OvkDecryptTRC20Parameters() { ovk_ = com.google.protobuf.ByteString.EMPTY; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OvkDecryptTRC20Parameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_OvkDecryptTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_OvkDecryptTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.class, org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.Builder.class); } public static final int START_BLOCK_INDEX_FIELD_NUMBER = 1; private long startBlockIndex_ = 0L; /** * int64 start_block_index = 1; * @return The startBlockIndex. */ @java.lang.Override public long getStartBlockIndex() { return startBlockIndex_; } public static final int END_BLOCK_INDEX_FIELD_NUMBER = 2; private long endBlockIndex_ = 0L; /** * int64 end_block_index = 2; * @return The endBlockIndex. */ @java.lang.Override public long getEndBlockIndex() { return endBlockIndex_; } public static final int OVK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } public static final int SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 4; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } public static final int EVENTS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string events = 5; * @return A list containing the events. */ public com.google.protobuf.ProtocolStringList getEventsList() { return events_; } /** * repeated string events = 5; * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** * repeated string events = 5; * @param index The index of the element to return. * @return The events at the given index. */ public java.lang.String getEvents(int index) { return events_.get(index); } /** * repeated string events = 5; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(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 (startBlockIndex_ != 0L) { output.writeInt64(1, startBlockIndex_); } if (endBlockIndex_ != 0L) { output.writeInt64(2, endBlockIndex_); } if (!ovk_.isEmpty()) { output.writeBytes(3, ovk_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { output.writeBytes(4, shieldedTRC20ContractAddress_); } for (int i = 0; i < events_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, events_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startBlockIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, startBlockIndex_); } if (endBlockIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, endBlockIndex_); } if (!ovk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, ovk_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, shieldedTRC20ContractAddress_); } { int dataSize = 0; for (int i = 0; i < events_.size(); i++) { dataSize += computeStringSizeNoTag(events_.getRaw(i)); } size += dataSize; size += 1 * getEventsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters other = (org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters) obj; if (getStartBlockIndex() != other.getStartBlockIndex()) return false; if (getEndBlockIndex() != other.getEndBlockIndex()) return false; if (!getOvk() .equals(other.getOvk())) return false; if (!getShieldedTRC20ContractAddress() .equals(other.getShieldedTRC20ContractAddress())) return false; if (!getEventsList() .equals(other.getEventsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_BLOCK_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartBlockIndex()); hash = (37 * hash) + END_BLOCK_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndBlockIndex()); hash = (37 * hash) + OVK_FIELD_NUMBER; hash = (53 * hash) + getOvk().hashCode(); hash = (37 * hash) + SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20ContractAddress().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters 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.OvkDecryptTRC20Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.OvkDecryptTRC20Parameters) org.tron.trident.api.GrpcAPI.OvkDecryptTRC20ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_OvkDecryptTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_OvkDecryptTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.class, org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startBlockIndex_ = 0L; endBlockIndex_ = 0L; ovk_ = com.google.protobuf.ByteString.EMPTY; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_OvkDecryptTRC20Parameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters build() { org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters buildPartial() { org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters result = new org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.startBlockIndex_ = startBlockIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.endBlockIndex_ = endBlockIndex_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ovk_ = ovk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.shieldedTRC20ContractAddress_ = shieldedTRC20ContractAddress_; } if (((from_bitField0_ & 0x00000010) != 0)) { events_.makeImmutable(); result.events_ = events_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters other) { if (other == org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters.getDefaultInstance()) return this; if (other.getStartBlockIndex() != 0L) { setStartBlockIndex(other.getStartBlockIndex()); } if (other.getEndBlockIndex() != 0L) { setEndBlockIndex(other.getEndBlockIndex()); } if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) { setOvk(other.getOvk()); } if (other.getShieldedTRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) { setShieldedTRC20ContractAddress(other.getShieldedTRC20ContractAddress()); } if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ |= 0x00000010; } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startBlockIndex_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { endBlockIndex_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { ovk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { shieldedTRC20ContractAddress_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureEventsIsMutable(); events_.add(s); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long startBlockIndex_ ; /** * int64 start_block_index = 1; * @return The startBlockIndex. */ @java.lang.Override public long getStartBlockIndex() { return startBlockIndex_; } /** * int64 start_block_index = 1; * @param value The startBlockIndex to set. * @return This builder for chaining. */ public Builder setStartBlockIndex(long value) { startBlockIndex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 start_block_index = 1; * @return This builder for chaining. */ public Builder clearStartBlockIndex() { bitField0_ = (bitField0_ & ~0x00000001); startBlockIndex_ = 0L; onChanged(); return this; } private long endBlockIndex_ ; /** * int64 end_block_index = 2; * @return The endBlockIndex. */ @java.lang.Override public long getEndBlockIndex() { return endBlockIndex_; } /** * int64 end_block_index = 2; * @param value The endBlockIndex to set. * @return This builder for chaining. */ public Builder setEndBlockIndex(long value) { endBlockIndex_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 end_block_index = 2; * @return This builder for chaining. */ public Builder clearEndBlockIndex() { bitField0_ = (bitField0_ & ~0x00000002); endBlockIndex_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ovk = 3; * @return The ovk. */ @java.lang.Override public com.google.protobuf.ByteString getOvk() { return ovk_; } /** * bytes ovk = 3; * @param value The ovk to set. * @return This builder for chaining. */ public Builder setOvk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ovk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes ovk = 3; * @return This builder for chaining. */ public Builder clearOvk() { bitField0_ = (bitField0_ & ~0x00000004); ovk_ = getDefaultInstance().getOvk(); onChanged(); return this; } private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 4; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } /** * bytes shielded_TRC20_contract_address = 4; * @param value The shieldedTRC20ContractAddress to set. * @return This builder for chaining. */ public Builder setShieldedTRC20ContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shieldedTRC20ContractAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes shielded_TRC20_contract_address = 4; * @return This builder for chaining. */ public Builder clearShieldedTRC20ContractAddress() { bitField0_ = (bitField0_ & ~0x00000008); shieldedTRC20ContractAddress_ = getDefaultInstance().getShieldedTRC20ContractAddress(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList events_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEventsIsMutable() { if (!events_.isModifiable()) { events_ = new com.google.protobuf.LazyStringArrayList(events_); } bitField0_ |= 0x00000010; } /** * repeated string events = 5; * @return A list containing the events. */ public com.google.protobuf.ProtocolStringList getEventsList() { events_.makeImmutable(); return events_; } /** * repeated string events = 5; * @return The count of events. */ public int getEventsCount() { return events_.size(); } /** * repeated string events = 5; * @param index The index of the element to return. * @return The events at the given index. */ public java.lang.String getEvents(int index) { return events_.get(index); } /** * repeated string events = 5; * @param index The index of the value to return. * @return The bytes of the events at the given index. */ public com.google.protobuf.ByteString getEventsBytes(int index) { return events_.getByteString(index); } /** * repeated string events = 5; * @param index The index to set the value at. * @param value The events to set. * @return This builder for chaining. */ public Builder setEvents( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string events = 5; * @param value The events to add. * @return This builder for chaining. */ public Builder addEvents( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string events = 5; * @param values The events to add. * @return This builder for chaining. */ public Builder addAllEvents( java.lang.Iterable values) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string events = 5; * @return This builder for chaining. */ public Builder clearEvents() { events_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** * repeated string events = 5; * @param value The bytes of the events to add. * @return This builder for chaining. */ public Builder addEventsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEventsIsMutable(); events_.add(value); bitField0_ |= 0x00000010; 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.OvkDecryptTRC20Parameters) } // @@protoc_insertion_point(class_scope:protocol.OvkDecryptTRC20Parameters) private static final org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters(); } public static org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OvkDecryptTRC20Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.OvkDecryptTRC20Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NfTRC20ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NfTRC20Parameters) com.google.protobuf.MessageOrBuilder { /** * .protocol.Note note = 1; * @return Whether the note field is set. */ boolean hasNote(); /** * .protocol.Note note = 1; * @return The note. */ org.tron.trident.proto.Common.Note getNote(); /** * .protocol.Note note = 1; */ org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder(); /** * bytes ak = 2; * @return The ak. */ com.google.protobuf.ByteString getAk(); /** * bytes nk = 3; * @return The nk. */ com.google.protobuf.ByteString getNk(); /** * int64 position = 4; * @return The position. */ long getPosition(); /** * bytes shielded_TRC20_contract_address = 5; * @return The shieldedTRC20ContractAddress. */ com.google.protobuf.ByteString getShieldedTRC20ContractAddress(); } /** * Protobuf type {@code protocol.NfTRC20Parameters} */ public static final class NfTRC20Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NfTRC20Parameters) NfTRC20ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use NfTRC20Parameters.newBuilder() to construct. private NfTRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NfTRC20Parameters() { ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NfTRC20Parameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_NfTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_NfTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.NfTRC20Parameters.class, org.tron.trident.api.GrpcAPI.NfTRC20Parameters.Builder.class); } private int bitField0_; public static final int NOTE_FIELD_NUMBER = 1; private org.tron.trident.proto.Common.Note note_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ @java.lang.Override public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ @java.lang.Override public org.tron.trident.proto.Common.Note getNote() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } /** * .protocol.Note note = 1; */ @java.lang.Override public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } public static final int AK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 2; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } public static final int NK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 3; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } public static final int POSITION_FIELD_NUMBER = 4; private long position_ = 0L; /** * int64 position = 4; * @return The position. */ @java.lang.Override public long getPosition() { return position_; } public static final int SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 5; private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 5; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNote()); } if (!ak_.isEmpty()) { output.writeBytes(2, ak_); } if (!nk_.isEmpty()) { output.writeBytes(3, nk_); } if (position_ != 0L) { output.writeInt64(4, position_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { output.writeBytes(5, shieldedTRC20ContractAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNote()); } if (!ak_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ak_); } if (!nk_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nk_); } if (position_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, position_); } if (!shieldedTRC20ContractAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, shieldedTRC20ContractAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.NfTRC20Parameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.NfTRC20Parameters other = (org.tron.trident.api.GrpcAPI.NfTRC20Parameters) obj; if (hasNote() != other.hasNote()) return false; if (hasNote()) { if (!getNote() .equals(other.getNote())) return false; } if (!getAk() .equals(other.getAk())) return false; if (!getNk() .equals(other.getNk())) return false; if (getPosition() != other.getPosition()) return false; if (!getShieldedTRC20ContractAddress() .equals(other.getShieldedTRC20ContractAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNote()) { hash = (37 * hash) + NOTE_FIELD_NUMBER; hash = (53 * hash) + getNote().hashCode(); } hash = (37 * hash) + AK_FIELD_NUMBER; hash = (53 * hash) + getAk().hashCode(); hash = (37 * hash) + NK_FIELD_NUMBER; hash = (53 * hash) + getNk().hashCode(); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPosition()); hash = (37 * hash) + SHIELDED_TRC20_CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20ContractAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.NfTRC20Parameters 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.NfTRC20Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NfTRC20Parameters) org.tron.trident.api.GrpcAPI.NfTRC20ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_NfTRC20Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_NfTRC20Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.NfTRC20Parameters.class, org.tron.trident.api.GrpcAPI.NfTRC20Parameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.NfTRC20Parameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNoteFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } ak_ = com.google.protobuf.ByteString.EMPTY; nk_ = com.google.protobuf.ByteString.EMPTY; position_ = 0L; shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_NfTRC20Parameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.NfTRC20Parameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.NfTRC20Parameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.NfTRC20Parameters build() { org.tron.trident.api.GrpcAPI.NfTRC20Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.NfTRC20Parameters buildPartial() { org.tron.trident.api.GrpcAPI.NfTRC20Parameters result = new org.tron.trident.api.GrpcAPI.NfTRC20Parameters(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.NfTRC20Parameters result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.note_ = noteBuilder_ == null ? note_ : noteBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ak_ = ak_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nk_ = nk_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.position_ = position_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.shieldedTRC20ContractAddress_ = shieldedTRC20ContractAddress_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.NfTRC20Parameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.NfTRC20Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.NfTRC20Parameters other) { if (other == org.tron.trident.api.GrpcAPI.NfTRC20Parameters.getDefaultInstance()) return this; if (other.hasNote()) { mergeNote(other.getNote()); } if (other.getAk() != com.google.protobuf.ByteString.EMPTY) { setAk(other.getAk()); } if (other.getNk() != com.google.protobuf.ByteString.EMPTY) { setNk(other.getNk()); } if (other.getPosition() != 0L) { setPosition(other.getPosition()); } if (other.getShieldedTRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) { setShieldedTRC20ContractAddress(other.getShieldedTRC20ContractAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNoteFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ak_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { nk_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { position_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { shieldedTRC20ContractAddress_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.proto.Common.Note note_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> noteBuilder_; /** * .protocol.Note note = 1; * @return Whether the note field is set. */ public boolean hasNote() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.Note note = 1; * @return The note. */ public org.tron.trident.proto.Common.Note getNote() { if (noteBuilder_ == null) { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } else { return noteBuilder_.getMessage(); } } /** * .protocol.Note note = 1; */ public Builder setNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; } else { noteBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder setNote( org.tron.trident.proto.Common.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); } else { noteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.Note note = 1; */ public Builder mergeNote(org.tron.trident.proto.Common.Note value) { if (noteBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && note_ != null && note_ != org.tron.trident.proto.Common.Note.getDefaultInstance()) { getNoteBuilder().mergeFrom(value); } else { note_ = value; } } else { noteBuilder_.mergeFrom(value); } if (note_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.Note note = 1; */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000001); note_ = null; if (noteBuilder_ != null) { noteBuilder_.dispose(); noteBuilder_ = null; } onChanged(); return this; } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.Note.Builder getNoteBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNoteFieldBuilder().getBuilder(); } /** * .protocol.Note note = 1; */ public org.tron.trident.proto.Common.NoteOrBuilder getNoteOrBuilder() { if (noteBuilder_ != null) { return noteBuilder_.getMessageOrBuilder(); } else { return note_ == null ? org.tron.trident.proto.Common.Note.getDefaultInstance() : note_; } } /** * .protocol.Note note = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder> getNoteFieldBuilder() { if (noteBuilder_ == null) { noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.proto.Common.Note, org.tron.trident.proto.Common.Note.Builder, org.tron.trident.proto.Common.NoteOrBuilder>( getNote(), getParentForChildren(), isClean()); note_ = null; } return noteBuilder_; } private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ak = 2; * @return The ak. */ @java.lang.Override public com.google.protobuf.ByteString getAk() { return ak_; } /** * bytes ak = 2; * @param value The ak to set. * @return This builder for chaining. */ public Builder setAk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ak_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes ak = 2; * @return This builder for chaining. */ public Builder clearAk() { bitField0_ = (bitField0_ & ~0x00000002); ak_ = getDefaultInstance().getAk(); onChanged(); return this; } private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nk = 3; * @return The nk. */ @java.lang.Override public com.google.protobuf.ByteString getNk() { return nk_; } /** * bytes nk = 3; * @param value The nk to set. * @return This builder for chaining. */ public Builder setNk(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nk_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes nk = 3; * @return This builder for chaining. */ public Builder clearNk() { bitField0_ = (bitField0_ & ~0x00000004); nk_ = getDefaultInstance().getNk(); onChanged(); return this; } private long position_ ; /** * int64 position = 4; * @return The position. */ @java.lang.Override public long getPosition() { return position_; } /** * int64 position = 4; * @param value The position to set. * @return This builder for chaining. */ public Builder setPosition(long value) { position_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 position = 4; * @return This builder for chaining. */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000008); position_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString shieldedTRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes shielded_TRC20_contract_address = 5; * @return The shieldedTRC20ContractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getShieldedTRC20ContractAddress() { return shieldedTRC20ContractAddress_; } /** * bytes shielded_TRC20_contract_address = 5; * @param value The shieldedTRC20ContractAddress to set. * @return This builder for chaining. */ public Builder setShieldedTRC20ContractAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shieldedTRC20ContractAddress_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes shielded_TRC20_contract_address = 5; * @return This builder for chaining. */ public Builder clearShieldedTRC20ContractAddress() { bitField0_ = (bitField0_ & ~0x00000010); shieldedTRC20ContractAddress_ = getDefaultInstance().getShieldedTRC20ContractAddress(); 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.NfTRC20Parameters) } // @@protoc_insertion_point(class_scope:protocol.NfTRC20Parameters) private static final org.tron.trident.api.GrpcAPI.NfTRC20Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.NfTRC20Parameters(); } public static org.tron.trident.api.GrpcAPI.NfTRC20Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NfTRC20Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.NfTRC20Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShieldedTRC20TriggerContractParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ShieldedTRC20TriggerContractParameters) com.google.protobuf.MessageOrBuilder { /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return Whether the shieldedTRC20Parameters field is set. */ boolean hasShieldedTRC20Parameters(); /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return The shieldedTRC20Parameters. */ org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getShieldedTRC20Parameters(); /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder getShieldedTRC20ParametersOrBuilder(); /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ java.util.List getSpendAuthoritySignatureList(); /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ org.tron.trident.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index); /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ int getSpendAuthoritySignatureCount(); /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ java.util.List getSpendAuthoritySignatureOrBuilderList(); /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder( int index); /** * string amount = 3; * @return The amount. */ java.lang.String getAmount(); /** * string amount = 3; * @return The bytes for amount. */ com.google.protobuf.ByteString getAmountBytes(); /** * bytes transparent_to_address = 4; * @return The transparentToAddress. */ com.google.protobuf.ByteString getTransparentToAddress(); } /** * Protobuf type {@code protocol.ShieldedTRC20TriggerContractParameters} */ public static final class ShieldedTRC20TriggerContractParameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ShieldedTRC20TriggerContractParameters) ShieldedTRC20TriggerContractParametersOrBuilder { private static final long serialVersionUID = 0L; // Use ShieldedTRC20TriggerContractParameters.newBuilder() to construct. private ShieldedTRC20TriggerContractParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShieldedTRC20TriggerContractParameters() { spendAuthoritySignature_ = java.util.Collections.emptyList(); amount_ = ""; transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShieldedTRC20TriggerContractParameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20TriggerContractParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.class, org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.Builder.class); } private int bitField0_; public static final int SHIELDED_TRC20_PARAMETERS_FIELD_NUMBER = 1; private org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters shieldedTRC20Parameters_; /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return Whether the shieldedTRC20Parameters field is set. */ @java.lang.Override public boolean hasShieldedTRC20Parameters() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return The shieldedTRC20Parameters. */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getShieldedTRC20Parameters() { return shieldedTRC20Parameters_ == null ? org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance() : shieldedTRC20Parameters_; } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder getShieldedTRC20ParametersOrBuilder() { return shieldedTRC20Parameters_ == null ? org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance() : shieldedTRC20Parameters_; } public static final int SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List spendAuthoritySignature_; /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ @java.lang.Override public java.util.List getSpendAuthoritySignatureList() { return spendAuthoritySignature_; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ @java.lang.Override public java.util.List getSpendAuthoritySignatureOrBuilderList() { return spendAuthoritySignature_; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ @java.lang.Override public int getSpendAuthoritySignatureCount() { return spendAuthoritySignature_.size(); } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index) { return spendAuthoritySignature_.get(index); } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ @java.lang.Override public org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder( int index) { return spendAuthoritySignature_.get(index); } public static final int AMOUNT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object amount_ = ""; /** * string amount = 3; * @return The amount. */ @java.lang.Override public java.lang.String getAmount() { java.lang.Object ref = amount_; 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(); amount_ = s; return s; } } /** * string amount = 3; * @return The bytes for amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 4; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getShieldedTRC20Parameters()); } for (int i = 0; i < spendAuthoritySignature_.size(); i++) { output.writeMessage(2, spendAuthoritySignature_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(amount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } if (!transparentToAddress_.isEmpty()) { output.writeBytes(4, transparentToAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getShieldedTRC20Parameters()); } for (int i = 0; i < spendAuthoritySignature_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, spendAuthoritySignature_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(amount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } if (!transparentToAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, transparentToAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters other = (org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters) obj; if (hasShieldedTRC20Parameters() != other.hasShieldedTRC20Parameters()) return false; if (hasShieldedTRC20Parameters()) { if (!getShieldedTRC20Parameters() .equals(other.getShieldedTRC20Parameters())) return false; } if (!getSpendAuthoritySignatureList() .equals(other.getSpendAuthoritySignatureList())) return false; if (!getAmount() .equals(other.getAmount())) return false; if (!getTransparentToAddress() .equals(other.getTransparentToAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasShieldedTRC20Parameters()) { hash = (37 * hash) + SHIELDED_TRC20_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getShieldedTRC20Parameters().hashCode(); } if (getSpendAuthoritySignatureCount() > 0) { hash = (37 * hash) + SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSpendAuthoritySignatureList().hashCode(); } hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTransparentToAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters 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.ShieldedTRC20TriggerContractParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ShieldedTRC20TriggerContractParameters) org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20TriggerContractParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.class, org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getShieldedTRC20ParametersFieldBuilder(); getSpendAuthoritySignatureFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; shieldedTRC20Parameters_ = null; if (shieldedTRC20ParametersBuilder_ != null) { shieldedTRC20ParametersBuilder_.dispose(); shieldedTRC20ParametersBuilder_ = null; } if (spendAuthoritySignatureBuilder_ == null) { spendAuthoritySignature_ = java.util.Collections.emptyList(); } else { spendAuthoritySignature_ = null; spendAuthoritySignatureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); amount_ = ""; transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters build() { org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters buildPartial() { org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters result = new org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters result) { if (spendAuthoritySignatureBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { spendAuthoritySignature_ = java.util.Collections.unmodifiableList(spendAuthoritySignature_); bitField0_ = (bitField0_ & ~0x00000002); } result.spendAuthoritySignature_ = spendAuthoritySignature_; } else { result.spendAuthoritySignature_ = spendAuthoritySignatureBuilder_.build(); } } private void buildPartial0(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.shieldedTRC20Parameters_ = shieldedTRC20ParametersBuilder_ == null ? shieldedTRC20Parameters_ : shieldedTRC20ParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.amount_ = amount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.transparentToAddress_ = transparentToAddress_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters) { return mergeFrom((org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters other) { if (other == org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters.getDefaultInstance()) return this; if (other.hasShieldedTRC20Parameters()) { mergeShieldedTRC20Parameters(other.getShieldedTRC20Parameters()); } if (spendAuthoritySignatureBuilder_ == null) { if (!other.spendAuthoritySignature_.isEmpty()) { if (spendAuthoritySignature_.isEmpty()) { spendAuthoritySignature_ = other.spendAuthoritySignature_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.addAll(other.spendAuthoritySignature_); } onChanged(); } } else { if (!other.spendAuthoritySignature_.isEmpty()) { if (spendAuthoritySignatureBuilder_.isEmpty()) { spendAuthoritySignatureBuilder_.dispose(); spendAuthoritySignatureBuilder_ = null; spendAuthoritySignature_ = other.spendAuthoritySignature_; bitField0_ = (bitField0_ & ~0x00000002); spendAuthoritySignatureBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpendAuthoritySignatureFieldBuilder() : null; } else { spendAuthoritySignatureBuilder_.addAllMessages(other.spendAuthoritySignature_); } } } if (!other.getAmount().isEmpty()) { amount_ = other.amount_; bitField0_ |= 0x00000004; onChanged(); } if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) { setTransparentToAddress(other.getTransparentToAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getShieldedTRC20ParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.tron.trident.api.GrpcAPI.BytesMessage m = input.readMessage( org.tron.trident.api.GrpcAPI.BytesMessage.parser(), extensionRegistry); if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.add(m); } else { spendAuthoritySignatureBuilder_.addMessage(m); } break; } // case 18 case 26: { amount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { transparentToAddress_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters shieldedTRC20Parameters_; private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters, org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder, org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder> shieldedTRC20ParametersBuilder_; /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return Whether the shieldedTRC20Parameters field is set. */ public boolean hasShieldedTRC20Parameters() { return ((bitField0_ & 0x00000001) != 0); } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; * @return The shieldedTRC20Parameters. */ public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters getShieldedTRC20Parameters() { if (shieldedTRC20ParametersBuilder_ == null) { return shieldedTRC20Parameters_ == null ? org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance() : shieldedTRC20Parameters_; } else { return shieldedTRC20ParametersBuilder_.getMessage(); } } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public Builder setShieldedTRC20Parameters(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters value) { if (shieldedTRC20ParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shieldedTRC20Parameters_ = value; } else { shieldedTRC20ParametersBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public Builder setShieldedTRC20Parameters( org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder builderForValue) { if (shieldedTRC20ParametersBuilder_ == null) { shieldedTRC20Parameters_ = builderForValue.build(); } else { shieldedTRC20ParametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public Builder mergeShieldedTRC20Parameters(org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters value) { if (shieldedTRC20ParametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && shieldedTRC20Parameters_ != null && shieldedTRC20Parameters_ != org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance()) { getShieldedTRC20ParametersBuilder().mergeFrom(value); } else { shieldedTRC20Parameters_ = value; } } else { shieldedTRC20ParametersBuilder_.mergeFrom(value); } if (shieldedTRC20Parameters_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public Builder clearShieldedTRC20Parameters() { bitField0_ = (bitField0_ & ~0x00000001); shieldedTRC20Parameters_ = null; if (shieldedTRC20ParametersBuilder_ != null) { shieldedTRC20ParametersBuilder_.dispose(); shieldedTRC20ParametersBuilder_ = null; } onChanged(); return this; } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder getShieldedTRC20ParametersBuilder() { bitField0_ |= 0x00000001; onChanged(); return getShieldedTRC20ParametersFieldBuilder().getBuilder(); } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ public org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder getShieldedTRC20ParametersOrBuilder() { if (shieldedTRC20ParametersBuilder_ != null) { return shieldedTRC20ParametersBuilder_.getMessageOrBuilder(); } else { return shieldedTRC20Parameters_ == null ? org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.getDefaultInstance() : shieldedTRC20Parameters_; } } /** * .protocol.ShieldedTRC20Parameters shielded_TRC20_Parameters = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters, org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder, org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder> getShieldedTRC20ParametersFieldBuilder() { if (shieldedTRC20ParametersBuilder_ == null) { shieldedTRC20ParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters, org.tron.trident.api.GrpcAPI.ShieldedTRC20Parameters.Builder, org.tron.trident.api.GrpcAPI.ShieldedTRC20ParametersOrBuilder>( getShieldedTRC20Parameters(), getParentForChildren(), isClean()); shieldedTRC20Parameters_ = null; } return shieldedTRC20ParametersBuilder_; } private java.util.List spendAuthoritySignature_ = java.util.Collections.emptyList(); private void ensureSpendAuthoritySignatureIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { spendAuthoritySignature_ = new java.util.ArrayList(spendAuthoritySignature_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.BytesMessage, org.tron.trident.api.GrpcAPI.BytesMessage.Builder, org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder> spendAuthoritySignatureBuilder_; /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public java.util.List getSpendAuthoritySignatureList() { if (spendAuthoritySignatureBuilder_ == null) { return java.util.Collections.unmodifiableList(spendAuthoritySignature_); } else { return spendAuthoritySignatureBuilder_.getMessageList(); } } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public int getSpendAuthoritySignatureCount() { if (spendAuthoritySignatureBuilder_ == null) { return spendAuthoritySignature_.size(); } else { return spendAuthoritySignatureBuilder_.getCount(); } } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public org.tron.trident.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index) { if (spendAuthoritySignatureBuilder_ == null) { return spendAuthoritySignature_.get(index); } else { return spendAuthoritySignatureBuilder_.getMessage(index); } } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder setSpendAuthoritySignature( int index, org.tron.trident.api.GrpcAPI.BytesMessage value) { if (spendAuthoritySignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.set(index, value); onChanged(); } else { spendAuthoritySignatureBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder setSpendAuthoritySignature( int index, org.tron.trident.api.GrpcAPI.BytesMessage.Builder builderForValue) { if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.set(index, builderForValue.build()); onChanged(); } else { spendAuthoritySignatureBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder addSpendAuthoritySignature(org.tron.trident.api.GrpcAPI.BytesMessage value) { if (spendAuthoritySignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.add(value); onChanged(); } else { spendAuthoritySignatureBuilder_.addMessage(value); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder addSpendAuthoritySignature( int index, org.tron.trident.api.GrpcAPI.BytesMessage value) { if (spendAuthoritySignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.add(index, value); onChanged(); } else { spendAuthoritySignatureBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder addSpendAuthoritySignature( org.tron.trident.api.GrpcAPI.BytesMessage.Builder builderForValue) { if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.add(builderForValue.build()); onChanged(); } else { spendAuthoritySignatureBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder addSpendAuthoritySignature( int index, org.tron.trident.api.GrpcAPI.BytesMessage.Builder builderForValue) { if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.add(index, builderForValue.build()); onChanged(); } else { spendAuthoritySignatureBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder addAllSpendAuthoritySignature( java.lang.Iterable values) { if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, spendAuthoritySignature_); onChanged(); } else { spendAuthoritySignatureBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder clearSpendAuthoritySignature() { if (spendAuthoritySignatureBuilder_ == null) { spendAuthoritySignature_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { spendAuthoritySignatureBuilder_.clear(); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public Builder removeSpendAuthoritySignature(int index) { if (spendAuthoritySignatureBuilder_ == null) { ensureSpendAuthoritySignatureIsMutable(); spendAuthoritySignature_.remove(index); onChanged(); } else { spendAuthoritySignatureBuilder_.remove(index); } return this; } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public org.tron.trident.api.GrpcAPI.BytesMessage.Builder getSpendAuthoritySignatureBuilder( int index) { return getSpendAuthoritySignatureFieldBuilder().getBuilder(index); } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder( int index) { if (spendAuthoritySignatureBuilder_ == null) { return spendAuthoritySignature_.get(index); } else { return spendAuthoritySignatureBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public java.util.List getSpendAuthoritySignatureOrBuilderList() { if (spendAuthoritySignatureBuilder_ != null) { return spendAuthoritySignatureBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(spendAuthoritySignature_); } } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public org.tron.trident.api.GrpcAPI.BytesMessage.Builder addSpendAuthoritySignatureBuilder() { return getSpendAuthoritySignatureFieldBuilder().addBuilder( org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance()); } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public org.tron.trident.api.GrpcAPI.BytesMessage.Builder addSpendAuthoritySignatureBuilder( int index) { return getSpendAuthoritySignatureFieldBuilder().addBuilder( index, org.tron.trident.api.GrpcAPI.BytesMessage.getDefaultInstance()); } /** * repeated .protocol.BytesMessage spend_authority_signature = 2; */ public java.util.List getSpendAuthoritySignatureBuilderList() { return getSpendAuthoritySignatureFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.BytesMessage, org.tron.trident.api.GrpcAPI.BytesMessage.Builder, org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder> getSpendAuthoritySignatureFieldBuilder() { if (spendAuthoritySignatureBuilder_ == null) { spendAuthoritySignatureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tron.trident.api.GrpcAPI.BytesMessage, org.tron.trident.api.GrpcAPI.BytesMessage.Builder, org.tron.trident.api.GrpcAPI.BytesMessageOrBuilder>( spendAuthoritySignature_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); spendAuthoritySignature_ = null; } return spendAuthoritySignatureBuilder_; } private java.lang.Object amount_ = ""; /** * string amount = 3; * @return The amount. */ public java.lang.String getAmount() { java.lang.Object ref = amount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); amount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string amount = 3; * @return The bytes for amount. */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } amount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string amount = 3; * @param value The bytes for amount to set. * @return This builder for chaining. */ public Builder setAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); amount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes transparent_to_address = 4; * @return The transparentToAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTransparentToAddress() { return transparentToAddress_; } /** * bytes transparent_to_address = 4; * @param value The transparentToAddress to set. * @return This builder for chaining. */ public Builder setTransparentToAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transparentToAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes transparent_to_address = 4; * @return This builder for chaining. */ public Builder clearTransparentToAddress() { bitField0_ = (bitField0_ & ~0x00000008); transparentToAddress_ = getDefaultInstance().getTransparentToAddress(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.ShieldedTRC20TriggerContractParameters) } // @@protoc_insertion_point(class_scope:protocol.ShieldedTRC20TriggerContractParameters) private static final org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters(); } public static org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShieldedTRC20TriggerContractParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.ShieldedTRC20TriggerContractParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CanWithdrawUnfreezeAmountRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CanWithdrawUnfreezeAmountRequestMessage) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); /** * int64 timestamp = 2; * @return The timestamp. */ long getTimestamp(); } /** *
   * Stake 2.0
   * 
* * Protobuf type {@code protocol.CanWithdrawUnfreezeAmountRequestMessage} */ public static final class CanWithdrawUnfreezeAmountRequestMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CanWithdrawUnfreezeAmountRequestMessage) CanWithdrawUnfreezeAmountRequestMessageOrBuilder { private static final long serialVersionUID = 0L; // Use CanWithdrawUnfreezeAmountRequestMessage.newBuilder() to construct. private CanWithdrawUnfreezeAmountRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CanWithdrawUnfreezeAmountRequestMessage() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CanWithdrawUnfreezeAmountRequestMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.class, org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_ = 0L; /** * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } if (timestamp_ != 0L) { output.writeInt64(2, timestamp_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, timestamp_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage other = (org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (getTimestamp() != other.getTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Stake 2.0
     * 
* * Protobuf type {@code protocol.CanWithdrawUnfreezeAmountRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CanWithdrawUnfreezeAmountRequestMessage) org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.class, org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; timestamp_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage build() { org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage buildPartial() { org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage result = new org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestamp_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage other) { if (other == org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @param value The ownerAddress to set. * @return This builder for chaining. */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private long timestamp_ ; /** * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 2; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 timestamp = 2; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = 0L; onChanged(); return this; } @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.CanWithdrawUnfreezeAmountRequestMessage) } // @@protoc_insertion_point(class_scope:protocol.CanWithdrawUnfreezeAmountRequestMessage) private static final org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage(); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CanWithdrawUnfreezeAmountRequestMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetAvailableUnfreezeCountRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.GetAvailableUnfreezeCountRequestMessage) com.google.protobuf.MessageOrBuilder { /** * bytes owner_address = 1; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.GetAvailableUnfreezeCountRequestMessage} */ public static final class GetAvailableUnfreezeCountRequestMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.GetAvailableUnfreezeCountRequestMessage) GetAvailableUnfreezeCountRequestMessageOrBuilder { private static final long serialVersionUID = 0L; // Use GetAvailableUnfreezeCountRequestMessage.newBuilder() to construct. private GetAvailableUnfreezeCountRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetAvailableUnfreezeCountRequestMessage() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetAvailableUnfreezeCountRequestMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.class, org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.Builder.class); } public static final int OWNER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!ownerAddress_.isEmpty()) { output.writeBytes(1, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ownerAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage other = (org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage) obj; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage 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.GetAvailableUnfreezeCountRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.GetAvailableUnfreezeCountRequestMessage) org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.class, org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage build() { org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage buildPartial() { org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage result = new org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ownerAddress_ = ownerAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage other) { if (other == org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage.getDefaultInstance()) return this; if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 1; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 1; * @param value The ownerAddress to set. * @return This builder for chaining. */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes owner_address = 1; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000001); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.GetAvailableUnfreezeCountRequestMessage) } // @@protoc_insertion_point(class_scope:protocol.GetAvailableUnfreezeCountRequestMessage) private static final org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage(); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetAvailableUnfreezeCountRequestMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetAvailableUnfreezeCountResponseMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.GetAvailableUnfreezeCountResponseMessage) com.google.protobuf.MessageOrBuilder { /** * int64 count = 1; * @return The count. */ long getCount(); } /** * Protobuf type {@code protocol.GetAvailableUnfreezeCountResponseMessage} */ public static final class GetAvailableUnfreezeCountResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.GetAvailableUnfreezeCountResponseMessage) GetAvailableUnfreezeCountResponseMessageOrBuilder { private static final long serialVersionUID = 0L; // Use GetAvailableUnfreezeCountResponseMessage.newBuilder() to construct. private GetAvailableUnfreezeCountResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetAvailableUnfreezeCountResponseMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetAvailableUnfreezeCountResponseMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.class, org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.Builder.class); } public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** * int64 count = 1; * @return The count. */ @java.lang.Override public long 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 (count_ != 0L) { output.writeInt64(1, count_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage other = (org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage) obj; if (getCount() != other.getCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage 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.GetAvailableUnfreezeCountResponseMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.GetAvailableUnfreezeCountResponseMessage) org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.class, org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; count_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage build() { org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage buildPartial() { org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage result = new org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.count_ = count_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage other) { if (other == org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { count_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long count_ ; /** * int64 count = 1; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** * int64 count = 1; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 count = 1; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 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.GetAvailableUnfreezeCountResponseMessage) } // @@protoc_insertion_point(class_scope:protocol.GetAvailableUnfreezeCountResponseMessage) private static final org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage(); } public static org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetAvailableUnfreezeCountResponseMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.GetAvailableUnfreezeCountResponseMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CanWithdrawUnfreezeAmountResponseMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CanWithdrawUnfreezeAmountResponseMessage) com.google.protobuf.MessageOrBuilder { /** * int64 amount = 1; * @return The amount. */ long getAmount(); } /** * Protobuf type {@code protocol.CanWithdrawUnfreezeAmountResponseMessage} */ public static final class CanWithdrawUnfreezeAmountResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CanWithdrawUnfreezeAmountResponseMessage) CanWithdrawUnfreezeAmountResponseMessageOrBuilder { private static final long serialVersionUID = 0L; // Use CanWithdrawUnfreezeAmountResponseMessage.newBuilder() to construct. private CanWithdrawUnfreezeAmountResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CanWithdrawUnfreezeAmountResponseMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CanWithdrawUnfreezeAmountResponseMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.class, org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.Builder.class); } public static final int AMOUNT_FIELD_NUMBER = 1; private long amount_ = 0L; /** * int64 amount = 1; * @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 (amount_ != 0L) { output.writeInt64(1, amount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage other = (org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage) obj; if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage 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.CanWithdrawUnfreezeAmountResponseMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CanWithdrawUnfreezeAmountResponseMessage) org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.class, org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; amount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage build() { org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage buildPartial() { org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage result = new org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.amount_ = amount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage other) { if (other == org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage.getDefaultInstance()) return this; if (other.getAmount() != 0L) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { amount_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long amount_ ; /** * int64 amount = 1; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 1; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 amount = 1; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000001); 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.CanWithdrawUnfreezeAmountResponseMessage) } // @@protoc_insertion_point(class_scope:protocol.CanWithdrawUnfreezeAmountResponseMessage) private static final org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage(); } public static org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CanWithdrawUnfreezeAmountResponseMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanWithdrawUnfreezeAmountResponseMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CanDelegatedMaxSizeRequestMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CanDelegatedMaxSizeRequestMessage) com.google.protobuf.MessageOrBuilder { /** * int32 type = 1; * @return The type. */ int getType(); /** * bytes owner_address = 2; * @return The ownerAddress. */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code protocol.CanDelegatedMaxSizeRequestMessage} */ public static final class CanDelegatedMaxSizeRequestMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CanDelegatedMaxSizeRequestMessage) CanDelegatedMaxSizeRequestMessageOrBuilder { private static final long serialVersionUID = 0L; // Use CanDelegatedMaxSizeRequestMessage.newBuilder() to construct. private CanDelegatedMaxSizeRequestMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CanDelegatedMaxSizeRequestMessage() { ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CanDelegatedMaxSizeRequestMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.class, org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * int32 type = 1; * @return The type. */ @java.lang.Override public int getType() { return type_; } public static final int OWNER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != 0) { output.writeInt32(1, type_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, type_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage other = (org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage) obj; if (getType() != other.getType()) return false; if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage 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.CanDelegatedMaxSizeRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CanDelegatedMaxSizeRequestMessage) org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeRequestMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.class, org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage build() { org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage buildPartial() { org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage result = new org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerAddress_ = ownerAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage other) { if (other == org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage.getDefaultInstance()) return this; if (other.getType() != 0) { setType(other.getType()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { ownerAddress_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int type_ ; /** * int32 type = 1; * @return The type. */ @java.lang.Override public int getType() { return type_; } /** * int32 type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 2; * @return The ownerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 2; * @param value The ownerAddress to set. * @return This builder for chaining. */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes owner_address = 2; * @return This builder for chaining. */ public Builder clearOwnerAddress() { bitField0_ = (bitField0_ & ~0x00000002); ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.CanDelegatedMaxSizeRequestMessage) } // @@protoc_insertion_point(class_scope:protocol.CanDelegatedMaxSizeRequestMessage) private static final org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage(); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CanDelegatedMaxSizeRequestMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeRequestMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CanDelegatedMaxSizeResponseMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.CanDelegatedMaxSizeResponseMessage) com.google.protobuf.MessageOrBuilder { /** * int64 max_size = 1; * @return The maxSize. */ long getMaxSize(); } /** * Protobuf type {@code protocol.CanDelegatedMaxSizeResponseMessage} */ public static final class CanDelegatedMaxSizeResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.CanDelegatedMaxSizeResponseMessage) CanDelegatedMaxSizeResponseMessageOrBuilder { private static final long serialVersionUID = 0L; // Use CanDelegatedMaxSizeResponseMessage.newBuilder() to construct. private CanDelegatedMaxSizeResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CanDelegatedMaxSizeResponseMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CanDelegatedMaxSizeResponseMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.class, org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.Builder.class); } public static final int MAX_SIZE_FIELD_NUMBER = 1; private long maxSize_ = 0L; /** * int64 max_size = 1; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } 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 (maxSize_ != 0L) { output.writeInt64(1, maxSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage other = (org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage) obj; if (getMaxSize() != other.getMaxSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSize()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage 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.CanDelegatedMaxSizeResponseMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.CanDelegatedMaxSizeResponseMessage) org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeResponseMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.class, org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage build() { org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage buildPartial() { org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage result = new org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxSize_ = maxSize_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage) { return mergeFrom((org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage other) { if (other == org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage.getDefaultInstance()) return this; if (other.getMaxSize() != 0L) { setMaxSize(other.getMaxSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxSize_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long maxSize_ ; /** * int64 max_size = 1; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } /** * int64 max_size = 1; * @param value The maxSize to set. * @return This builder for chaining. */ public Builder setMaxSize(long value) { maxSize_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 max_size = 1; * @return This builder for chaining. */ public Builder clearMaxSize() { bitField0_ = (bitField0_ & ~0x00000001); maxSize_ = 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.CanDelegatedMaxSizeResponseMessage) } // @@protoc_insertion_point(class_scope:protocol.CanDelegatedMaxSizeResponseMessage) private static final org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage(); } public static org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CanDelegatedMaxSizeResponseMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.CanDelegatedMaxSizeResponseMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionIdListOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.TransactionIdList) com.google.protobuf.MessageOrBuilder { /** * repeated string txId = 1; * @return A list containing the txId. */ java.util.List getTxIdList(); /** * repeated string txId = 1; * @return The count of txId. */ int getTxIdCount(); /** * repeated string txId = 1; * @param index The index of the element to return. * @return The txId at the given index. */ java.lang.String getTxId(int index); /** * repeated string txId = 1; * @param index The index of the value to return. * @return The bytes of the txId at the given index. */ com.google.protobuf.ByteString getTxIdBytes(int index); } /** * Protobuf type {@code protocol.TransactionIdList} */ public static final class TransactionIdList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.TransactionIdList) TransactionIdListOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionIdList.newBuilder() to construct. private TransactionIdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionIdList() { txId_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionIdList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_TransactionIdList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_TransactionIdList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.TransactionIdList.class, org.tron.trident.api.GrpcAPI.TransactionIdList.Builder.class); } public static final int TXID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList txId_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string txId = 1; * @return A list containing the txId. */ public com.google.protobuf.ProtocolStringList getTxIdList() { return txId_; } /** * repeated string txId = 1; * @return The count of txId. */ public int getTxIdCount() { return txId_.size(); } /** * repeated string txId = 1; * @param index The index of the element to return. * @return The txId at the given index. */ public java.lang.String getTxId(int index) { return txId_.get(index); } /** * repeated string txId = 1; * @param index The index of the value to return. * @return The bytes of the txId at the given index. */ public com.google.protobuf.ByteString getTxIdBytes(int index) { return txId_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < txId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < txId_.size(); i++) { dataSize += computeStringSizeNoTag(txId_.getRaw(i)); } size += dataSize; size += 1 * getTxIdList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tron.trident.api.GrpcAPI.TransactionIdList)) { return super.equals(obj); } org.tron.trident.api.GrpcAPI.TransactionIdList other = (org.tron.trident.api.GrpcAPI.TransactionIdList) obj; if (!getTxIdList() .equals(other.getTxIdList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTxIdCount() > 0) { hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxIdList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tron.trident.api.GrpcAPI.TransactionIdList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tron.trident.api.GrpcAPI.TransactionIdList 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.TransactionIdList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.TransactionIdList) org.tron.trident.api.GrpcAPI.TransactionIdListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_TransactionIdList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_TransactionIdList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tron.trident.api.GrpcAPI.TransactionIdList.class, org.tron.trident.api.GrpcAPI.TransactionIdList.Builder.class); } // Construct using org.tron.trident.api.GrpcAPI.TransactionIdList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; txId_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tron.trident.api.GrpcAPI.internal_static_protocol_TransactionIdList_descriptor; } @java.lang.Override public org.tron.trident.api.GrpcAPI.TransactionIdList getDefaultInstanceForType() { return org.tron.trident.api.GrpcAPI.TransactionIdList.getDefaultInstance(); } @java.lang.Override public org.tron.trident.api.GrpcAPI.TransactionIdList build() { org.tron.trident.api.GrpcAPI.TransactionIdList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tron.trident.api.GrpcAPI.TransactionIdList buildPartial() { org.tron.trident.api.GrpcAPI.TransactionIdList result = new org.tron.trident.api.GrpcAPI.TransactionIdList(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tron.trident.api.GrpcAPI.TransactionIdList result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { txId_.makeImmutable(); result.txId_ = txId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tron.trident.api.GrpcAPI.TransactionIdList) { return mergeFrom((org.tron.trident.api.GrpcAPI.TransactionIdList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tron.trident.api.GrpcAPI.TransactionIdList other) { if (other == org.tron.trident.api.GrpcAPI.TransactionIdList.getDefaultInstance()) return this; if (!other.txId_.isEmpty()) { if (txId_.isEmpty()) { txId_ = other.txId_; bitField0_ |= 0x00000001; } else { ensureTxIdIsMutable(); txId_.addAll(other.txId_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureTxIdIsMutable(); txId_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList txId_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTxIdIsMutable() { if (!txId_.isModifiable()) { txId_ = new com.google.protobuf.LazyStringArrayList(txId_); } bitField0_ |= 0x00000001; } /** * repeated string txId = 1; * @return A list containing the txId. */ public com.google.protobuf.ProtocolStringList getTxIdList() { txId_.makeImmutable(); return txId_; } /** * repeated string txId = 1; * @return The count of txId. */ public int getTxIdCount() { return txId_.size(); } /** * repeated string txId = 1; * @param index The index of the element to return. * @return The txId at the given index. */ public java.lang.String getTxId(int index) { return txId_.get(index); } /** * repeated string txId = 1; * @param index The index of the value to return. * @return The bytes of the txId at the given index. */ public com.google.protobuf.ByteString getTxIdBytes(int index) { return txId_.getByteString(index); } /** * repeated string txId = 1; * @param index The index to set the value at. * @param value The txId to set. * @return This builder for chaining. */ public Builder setTxId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTxIdIsMutable(); txId_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string txId = 1; * @param value The txId to add. * @return This builder for chaining. */ public Builder addTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTxIdIsMutable(); txId_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string txId = 1; * @param values The txId to add. * @return This builder for chaining. */ public Builder addAllTxId( java.lang.Iterable values) { ensureTxIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, txId_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string txId = 1; * @return This builder for chaining. */ public Builder clearTxId() { txId_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string txId = 1; * @param value The bytes of the txId to add. * @return This builder for chaining. */ public Builder addTxIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTxIdIsMutable(); txId_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protocol.TransactionIdList) } // @@protoc_insertion_point(class_scope:protocol.TransactionIdList) private static final org.tron.trident.api.GrpcAPI.TransactionIdList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tron.trident.api.GrpcAPI.TransactionIdList(); } public static org.tron.trident.api.GrpcAPI.TransactionIdList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionIdList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tron.trident.api.GrpcAPI.TransactionIdList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EmptyMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EmptyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NumberMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NumberMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BytesMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BytesMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BlockLimit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BlockLimit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountAddressMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountAddressMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_AccountIdMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_AccountIdMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PaginatedMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_PaginatedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EasyTransferMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EasyTransferMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EasyTransferAssetMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EasyTransferByPrivateMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ViewingKeyMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ViewingKeyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ShieldedAddressInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PaymentAddressMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_PaymentAddressMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_DiversifierMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_DiversifierMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ExpandedSpendingKeyMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_IncomingViewingKeyMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ReceiveNote_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ReceiveNote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_SpendNoteTRC20_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_SpendNoteTRC20_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_PrivateShieldedTRC20Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_SpendDescription_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_SpendDescription_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ReceiveDescription_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ReceiveDescription_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ShieldedTRC20Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ShieldedTRC20Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_IvkDecryptTRC20Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_IvkDecryptTRC20Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_OvkDecryptTRC20Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_OvkDecryptTRC20Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NfTRC20Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NfTRC20Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ShieldedTRC20TriggerContractParameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CanDelegatedMaxSizeRequestMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_CanDelegatedMaxSizeResponseMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_TransactionIdList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_TransactionIdList_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\rapi/api.proto\022\010protocol\032\021core/common.p" + "roto\032\020core/chain.proto\032\023core/contract.pr" + "oto\032\023core/response.proto\"\016\n\014EmptyMessage" + "\"\034\n\rNumberMessage\022\013\n\003num\030\001 \001(\003\"\035\n\014BytesM" + "essage\022\r\n\005value\030\001 \001(\014\".\n\nBlockLimit\022\020\n\010s" + "tartNum\030\001 \001(\003\022\016\n\006endNum\030\002 \001(\003\"(\n\025Account" + "AddressMessage\022\017\n\007address\030\003 \001(\014\"\036\n\020Accou" + "ntIdMessage\022\n\n\002id\030\027 \001(\014\"1\n\020PaginatedMess" + "age\022\016\n\006offset\030\001 \001(\003\022\r\n\005limit\030\002 \001(\003\"L\n\023Ea" + "syTransferMessage\022\022\n\npassPhrase\030\001 \001(\014\022\021\n" + "\ttoAddress\030\002 \001(\014\022\016\n\006amount\030\003 \001(\003\"b\n\030Easy" + "TransferAssetMessage\022\022\n\npassPhrase\030\001 \001(\014" + "\022\021\n\ttoAddress\030\002 \001(\014\022\017\n\007assetId\030\003 \001(\t\022\016\n\006" + "amount\030\004 \001(\003\"U\n\034EasyTransferByPrivateMes" + "sage\022\022\n\nprivateKey\030\001 \001(\014\022\021\n\ttoAddress\030\002 " + "\001(\014\022\016\n\006amount\030\003 \001(\003\"k\n!EasyTransferAsset" + "ByPrivateMessage\022\022\n\nprivateKey\030\001 \001(\014\022\021\n\t" + "toAddress\030\002 \001(\014\022\017\n\007assetId\030\003 \001(\t\022\016\n\006amou" + "nt\030\004 \001(\003\"+\n\021ViewingKeyMessage\022\n\n\002ak\030\001 \001(" + "\014\022\n\n\002nk\030\002 \001(\014\"\236\001\n\023ShieldedAddressInfo\022\n\n" + "\002sk\030\001 \001(\014\022\013\n\003ask\030\002 \001(\014\022\013\n\003nsk\030\003 \001(\014\022\013\n\003o" + "vk\030\004 \001(\014\022\n\n\002ak\030\005 \001(\014\022\n\n\002nk\030\006 \001(\014\022\013\n\003ivk\030" + "\007 \001(\014\022\t\n\001d\030\010 \001(\014\022\013\n\003pkD\030\t \001(\014\022\027\n\017payment" + "_address\030\n \001(\t\"f\n\025PaymentAddressMessage\022" + "\'\n\001d\030\001 \001(\0132\034.protocol.DiversifierMessage" + "\022\013\n\003pkD\030\002 \001(\014\022\027\n\017payment_address\030\003 \001(\t\"\037" + "\n\022DiversifierMessage\022\t\n\001d\030\001 \001(\014\"C\n\032Expan" + "dedSpendingKeyMessage\022\013\n\003ask\030\001 \001(\014\022\013\n\003ns" + "k\030\002 \001(\014\022\013\n\003ovk\030\003 \001(\014\"(\n\031IncomingViewingK" + "eyMessage\022\013\n\003ivk\030\001 \001(\014\"\201\001\n$IncomingViewi" + "ngKeyDiversifierMessage\0220\n\003ivk\030\001 \001(\0132#.p" + "rotocol.IncomingViewingKeyMessage\022\'\n\001d\030\002" + " \001(\0132\034.protocol.DiversifierMessage\"+\n\013Re" + "ceiveNote\022\034\n\004note\030\001 \001(\0132\016.protocol.Note\"" + "f\n\016SpendNoteTRC20\022\034\n\004note\030\001 \001(\0132\016.protoc" + "ol.Note\022\r\n\005alpha\030\002 \001(\014\022\014\n\004root\030\003 \001(\014\022\014\n\004" + "path\030\004 \001(\014\022\013\n\003pos\030\005 \001(\003\"\235\002\n\036PrivateShiel" + "dedTRC20Parameters\022\013\n\003ask\030\001 \001(\014\022\013\n\003nsk\030\002" + " \001(\014\022\013\n\003ovk\030\003 \001(\014\022\023\n\013from_amount\030\004 \001(\t\0221" + "\n\017shielded_spends\030\005 \003(\0132\030.protocol.Spend" + "NoteTRC20\0220\n\021shielded_receives\030\006 \003(\0132\025.p" + "rotocol.ReceiveNote\022\036\n\026transparent_to_ad" + "dress\030\007 \001(\014\022\021\n\tto_amount\030\010 \001(\t\022\'\n\037shield" + "ed_TRC20_contract_address\030\t \001(\014\"\246\002\n(Priv" + "ateShieldedTRC20ParametersWithoutAsk\022\n\n\002" + "ak\030\001 \001(\014\022\013\n\003nsk\030\002 \001(\014\022\013\n\003ovk\030\003 \001(\014\022\023\n\013fr" + "om_amount\030\004 \001(\t\0221\n\017shielded_spends\030\005 \003(\013" + "2\030.protocol.SpendNoteTRC20\0220\n\021shielded_r" + "eceives\030\006 \003(\0132\025.protocol.ReceiveNote\022\036\n\026" + "transparent_to_address\030\007 \001(\014\022\021\n\tto_amoun" + "t\030\010 \001(\t\022\'\n\037shielded_TRC20_contract_addre" + "ss\030\t \001(\014\"\217\001\n\020SpendDescription\022\030\n\020value_c" + "ommitment\030\001 \001(\014\022\016\n\006anchor\030\002 \001(\014\022\021\n\tnulli" + "fier\030\003 \001(\014\022\n\n\002rk\030\004 \001(\014\022\017\n\007zkproof\030\005 \001(\014\022" + "!\n\031spend_authority_signature\030\006 \001(\014\"\203\001\n\022R" + "eceiveDescription\022\030\n\020value_commitment\030\001 " + "\001(\014\022\027\n\017note_commitment\030\002 \001(\014\022\013\n\003epk\030\003 \001(" + "\014\022\r\n\005c_enc\030\004 \001(\014\022\r\n\005c_out\030\005 \001(\014\022\017\n\007zkpro" + "of\030\006 \001(\014\"\364\001\n\027ShieldedTRC20Parameters\0225\n\021" + "spend_description\030\001 \003(\0132\032.protocol.Spend" + "Description\0229\n\023receive_description\030\002 \003(\013" + "2\034.protocol.ReceiveDescription\022\031\n\021bindin" + "g_signature\030\003 \001(\014\022\024\n\014message_hash\030\004 \001(\014\022" + "\036\n\026trigger_contract_input\030\005 \001(\t\022\026\n\016param" + "eter_type\030\006 \001(\t\"\255\001\n\031IvkDecryptTRC20Param" + "eters\022\031\n\021start_block_index\030\001 \001(\003\022\027\n\017end_" + "block_index\030\002 \001(\003\022\'\n\037shielded_TRC20_cont" + "ract_address\030\003 \001(\014\022\013\n\003ivk\030\004 \001(\014\022\n\n\002ak\030\005 " + "\001(\014\022\n\n\002nk\030\006 \001(\014\022\016\n\006events\030\007 \003(\t\"\225\001\n\031OvkD" + "ecryptTRC20Parameters\022\031\n\021start_block_ind" + "ex\030\001 \001(\003\022\027\n\017end_block_index\030\002 \001(\003\022\013\n\003ovk" + "\030\003 \001(\014\022\'\n\037shielded_TRC20_contract_addres" + "s\030\004 \001(\014\022\016\n\006events\030\005 \003(\t\"\204\001\n\021NfTRC20Param" + "eters\022\034\n\004note\030\001 \001(\0132\016.protocol.Note\022\n\n\002a" + "k\030\002 \001(\014\022\n\n\002nk\030\003 \001(\014\022\020\n\010position\030\004 \001(\003\022\'\n" + "\037shielded_TRC20_contract_address\030\005 \001(\014\"\331" + "\001\n&ShieldedTRC20TriggerContractParameter" + "s\022D\n\031shielded_TRC20_Parameters\030\001 \001(\0132!.p" + "rotocol.ShieldedTRC20Parameters\0229\n\031spend" + "_authority_signature\030\002 \003(\0132\026.protocol.By" + "tesMessage\022\016\n\006amount\030\003 \001(\t\022\036\n\026transparen" + "t_to_address\030\004 \001(\014\"S\n\'CanWithdrawUnfreez" + "eAmountRequestMessage\022\025\n\rowner_address\030\001" + " \001(\014\022\021\n\ttimestamp\030\002 \001(\003\"@\n\'GetAvailableU" + "nfreezeCountRequestMessage\022\025\n\rowner_addr" + "ess\030\001 \001(\014\"9\n(GetAvailableUnfreezeCountRe" + "sponseMessage\022\r\n\005count\030\001 \001(\003\":\n(CanWithd" + "rawUnfreezeAmountResponseMessage\022\016\n\006amou" + "nt\030\001 \001(\003\"H\n!CanDelegatedMaxSizeRequestMe" + "ssage\022\014\n\004type\030\001 \001(\005\022\025\n\rowner_address\030\002 \001" + "(\014\"6\n\"CanDelegatedMaxSizeResponseMessage" + "\022\020\n\010max_size\030\001 \001(\003\"!\n\021TransactionIdList\022" + "\014\n\004txId\030\001 \003(\t2\205;\n\006Wallet\022L\n\024BroadcastTra" + "nsaction\022\025.protocol.Transaction\032\033.protoc" + "ol.TransactionReturn\"\000\022Q\n\016DeployContract" + "\022\035.protocol.CreateSmartContract\032\036.protoc" + "ol.TransactionExtention\"\000\022S\n\017TriggerCont" + "ract\022\036.protocol.TriggerSmartContract\032\036.p" + "rotocol.TransactionExtention\"\000\022[\n\027Trigge" + "rConstantContract\022\036.protocol.TriggerSmar" + "tContract\032\036.protocol.TransactionExtentio" + "n\"\000\022S\n\016EstimateEnergy\022\036.protocol.Trigger" + "SmartContract\032\037.protocol.EstimateEnergyM" + "essage\"\000\022;\n\013GetNodeInfo\022\026.protocol.Empty" + "Message\032\022.protocol.NodeInfo\"\000\0229\n\tListNod" + "es\022\026.protocol.EmptyMessage\032\022.protocol.No" + "deList\"\000\022I\n\022GetChainParameters\022\026.protoco" + "l.EmptyMessage\032\031.protocol.ChainParameter" + "s\"\000\022E\n\020TotalTransaction\022\026.protocol.Empty" + "Message\032\027.protocol.NumberMessage\"\000\022K\n\026Ge" + "tNextMaintenanceTime\022\026.protocol.EmptyMes" + "sage\032\027.protocol.NumberMessage\"\000\022T\n\030GetTr" + "ansactionSignWeight\022\025.protocol.Transacti" + "on\032\037.protocol.TransactionSignWeight\"\000\022X\n" + "\032GetTransactionApprovedList\022\025.protocol.T" + "ransaction\032!.protocol.TransactionApprove" + "dList\"\000\022B\n\nGetAccount\022\037.protocol.Account" + "AddressMessage\032\021.protocol.Account\"\000\022A\n\016G" + "etAccountById\022\032.protocol.AccountIdMessag" + "e\032\021.protocol.Account\"\000\022O\n\rGetAccountNet\022" + "\037.protocol.AccountAddressMessage\032\033.proto" + "col.AccountNetMessage\"\000\022Y\n\022GetAccountRes" + "ource\022\037.protocol.AccountAddressMessage\032 " + ".protocol.AccountResourceMessage\"\000\022U\n\026Ge" + "tAssetIssueByAccount\022\037.protocol.AccountA" + "ddressMessage\032\030.protocol.AssetIssueList\"" + "\000\022M\n\023GetAssetIssueByName\022\026.protocol.Byte" + "sMessage\032\034.protocol.AssetIssueContract\"\000" + "\022M\n\027GetAssetIssueListByName\022\026.protocol.B" + "ytesMessage\032\030.protocol.AssetIssueList\"\000\022" + "K\n\021GetAssetIssueById\022\026.protocol.BytesMes" + "sage\032\034.protocol.AssetIssueContract\"\000\022G\n\021" + "GetAssetIssueList\022\026.protocol.EmptyMessag" + "e\032\030.protocol.AssetIssueList\"\000\022T\n\032GetPagi" + "natedAssetIssueList\022\032.protocol.Paginated" + "Message\032\030.protocol.AssetIssueList\"\000\0228\n\013G" + "etNowBlock\022\026.protocol.EmptyMessage\032\017.pro" + "tocol.Block\"\000\022B\n\014GetNowBlock2\022\026.protocol" + ".EmptyMessage\032\030.protocol.BlockExtention\"" + "\000\022;\n\rGetBlockByNum\022\027.protocol.NumberMess" + "age\032\017.protocol.Block\"\000\022E\n\016GetBlockByNum2" + "\022\027.protocol.NumberMessage\032\030.protocol.Blo" + "ckExtention\"\000\0229\n\014GetBlockById\022\026.protocol" + ".BytesMessage\032\017.protocol.Block\"\000\022B\n\023GetB" + "lockByLimitNext\022\024.protocol.BlockLimit\032\023." + "protocol.BlockList\"\000\022L\n\024GetBlockByLimitN" + "ext2\022\024.protocol.BlockLimit\032\034.protocol.Bl" + "ockListExtention\"\000\022E\n\023GetBlockByLatestNu" + "m\022\027.protocol.NumberMessage\032\023.protocol.Bl" + "ockList\"\000\022O\n\024GetBlockByLatestNum2\022\027.prot" + "ocol.NumberMessage\032\034.protocol.BlockListE" + "xtention\"\000\022S\n\035GetTransactionCountByBlock" + "Num\022\027.protocol.NumberMessage\032\027.protocol." + "NumberMessage\"\000\022E\n\022GetTransactionById\022\026." + "protocol.BytesMessage\032\025.protocol.Transac" + "tion\"\000\022M\n\026GetTransactionInfoById\022\026.proto" + "col.BytesMessage\032\031.protocol.TransactionI" + "nfo\"\000\022X\n\034GetTransactionInfoByBlockNum\022\027." + "protocol.NumberMessage\032\035.protocol.Transa" + "ctionInfoList\"\000\022@\n\013GetContract\022\026.protoco" + "l.BytesMessage\032\027.protocol.SmartContract\"" + "\000\022O\n\017GetContractInfo\022\026.protocol.BytesMes" + "sage\032\".protocol.SmartContractDataWrapper" + "\"\000\022@\n\rListWitnesses\022\026.protocol.EmptyMess" + "age\032\025.protocol.WitnessList\"\000\022E\n\020GetBroke" + "rageInfo\022\026.protocol.BytesMessage\032\027.proto" + "col.NumberMessage\"\000\022B\n\rGetRewardInfo\022\026.p" + "rotocol.BytesMessage\032\027.protocol.NumberMe" + "ssage\"\000\022]\n\024GetDelegatedResource\022\".protoc" + "ol.DelegatedResourceMessage\032\037.protocol.D" + "elegatedResourceList\"\000\022e\n GetDelegatedRe" + "sourceAccountIndex\022\026.protocol.BytesMessa" + "ge\032\'.protocol.DelegatedResourceAccountIn" + "dex\"\000\022A\n\rListProposals\022\026.protocol.EmptyM" + "essage\032\026.protocol.ProposalList\"\000\022?\n\017GetP" + "roposalById\022\026.protocol.BytesMessage\032\022.pr" + "otocol.Proposal\"\000\022P\n\030GetPaginatedProposa" + "lList\022\032.protocol.PaginatedMessage\032\026.prot" + "ocol.ProposalList\"\000\022A\n\rListExchanges\022\026.p" + "rotocol.EmptyMessage\032\026.protocol.Exchange" + "List\"\000\022?\n\017GetExchangeById\022\026.protocol.Byt" + "esMessage\032\022.protocol.Exchange\"\000\022P\n\030GetPa" + "ginatedExchangeList\022\032.protocol.Paginated" + "Message\032\026.protocol.ExchangeList\"\000\022a\n\033Sca" + "nShieldedTRC20NotesByIvk\022#.protocol.IvkD" + "ecryptTRC20Parameters\032\033.protocol.Decrypt" + "NotesTRC20\"\000\022a\n\033ScanShieldedTRC20NotesBy" + "Ovk\022#.protocol.OvkDecryptTRC20Parameters" + "\032\033.protocol.DecryptNotesTRC20\"\000\022\\\n IsShi" + "eldedTRC20ContractNoteSpent\022\033.protocol.N" + "fTRC20Parameters\032\031.protocol.NullifierRes" + "ult\"\000\022N\n\027GetMarketOrderByAccount\022\026.proto" + "col.BytesMessage\032\031.protocol.MarketOrderL" + "ist\"\000\022E\n\022GetMarketOrderById\022\026.protocol.B" + "ytesMessage\032\025.protocol.MarketOrder\"\000\022N\n\024" + "GetMarketPriceByPair\022\031.protocol.MarketOr" + "derPair\032\031.protocol.MarketPriceList\"\000\022R\n\030" + "GetMarketOrderListByPair\022\031.protocol.Mark" + "etOrderPair\032\031.protocol.MarketOrderList\"\000" + "\022L\n\021GetMarketPairList\022\026.protocol.EmptyMe" + "ssage\032\035.protocol.MarketOrderPairList\"\000\022H" + "\n\022GetTransactionSign\022\031.protocol.Transact" + "ionSign\032\025.protocol.Transaction\"\000\022R\n\023GetT" + "ransactionSign2\022\031.protocol.TransactionSi" + "gn\032\036.protocol.TransactionExtention\"\000\022Y\n\021" + "EasyTransferAsset\022\".protocol.EasyTransfe" + "rAssetMessage\032\036.protocol.EasyTransferRes" + "ponse\"\000\022k\n\032EasyTransferAssetByPrivate\022+." + "protocol.EasyTransferAssetByPrivateMessa" + "ge\032\036.protocol.EasyTransferResponse\"\000\022O\n\014" + "EasyTransfer\022\035.protocol.EasyTransferMess" + "age\032\036.protocol.EasyTransferResponse\"\000\022a\n" + "\025EasyTransferByPrivate\022&.protocol.EasyTr" + "ansferByPrivateMessage\032\036.protocol.EasyTr" + "ansferResponse\"\000\022A\n\rCreateAddress\022\026.prot" + "ocol.BytesMessage\032\026.protocol.BytesMessag" + "e\"\000\022N\n\017GenerateAddress\022\026.protocol.EmptyM" + "essage\032!.protocol.AddressPrKeyPairMessag" + "e\"\000\022F\n\007AddSign\022\031.protocol.TransactionSig" + "n\032\036.protocol.TransactionExtention\"\000\022B\n\016G" + "etSpendingKey\022\026.protocol.EmptyMessage\032\026." + "protocol.BytesMessage\"\000\022X\n\026GetExpandedSp" + "endingKey\022\026.protocol.BytesMessage\032$.prot" + "ocol.ExpandedSpendingKeyMessage\"\000\022@\n\014Get" + "AkFromAsk\022\026.protocol.BytesMessage\032\026.prot" + "ocol.BytesMessage\"\000\022@\n\014GetNkFromNsk\022\026.pr" + "otocol.BytesMessage\032\026.protocol.BytesMess" + "age\"\000\022[\n\025GetIncomingViewingKey\022\033.protoco" + "l.ViewingKeyMessage\032#.protocol.IncomingV" + "iewingKeyMessage\"\000\022H\n\016GetDiversifier\022\026.p" + "rotocol.EmptyMessage\032\034.protocol.Diversif" + "ierMessage\"\000\022i\n\024GetZenPaymentAddress\022..p" + "rotocol.IncomingViewingKeyDiversifierMes" + "sage\032\037.protocol.PaymentAddressMessage\"\000\022" + "P\n\025GetNewShieldedAddress\022\026.protocol.Empt" + "yMessage\032\035.protocol.ShieldedAddressInfo\"" + "\000\022:\n\006GetRcm\022\026.protocol.EmptyMessage\032\026.pr" + "otocol.BytesMessage\"\000\022q\n CreateShieldedC" + "ontractParameters\022(.protocol.PrivateShie" + "ldedTRC20Parameters\032!.protocol.ShieldedT" + "RC20Parameters\"\000\022\205\001\n*CreateShieldedContr" + "actParametersWithoutAsk\0222.protocol.Priva" + "teShieldedTRC20ParametersWithoutAsk\032!.pr" + "otocol.ShieldedTRC20Parameters\"\000\022u\n\'GetT" + "riggerInputForShieldedTRC20Contract\0220.pr" + "otocol.ShieldedTRC20TriggerContractParam" + "eters\032\026.protocol.BytesMessage\"\000\022\204\001\n\031GetA" + "vailableUnfreezeCount\0221.protocol.GetAvai" + "lableUnfreezeCountRequestMessage\0322.proto" + "col.GetAvailableUnfreezeCountResponseMes" + "sage\"\000\022\207\001\n\034GetCanWithdrawUnfreezeAmount\022" + "1.protocol.CanWithdrawUnfreezeAmountRequ" + "estMessage\0322.protocol.CanWithdrawUnfreez" + "eAmountResponseMessage\"\000\022u\n\026GetCanDelega" + "tedMaxSize\022+.protocol.CanDelegatedMaxSiz" + "eRequestMessage\032,.protocol.CanDelegatedM" + "axSizeResponseMessage\"\000\022_\n\026GetDelegatedR" + "esourceV2\022\".protocol.DelegatedResourceMe" + "ssage\032\037.protocol.DelegatedResourceList\"\000" + "\022g\n\"GetDelegatedResourceAccountIndexV2\022\026" + ".protocol.BytesMessage\032\'.protocol.Delega" + "tedResourceAccountIndex\"\000\022?\n\nGetBurnTrx\022" + "\026.protocol.EmptyMessage\032\027.protocol.Numbe" + "rMessage\"\000\022P\n\024GetBlockBalanceTrace\022\031.pro" + "tocol.BlockIdentifier\032\033.protocol.BlockBa" + "lanceTrace\"\000\022S\n\016CreateWitness2\022\037.protoco" + "l.WitnessCreateContract\032\036.protocol.Trans" + "actionExtention\"\000\022W\n\020WithdrawBalance2\022!." + "protocol.WithdrawBalanceContract\032\036.proto" + "col.TransactionExtention\"\000\022V\n\035GetTransac" + "tionListFromPending\022\026.protocol.EmptyMess" + "age\032\033.protocol.TransactionIdList\"\000\022L\n\031Ge" + "tTransactionFromPending\022\026.protocol.Bytes" + "Message\032\025.protocol.Transaction\"\000\022C\n\016GetP" + "endingSize\022\026.protocol.EmptyMessage\032\027.pro" + "tocol.NumberMessage\"\000\022O\n\022GetBandwidthPri" + "ces\022\026.protocol.EmptyMessage\032\037.protocol.P" + "ricesResponseMessage\"\000\022L\n\017GetEnergyPrice" + "s\022\026.protocol.EmptyMessage\032\037.protocol.Pri" + "cesResponseMessage\"\000\022G\n\nGetMemoFee\022\026.pro" + "tocol.EmptyMessage\032\037.protocol.PricesResp" + "onseMessage\"\0002\220\004\n\016WalletSolidity\022B\n\nGetA" + "ccount\022\037.protocol.AccountAddressMessage\032" + "\021.protocol.Account\"\000\022B\n\014GetNowBlock2\022\026.p" + "rotocol.EmptyMessage\032\030.protocol.BlockExt" + "ention\"\000\022E\n\022GetTransactionById\022\026.protoco" + "l.BytesMessage\032\025.protocol.Transaction\"\000\022" + "B\n\rGetRewardInfo\022\026.protocol.BytesMessage" + "\032\027.protocol.NumberMessage\"\000\022L\n\031GetTransa" + "ctionFromPending\022\026.protocol.BytesMessage" + "\032\025.protocol.Transaction\"\000\022O\n\022GetBandwidt" + "hPrices\022\026.protocol.EmptyMessage\032\037.protoc" + "ol.PricesResponseMessage\"\000\022L\n\017GetEnergyP" + "rices\022\026.protocol.EmptyMessage\032\037.protocol" + ".PricesResponseMessage\"\000B\037\n\024org.tron.tri" + "dent.apiB\007GrpcAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tron.trident.proto.Common.getDescriptor(), org.tron.trident.proto.Chain.getDescriptor(), org.tron.trident.proto.Contract.getDescriptor(), org.tron.trident.proto.Response.getDescriptor(), }); internal_static_protocol_EmptyMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_EmptyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EmptyMessage_descriptor, new java.lang.String[] { }); internal_static_protocol_NumberMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_NumberMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NumberMessage_descriptor, new java.lang.String[] { "Num", }); internal_static_protocol_BytesMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_BytesMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BytesMessage_descriptor, new java.lang.String[] { "Value", }); internal_static_protocol_BlockLimit_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protocol_BlockLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BlockLimit_descriptor, new java.lang.String[] { "StartNum", "EndNum", }); internal_static_protocol_AccountAddressMessage_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protocol_AccountAddressMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountAddressMessage_descriptor, new java.lang.String[] { "Address", }); internal_static_protocol_AccountIdMessage_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protocol_AccountIdMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_AccountIdMessage_descriptor, new java.lang.String[] { "Id", }); internal_static_protocol_PaginatedMessage_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protocol_PaginatedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_PaginatedMessage_descriptor, new java.lang.String[] { "Offset", "Limit", }); internal_static_protocol_EasyTransferMessage_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protocol_EasyTransferMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EasyTransferMessage_descriptor, new java.lang.String[] { "PassPhrase", "ToAddress", "Amount", }); internal_static_protocol_EasyTransferAssetMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EasyTransferAssetMessage_descriptor, new java.lang.String[] { "PassPhrase", "ToAddress", "AssetId", "Amount", }); internal_static_protocol_EasyTransferByPrivateMessage_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EasyTransferByPrivateMessage_descriptor, new java.lang.String[] { "PrivateKey", "ToAddress", "Amount", }); internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor, new java.lang.String[] { "PrivateKey", "ToAddress", "AssetId", "Amount", }); internal_static_protocol_ViewingKeyMessage_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protocol_ViewingKeyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ViewingKeyMessage_descriptor, new java.lang.String[] { "Ak", "Nk", }); internal_static_protocol_ShieldedAddressInfo_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ShieldedAddressInfo_descriptor, new java.lang.String[] { "Sk", "Ask", "Nsk", "Ovk", "Ak", "Nk", "Ivk", "D", "PkD", "PaymentAddress", }); internal_static_protocol_PaymentAddressMessage_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protocol_PaymentAddressMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_PaymentAddressMessage_descriptor, new java.lang.String[] { "D", "PkD", "PaymentAddress", }); internal_static_protocol_DiversifierMessage_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protocol_DiversifierMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_DiversifierMessage_descriptor, new java.lang.String[] { "D", }); internal_static_protocol_ExpandedSpendingKeyMessage_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ExpandedSpendingKeyMessage_descriptor, new java.lang.String[] { "Ask", "Nsk", "Ovk", }); internal_static_protocol_IncomingViewingKeyMessage_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_IncomingViewingKeyMessage_descriptor, new java.lang.String[] { "Ivk", }); internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor, new java.lang.String[] { "Ivk", "D", }); internal_static_protocol_ReceiveNote_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protocol_ReceiveNote_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ReceiveNote_descriptor, new java.lang.String[] { "Note", }); internal_static_protocol_SpendNoteTRC20_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protocol_SpendNoteTRC20_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_SpendNoteTRC20_descriptor, new java.lang.String[] { "Note", "Alpha", "Root", "Path", "Pos", }); internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protocol_PrivateShieldedTRC20Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_PrivateShieldedTRC20Parameters_descriptor, new java.lang.String[] { "Ask", "Nsk", "Ovk", "FromAmount", "ShieldedSpends", "ShieldedReceives", "TransparentToAddress", "ToAmount", "ShieldedTRC20ContractAddress", }); internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_PrivateShieldedTRC20ParametersWithoutAsk_descriptor, new java.lang.String[] { "Ak", "Nsk", "Ovk", "FromAmount", "ShieldedSpends", "ShieldedReceives", "TransparentToAddress", "ToAmount", "ShieldedTRC20ContractAddress", }); internal_static_protocol_SpendDescription_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protocol_SpendDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_SpendDescription_descriptor, new java.lang.String[] { "ValueCommitment", "Anchor", "Nullifier", "Rk", "Zkproof", "SpendAuthoritySignature", }); internal_static_protocol_ReceiveDescription_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_protocol_ReceiveDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ReceiveDescription_descriptor, new java.lang.String[] { "ValueCommitment", "NoteCommitment", "Epk", "CEnc", "COut", "Zkproof", }); internal_static_protocol_ShieldedTRC20Parameters_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_protocol_ShieldedTRC20Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ShieldedTRC20Parameters_descriptor, new java.lang.String[] { "SpendDescription", "ReceiveDescription", "BindingSignature", "MessageHash", "TriggerContractInput", "ParameterType", }); internal_static_protocol_IvkDecryptTRC20Parameters_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protocol_IvkDecryptTRC20Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_IvkDecryptTRC20Parameters_descriptor, new java.lang.String[] { "StartBlockIndex", "EndBlockIndex", "ShieldedTRC20ContractAddress", "Ivk", "Ak", "Nk", "Events", }); internal_static_protocol_OvkDecryptTRC20Parameters_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_protocol_OvkDecryptTRC20Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_OvkDecryptTRC20Parameters_descriptor, new java.lang.String[] { "StartBlockIndex", "EndBlockIndex", "Ovk", "ShieldedTRC20ContractAddress", "Events", }); internal_static_protocol_NfTRC20Parameters_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_protocol_NfTRC20Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NfTRC20Parameters_descriptor, new java.lang.String[] { "Note", "Ak", "Nk", "Position", "ShieldedTRC20ContractAddress", }); internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_protocol_ShieldedTRC20TriggerContractParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ShieldedTRC20TriggerContractParameters_descriptor, new java.lang.String[] { "ShieldedTRC20Parameters", "SpendAuthoritySignature", "Amount", "TransparentToAddress", }); internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CanWithdrawUnfreezeAmountRequestMessage_descriptor, new java.lang.String[] { "OwnerAddress", "Timestamp", }); internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_GetAvailableUnfreezeCountRequestMessage_descriptor, new java.lang.String[] { "OwnerAddress", }); internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_GetAvailableUnfreezeCountResponseMessage_descriptor, new java.lang.String[] { "Count", }); internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CanWithdrawUnfreezeAmountResponseMessage_descriptor, new java.lang.String[] { "Amount", }); internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_protocol_CanDelegatedMaxSizeRequestMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CanDelegatedMaxSizeRequestMessage_descriptor, new java.lang.String[] { "Type", "OwnerAddress", }); internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_protocol_CanDelegatedMaxSizeResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_CanDelegatedMaxSizeResponseMessage_descriptor, new java.lang.String[] { "MaxSize", }); internal_static_protocol_TransactionIdList_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_protocol_TransactionIdList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_TransactionIdList_descriptor, new java.lang.String[] { "TxId", }); org.tron.trident.proto.Common.getDescriptor(); org.tron.trident.proto.Chain.getDescriptor(); org.tron.trident.proto.Contract.getDescriptor(); org.tron.trident.proto.Response.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy