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

tech.figure.block.api.proto.BlockOuterClass Maven / Gradle / Ivy

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

package tech.figure.block.api.proto;

public final class BlockOuterClass {
  private BlockOuterClass() {}
  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 BlockOrBuilder extends
      // @@protoc_insertion_point(interface_extends:api.Block)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint64 height = 1;
     * @return The height.
     */
    long getHeight();

    /**
     * uint64 size = 2;
     * @return The size.
     */
    long getSize();

    /**
     * .api.Header header = 3;
     * @return Whether the header field is set.
     */
    boolean hasHeader();
    /**
     * .api.Header header = 3;
     * @return The header.
     */
    tech.figure.block.api.proto.BlockOuterClass.Header getHeader();
    /**
     * .api.Header header = 3;
     */
    tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder getHeaderOrBuilder();

    /**
     * .google.protobuf.Timestamp time = 4;
     * @return Whether the time field is set.
     */
    boolean hasTime();
    /**
     * .google.protobuf.Timestamp time = 4;
     * @return The time.
     */
    com.google.protobuf.Timestamp getTime();
    /**
     * .google.protobuf.Timestamp time = 4;
     */
    com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();

    /**
     * int32 num_txs = 5;
     * @return The numTxs.
     */
    int getNumTxs();

    /**
     * repeated .api.Transaction transactions = 6;
     */
    java.util.List 
        getTransactionsList();
    /**
     * repeated .api.Transaction transactions = 6;
     */
    tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index);
    /**
     * repeated .api.Transaction transactions = 6;
     */
    int getTransactionsCount();
    /**
     * repeated .api.Transaction transactions = 6;
     */
    java.util.List 
        getTransactionsOrBuilderList();
    /**
     * repeated .api.Transaction transactions = 6;
     */
    tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code api.Block}
   */
  public static final class Block extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:api.Block)
      BlockOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Block.newBuilder() to construct.
    private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Block() {
      transactions_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Block_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Block_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.figure.block.api.proto.BlockOuterClass.Block.class, tech.figure.block.api.proto.BlockOuterClass.Block.Builder.class);
    }

    private int bitField0_;
    public static final int HEIGHT_FIELD_NUMBER = 1;
    private long height_ = 0L;
    /**
     * uint64 height = 1;
     * @return The height.
     */
    @java.lang.Override
    public long getHeight() {
      return height_;
    }

    public static final int SIZE_FIELD_NUMBER = 2;
    private long size_ = 0L;
    /**
     * uint64 size = 2;
     * @return The size.
     */
    @java.lang.Override
    public long getSize() {
      return size_;
    }

    public static final int HEADER_FIELD_NUMBER = 3;
    private tech.figure.block.api.proto.BlockOuterClass.Header header_;
    /**
     * .api.Header header = 3;
     * @return Whether the header field is set.
     */
    @java.lang.Override
    public boolean hasHeader() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .api.Header header = 3;
     * @return The header.
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.Header getHeader() {
      return header_ == null ? tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance() : header_;
    }
    /**
     * .api.Header header = 3;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder getHeaderOrBuilder() {
      return header_ == null ? tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance() : header_;
    }

    public static final int TIME_FIELD_NUMBER = 4;
    private com.google.protobuf.Timestamp time_;
    /**
     * .google.protobuf.Timestamp time = 4;
     * @return Whether the time field is set.
     */
    @java.lang.Override
    public boolean hasTime() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .google.protobuf.Timestamp time = 4;
     * @return The time.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getTime() {
      return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
    }
    /**
     * .google.protobuf.Timestamp time = 4;
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
    }

    public static final int NUM_TXS_FIELD_NUMBER = 5;
    private int numTxs_ = 0;
    /**
     * int32 num_txs = 5;
     * @return The numTxs.
     */
    @java.lang.Override
    public int getNumTxs() {
      return numTxs_;
    }

    public static final int TRANSACTIONS_FIELD_NUMBER = 6;
    @SuppressWarnings("serial")
    private java.util.List transactions_;
    /**
     * repeated .api.Transaction transactions = 6;
     */
    @java.lang.Override
    public java.util.List getTransactionsList() {
      return transactions_;
    }
    /**
     * repeated .api.Transaction transactions = 6;
     */
    @java.lang.Override
    public java.util.List 
        getTransactionsOrBuilderList() {
      return transactions_;
    }
    /**
     * repeated .api.Transaction transactions = 6;
     */
    @java.lang.Override
    public int getTransactionsCount() {
      return transactions_.size();
    }
    /**
     * repeated .api.Transaction transactions = 6;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index) {
      return transactions_.get(index);
    }
    /**
     * repeated .api.Transaction transactions = 6;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
        int index) {
      return transactions_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (height_ != 0L) {
        output.writeUInt64(1, height_);
      }
      if (size_ != 0L) {
        output.writeUInt64(2, size_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(3, getHeader());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(4, getTime());
      }
      if (numTxs_ != 0) {
        output.writeInt32(5, numTxs_);
      }
      for (int i = 0; i < transactions_.size(); i++) {
        output.writeMessage(6, transactions_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (height_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, height_);
      }
      if (size_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, size_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getHeader());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getTime());
      }
      if (numTxs_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(5, numTxs_);
      }
      for (int i = 0; i < transactions_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, transactions_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.figure.block.api.proto.BlockOuterClass.Block)) {
        return super.equals(obj);
      }
      tech.figure.block.api.proto.BlockOuterClass.Block other = (tech.figure.block.api.proto.BlockOuterClass.Block) obj;

      if (getHeight()
          != other.getHeight()) return false;
      if (getSize()
          != other.getSize()) return false;
      if (hasHeader() != other.hasHeader()) return false;
      if (hasHeader()) {
        if (!getHeader()
            .equals(other.getHeader())) return false;
      }
      if (hasTime() != other.hasTime()) return false;
      if (hasTime()) {
        if (!getTime()
            .equals(other.getTime())) return false;
      }
      if (getNumTxs()
          != other.getNumTxs()) return false;
      if (!getTransactionsList()
          .equals(other.getTransactionsList())) 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) + HEIGHT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getHeight());
      hash = (37 * hash) + SIZE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSize());
      if (hasHeader()) {
        hash = (37 * hash) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
      }
      if (hasTime()) {
        hash = (37 * hash) + TIME_FIELD_NUMBER;
        hash = (53 * hash) + getTime().hashCode();
      }
      hash = (37 * hash) + NUM_TXS_FIELD_NUMBER;
      hash = (53 * hash) + getNumTxs();
      if (getTransactionsCount() > 0) {
        hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getTransactionsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static tech.figure.block.api.proto.BlockOuterClass.Block 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 tech.figure.block.api.proto.BlockOuterClass.Block parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.figure.block.api.proto.BlockOuterClass.Block 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(tech.figure.block.api.proto.BlockOuterClass.Block 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 api.Block}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:api.Block)
        tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Block_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Block_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.figure.block.api.proto.BlockOuterClass.Block.class, tech.figure.block.api.proto.BlockOuterClass.Block.Builder.class);
      }

      // Construct using tech.figure.block.api.proto.BlockOuterClass.Block.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getHeaderFieldBuilder();
          getTimeFieldBuilder();
          getTransactionsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        height_ = 0L;
        size_ = 0L;
        header_ = null;
        if (headerBuilder_ != null) {
          headerBuilder_.dispose();
          headerBuilder_ = null;
        }
        time_ = null;
        if (timeBuilder_ != null) {
          timeBuilder_.dispose();
          timeBuilder_ = null;
        }
        numTxs_ = 0;
        if (transactionsBuilder_ == null) {
          transactions_ = java.util.Collections.emptyList();
        } else {
          transactions_ = null;
          transactionsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Block_descriptor;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Block getDefaultInstanceForType() {
        return tech.figure.block.api.proto.BlockOuterClass.Block.getDefaultInstance();
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Block build() {
        tech.figure.block.api.proto.BlockOuterClass.Block result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Block buildPartial() {
        tech.figure.block.api.proto.BlockOuterClass.Block result = new tech.figure.block.api.proto.BlockOuterClass.Block(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.Block result) {
        if (transactionsBuilder_ == null) {
          if (((bitField0_ & 0x00000020) != 0)) {
            transactions_ = java.util.Collections.unmodifiableList(transactions_);
            bitField0_ = (bitField0_ & ~0x00000020);
          }
          result.transactions_ = transactions_;
        } else {
          result.transactions_ = transactionsBuilder_.build();
        }
      }

      private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Block result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.height_ = height_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.size_ = size_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.header_ = headerBuilder_ == null
              ? header_
              : headerBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.time_ = timeBuilder_ == null
              ? time_
              : timeBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.numTxs_ = numTxs_;
        }
        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 tech.figure.block.api.proto.BlockOuterClass.Block) {
          return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Block)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Block other) {
        if (other == tech.figure.block.api.proto.BlockOuterClass.Block.getDefaultInstance()) return this;
        if (other.getHeight() != 0L) {
          setHeight(other.getHeight());
        }
        if (other.getSize() != 0L) {
          setSize(other.getSize());
        }
        if (other.hasHeader()) {
          mergeHeader(other.getHeader());
        }
        if (other.hasTime()) {
          mergeTime(other.getTime());
        }
        if (other.getNumTxs() != 0) {
          setNumTxs(other.getNumTxs());
        }
        if (transactionsBuilder_ == null) {
          if (!other.transactions_.isEmpty()) {
            if (transactions_.isEmpty()) {
              transactions_ = other.transactions_;
              bitField0_ = (bitField0_ & ~0x00000020);
            } else {
              ensureTransactionsIsMutable();
              transactions_.addAll(other.transactions_);
            }
            onChanged();
          }
        } else {
          if (!other.transactions_.isEmpty()) {
            if (transactionsBuilder_.isEmpty()) {
              transactionsBuilder_.dispose();
              transactionsBuilder_ = null;
              transactions_ = other.transactions_;
              bitField0_ = (bitField0_ & ~0x00000020);
              transactionsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTransactionsFieldBuilder() : null;
            } else {
              transactionsBuilder_.addAllMessages(other.transactions_);
            }
          }
        }
        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: {
                height_ = input.readUInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                size_ = input.readUInt64();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                input.readMessage(
                    getHeaderFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 34: {
                input.readMessage(
                    getTimeFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
              case 40: {
                numTxs_ = input.readInt32();
                bitField0_ |= 0x00000010;
                break;
              } // case 40
              case 50: {
                tech.figure.block.api.proto.BlockOuterClass.Transaction m =
                    input.readMessage(
                        tech.figure.block.api.proto.BlockOuterClass.Transaction.parser(),
                        extensionRegistry);
                if (transactionsBuilder_ == null) {
                  ensureTransactionsIsMutable();
                  transactions_.add(m);
                } else {
                  transactionsBuilder_.addMessage(m);
                }
                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 long height_ ;
      /**
       * uint64 height = 1;
       * @return The height.
       */
      @java.lang.Override
      public long getHeight() {
        return height_;
      }
      /**
       * uint64 height = 1;
       * @param value The height to set.
       * @return This builder for chaining.
       */
      public Builder setHeight(long value) {

        height_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * uint64 height = 1;
       * @return This builder for chaining.
       */
      public Builder clearHeight() {
        bitField0_ = (bitField0_ & ~0x00000001);
        height_ = 0L;
        onChanged();
        return this;
      }

      private long size_ ;
      /**
       * uint64 size = 2;
       * @return The size.
       */
      @java.lang.Override
      public long getSize() {
        return size_;
      }
      /**
       * uint64 size = 2;
       * @param value The size to set.
       * @return This builder for chaining.
       */
      public Builder setSize(long value) {

        size_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * uint64 size = 2;
       * @return This builder for chaining.
       */
      public Builder clearSize() {
        bitField0_ = (bitField0_ & ~0x00000002);
        size_ = 0L;
        onChanged();
        return this;
      }

      private tech.figure.block.api.proto.BlockOuterClass.Header header_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Header, tech.figure.block.api.proto.BlockOuterClass.Header.Builder, tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder> headerBuilder_;
      /**
       * .api.Header header = 3;
       * @return Whether the header field is set.
       */
      public boolean hasHeader() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * .api.Header header = 3;
       * @return The header.
       */
      public tech.figure.block.api.proto.BlockOuterClass.Header getHeader() {
        if (headerBuilder_ == null) {
          return header_ == null ? tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance() : header_;
        } else {
          return headerBuilder_.getMessage();
        }
      }
      /**
       * .api.Header header = 3;
       */
      public Builder setHeader(tech.figure.block.api.proto.BlockOuterClass.Header value) {
        if (headerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
        } else {
          headerBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * .api.Header header = 3;
       */
      public Builder setHeader(
          tech.figure.block.api.proto.BlockOuterClass.Header.Builder builderForValue) {
        if (headerBuilder_ == null) {
          header_ = builderForValue.build();
        } else {
          headerBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * .api.Header header = 3;
       */
      public Builder mergeHeader(tech.figure.block.api.proto.BlockOuterClass.Header value) {
        if (headerBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0) &&
            header_ != null &&
            header_ != tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance()) {
            getHeaderBuilder().mergeFrom(value);
          } else {
            header_ = value;
          }
        } else {
          headerBuilder_.mergeFrom(value);
        }
        if (header_ != null) {
          bitField0_ |= 0x00000004;
          onChanged();
        }
        return this;
      }
      /**
       * .api.Header header = 3;
       */
      public Builder clearHeader() {
        bitField0_ = (bitField0_ & ~0x00000004);
        header_ = null;
        if (headerBuilder_ != null) {
          headerBuilder_.dispose();
          headerBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .api.Header header = 3;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Header.Builder getHeaderBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getHeaderFieldBuilder().getBuilder();
      }
      /**
       * .api.Header header = 3;
       */
      public tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder getHeaderOrBuilder() {
        if (headerBuilder_ != null) {
          return headerBuilder_.getMessageOrBuilder();
        } else {
          return header_ == null ?
              tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance() : header_;
        }
      }
      /**
       * .api.Header header = 3;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Header, tech.figure.block.api.proto.BlockOuterClass.Header.Builder, tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder> 
          getHeaderFieldBuilder() {
        if (headerBuilder_ == null) {
          headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.figure.block.api.proto.BlockOuterClass.Header, tech.figure.block.api.proto.BlockOuterClass.Header.Builder, tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder>(
                  getHeader(),
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        return headerBuilder_;
      }

      private com.google.protobuf.Timestamp time_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_;
      /**
       * .google.protobuf.Timestamp time = 4;
       * @return Whether the time field is set.
       */
      public boolean hasTime() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       * @return The time.
       */
      public com.google.protobuf.Timestamp getTime() {
        if (timeBuilder_ == null) {
          return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
        } else {
          return timeBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public Builder setTime(com.google.protobuf.Timestamp value) {
        if (timeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          time_ = value;
        } else {
          timeBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public Builder setTime(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (timeBuilder_ == null) {
          time_ = builderForValue.build();
        } else {
          timeBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public Builder mergeTime(com.google.protobuf.Timestamp value) {
        if (timeBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0) &&
            time_ != null &&
            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            getTimeBuilder().mergeFrom(value);
          } else {
            time_ = value;
          }
        } else {
          timeBuilder_.mergeFrom(value);
        }
        if (time_ != null) {
          bitField0_ |= 0x00000008;
          onChanged();
        }
        return this;
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public Builder clearTime() {
        bitField0_ = (bitField0_ & ~0x00000008);
        time_ = null;
        if (timeBuilder_ != null) {
          timeBuilder_.dispose();
          timeBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getTimeFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
        if (timeBuilder_ != null) {
          return timeBuilder_.getMessageOrBuilder();
        } else {
          return time_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : time_;
        }
      }
      /**
       * .google.protobuf.Timestamp time = 4;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getTimeFieldBuilder() {
        if (timeBuilder_ == null) {
          timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getTime(),
                  getParentForChildren(),
                  isClean());
          time_ = null;
        }
        return timeBuilder_;
      }

      private int numTxs_ ;
      /**
       * int32 num_txs = 5;
       * @return The numTxs.
       */
      @java.lang.Override
      public int getNumTxs() {
        return numTxs_;
      }
      /**
       * int32 num_txs = 5;
       * @param value The numTxs to set.
       * @return This builder for chaining.
       */
      public Builder setNumTxs(int value) {

        numTxs_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * int32 num_txs = 5;
       * @return This builder for chaining.
       */
      public Builder clearNumTxs() {
        bitField0_ = (bitField0_ & ~0x00000010);
        numTxs_ = 0;
        onChanged();
        return this;
      }

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> transactionsBuilder_;

      /**
       * repeated .api.Transaction transactions = 6;
       */
      public java.util.List getTransactionsList() {
        if (transactionsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(transactions_);
        } else {
          return transactionsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public int getTransactionsCount() {
        if (transactionsBuilder_ == null) {
          return transactions_.size();
        } else {
          return transactionsBuilder_.getCount();
        }
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);
        } else {
          return transactionsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder setTransactions(
          int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.set(index, value);
          onChanged();
        } else {
          transactionsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder setTransactions(
          int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.set(index, builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder addTransactions(tech.figure.block.api.proto.BlockOuterClass.Transaction value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.add(value);
          onChanged();
        } else {
          transactionsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder addTransactions(
          int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) {
        if (transactionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransactionsIsMutable();
          transactions_.add(index, value);
          onChanged();
        } else {
          transactionsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder addTransactions(
          tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.add(builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder addTransactions(
          int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.add(index, builderForValue.build());
          onChanged();
        } else {
          transactionsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder addAllTransactions(
          java.lang.Iterable values) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, transactions_);
          onChanged();
        } else {
          transactionsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder clearTransactions() {
        if (transactionsBuilder_ == null) {
          transactions_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
          onChanged();
        } else {
          transactionsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public Builder removeTransactions(int index) {
        if (transactionsBuilder_ == null) {
          ensureTransactionsIsMutable();
          transactions_.remove(index);
          onChanged();
        } else {
          transactionsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder getTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
          int index) {
        if (transactionsBuilder_ == null) {
          return transactions_.get(index);  } else {
          return transactionsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public java.util.List 
           getTransactionsOrBuilderList() {
        if (transactionsBuilder_ != null) {
          return transactionsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(transactions_);
        }
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionsBuilder() {
        return getTransactionsFieldBuilder().addBuilder(
            tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance());
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionsBuilder(
          int index) {
        return getTransactionsFieldBuilder().addBuilder(
            index, tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance());
      }
      /**
       * repeated .api.Transaction transactions = 6;
       */
      public java.util.List 
           getTransactionsBuilderList() {
        return getTransactionsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> 
          getTransactionsFieldBuilder() {
        if (transactionsBuilder_ == null) {
          transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder>(
                  transactions_,
                  ((bitField0_ & 0x00000020) != 0),
                  getParentForChildren(),
                  isClean());
          transactions_ = null;
        }
        return transactionsBuilder_;
      }
      @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:api.Block)
    }

    // @@protoc_insertion_point(class_scope:api.Block)
    private static final tech.figure.block.api.proto.BlockOuterClass.Block DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Block();
    }

    public static tech.figure.block.api.proto.BlockOuterClass.Block getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Block 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 tech.figure.block.api.proto.BlockOuterClass.Block getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BlocksOrBuilder extends
      // @@protoc_insertion_point(interface_extends:api.Blocks)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .api.Block blocks = 1;
     */
    java.util.List 
        getBlocksList();
    /**
     * repeated .api.Block blocks = 1;
     */
    tech.figure.block.api.proto.BlockOuterClass.Block getBlocks(int index);
    /**
     * repeated .api.Block blocks = 1;
     */
    int getBlocksCount();
    /**
     * repeated .api.Block blocks = 1;
     */
    java.util.List 
        getBlocksOrBuilderList();
    /**
     * repeated .api.Block blocks = 1;
     */
    tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder getBlocksOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code api.Blocks}
   */
  public static final class Blocks extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:api.Blocks)
      BlocksOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Blocks.newBuilder() to construct.
    private Blocks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Blocks() {
      blocks_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Blocks_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Blocks_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.figure.block.api.proto.BlockOuterClass.Blocks.class, tech.figure.block.api.proto.BlockOuterClass.Blocks.Builder.class);
    }

    public static final int BLOCKS_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private java.util.List blocks_;
    /**
     * repeated .api.Block blocks = 1;
     */
    @java.lang.Override
    public java.util.List getBlocksList() {
      return blocks_;
    }
    /**
     * repeated .api.Block blocks = 1;
     */
    @java.lang.Override
    public java.util.List 
        getBlocksOrBuilderList() {
      return blocks_;
    }
    /**
     * repeated .api.Block blocks = 1;
     */
    @java.lang.Override
    public int getBlocksCount() {
      return blocks_.size();
    }
    /**
     * repeated .api.Block blocks = 1;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.Block getBlocks(int index) {
      return blocks_.get(index);
    }
    /**
     * repeated .api.Block blocks = 1;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder getBlocksOrBuilder(
        int index) {
      return blocks_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

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

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

      size = 0;
      for (int i = 0; i < blocks_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, blocks_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.figure.block.api.proto.BlockOuterClass.Blocks)) {
        return super.equals(obj);
      }
      tech.figure.block.api.proto.BlockOuterClass.Blocks other = (tech.figure.block.api.proto.BlockOuterClass.Blocks) obj;

      if (!getBlocksList()
          .equals(other.getBlocksList())) 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 (getBlocksCount() > 0) {
        hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
        hash = (53 * hash) + getBlocksList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static tech.figure.block.api.proto.BlockOuterClass.Blocks 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 tech.figure.block.api.proto.BlockOuterClass.Blocks parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.figure.block.api.proto.BlockOuterClass.Blocks 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(tech.figure.block.api.proto.BlockOuterClass.Blocks 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 api.Blocks}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:api.Blocks)
        tech.figure.block.api.proto.BlockOuterClass.BlocksOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Blocks_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Blocks_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.figure.block.api.proto.BlockOuterClass.Blocks.class, tech.figure.block.api.proto.BlockOuterClass.Blocks.Builder.class);
      }

      // Construct using tech.figure.block.api.proto.BlockOuterClass.Blocks.newBuilder()
      private Builder() {

      }

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

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Blocks_descriptor;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Blocks getDefaultInstanceForType() {
        return tech.figure.block.api.proto.BlockOuterClass.Blocks.getDefaultInstance();
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Blocks build() {
        tech.figure.block.api.proto.BlockOuterClass.Blocks result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Blocks buildPartial() {
        tech.figure.block.api.proto.BlockOuterClass.Blocks result = new tech.figure.block.api.proto.BlockOuterClass.Blocks(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.Blocks result) {
        if (blocksBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            blocks_ = java.util.Collections.unmodifiableList(blocks_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.blocks_ = blocks_;
        } else {
          result.blocks_ = blocksBuilder_.build();
        }
      }

      private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Blocks result) {
        int from_bitField0_ = bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tech.figure.block.api.proto.BlockOuterClass.Blocks) {
          return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Blocks)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Blocks other) {
        if (other == tech.figure.block.api.proto.BlockOuterClass.Blocks.getDefaultInstance()) return this;
        if (blocksBuilder_ == null) {
          if (!other.blocks_.isEmpty()) {
            if (blocks_.isEmpty()) {
              blocks_ = other.blocks_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureBlocksIsMutable();
              blocks_.addAll(other.blocks_);
            }
            onChanged();
          }
        } else {
          if (!other.blocks_.isEmpty()) {
            if (blocksBuilder_.isEmpty()) {
              blocksBuilder_.dispose();
              blocksBuilder_ = null;
              blocks_ = other.blocks_;
              bitField0_ = (bitField0_ & ~0x00000001);
              blocksBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getBlocksFieldBuilder() : null;
            } else {
              blocksBuilder_.addAllMessages(other.blocks_);
            }
          }
        }
        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: {
                tech.figure.block.api.proto.BlockOuterClass.Block m =
                    input.readMessage(
                        tech.figure.block.api.proto.BlockOuterClass.Block.parser(),
                        extensionRegistry);
                if (blocksBuilder_ == null) {
                  ensureBlocksIsMutable();
                  blocks_.add(m);
                } else {
                  blocksBuilder_.addMessage(m);
                }
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Block, tech.figure.block.api.proto.BlockOuterClass.Block.Builder, tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder> blocksBuilder_;

      /**
       * repeated .api.Block blocks = 1;
       */
      public java.util.List getBlocksList() {
        if (blocksBuilder_ == null) {
          return java.util.Collections.unmodifiableList(blocks_);
        } else {
          return blocksBuilder_.getMessageList();
        }
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public int getBlocksCount() {
        if (blocksBuilder_ == null) {
          return blocks_.size();
        } else {
          return blocksBuilder_.getCount();
        }
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Block getBlocks(int index) {
        if (blocksBuilder_ == null) {
          return blocks_.get(index);
        } else {
          return blocksBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder setBlocks(
          int index, tech.figure.block.api.proto.BlockOuterClass.Block value) {
        if (blocksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlocksIsMutable();
          blocks_.set(index, value);
          onChanged();
        } else {
          blocksBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder setBlocks(
          int index, tech.figure.block.api.proto.BlockOuterClass.Block.Builder builderForValue) {
        if (blocksBuilder_ == null) {
          ensureBlocksIsMutable();
          blocks_.set(index, builderForValue.build());
          onChanged();
        } else {
          blocksBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder addBlocks(tech.figure.block.api.proto.BlockOuterClass.Block value) {
        if (blocksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlocksIsMutable();
          blocks_.add(value);
          onChanged();
        } else {
          blocksBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder addBlocks(
          int index, tech.figure.block.api.proto.BlockOuterClass.Block value) {
        if (blocksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlocksIsMutable();
          blocks_.add(index, value);
          onChanged();
        } else {
          blocksBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder addBlocks(
          tech.figure.block.api.proto.BlockOuterClass.Block.Builder builderForValue) {
        if (blocksBuilder_ == null) {
          ensureBlocksIsMutable();
          blocks_.add(builderForValue.build());
          onChanged();
        } else {
          blocksBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder addBlocks(
          int index, tech.figure.block.api.proto.BlockOuterClass.Block.Builder builderForValue) {
        if (blocksBuilder_ == null) {
          ensureBlocksIsMutable();
          blocks_.add(index, builderForValue.build());
          onChanged();
        } else {
          blocksBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder addAllBlocks(
          java.lang.Iterable values) {
        if (blocksBuilder_ == null) {
          ensureBlocksIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, blocks_);
          onChanged();
        } else {
          blocksBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder clearBlocks() {
        if (blocksBuilder_ == null) {
          blocks_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          blocksBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public Builder removeBlocks(int index) {
        if (blocksBuilder_ == null) {
          ensureBlocksIsMutable();
          blocks_.remove(index);
          onChanged();
        } else {
          blocksBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Block.Builder getBlocksBuilder(
          int index) {
        return getBlocksFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder getBlocksOrBuilder(
          int index) {
        if (blocksBuilder_ == null) {
          return blocks_.get(index);  } else {
          return blocksBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public java.util.List 
           getBlocksOrBuilderList() {
        if (blocksBuilder_ != null) {
          return blocksBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(blocks_);
        }
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Block.Builder addBlocksBuilder() {
        return getBlocksFieldBuilder().addBuilder(
            tech.figure.block.api.proto.BlockOuterClass.Block.getDefaultInstance());
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Block.Builder addBlocksBuilder(
          int index) {
        return getBlocksFieldBuilder().addBuilder(
            index, tech.figure.block.api.proto.BlockOuterClass.Block.getDefaultInstance());
      }
      /**
       * repeated .api.Block blocks = 1;
       */
      public java.util.List 
           getBlocksBuilderList() {
        return getBlocksFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Block, tech.figure.block.api.proto.BlockOuterClass.Block.Builder, tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder> 
          getBlocksFieldBuilder() {
        if (blocksBuilder_ == null) {
          blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              tech.figure.block.api.proto.BlockOuterClass.Block, tech.figure.block.api.proto.BlockOuterClass.Block.Builder, tech.figure.block.api.proto.BlockOuterClass.BlockOrBuilder>(
                  blocks_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          blocks_ = null;
        }
        return blocksBuilder_;
      }
      @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:api.Blocks)
    }

    // @@protoc_insertion_point(class_scope:api.Blocks)
    private static final tech.figure.block.api.proto.BlockOuterClass.Blocks DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Blocks();
    }

    public static tech.figure.block.api.proto.BlockOuterClass.Blocks getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Blocks 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 tech.figure.block.api.proto.BlockOuterClass.Blocks getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface VersionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:api.Version)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string app = 1;
     * @return The app.
     */
    java.lang.String getApp();
    /**
     * string app = 1;
     * @return The bytes for app.
     */
    com.google.protobuf.ByteString
        getAppBytes();

    /**
     * string block = 2;
     * @return The block.
     */
    java.lang.String getBlock();
    /**
     * string block = 2;
     * @return The bytes for block.
     */
    com.google.protobuf.ByteString
        getBlockBytes();
  }
  /**
   * Protobuf type {@code api.Version}
   */
  public static final class Version extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:api.Version)
      VersionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Version.newBuilder() to construct.
    private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Version() {
      app_ = "";
      block_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Version_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Version_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.figure.block.api.proto.BlockOuterClass.Version.class, tech.figure.block.api.proto.BlockOuterClass.Version.Builder.class);
    }

    public static final int APP_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object app_ = "";
    /**
     * string app = 1;
     * @return The app.
     */
    @java.lang.Override
    public java.lang.String getApp() {
      java.lang.Object ref = app_;
      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();
        app_ = s;
        return s;
      }
    }
    /**
     * string app = 1;
     * @return The bytes for app.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAppBytes() {
      java.lang.Object ref = app_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        app_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int BLOCK_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private volatile java.lang.Object block_ = "";
    /**
     * string block = 2;
     * @return The block.
     */
    @java.lang.Override
    public java.lang.String getBlock() {
      java.lang.Object ref = block_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        block_ = s;
        return s;
      }
    }
    /**
     * string block = 2;
     * @return The bytes for block.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBlockBytes() {
      java.lang.Object ref = block_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        block_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, app_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, block_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, app_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, block_);
      }
      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 tech.figure.block.api.proto.BlockOuterClass.Version)) {
        return super.equals(obj);
      }
      tech.figure.block.api.proto.BlockOuterClass.Version other = (tech.figure.block.api.proto.BlockOuterClass.Version) obj;

      if (!getApp()
          .equals(other.getApp())) return false;
      if (!getBlock()
          .equals(other.getBlock())) 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) + APP_FIELD_NUMBER;
      hash = (53 * hash) + getApp().hashCode();
      hash = (37 * hash) + BLOCK_FIELD_NUMBER;
      hash = (53 * hash) + getBlock().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static tech.figure.block.api.proto.BlockOuterClass.Version 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 tech.figure.block.api.proto.BlockOuterClass.Version parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.figure.block.api.proto.BlockOuterClass.Version 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(tech.figure.block.api.proto.BlockOuterClass.Version 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 api.Version}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:api.Version)
        tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Version_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Version_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.figure.block.api.proto.BlockOuterClass.Version.class, tech.figure.block.api.proto.BlockOuterClass.Version.Builder.class);
      }

      // Construct using tech.figure.block.api.proto.BlockOuterClass.Version.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        app_ = "";
        block_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Version_descriptor;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Version getDefaultInstanceForType() {
        return tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance();
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Version build() {
        tech.figure.block.api.proto.BlockOuterClass.Version result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Version buildPartial() {
        tech.figure.block.api.proto.BlockOuterClass.Version result = new tech.figure.block.api.proto.BlockOuterClass.Version(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Version result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.app_ = app_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.block_ = block_;
        }
      }

      @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 tech.figure.block.api.proto.BlockOuterClass.Version) {
          return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Version)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Version other) {
        if (other == tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance()) return this;
        if (!other.getApp().isEmpty()) {
          app_ = other.app_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getBlock().isEmpty()) {
          block_ = other.block_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

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

      private java.lang.Object app_ = "";
      /**
       * string app = 1;
       * @return The app.
       */
      public java.lang.String getApp() {
        java.lang.Object ref = app_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          app_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string app = 1;
       * @return The bytes for app.
       */
      public com.google.protobuf.ByteString
          getAppBytes() {
        java.lang.Object ref = app_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          app_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string app = 1;
       * @param value The app to set.
       * @return This builder for chaining.
       */
      public Builder setApp(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        app_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string app = 1;
       * @return This builder for chaining.
       */
      public Builder clearApp() {
        app_ = getDefaultInstance().getApp();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string app = 1;
       * @param value The bytes for app to set.
       * @return This builder for chaining.
       */
      public Builder setAppBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        app_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object block_ = "";
      /**
       * string block = 2;
       * @return The block.
       */
      public java.lang.String getBlock() {
        java.lang.Object ref = block_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          block_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string block = 2;
       * @return The bytes for block.
       */
      public com.google.protobuf.ByteString
          getBlockBytes() {
        java.lang.Object ref = block_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          block_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string block = 2;
       * @param value The block to set.
       * @return This builder for chaining.
       */
      public Builder setBlock(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        block_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * string block = 2;
       * @return This builder for chaining.
       */
      public Builder clearBlock() {
        block_ = getDefaultInstance().getBlock();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * string block = 2;
       * @param value The bytes for block to set.
       * @return This builder for chaining.
       */
      public Builder setBlockBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        block_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      @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:api.Version)
    }

    // @@protoc_insertion_point(class_scope:api.Version)
    private static final tech.figure.block.api.proto.BlockOuterClass.Version DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Version();
    }

    public static tech.figure.block.api.proto.BlockOuterClass.Version getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Version 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 tech.figure.block.api.proto.BlockOuterClass.Version getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:api.Header)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string chain_id = 1;
     * @return The chainId.
     */
    java.lang.String getChainId();
    /**
     * string chain_id = 1;
     * @return The bytes for chainId.
     */
    com.google.protobuf.ByteString
        getChainIdBytes();

    /**
     * .api.Version version = 2;
     * @return Whether the version field is set.
     */
    boolean hasVersion();
    /**
     * .api.Version version = 2;
     * @return The version.
     */
    tech.figure.block.api.proto.BlockOuterClass.Version getVersion();
    /**
     * .api.Version version = 2;
     */
    tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder getVersionOrBuilder();
  }
  /**
   * Protobuf type {@code api.Header}
   */
  public static final class Header extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:api.Header)
      HeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Header.newBuilder() to construct.
    private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Header() {
      chainId_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Header_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Header_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.figure.block.api.proto.BlockOuterClass.Header.class, tech.figure.block.api.proto.BlockOuterClass.Header.Builder.class);
    }

    private int bitField0_;
    public static final int CHAIN_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object chainId_ = "";
    /**
     * string chain_id = 1;
     * @return The chainId.
     */
    @java.lang.Override
    public java.lang.String getChainId() {
      java.lang.Object ref = chainId_;
      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();
        chainId_ = s;
        return s;
      }
    }
    /**
     * string chain_id = 1;
     * @return The bytes for chainId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getChainIdBytes() {
      java.lang.Object ref = chainId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        chainId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VERSION_FIELD_NUMBER = 2;
    private tech.figure.block.api.proto.BlockOuterClass.Version version_;
    /**
     * .api.Version version = 2;
     * @return Whether the version field is set.
     */
    @java.lang.Override
    public boolean hasVersion() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .api.Version version = 2;
     * @return The version.
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.Version getVersion() {
      return version_ == null ? tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance() : version_;
    }
    /**
     * .api.Version version = 2;
     */
    @java.lang.Override
    public tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder getVersionOrBuilder() {
      return version_ == null ? tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance() : version_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chainId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getVersion());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chainId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getVersion());
      }
      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 tech.figure.block.api.proto.BlockOuterClass.Header)) {
        return super.equals(obj);
      }
      tech.figure.block.api.proto.BlockOuterClass.Header other = (tech.figure.block.api.proto.BlockOuterClass.Header) obj;

      if (!getChainId()
          .equals(other.getChainId())) return false;
      if (hasVersion() != other.hasVersion()) return false;
      if (hasVersion()) {
        if (!getVersion()
            .equals(other.getVersion())) 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) + CHAIN_ID_FIELD_NUMBER;
      hash = (53 * hash) + getChainId().hashCode();
      if (hasVersion()) {
        hash = (37 * hash) + VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getVersion().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static tech.figure.block.api.proto.BlockOuterClass.Header 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 tech.figure.block.api.proto.BlockOuterClass.Header parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.figure.block.api.proto.BlockOuterClass.Header 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(tech.figure.block.api.proto.BlockOuterClass.Header 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 api.Header}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:api.Header)
        tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Header_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Header_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.figure.block.api.proto.BlockOuterClass.Header.class, tech.figure.block.api.proto.BlockOuterClass.Header.Builder.class);
      }

      // Construct using tech.figure.block.api.proto.BlockOuterClass.Header.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getVersionFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        chainId_ = "";
        version_ = null;
        if (versionBuilder_ != null) {
          versionBuilder_.dispose();
          versionBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Header_descriptor;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Header getDefaultInstanceForType() {
        return tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance();
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Header build() {
        tech.figure.block.api.proto.BlockOuterClass.Header result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.figure.block.api.proto.BlockOuterClass.Header buildPartial() {
        tech.figure.block.api.proto.BlockOuterClass.Header result = new tech.figure.block.api.proto.BlockOuterClass.Header(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Header result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.chainId_ = chainId_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.version_ = versionBuilder_ == null
              ? version_
              : versionBuilder_.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 tech.figure.block.api.proto.BlockOuterClass.Header) {
          return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Header)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Header other) {
        if (other == tech.figure.block.api.proto.BlockOuterClass.Header.getDefaultInstance()) return this;
        if (!other.getChainId().isEmpty()) {
          chainId_ = other.chainId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasVersion()) {
          mergeVersion(other.getVersion());
        }
        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: {
                chainId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getVersionFieldBuilder().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 java.lang.Object chainId_ = "";
      /**
       * string chain_id = 1;
       * @return The chainId.
       */
      public java.lang.String getChainId() {
        java.lang.Object ref = chainId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          chainId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string chain_id = 1;
       * @return The bytes for chainId.
       */
      public com.google.protobuf.ByteString
          getChainIdBytes() {
        java.lang.Object ref = chainId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          chainId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string chain_id = 1;
       * @param value The chainId to set.
       * @return This builder for chaining.
       */
      public Builder setChainId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        chainId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string chain_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearChainId() {
        chainId_ = getDefaultInstance().getChainId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string chain_id = 1;
       * @param value The bytes for chainId to set.
       * @return This builder for chaining.
       */
      public Builder setChainIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        chainId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private tech.figure.block.api.proto.BlockOuterClass.Version version_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Version, tech.figure.block.api.proto.BlockOuterClass.Version.Builder, tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder> versionBuilder_;
      /**
       * .api.Version version = 2;
       * @return Whether the version field is set.
       */
      public boolean hasVersion() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * .api.Version version = 2;
       * @return The version.
       */
      public tech.figure.block.api.proto.BlockOuterClass.Version getVersion() {
        if (versionBuilder_ == null) {
          return version_ == null ? tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance() : version_;
        } else {
          return versionBuilder_.getMessage();
        }
      }
      /**
       * .api.Version version = 2;
       */
      public Builder setVersion(tech.figure.block.api.proto.BlockOuterClass.Version value) {
        if (versionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          version_ = value;
        } else {
          versionBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .api.Version version = 2;
       */
      public Builder setVersion(
          tech.figure.block.api.proto.BlockOuterClass.Version.Builder builderForValue) {
        if (versionBuilder_ == null) {
          version_ = builderForValue.build();
        } else {
          versionBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .api.Version version = 2;
       */
      public Builder mergeVersion(tech.figure.block.api.proto.BlockOuterClass.Version value) {
        if (versionBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            version_ != null &&
            version_ != tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance()) {
            getVersionBuilder().mergeFrom(value);
          } else {
            version_ = value;
          }
        } else {
          versionBuilder_.mergeFrom(value);
        }
        if (version_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * .api.Version version = 2;
       */
      public Builder clearVersion() {
        bitField0_ = (bitField0_ & ~0x00000002);
        version_ = null;
        if (versionBuilder_ != null) {
          versionBuilder_.dispose();
          versionBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .api.Version version = 2;
       */
      public tech.figure.block.api.proto.BlockOuterClass.Version.Builder getVersionBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getVersionFieldBuilder().getBuilder();
      }
      /**
       * .api.Version version = 2;
       */
      public tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder getVersionOrBuilder() {
        if (versionBuilder_ != null) {
          return versionBuilder_.getMessageOrBuilder();
        } else {
          return version_ == null ?
              tech.figure.block.api.proto.BlockOuterClass.Version.getDefaultInstance() : version_;
        }
      }
      /**
       * .api.Version version = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.figure.block.api.proto.BlockOuterClass.Version, tech.figure.block.api.proto.BlockOuterClass.Version.Builder, tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder> 
          getVersionFieldBuilder() {
        if (versionBuilder_ == null) {
          versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.figure.block.api.proto.BlockOuterClass.Version, tech.figure.block.api.proto.BlockOuterClass.Version.Builder, tech.figure.block.api.proto.BlockOuterClass.VersionOrBuilder>(
                  getVersion(),
                  getParentForChildren(),
                  isClean());
          version_ = null;
        }
        return versionBuilder_;
      }
      @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:api.Header)
    }

    // @@protoc_insertion_point(class_scope:api.Header)
    private static final tech.figure.block.api.proto.BlockOuterClass.Header DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Header();
    }

    public static tech.figure.block.api.proto.BlockOuterClass.Header getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header 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 tech.figure.block.api.proto.BlockOuterClass.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionsOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Transactions) com.google.protobuf.MessageOrBuilder { /** * repeated .api.Transaction transaction = 1; */ java.util.List getTransactionList(); /** * repeated .api.Transaction transaction = 1; */ tech.figure.block.api.proto.BlockOuterClass.Transaction getTransaction(int index); /** * repeated .api.Transaction transaction = 1; */ int getTransactionCount(); /** * repeated .api.Transaction transaction = 1; */ java.util.List getTransactionOrBuilderList(); /** * repeated .api.Transaction transaction = 1; */ tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionOrBuilder( int index); } /** * Protobuf type {@code api.Transactions} */ public static final class Transactions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Transactions) TransactionsOrBuilder { private static final long serialVersionUID = 0L; // Use Transactions.newBuilder() to construct. private Transactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transactions() { transaction_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Transactions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transactions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transactions_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Transactions.class, tech.figure.block.api.proto.BlockOuterClass.Transactions.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List transaction_; /** * repeated .api.Transaction transaction = 1; */ @java.lang.Override public java.util.List getTransactionList() { return transaction_; } /** * repeated .api.Transaction transaction = 1; */ @java.lang.Override public java.util.List getTransactionOrBuilderList() { return transaction_; } /** * repeated .api.Transaction transaction = 1; */ @java.lang.Override public int getTransactionCount() { return transaction_.size(); } /** * repeated .api.Transaction transaction = 1; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransaction(int index) { return transaction_.get(index); } /** * repeated .api.Transaction transaction = 1; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionOrBuilder( int index) { return transaction_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transaction_.size(); i++) { output.writeMessage(1, transaction_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < transaction_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transaction_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.figure.block.api.proto.BlockOuterClass.Transactions)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Transactions other = (tech.figure.block.api.proto.BlockOuterClass.Transactions) obj; if (!getTransactionList() .equals(other.getTransactionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTransactionCount() > 0) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransactionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions 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 tech.figure.block.api.proto.BlockOuterClass.Transactions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions 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 tech.figure.block.api.proto.BlockOuterClass.Transactions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions 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(tech.figure.block.api.proto.BlockOuterClass.Transactions 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 api.Transactions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Transactions) tech.figure.block.api.proto.BlockOuterClass.TransactionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transactions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transactions_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Transactions.class, tech.figure.block.api.proto.BlockOuterClass.Transactions.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Transactions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); } else { transaction_ = null; transactionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transactions_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transactions getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Transactions.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transactions build() { tech.figure.block.api.proto.BlockOuterClass.Transactions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transactions buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Transactions result = new tech.figure.block.api.proto.BlockOuterClass.Transactions(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.Transactions result) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); bitField0_ = (bitField0_ & ~0x00000001); } result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Transactions result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.figure.block.api.proto.BlockOuterClass.Transactions) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Transactions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Transactions other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Transactions.getDefaultInstance()) return this; if (transactionBuilder_ == null) { if (!other.transaction_.isEmpty()) { if (transaction_.isEmpty()) { transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransactionIsMutable(); transaction_.addAll(other.transaction_); } onChanged(); } } else { if (!other.transaction_.isEmpty()) { if (transactionBuilder_.isEmpty()) { transactionBuilder_.dispose(); transactionBuilder_ = null; transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000001); transactionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionFieldBuilder() : null; } else { transactionBuilder_.addAllMessages(other.transaction_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.figure.block.api.proto.BlockOuterClass.Transaction m = input.readMessage( tech.figure.block.api.proto.BlockOuterClass.Transaction.parser(), extensionRegistry); if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(m); } else { transactionBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List transaction_ = java.util.Collections.emptyList(); private void ensureTransactionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transaction_ = new java.util.ArrayList(transaction_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> transactionBuilder_; /** * repeated .api.Transaction transaction = 1; */ public java.util.List getTransactionList() { if (transactionBuilder_ == null) { return java.util.Collections.unmodifiableList(transaction_); } else { return transactionBuilder_.getMessageList(); } } /** * repeated .api.Transaction transaction = 1; */ public int getTransactionCount() { if (transactionBuilder_ == null) { return transaction_.size(); } else { return transactionBuilder_.getCount(); } } /** * repeated .api.Transaction transaction = 1; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransaction(int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessage(index); } } /** * repeated .api.Transaction transaction = 1; */ public Builder setTransaction( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.set(index, value); onChanged(); } else { transactionBuilder_.setMessage(index, value); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder setTransaction( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.set(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder addTransaction(tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(value); onChanged(); } else { transactionBuilder_.addMessage(value); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder addTransaction( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(index, value); onChanged(); } else { transactionBuilder_.addMessage(index, value); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder addTransaction( tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder addTransaction( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder addAllTransaction( java.lang.Iterable values) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transaction_); onChanged(); } else { transactionBuilder_.addAllMessages(values); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transactionBuilder_.clear(); } return this; } /** * repeated .api.Transaction transaction = 1; */ public Builder removeTransaction(int index) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.remove(index); onChanged(); } else { transactionBuilder_.remove(index); } return this; } /** * repeated .api.Transaction transaction = 1; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder getTransactionBuilder( int index) { return getTransactionFieldBuilder().getBuilder(index); } /** * repeated .api.Transaction transaction = 1; */ public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionOrBuilder( int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.Transaction transaction = 1; */ public java.util.List getTransactionOrBuilderList() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transaction_); } } /** * repeated .api.Transaction transaction = 1; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionBuilder() { return getTransactionFieldBuilder().addBuilder( tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance()); } /** * repeated .api.Transaction transaction = 1; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionBuilder( int index) { return getTransactionFieldBuilder().addBuilder( index, tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance()); } /** * repeated .api.Transaction transaction = 1; */ public java.util.List getTransactionBuilderList() { return getTransactionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder>( transaction_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Transactions) } // @@protoc_insertion_point(class_scope:api.Transactions) private static final tech.figure.block.api.proto.BlockOuterClass.Transactions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Transactions(); } public static tech.figure.block.api.proto.BlockOuterClass.Transactions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transactions 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 tech.figure.block.api.proto.BlockOuterClass.Transactions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionsMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:api.TransactionsMessage) com.google.protobuf.MessageOrBuilder { /** * uint64 block_height = 1; * @return The blockHeight. */ long getBlockHeight(); /** * repeated .api.Transaction transactions = 2; */ java.util.List getTransactionsList(); /** * repeated .api.Transaction transactions = 2; */ tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index); /** * repeated .api.Transaction transactions = 2; */ int getTransactionsCount(); /** * repeated .api.Transaction transactions = 2; */ java.util.List getTransactionsOrBuilderList(); /** * repeated .api.Transaction transactions = 2; */ tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder( int index); } /** * Protobuf type {@code api.TransactionsMessage} */ public static final class TransactionsMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.TransactionsMessage) TransactionsMessageOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionsMessage.newBuilder() to construct. private TransactionsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionsMessage() { transactions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionsMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TransactionsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TransactionsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.class, tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.Builder.class); } public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1; private long blockHeight_ = 0L; /** * uint64 block_height = 1; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } public static final int TRANSACTIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List transactions_; /** * repeated .api.Transaction transactions = 2; */ @java.lang.Override public java.util.List getTransactionsList() { return transactions_; } /** * repeated .api.Transaction transactions = 2; */ @java.lang.Override public java.util.List getTransactionsOrBuilderList() { return transactions_; } /** * repeated .api.Transaction transactions = 2; */ @java.lang.Override public int getTransactionsCount() { return transactions_.size(); } /** * repeated .api.Transaction transactions = 2; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index) { return transactions_.get(index); } /** * repeated .api.Transaction transactions = 2; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder( int index) { return transactions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (blockHeight_ != 0L) { output.writeUInt64(1, blockHeight_); } for (int i = 0; i < transactions_.size(); i++) { output.writeMessage(2, transactions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (blockHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blockHeight_); } for (int i = 0; i < transactions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, transactions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage other = (tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage) obj; if (getBlockHeight() != other.getBlockHeight()) return false; if (!getTransactionsList() .equals(other.getTransactionsList())) 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) + BLOCK_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockHeight()); if (getTransactionsCount() > 0) { hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage 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 tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage 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 tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage 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(tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage 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 api.TransactionsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.TransactionsMessage) tech.figure.block.api.proto.BlockOuterClass.TransactionsMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TransactionsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TransactionsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.class, tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; blockHeight_ = 0L; if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); } else { transactions_ = null; transactionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TransactionsMessage_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage build() { tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage buildPartial() { tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage result = new tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage result) { if (transactionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); bitField0_ = (bitField0_ & ~0x00000002); } result.transactions_ = transactions_; } else { result.transactions_ = transactionsBuilder_.build(); } } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.blockHeight_ = blockHeight_; } } @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 tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage other) { if (other == tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage.getDefaultInstance()) return this; if (other.getBlockHeight() != 0L) { setBlockHeight(other.getBlockHeight()); } if (transactionsBuilder_ == null) { if (!other.transactions_.isEmpty()) { if (transactions_.isEmpty()) { transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTransactionsIsMutable(); transactions_.addAll(other.transactions_); } onChanged(); } } else { if (!other.transactions_.isEmpty()) { if (transactionsBuilder_.isEmpty()) { transactionsBuilder_.dispose(); transactionsBuilder_ = null; transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000002); transactionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionsFieldBuilder() : null; } else { transactionsBuilder_.addAllMessages(other.transactions_); } } } 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: { blockHeight_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.figure.block.api.proto.BlockOuterClass.Transaction m = input.readMessage( tech.figure.block.api.proto.BlockOuterClass.Transaction.parser(), extensionRegistry); if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(m); } else { transactionsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long blockHeight_ ; /** * uint64 block_height = 1; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } /** * uint64 block_height = 1; * @param value The blockHeight to set. * @return This builder for chaining. */ public Builder setBlockHeight(long value) { blockHeight_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint64 block_height = 1; * @return This builder for chaining. */ public Builder clearBlockHeight() { bitField0_ = (bitField0_ & ~0x00000001); blockHeight_ = 0L; onChanged(); return this; } private java.util.List transactions_ = java.util.Collections.emptyList(); private void ensureTransactionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { transactions_ = new java.util.ArrayList(transactions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> transactionsBuilder_; /** * repeated .api.Transaction transactions = 2; */ public java.util.List getTransactionsList() { if (transactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transactions_); } else { return transactionsBuilder_.getMessageList(); } } /** * repeated .api.Transaction transactions = 2; */ public int getTransactionsCount() { if (transactionsBuilder_ == null) { return transactions_.size(); } else { return transactionsBuilder_.getCount(); } } /** * repeated .api.Transaction transactions = 2; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction getTransactions(int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessage(index); } } /** * repeated .api.Transaction transactions = 2; */ public Builder setTransactions( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.set(index, value); onChanged(); } else { transactionsBuilder_.setMessage(index, value); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder setTransactions( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.set(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder addTransactions(tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(value); onChanged(); } else { transactionsBuilder_.addMessage(value); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder addTransactions( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(index, value); onChanged(); } else { transactionsBuilder_.addMessage(index, value); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder addTransactions( tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder addTransactions( int index, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder addAllTransactions( java.lang.Iterable values) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactions_); onChanged(); } else { transactionsBuilder_.addAllMessages(values); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder clearTransactions() { if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { transactionsBuilder_.clear(); } return this; } /** * repeated .api.Transaction transactions = 2; */ public Builder removeTransactions(int index) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.remove(index); onChanged(); } else { transactionsBuilder_.remove(index); } return this; } /** * repeated .api.Transaction transactions = 2; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder getTransactionsBuilder( int index) { return getTransactionsFieldBuilder().getBuilder(index); } /** * repeated .api.Transaction transactions = 2; */ public tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder getTransactionsOrBuilder( int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.Transaction transactions = 2; */ public java.util.List getTransactionsOrBuilderList() { if (transactionsBuilder_ != null) { return transactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactions_); } } /** * repeated .api.Transaction transactions = 2; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionsBuilder() { return getTransactionsFieldBuilder().addBuilder( tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance()); } /** * repeated .api.Transaction transactions = 2; */ public tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder addTransactionsBuilder( int index) { return getTransactionsFieldBuilder().addBuilder( index, tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance()); } /** * repeated .api.Transaction transactions = 2; */ public java.util.List getTransactionsBuilderList() { return getTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder> getTransactionsFieldBuilder() { if (transactionsBuilder_ == null) { transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Transaction, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder, tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder>( transactions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); transactions_ = null; } return transactionsBuilder_; } @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:api.TransactionsMessage) } // @@protoc_insertion_point(class_scope:api.TransactionsMessage) private static final tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage(); } public static tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionsMessage 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 tech.figure.block.api.proto.BlockOuterClass.TransactionsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Transaction) com.google.protobuf.MessageOrBuilder { /** * string tx_hash = 1; * @return The txHash. */ java.lang.String getTxHash(); /** * string tx_hash = 1; * @return The bytes for txHash. */ com.google.protobuf.ByteString getTxHashBytes(); /** * uint64 block_height = 2; * @return The blockHeight. */ long getBlockHeight(); /** * uint64 code = 3; * @return The code. */ long getCode(); /** * string data = 4; * @return The data. */ java.lang.String getData(); /** * string data = 4; * @return The bytes for data. */ com.google.protobuf.ByteString getDataBytes(); /** * string info = 5; * @return The info. */ java.lang.String getInfo(); /** * string info = 5; * @return The bytes for info. */ com.google.protobuf.ByteString getInfoBytes(); /** * uint64 gas_wanted = 6; * @return The gasWanted. */ long getGasWanted(); /** * uint64 gas_used = 7; * @return The gasUsed. */ long getGasUsed(); /** * uint32 num_events = 8; * @return The numEvents. */ int getNumEvents(); /** * repeated string addresses = 9; * @return A list containing the addresses. */ java.util.List getAddressesList(); /** * repeated string addresses = 9; * @return The count of addresses. */ int getAddressesCount(); /** * repeated string addresses = 9; * @param index The index of the element to return. * @return The addresses at the given index. */ java.lang.String getAddresses(int index); /** * repeated string addresses = 9; * @param index The index of the value to return. * @return The bytes of the addresses at the given index. */ com.google.protobuf.ByteString getAddressesBytes(int index); /** * repeated string messages = 10; * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated string messages = 10; * @return The count of messages. */ int getMessagesCount(); /** * repeated string messages = 10; * @param index The index of the element to return. * @return The messages at the given index. */ java.lang.String getMessages(int index); /** * repeated string messages = 10; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ com.google.protobuf.ByteString getMessagesBytes(int index); /** * repeated .api.TxEvent events = 11; */ java.util.List getEventsList(); /** * repeated .api.TxEvent events = 11; */ tech.figure.block.api.proto.BlockOuterClass.TxEvent getEvents(int index); /** * repeated .api.TxEvent events = 11; */ int getEventsCount(); /** * repeated .api.TxEvent events = 11; */ java.util.List getEventsOrBuilderList(); /** * repeated .api.TxEvent events = 11; */ tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder getEventsOrBuilder( int index); /** * repeated string tags = 12; * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 12; * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 12; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 12; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * .api.Fee fee = 13; * @return Whether the fee field is set. */ boolean hasFee(); /** * .api.Fee fee = 13; * @return The fee. */ tech.figure.block.api.proto.BlockOuterClass.Fee getFee(); /** * .api.Fee fee = 13; */ tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder getFeeOrBuilder(); } /** * Protobuf type {@code api.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Transaction) TransactionOrBuilder { private static final long serialVersionUID = 0L; // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transaction() { txHash_ = ""; data_ = ""; info_ = ""; addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); events_ = java.util.Collections.emptyList(); tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Transaction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Transaction.class, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder.class); } private int bitField0_; public static final int TX_HASH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object txHash_ = ""; /** * string tx_hash = 1; * @return The txHash. */ @java.lang.Override public java.lang.String getTxHash() { java.lang.Object ref = txHash_; 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(); txHash_ = s; return s; } } /** * string tx_hash = 1; * @return The bytes for txHash. */ @java.lang.Override public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCK_HEIGHT_FIELD_NUMBER = 2; private long blockHeight_ = 0L; /** * uint64 block_height = 2; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } public static final int CODE_FIELD_NUMBER = 3; private long code_ = 0L; /** * uint64 code = 3; * @return The code. */ @java.lang.Override public long getCode() { return code_; } public static final int DATA_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object data_ = ""; /** * string data = 4; * @return The data. */ @java.lang.Override public java.lang.String getData() { java.lang.Object ref = data_; 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(); data_ = s; return s; } } /** * string data = 4; * @return The bytes for data. */ @java.lang.Override public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INFO_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object info_ = ""; /** * string info = 5; * @return The info. */ @java.lang.Override public java.lang.String getInfo() { java.lang.Object ref = info_; 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(); info_ = s; return s; } } /** * string info = 5; * @return The bytes for info. */ @java.lang.Override public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GAS_WANTED_FIELD_NUMBER = 6; private long gasWanted_ = 0L; /** * uint64 gas_wanted = 6; * @return The gasWanted. */ @java.lang.Override public long getGasWanted() { return gasWanted_; } public static final int GAS_USED_FIELD_NUMBER = 7; private long gasUsed_ = 0L; /** * uint64 gas_used = 7; * @return The gasUsed. */ @java.lang.Override public long getGasUsed() { return gasUsed_; } public static final int NUM_EVENTS_FIELD_NUMBER = 8; private int numEvents_ = 0; /** * uint32 num_events = 8; * @return The numEvents. */ @java.lang.Override public int getNumEvents() { return numEvents_; } public static final int ADDRESSES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string addresses = 9; * @return A list containing the addresses. */ public com.google.protobuf.ProtocolStringList getAddressesList() { return addresses_; } /** * repeated string addresses = 9; * @return The count of addresses. */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 9; * @param index The index of the element to return. * @return The addresses at the given index. */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 9; * @param index The index of the value to return. * @return The bytes of the addresses at the given index. */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } public static final int MESSAGES_FIELD_NUMBER = 10; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string messages = 10; * @return A list containing the messages. */ public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** * repeated string messages = 10; * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated string messages = 10; * @param index The index of the element to return. * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); } /** * repeated string messages = 10; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } public static final int EVENTS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List events_; /** * repeated .api.TxEvent events = 11; */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .api.TxEvent events = 11; */ @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .api.TxEvent events = 11; */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .api.TxEvent events = 11; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TxEvent getEvents(int index) { return events_.get(index); } /** * repeated .api.TxEvent events = 11; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int TAGS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string tags = 12; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 12; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 12; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 12; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int FEE_FIELD_NUMBER = 13; private tech.figure.block.api.proto.BlockOuterClass.Fee fee_; /** * .api.Fee fee = 13; * @return Whether the fee field is set. */ @java.lang.Override public boolean hasFee() { return ((bitField0_ & 0x00000001) != 0); } /** * .api.Fee fee = 13; * @return The fee. */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Fee getFee() { return fee_ == null ? tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance() : fee_; } /** * .api.Fee fee = 13; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder getFeeOrBuilder() { return fee_ == null ? tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance() : fee_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHash_); } if (blockHeight_ != 0L) { output.writeUInt64(2, blockHeight_); } if (code_ != 0L) { output.writeUInt64(3, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, info_); } if (gasWanted_ != 0L) { output.writeUInt64(6, gasWanted_); } if (gasUsed_ != 0L) { output.writeUInt64(7, gasUsed_); } if (numEvents_ != 0) { output.writeUInt32(8, numEvents_); } for (int i = 0; i < addresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, addresses_.getRaw(i)); } for (int i = 0; i < messages_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, messages_.getRaw(i)); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(11, events_.get(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, tags_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(13, getFee()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHash_); } if (blockHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blockHeight_); } if (code_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, info_); } if (gasWanted_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, gasWanted_); } if (gasUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, gasUsed_); } if (numEvents_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, numEvents_); } { int dataSize = 0; for (int i = 0; i < addresses_.size(); i++) { dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); } size += dataSize; size += 1 * getAddressesList().size(); } { int dataSize = 0; for (int i = 0; i < messages_.size(); i++) { dataSize += computeStringSizeNoTag(messages_.getRaw(i)); } size += dataSize; size += 1 * getMessagesList().size(); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, events_.get(i)); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getFee()); } 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 tech.figure.block.api.proto.BlockOuterClass.Transaction)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Transaction other = (tech.figure.block.api.proto.BlockOuterClass.Transaction) obj; if (!getTxHash() .equals(other.getTxHash())) return false; if (getBlockHeight() != other.getBlockHeight()) return false; if (getCode() != other.getCode()) return false; if (!getData() .equals(other.getData())) return false; if (!getInfo() .equals(other.getInfo())) return false; if (getGasWanted() != other.getGasWanted()) return false; if (getGasUsed() != other.getGasUsed()) return false; if (getNumEvents() != other.getNumEvents()) return false; if (!getAddressesList() .equals(other.getAddressesList())) return false; if (!getMessagesList() .equals(other.getMessagesList())) return false; if (!getEventsList() .equals(other.getEventsList())) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (hasFee() != other.hasFee()) return false; if (hasFee()) { if (!getFee() .equals(other.getFee())) 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) + TX_HASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockHeight()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCode()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGasWanted()); hash = (37 * hash) + GAS_USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGasUsed()); hash = (37 * hash) + NUM_EVENTS_FIELD_NUMBER; hash = (53 * hash) + getNumEvents(); if (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); } if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasFee()) { hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + getFee().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction 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 tech.figure.block.api.proto.BlockOuterClass.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction 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 tech.figure.block.api.proto.BlockOuterClass.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction 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(tech.figure.block.api.proto.BlockOuterClass.Transaction 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 api.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Transaction) tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Transaction.class, tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Transaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); getFeeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; txHash_ = ""; blockHeight_ = 0L; code_ = 0L; data_ = ""; info_ = ""; gasWanted_ = 0L; gasUsed_ = 0L; numEvents_ = 0; addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); fee_ = null; if (feeBuilder_ != null) { feeBuilder_.dispose(); feeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Transaction_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transaction getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transaction build() { tech.figure.block.api.proto.BlockOuterClass.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Transaction buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Transaction result = new tech.figure.block.api.proto.BlockOuterClass.Transaction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.Transaction result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000400); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Transaction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.txHash_ = txHash_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.blockHeight_ = blockHeight_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.info_ = info_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.gasWanted_ = gasWanted_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.gasUsed_ = gasUsed_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.numEvents_ = numEvents_; } if (((from_bitField0_ & 0x00000100) != 0)) { addresses_.makeImmutable(); result.addresses_ = addresses_; } if (((from_bitField0_ & 0x00000200) != 0)) { messages_.makeImmutable(); result.messages_ = messages_; } if (((from_bitField0_ & 0x00000800) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { result.fee_ = feeBuilder_ == null ? fee_ : feeBuilder_.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 tech.figure.block.api.proto.BlockOuterClass.Transaction) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Transaction other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Transaction.getDefaultInstance()) return this; if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; bitField0_ |= 0x00000001; onChanged(); } if (other.getBlockHeight() != 0L) { setBlockHeight(other.getBlockHeight()); } if (other.getCode() != 0L) { setCode(other.getCode()); } if (!other.getData().isEmpty()) { data_ = other.data_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getInfo().isEmpty()) { info_ = other.info_; bitField0_ |= 0x00000010; onChanged(); } if (other.getGasWanted() != 0L) { setGasWanted(other.getGasWanted()); } if (other.getGasUsed() != 0L) { setGasUsed(other.getGasUsed()); } if (other.getNumEvents() != 0) { setNumEvents(other.getNumEvents()); } if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ |= 0x00000100; } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ |= 0x00000200; } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000400); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00000800; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (other.hasFee()) { mergeFee(other.getFee()); } 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: { txHash_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { blockHeight_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { code_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { data_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { info_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { gasWanted_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { gasUsed_ = input.readUInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { numEvents_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureAddressesIsMutable(); addresses_.add(s); break; } // case 74 case 82: { java.lang.String s = input.readStringRequireUtf8(); ensureMessagesIsMutable(); messages_.add(s); break; } // case 82 case 90: { tech.figure.block.api.proto.BlockOuterClass.TxEvent m = input.readMessage( tech.figure.block.api.proto.BlockOuterClass.TxEvent.parser(), extensionRegistry); if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(m); } else { eventsBuilder_.addMessage(m); } break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 98 case 106: { input.readMessage( getFeeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object txHash_ = ""; /** * string tx_hash = 1; * @return The txHash. */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tx_hash = 1; * @return The bytes for txHash. */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tx_hash = 1; * @param value The txHash to set. * @return This builder for chaining. */ public Builder setTxHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string tx_hash = 1; * @return This builder for chaining. */ public Builder clearTxHash() { txHash_ = getDefaultInstance().getTxHash(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string tx_hash = 1; * @param value The bytes for txHash to set. * @return This builder for chaining. */ public Builder setTxHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long blockHeight_ ; /** * uint64 block_height = 2; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } /** * uint64 block_height = 2; * @param value The blockHeight to set. * @return This builder for chaining. */ public Builder setBlockHeight(long value) { blockHeight_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 block_height = 2; * @return This builder for chaining. */ public Builder clearBlockHeight() { bitField0_ = (bitField0_ & ~0x00000002); blockHeight_ = 0L; onChanged(); return this; } private long code_ ; /** * uint64 code = 3; * @return The code. */ @java.lang.Override public long getCode() { return code_; } /** * uint64 code = 3; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(long value) { code_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * uint64 code = 3; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000004); code_ = 0L; onChanged(); return this; } private java.lang.Object data_ = ""; /** * string data = 4; * @return The data. */ public java.lang.String getData() { java.lang.Object ref = data_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; } else { return (java.lang.String) ref; } } /** * string data = 4; * @return The bytes for data. */ public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string data = 4; * @param value The data to set. * @return This builder for chaining. */ public Builder setData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string data = 4; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string data = 4; * @param value The bytes for data to set. * @return This builder for chaining. */ public Builder setDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); data_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object info_ = ""; /** * string info = 5; * @return The info. */ public java.lang.String getInfo() { java.lang.Object ref = info_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); info_ = s; return s; } else { return (java.lang.String) ref; } } /** * string info = 5; * @return The bytes for info. */ public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string info = 5; * @param value The info to set. * @return This builder for chaining. */ public Builder setInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } info_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string info = 5; * @return This builder for chaining. */ public Builder clearInfo() { info_ = getDefaultInstance().getInfo(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string info = 5; * @param value The bytes for info to set. * @return This builder for chaining. */ public Builder setInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); info_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private long gasWanted_ ; /** * uint64 gas_wanted = 6; * @return The gasWanted. */ @java.lang.Override public long getGasWanted() { return gasWanted_; } /** * uint64 gas_wanted = 6; * @param value The gasWanted to set. * @return This builder for chaining. */ public Builder setGasWanted(long value) { gasWanted_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * uint64 gas_wanted = 6; * @return This builder for chaining. */ public Builder clearGasWanted() { bitField0_ = (bitField0_ & ~0x00000020); gasWanted_ = 0L; onChanged(); return this; } private long gasUsed_ ; /** * uint64 gas_used = 7; * @return The gasUsed. */ @java.lang.Override public long getGasUsed() { return gasUsed_; } /** * uint64 gas_used = 7; * @param value The gasUsed to set. * @return This builder for chaining. */ public Builder setGasUsed(long value) { gasUsed_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * uint64 gas_used = 7; * @return This builder for chaining. */ public Builder clearGasUsed() { bitField0_ = (bitField0_ & ~0x00000040); gasUsed_ = 0L; onChanged(); return this; } private int numEvents_ ; /** * uint32 num_events = 8; * @return The numEvents. */ @java.lang.Override public int getNumEvents() { return numEvents_; } /** * uint32 num_events = 8; * @param value The numEvents to set. * @return This builder for chaining. */ public Builder setNumEvents(int value) { numEvents_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * uint32 num_events = 8; * @return This builder for chaining. */ public Builder clearNumEvents() { bitField0_ = (bitField0_ & ~0x00000080); numEvents_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAddressesIsMutable() { if (!addresses_.isModifiable()) { addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); } bitField0_ |= 0x00000100; } /** * repeated string addresses = 9; * @return A list containing the addresses. */ public com.google.protobuf.ProtocolStringList getAddressesList() { addresses_.makeImmutable(); return addresses_; } /** * repeated string addresses = 9; * @return The count of addresses. */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 9; * @param index The index of the element to return. * @return The addresses at the given index. */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 9; * @param index The index of the value to return. * @return The bytes of the addresses at the given index. */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } /** * repeated string addresses = 9; * @param index The index to set the value at. * @param value The addresses to set. * @return This builder for chaining. */ public Builder setAddresses( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string addresses = 9; * @param value The addresses to add. * @return This builder for chaining. */ public Builder addAddresses( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string addresses = 9; * @param values The addresses to add. * @return This builder for chaining. */ public Builder addAllAddresses( java.lang.Iterable values) { ensureAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, addresses_); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated string addresses = 9; * @return This builder for chaining. */ public Builder clearAddresses() { addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** * repeated string addresses = 9; * @param value The bytes of the addresses to add. * @return This builder for chaining. */ public Builder addAddressesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAddressesIsMutable(); addresses_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMessagesIsMutable() { if (!messages_.isModifiable()) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); } bitField0_ |= 0x00000200; } /** * repeated string messages = 10; * @return A list containing the messages. */ public com.google.protobuf.ProtocolStringList getMessagesList() { messages_.makeImmutable(); return messages_; } /** * repeated string messages = 10; * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated string messages = 10; * @param index The index of the element to return. * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); } /** * repeated string messages = 10; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } /** * repeated string messages = 10; * @param index The index to set the value at. * @param value The messages to set. * @return This builder for chaining. */ public Builder setMessages( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string messages = 10; * @param value The messages to add. * @return This builder for chaining. */ public Builder addMessages( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string messages = 10; * @param values The messages to add. * @return This builder for chaining. */ public Builder addAllMessages( java.lang.Iterable values) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messages_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string messages = 10; * @return This builder for chaining. */ public Builder clearMessages() { messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** * repeated string messages = 10; * @param value The bytes of the messages to add. * @return This builder for chaining. */ public Builder addMessagesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.TxEvent, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder, tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder> eventsBuilder_; /** * repeated .api.TxEvent events = 11; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .api.TxEvent events = 11; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .api.TxEvent events = 11; */ public tech.figure.block.api.proto.BlockOuterClass.TxEvent getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .api.TxEvent events = 11; */ public Builder setEvents( int index, tech.figure.block.api.proto.BlockOuterClass.TxEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder setEvents( int index, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder addEvents(tech.figure.block.api.proto.BlockOuterClass.TxEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder addEvents( int index, tech.figure.block.api.proto.BlockOuterClass.TxEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder addEvents( tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder addEvents( int index, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .api.TxEvent events = 11; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .api.TxEvent events = 11; */ public tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .api.TxEvent events = 11; */ public tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.TxEvent events = 11; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .api.TxEvent events = 11; */ public tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( tech.figure.block.api.proto.BlockOuterClass.TxEvent.getDefaultInstance()); } /** * repeated .api.TxEvent events = 11; */ public tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, tech.figure.block.api.proto.BlockOuterClass.TxEvent.getDefaultInstance()); } /** * repeated .api.TxEvent events = 11; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.TxEvent, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder, tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.TxEvent, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder, tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder>( events_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00000800; } /** * repeated string tags = 12; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * repeated string tags = 12; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 12; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 12; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 12; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string tags = 12; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string tags = 12; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string tags = 12; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000800);; onChanged(); return this; } /** * repeated string tags = 12; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } private tech.figure.block.api.proto.BlockOuterClass.Fee fee_; private com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Fee, tech.figure.block.api.proto.BlockOuterClass.Fee.Builder, tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder> feeBuilder_; /** * .api.Fee fee = 13; * @return Whether the fee field is set. */ public boolean hasFee() { return ((bitField0_ & 0x00001000) != 0); } /** * .api.Fee fee = 13; * @return The fee. */ public tech.figure.block.api.proto.BlockOuterClass.Fee getFee() { if (feeBuilder_ == null) { return fee_ == null ? tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance() : fee_; } else { return feeBuilder_.getMessage(); } } /** * .api.Fee fee = 13; */ public Builder setFee(tech.figure.block.api.proto.BlockOuterClass.Fee value) { if (feeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fee_ = value; } else { feeBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * .api.Fee fee = 13; */ public Builder setFee( tech.figure.block.api.proto.BlockOuterClass.Fee.Builder builderForValue) { if (feeBuilder_ == null) { fee_ = builderForValue.build(); } else { feeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * .api.Fee fee = 13; */ public Builder mergeFee(tech.figure.block.api.proto.BlockOuterClass.Fee value) { if (feeBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && fee_ != null && fee_ != tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance()) { getFeeBuilder().mergeFrom(value); } else { fee_ = value; } } else { feeBuilder_.mergeFrom(value); } if (fee_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * .api.Fee fee = 13; */ public Builder clearFee() { bitField0_ = (bitField0_ & ~0x00001000); fee_ = null; if (feeBuilder_ != null) { feeBuilder_.dispose(); feeBuilder_ = null; } onChanged(); return this; } /** * .api.Fee fee = 13; */ public tech.figure.block.api.proto.BlockOuterClass.Fee.Builder getFeeBuilder() { bitField0_ |= 0x00001000; onChanged(); return getFeeFieldBuilder().getBuilder(); } /** * .api.Fee fee = 13; */ public tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder getFeeOrBuilder() { if (feeBuilder_ != null) { return feeBuilder_.getMessageOrBuilder(); } else { return fee_ == null ? tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance() : fee_; } } /** * .api.Fee fee = 13; */ private com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Fee, tech.figure.block.api.proto.BlockOuterClass.Fee.Builder, tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder> getFeeFieldBuilder() { if (feeBuilder_ == null) { feeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Fee, tech.figure.block.api.proto.BlockOuterClass.Fee.Builder, tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder>( getFee(), getParentForChildren(), isClean()); fee_ = null; } return feeBuilder_; } @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:api.Transaction) } // @@protoc_insertion_point(class_scope:api.Transaction) private static final tech.figure.block.api.proto.BlockOuterClass.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Transaction(); } public static tech.figure.block.api.proto.BlockOuterClass.Transaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transaction 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 tech.figure.block.api.proto.BlockOuterClass.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxEventOrBuilder extends // @@protoc_insertion_point(interface_extends:api.TxEvent) com.google.protobuf.MessageOrBuilder { /** * string tx_hash = 1; * @return The txHash. */ java.lang.String getTxHash(); /** * string tx_hash = 1; * @return The bytes for txHash. */ com.google.protobuf.ByteString getTxHashBytes(); /** * uint64 height = 2; * @return The height. */ long getHeight(); /** * string event_type = 3; * @return The eventType. */ java.lang.String getEventType(); /** * string event_type = 3; * @return The bytes for eventType. */ com.google.protobuf.ByteString getEventTypeBytes(); /** * repeated .api.Attribute attributes = 4; */ java.util.List getAttributesList(); /** * repeated .api.Attribute attributes = 4; */ tech.figure.block.api.proto.BlockOuterClass.Attribute getAttributes(int index); /** * repeated .api.Attribute attributes = 4; */ int getAttributesCount(); /** * repeated .api.Attribute attributes = 4; */ java.util.List getAttributesOrBuilderList(); /** * repeated .api.Attribute attributes = 4; */ tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder getAttributesOrBuilder( int index); } /** * Protobuf type {@code api.TxEvent} */ public static final class TxEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.TxEvent) TxEventOrBuilder { private static final long serialVersionUID = 0L; // Use TxEvent.newBuilder() to construct. private TxEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxEvent() { txHash_ = ""; eventType_ = ""; attributes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TxEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TxEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TxEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.TxEvent.class, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder.class); } public static final int TX_HASH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object txHash_ = ""; /** * string tx_hash = 1; * @return The txHash. */ @java.lang.Override public java.lang.String getTxHash() { java.lang.Object ref = txHash_; 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(); txHash_ = s; return s; } } /** * string tx_hash = 1; * @return The bytes for txHash. */ @java.lang.Override public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEIGHT_FIELD_NUMBER = 2; private long height_ = 0L; /** * uint64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int EVENT_TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object eventType_ = ""; /** * string event_type = 3; * @return The eventType. */ @java.lang.Override public java.lang.String getEventType() { java.lang.Object ref = eventType_; 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(); eventType_ = s; return s; } } /** * string event_type = 3; * @return The bytes for eventType. */ @java.lang.Override public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); eventType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List attributes_; /** * repeated .api.Attribute attributes = 4; */ @java.lang.Override public java.util.List getAttributesList() { return attributes_; } /** * repeated .api.Attribute attributes = 4; */ @java.lang.Override public java.util.List getAttributesOrBuilderList() { return attributes_; } /** * repeated .api.Attribute attributes = 4; */ @java.lang.Override public int getAttributesCount() { return attributes_.size(); } /** * repeated .api.Attribute attributes = 4; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Attribute getAttributes(int index) { return attributes_.get(index); } /** * repeated .api.Attribute attributes = 4; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txHash_); } if (height_ != 0L) { output.writeUInt64(2, height_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventType_); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(4, attributes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txHash_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, height_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attributes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.figure.block.api.proto.BlockOuterClass.TxEvent)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.TxEvent other = (tech.figure.block.api.proto.BlockOuterClass.TxEvent) obj; if (!getTxHash() .equals(other.getTxHash())) return false; if (getHeight() != other.getHeight()) return false; if (!getEventType() .equals(other.getEventType())) return false; if (!getAttributesList() .equals(other.getAttributesList())) 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) + TX_HASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getEventType().hashCode(); if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent 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 tech.figure.block.api.proto.BlockOuterClass.TxEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent 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 tech.figure.block.api.proto.BlockOuterClass.TxEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent 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(tech.figure.block.api.proto.BlockOuterClass.TxEvent 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 api.TxEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.TxEvent) tech.figure.block.api.proto.BlockOuterClass.TxEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TxEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TxEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.TxEvent.class, tech.figure.block.api.proto.BlockOuterClass.TxEvent.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.TxEvent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; txHash_ = ""; height_ = 0L; eventType_ = ""; if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); } else { attributes_ = null; attributesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_TxEvent_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TxEvent getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.TxEvent.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TxEvent build() { tech.figure.block.api.proto.BlockOuterClass.TxEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.TxEvent buildPartial() { tech.figure.block.api.proto.BlockOuterClass.TxEvent result = new tech.figure.block.api.proto.BlockOuterClass.TxEvent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.TxEvent result) { if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000008); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.TxEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.txHash_ = txHash_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.height_ = height_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.eventType_ = eventType_; } } @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 tech.figure.block.api.proto.BlockOuterClass.TxEvent) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.TxEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.TxEvent other) { if (other == tech.figure.block.api.proto.BlockOuterClass.TxEvent.getDefaultInstance()) return this; if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; bitField0_ |= 0x00000001; onChanged(); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (!other.getEventType().isEmpty()) { eventType_ = other.eventType_; bitField0_ |= 0x00000004; onChanged(); } if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000008); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } 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: { txHash_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { height_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { eventType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { tech.figure.block.api.proto.BlockOuterClass.Attribute m = input.readMessage( tech.figure.block.api.proto.BlockOuterClass.Attribute.parser(), extensionRegistry); if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(m); } else { attributesBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object txHash_ = ""; /** * string tx_hash = 1; * @return The txHash. */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tx_hash = 1; * @return The bytes for txHash. */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tx_hash = 1; * @param value The txHash to set. * @return This builder for chaining. */ public Builder setTxHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string tx_hash = 1; * @return This builder for chaining. */ public Builder clearTxHash() { txHash_ = getDefaultInstance().getTxHash(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string tx_hash = 1; * @param value The bytes for txHash to set. * @return This builder for chaining. */ public Builder setTxHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long height_ ; /** * uint64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * uint64 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 height = 2; * @return This builder for chaining. */ public Builder clearHeight() { bitField0_ = (bitField0_ & ~0x00000002); height_ = 0L; onChanged(); return this; } private java.lang.Object eventType_ = ""; /** * string event_type = 3; * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string event_type = 3; * @return The bytes for eventType. */ public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); eventType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string event_type = 3; * @param value The eventType to set. * @return This builder for chaining. */ public Builder setEventType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } eventType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string event_type = 3; * @return This builder for chaining. */ public Builder clearEventType() { eventType_ = getDefaultInstance().getEventType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string event_type = 3; * @param value The bytes for eventType to set. * @return This builder for chaining. */ public Builder setEventTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); eventType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Attribute, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder, tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder> attributesBuilder_; /** * repeated .api.Attribute attributes = 4; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** * repeated .api.Attribute attributes = 4; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** * repeated .api.Attribute attributes = 4; */ public tech.figure.block.api.proto.BlockOuterClass.Attribute getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(index); } } /** * repeated .api.Attribute attributes = 4; */ public Builder setAttributes( int index, tech.figure.block.api.proto.BlockOuterClass.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder setAttributes( int index, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder addAttributes(tech.figure.block.api.proto.BlockOuterClass.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder addAttributes( int index, tech.figure.block.api.proto.BlockOuterClass.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder addAttributes( tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder addAttributes( int index, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** * repeated .api.Attribute attributes = 4; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** * repeated .api.Attribute attributes = 4; */ public tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } /** * repeated .api.Attribute attributes = 4; */ public tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.Attribute attributes = 4; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** * repeated .api.Attribute attributes = 4; */ public tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( tech.figure.block.api.proto.BlockOuterClass.Attribute.getDefaultInstance()); } /** * repeated .api.Attribute attributes = 4; */ public tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, tech.figure.block.api.proto.BlockOuterClass.Attribute.getDefaultInstance()); } /** * repeated .api.Attribute attributes = 4; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Attribute, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder, tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Attribute, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder, tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder>( attributes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } @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:api.TxEvent) } // @@protoc_insertion_point(class_scope:api.TxEvent) private static final tech.figure.block.api.proto.BlockOuterClass.TxEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.TxEvent(); } public static tech.figure.block.api.proto.BlockOuterClass.TxEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TxEvent 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 tech.figure.block.api.proto.BlockOuterClass.TxEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Attribute) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string value = 2; * @return The value. */ java.lang.String getValue(); /** * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** * bool index = 3; * @return The index. */ boolean getIndex(); } /** * Protobuf type {@code api.Attribute} */ public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Attribute) AttributeOrBuilder { private static final long serialVersionUID = 0L; // Use Attribute.newBuilder() to construct. private Attribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Attribute() { key_ = ""; value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Attribute(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Attribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Attribute.class, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INDEX_FIELD_NUMBER = 3; private boolean index_ = false; /** * bool index = 3; * @return The index. */ @java.lang.Override public boolean getIndex() { return 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (index_ != false) { output.writeBool(3, index_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (index_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, index_); } 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 tech.figure.block.api.proto.BlockOuterClass.Attribute)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Attribute other = (tech.figure.block.api.proto.BlockOuterClass.Attribute) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValue() .equals(other.getValue())) return false; if (getIndex() != other.getIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIndex()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute 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 tech.figure.block.api.proto.BlockOuterClass.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute 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 tech.figure.block.api.proto.BlockOuterClass.Attribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute 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(tech.figure.block.api.proto.BlockOuterClass.Attribute 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 api.Attribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Attribute) tech.figure.block.api.proto.BlockOuterClass.AttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Attribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Attribute.class, tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Attribute.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; value_ = ""; index_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Attribute_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Attribute getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Attribute.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Attribute build() { tech.figure.block.api.proto.BlockOuterClass.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Attribute buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Attribute result = new tech.figure.block.api.proto.BlockOuterClass.Attribute(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Attribute result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.index_ = index_; } } @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 tech.figure.block.api.proto.BlockOuterClass.Attribute) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Attribute other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Attribute.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000002; onChanged(); } if (other.getIndex() != false) { setIndex(other.getIndex()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { index_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean index_ ; /** * bool index = 3; * @return The index. */ @java.lang.Override public boolean getIndex() { return index_; } /** * bool index = 3; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(boolean value) { index_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool index = 3; * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000004); index_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Attribute) } // @@protoc_insertion_point(class_scope:api.Attribute) private static final tech.figure.block.api.proto.BlockOuterClass.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Attribute(); } public static tech.figure.block.api.proto.BlockOuterClass.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Attribute 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 tech.figure.block.api.proto.BlockOuterClass.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopeOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Scope) com.google.protobuf.MessageOrBuilder { /** * string scope_id = 1; * @return The scopeId. */ java.lang.String getScopeId(); /** * string scope_id = 1; * @return The bytes for scopeId. */ com.google.protobuf.ByteString getScopeIdBytes(); /** * uint64 block_height = 2; * @return The blockHeight. */ long getBlockHeight(); /** * string tx_hash = 3; * @return The txHash. */ java.lang.String getTxHash(); /** * string tx_hash = 3; * @return The bytes for txHash. */ com.google.protobuf.ByteString getTxHashBytes(); /** * repeated string messages = 4; * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated string messages = 4; * @return The count of messages. */ int getMessagesCount(); /** * repeated string messages = 4; * @param index The index of the element to return. * @return The messages at the given index. */ java.lang.String getMessages(int index); /** * repeated string messages = 4; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ com.google.protobuf.ByteString getMessagesBytes(int index); } /** * Protobuf type {@code api.Scope} */ public static final class Scope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Scope) ScopeOrBuilder { private static final long serialVersionUID = 0L; // Use Scope.newBuilder() to construct. private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scope() { scopeId_ = ""; txHash_ = ""; messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scope(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Scope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Scope_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Scope.class, tech.figure.block.api.proto.BlockOuterClass.Scope.Builder.class); } public static final int SCOPE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object scopeId_ = ""; /** * string scope_id = 1; * @return The scopeId. */ @java.lang.Override public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; 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(); scopeId_ = s; return s; } } /** * string scope_id = 1; * @return The bytes for scopeId. */ @java.lang.Override public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCK_HEIGHT_FIELD_NUMBER = 2; private long blockHeight_ = 0L; /** * uint64 block_height = 2; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } public static final int TX_HASH_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object txHash_ = ""; /** * string tx_hash = 3; * @return The txHash. */ @java.lang.Override public java.lang.String getTxHash() { java.lang.Object ref = txHash_; 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(); txHash_ = s; return s; } } /** * string tx_hash = 3; * @return The bytes for txHash. */ @java.lang.Override public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string messages = 4; * @return A list containing the messages. */ public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** * repeated string messages = 4; * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated string messages = 4; * @param index The index of the element to return. * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); } /** * repeated string messages = 4; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeId_); } if (blockHeight_ != 0L) { output.writeUInt64(2, blockHeight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, txHash_); } for (int i = 0; i < messages_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, messages_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeId_); } if (blockHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blockHeight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, txHash_); } { int dataSize = 0; for (int i = 0; i < messages_.size(); i++) { dataSize += computeStringSizeNoTag(messages_.getRaw(i)); } size += dataSize; size += 1 * getMessagesList().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 tech.figure.block.api.proto.BlockOuterClass.Scope)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Scope other = (tech.figure.block.api.proto.BlockOuterClass.Scope) obj; if (!getScopeId() .equals(other.getScopeId())) return false; if (getBlockHeight() != other.getBlockHeight()) return false; if (!getTxHash() .equals(other.getTxHash())) return false; if (!getMessagesList() .equals(other.getMessagesList())) 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) + SCOPE_ID_FIELD_NUMBER; hash = (53 * hash) + getScopeId().hashCode(); hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockHeight()); hash = (37 * hash) + TX_HASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Scope 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 tech.figure.block.api.proto.BlockOuterClass.Scope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Scope 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 tech.figure.block.api.proto.BlockOuterClass.Scope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Scope 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(tech.figure.block.api.proto.BlockOuterClass.Scope 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 api.Scope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Scope) tech.figure.block.api.proto.BlockOuterClass.ScopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Scope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Scope_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Scope.class, tech.figure.block.api.proto.BlockOuterClass.Scope.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Scope.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; scopeId_ = ""; blockHeight_ = 0L; txHash_ = ""; messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Scope_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Scope getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Scope.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Scope build() { tech.figure.block.api.proto.BlockOuterClass.Scope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Scope buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Scope result = new tech.figure.block.api.proto.BlockOuterClass.Scope(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Scope result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.scopeId_ = scopeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.blockHeight_ = blockHeight_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.txHash_ = txHash_; } if (((from_bitField0_ & 0x00000008) != 0)) { messages_.makeImmutable(); result.messages_ = messages_; } } @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 tech.figure.block.api.proto.BlockOuterClass.Scope) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Scope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Scope other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Scope.getDefaultInstance()) return this; if (!other.getScopeId().isEmpty()) { scopeId_ = other.scopeId_; bitField0_ |= 0x00000001; onChanged(); } if (other.getBlockHeight() != 0L) { setBlockHeight(other.getBlockHeight()); } if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; bitField0_ |= 0x00000004; onChanged(); } if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ |= 0x00000008; } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } 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: { scopeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { blockHeight_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { txHash_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureMessagesIsMutable(); messages_.add(s); 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 java.lang.Object scopeId_ = ""; /** * string scope_id = 1; * @return The scopeId. */ public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scopeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string scope_id = 1; * @return The bytes for scopeId. */ public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string scope_id = 1; * @param value The scopeId to set. * @return This builder for chaining. */ public Builder setScopeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scopeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string scope_id = 1; * @return This builder for chaining. */ public Builder clearScopeId() { scopeId_ = getDefaultInstance().getScopeId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string scope_id = 1; * @param value The bytes for scopeId to set. * @return This builder for chaining. */ public Builder setScopeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scopeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long blockHeight_ ; /** * uint64 block_height = 2; * @return The blockHeight. */ @java.lang.Override public long getBlockHeight() { return blockHeight_; } /** * uint64 block_height = 2; * @param value The blockHeight to set. * @return This builder for chaining. */ public Builder setBlockHeight(long value) { blockHeight_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 block_height = 2; * @return This builder for chaining. */ public Builder clearBlockHeight() { bitField0_ = (bitField0_ & ~0x00000002); blockHeight_ = 0L; onChanged(); return this; } private java.lang.Object txHash_ = ""; /** * string tx_hash = 3; * @return The txHash. */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tx_hash = 3; * @return The bytes for txHash. */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tx_hash = 3; * @param value The txHash to set. * @return This builder for chaining. */ public Builder setTxHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txHash_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string tx_hash = 3; * @return This builder for chaining. */ public Builder clearTxHash() { txHash_ = getDefaultInstance().getTxHash(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string tx_hash = 3; * @param value The bytes for txHash to set. * @return This builder for chaining. */ public Builder setTxHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txHash_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMessagesIsMutable() { if (!messages_.isModifiable()) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); } bitField0_ |= 0x00000008; } /** * repeated string messages = 4; * @return A list containing the messages. */ public com.google.protobuf.ProtocolStringList getMessagesList() { messages_.makeImmutable(); return messages_; } /** * repeated string messages = 4; * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated string messages = 4; * @param index The index of the element to return. * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); } /** * repeated string messages = 4; * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } /** * repeated string messages = 4; * @param index The index to set the value at. * @param value The messages to set. * @return This builder for chaining. */ public Builder setMessages( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string messages = 4; * @param value The messages to add. * @return This builder for chaining. */ public Builder addMessages( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string messages = 4; * @param values The messages to add. * @return This builder for chaining. */ public Builder addAllMessages( java.lang.Iterable values) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messages_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string messages = 4; * @return This builder for chaining. */ public Builder clearMessages() { messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string messages = 4; * @param value The bytes of the messages to add. * @return This builder for chaining. */ public Builder addMessagesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Scope) } // @@protoc_insertion_point(class_scope:api.Scope) private static final tech.figure.block.api.proto.BlockOuterClass.Scope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Scope(); } public static tech.figure.block.api.proto.BlockOuterClass.Scope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scope 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 tech.figure.block.api.proto.BlockOuterClass.Scope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopeStateOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ScopeState) com.google.protobuf.MessageOrBuilder { /** * string scope_id = 1; * @return The scopeId. */ java.lang.String getScopeId(); /** * string scope_id = 1; * @return The bytes for scopeId. */ com.google.protobuf.ByteString getScopeIdBytes(); /** * string specification_id = 2; * @return The specificationId. */ java.lang.String getSpecificationId(); /** * string specification_id = 2; * @return The bytes for specificationId. */ com.google.protobuf.ByteString getSpecificationIdBytes(); /** * repeated .api.Party owners = 3; */ java.util.List getOwnersList(); /** * repeated .api.Party owners = 3; */ tech.figure.block.api.proto.BlockOuterClass.Party getOwners(int index); /** * repeated .api.Party owners = 3; */ int getOwnersCount(); /** * repeated .api.Party owners = 3; */ java.util.List getOwnersOrBuilderList(); /** * repeated .api.Party owners = 3; */ tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder getOwnersOrBuilder( int index); /** * repeated string data_access = 4; * @return A list containing the dataAccess. */ java.util.List getDataAccessList(); /** * repeated string data_access = 4; * @return The count of dataAccess. */ int getDataAccessCount(); /** * repeated string data_access = 4; * @param index The index of the element to return. * @return The dataAccess at the given index. */ java.lang.String getDataAccess(int index); /** * repeated string data_access = 4; * @param index The index of the value to return. * @return The bytes of the dataAccess at the given index. */ com.google.protobuf.ByteString getDataAccessBytes(int index); /** * string value_owner_address = 5; * @return The valueOwnerAddress. */ java.lang.String getValueOwnerAddress(); /** * string value_owner_address = 5; * @return The bytes for valueOwnerAddress. */ com.google.protobuf.ByteString getValueOwnerAddressBytes(); /** * uint64 height = 6; * @return The height. */ long getHeight(); } /** * Protobuf type {@code api.ScopeState} */ public static final class ScopeState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ScopeState) ScopeStateOrBuilder { private static final long serialVersionUID = 0L; // Use ScopeState.newBuilder() to construct. private ScopeState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScopeState() { scopeId_ = ""; specificationId_ = ""; owners_ = java.util.Collections.emptyList(); dataAccess_ = com.google.protobuf.LazyStringArrayList.emptyList(); valueOwnerAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScopeState(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_ScopeState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_ScopeState_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.ScopeState.class, tech.figure.block.api.proto.BlockOuterClass.ScopeState.Builder.class); } public static final int SCOPE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object scopeId_ = ""; /** * string scope_id = 1; * @return The scopeId. */ @java.lang.Override public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; 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(); scopeId_ = s; return s; } } /** * string scope_id = 1; * @return The bytes for scopeId. */ @java.lang.Override public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SPECIFICATION_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object specificationId_ = ""; /** * string specification_id = 2; * @return The specificationId. */ @java.lang.Override public java.lang.String getSpecificationId() { java.lang.Object ref = specificationId_; 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(); specificationId_ = s; return s; } } /** * string specification_id = 2; * @return The bytes for specificationId. */ @java.lang.Override public com.google.protobuf.ByteString getSpecificationIdBytes() { java.lang.Object ref = specificationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specificationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OWNERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List owners_; /** * repeated .api.Party owners = 3; */ @java.lang.Override public java.util.List getOwnersList() { return owners_; } /** * repeated .api.Party owners = 3; */ @java.lang.Override public java.util.List getOwnersOrBuilderList() { return owners_; } /** * repeated .api.Party owners = 3; */ @java.lang.Override public int getOwnersCount() { return owners_.size(); } /** * repeated .api.Party owners = 3; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Party getOwners(int index) { return owners_.get(index); } /** * repeated .api.Party owners = 3; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder getOwnersOrBuilder( int index) { return owners_.get(index); } public static final int DATA_ACCESS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList dataAccess_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string data_access = 4; * @return A list containing the dataAccess. */ public com.google.protobuf.ProtocolStringList getDataAccessList() { return dataAccess_; } /** * repeated string data_access = 4; * @return The count of dataAccess. */ public int getDataAccessCount() { return dataAccess_.size(); } /** * repeated string data_access = 4; * @param index The index of the element to return. * @return The dataAccess at the given index. */ public java.lang.String getDataAccess(int index) { return dataAccess_.get(index); } /** * repeated string data_access = 4; * @param index The index of the value to return. * @return The bytes of the dataAccess at the given index. */ public com.google.protobuf.ByteString getDataAccessBytes(int index) { return dataAccess_.getByteString(index); } public static final int VALUE_OWNER_ADDRESS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object valueOwnerAddress_ = ""; /** * string value_owner_address = 5; * @return The valueOwnerAddress. */ @java.lang.Override public java.lang.String getValueOwnerAddress() { java.lang.Object ref = valueOwnerAddress_; 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(); valueOwnerAddress_ = s; return s; } } /** * string value_owner_address = 5; * @return The bytes for valueOwnerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValueOwnerAddressBytes() { java.lang.Object ref = valueOwnerAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); valueOwnerAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEIGHT_FIELD_NUMBER = 6; private long height_ = 0L; /** * uint64 height = 6; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, specificationId_); } for (int i = 0; i < owners_.size(); i++) { output.writeMessage(3, owners_.get(i)); } for (int i = 0; i < dataAccess_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataAccess_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueOwnerAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, valueOwnerAddress_); } if (height_ != 0L) { output.writeUInt64(6, height_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, specificationId_); } for (int i = 0; i < owners_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, owners_.get(i)); } { int dataSize = 0; for (int i = 0; i < dataAccess_.size(); i++) { dataSize += computeStringSizeNoTag(dataAccess_.getRaw(i)); } size += dataSize; size += 1 * getDataAccessList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueOwnerAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, valueOwnerAddress_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, height_); } 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 tech.figure.block.api.proto.BlockOuterClass.ScopeState)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.ScopeState other = (tech.figure.block.api.proto.BlockOuterClass.ScopeState) obj; if (!getScopeId() .equals(other.getScopeId())) return false; if (!getSpecificationId() .equals(other.getSpecificationId())) return false; if (!getOwnersList() .equals(other.getOwnersList())) return false; if (!getDataAccessList() .equals(other.getDataAccessList())) return false; if (!getValueOwnerAddress() .equals(other.getValueOwnerAddress())) return false; if (getHeight() != other.getHeight()) 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) + SCOPE_ID_FIELD_NUMBER; hash = (53 * hash) + getScopeId().hashCode(); hash = (37 * hash) + SPECIFICATION_ID_FIELD_NUMBER; hash = (53 * hash) + getSpecificationId().hashCode(); if (getOwnersCount() > 0) { hash = (37 * hash) + OWNERS_FIELD_NUMBER; hash = (53 * hash) + getOwnersList().hashCode(); } if (getDataAccessCount() > 0) { hash = (37 * hash) + DATA_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getDataAccessList().hashCode(); } hash = (37 * hash) + VALUE_OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValueOwnerAddress().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState 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 tech.figure.block.api.proto.BlockOuterClass.ScopeState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState 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 tech.figure.block.api.proto.BlockOuterClass.ScopeState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState 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(tech.figure.block.api.proto.BlockOuterClass.ScopeState 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 api.ScopeState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ScopeState) tech.figure.block.api.proto.BlockOuterClass.ScopeStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_ScopeState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_ScopeState_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.ScopeState.class, tech.figure.block.api.proto.BlockOuterClass.ScopeState.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.ScopeState.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; scopeId_ = ""; specificationId_ = ""; if (ownersBuilder_ == null) { owners_ = java.util.Collections.emptyList(); } else { owners_ = null; ownersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); dataAccess_ = com.google.protobuf.LazyStringArrayList.emptyList(); valueOwnerAddress_ = ""; height_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_ScopeState_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.ScopeState getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.ScopeState.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.ScopeState build() { tech.figure.block.api.proto.BlockOuterClass.ScopeState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.ScopeState buildPartial() { tech.figure.block.api.proto.BlockOuterClass.ScopeState result = new tech.figure.block.api.proto.BlockOuterClass.ScopeState(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.figure.block.api.proto.BlockOuterClass.ScopeState result) { if (ownersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { owners_ = java.util.Collections.unmodifiableList(owners_); bitField0_ = (bitField0_ & ~0x00000004); } result.owners_ = owners_; } else { result.owners_ = ownersBuilder_.build(); } } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.ScopeState result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.scopeId_ = scopeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.specificationId_ = specificationId_; } if (((from_bitField0_ & 0x00000008) != 0)) { dataAccess_.makeImmutable(); result.dataAccess_ = dataAccess_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.valueOwnerAddress_ = valueOwnerAddress_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.height_ = height_; } } @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 tech.figure.block.api.proto.BlockOuterClass.ScopeState) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.ScopeState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.ScopeState other) { if (other == tech.figure.block.api.proto.BlockOuterClass.ScopeState.getDefaultInstance()) return this; if (!other.getScopeId().isEmpty()) { scopeId_ = other.scopeId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSpecificationId().isEmpty()) { specificationId_ = other.specificationId_; bitField0_ |= 0x00000002; onChanged(); } if (ownersBuilder_ == null) { if (!other.owners_.isEmpty()) { if (owners_.isEmpty()) { owners_ = other.owners_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureOwnersIsMutable(); owners_.addAll(other.owners_); } onChanged(); } } else { if (!other.owners_.isEmpty()) { if (ownersBuilder_.isEmpty()) { ownersBuilder_.dispose(); ownersBuilder_ = null; owners_ = other.owners_; bitField0_ = (bitField0_ & ~0x00000004); ownersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOwnersFieldBuilder() : null; } else { ownersBuilder_.addAllMessages(other.owners_); } } } if (!other.dataAccess_.isEmpty()) { if (dataAccess_.isEmpty()) { dataAccess_ = other.dataAccess_; bitField0_ |= 0x00000008; } else { ensureDataAccessIsMutable(); dataAccess_.addAll(other.dataAccess_); } onChanged(); } if (!other.getValueOwnerAddress().isEmpty()) { valueOwnerAddress_ = other.valueOwnerAddress_; bitField0_ |= 0x00000010; onChanged(); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } 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: { scopeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { specificationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { tech.figure.block.api.proto.BlockOuterClass.Party m = input.readMessage( tech.figure.block.api.proto.BlockOuterClass.Party.parser(), extensionRegistry); if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.add(m); } else { ownersBuilder_.addMessage(m); } break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureDataAccessIsMutable(); dataAccess_.add(s); break; } // case 34 case 42: { valueOwnerAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { height_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object scopeId_ = ""; /** * string scope_id = 1; * @return The scopeId. */ public java.lang.String getScopeId() { java.lang.Object ref = scopeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scopeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string scope_id = 1; * @return The bytes for scopeId. */ public com.google.protobuf.ByteString getScopeIdBytes() { java.lang.Object ref = scopeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scopeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string scope_id = 1; * @param value The scopeId to set. * @return This builder for chaining. */ public Builder setScopeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scopeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string scope_id = 1; * @return This builder for chaining. */ public Builder clearScopeId() { scopeId_ = getDefaultInstance().getScopeId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string scope_id = 1; * @param value The bytes for scopeId to set. * @return This builder for chaining. */ public Builder setScopeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scopeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object specificationId_ = ""; /** * string specification_id = 2; * @return The specificationId. */ public java.lang.String getSpecificationId() { java.lang.Object ref = specificationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); specificationId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string specification_id = 2; * @return The bytes for specificationId. */ public com.google.protobuf.ByteString getSpecificationIdBytes() { java.lang.Object ref = specificationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specificationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string specification_id = 2; * @param value The specificationId to set. * @return This builder for chaining. */ public Builder setSpecificationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } specificationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string specification_id = 2; * @return This builder for chaining. */ public Builder clearSpecificationId() { specificationId_ = getDefaultInstance().getSpecificationId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string specification_id = 2; * @param value The bytes for specificationId to set. * @return This builder for chaining. */ public Builder setSpecificationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); specificationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List owners_ = java.util.Collections.emptyList(); private void ensureOwnersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { owners_ = new java.util.ArrayList(owners_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Party, tech.figure.block.api.proto.BlockOuterClass.Party.Builder, tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder> ownersBuilder_; /** * repeated .api.Party owners = 3; */ public java.util.List getOwnersList() { if (ownersBuilder_ == null) { return java.util.Collections.unmodifiableList(owners_); } else { return ownersBuilder_.getMessageList(); } } /** * repeated .api.Party owners = 3; */ public int getOwnersCount() { if (ownersBuilder_ == null) { return owners_.size(); } else { return ownersBuilder_.getCount(); } } /** * repeated .api.Party owners = 3; */ public tech.figure.block.api.proto.BlockOuterClass.Party getOwners(int index) { if (ownersBuilder_ == null) { return owners_.get(index); } else { return ownersBuilder_.getMessage(index); } } /** * repeated .api.Party owners = 3; */ public Builder setOwners( int index, tech.figure.block.api.proto.BlockOuterClass.Party value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.set(index, value); onChanged(); } else { ownersBuilder_.setMessage(index, value); } return this; } /** * repeated .api.Party owners = 3; */ public Builder setOwners( int index, tech.figure.block.api.proto.BlockOuterClass.Party.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.set(index, builderForValue.build()); onChanged(); } else { ownersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Party owners = 3; */ public Builder addOwners(tech.figure.block.api.proto.BlockOuterClass.Party value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.add(value); onChanged(); } else { ownersBuilder_.addMessage(value); } return this; } /** * repeated .api.Party owners = 3; */ public Builder addOwners( int index, tech.figure.block.api.proto.BlockOuterClass.Party value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.add(index, value); onChanged(); } else { ownersBuilder_.addMessage(index, value); } return this; } /** * repeated .api.Party owners = 3; */ public Builder addOwners( tech.figure.block.api.proto.BlockOuterClass.Party.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.add(builderForValue.build()); onChanged(); } else { ownersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.Party owners = 3; */ public Builder addOwners( int index, tech.figure.block.api.proto.BlockOuterClass.Party.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.add(index, builderForValue.build()); onChanged(); } else { ownersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Party owners = 3; */ public Builder addAllOwners( java.lang.Iterable values) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, owners_); onChanged(); } else { ownersBuilder_.addAllMessages(values); } return this; } /** * repeated .api.Party owners = 3; */ public Builder clearOwners() { if (ownersBuilder_ == null) { owners_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { ownersBuilder_.clear(); } return this; } /** * repeated .api.Party owners = 3; */ public Builder removeOwners(int index) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.remove(index); onChanged(); } else { ownersBuilder_.remove(index); } return this; } /** * repeated .api.Party owners = 3; */ public tech.figure.block.api.proto.BlockOuterClass.Party.Builder getOwnersBuilder( int index) { return getOwnersFieldBuilder().getBuilder(index); } /** * repeated .api.Party owners = 3; */ public tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder getOwnersOrBuilder( int index) { if (ownersBuilder_ == null) { return owners_.get(index); } else { return ownersBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.Party owners = 3; */ public java.util.List getOwnersOrBuilderList() { if (ownersBuilder_ != null) { return ownersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(owners_); } } /** * repeated .api.Party owners = 3; */ public tech.figure.block.api.proto.BlockOuterClass.Party.Builder addOwnersBuilder() { return getOwnersFieldBuilder().addBuilder( tech.figure.block.api.proto.BlockOuterClass.Party.getDefaultInstance()); } /** * repeated .api.Party owners = 3; */ public tech.figure.block.api.proto.BlockOuterClass.Party.Builder addOwnersBuilder( int index) { return getOwnersFieldBuilder().addBuilder( index, tech.figure.block.api.proto.BlockOuterClass.Party.getDefaultInstance()); } /** * repeated .api.Party owners = 3; */ public java.util.List getOwnersBuilderList() { return getOwnersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Party, tech.figure.block.api.proto.BlockOuterClass.Party.Builder, tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder> getOwnersFieldBuilder() { if (ownersBuilder_ == null) { ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.Party, tech.figure.block.api.proto.BlockOuterClass.Party.Builder, tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder>( owners_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); owners_ = null; } return ownersBuilder_; } private com.google.protobuf.LazyStringArrayList dataAccess_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDataAccessIsMutable() { if (!dataAccess_.isModifiable()) { dataAccess_ = new com.google.protobuf.LazyStringArrayList(dataAccess_); } bitField0_ |= 0x00000008; } /** * repeated string data_access = 4; * @return A list containing the dataAccess. */ public com.google.protobuf.ProtocolStringList getDataAccessList() { dataAccess_.makeImmutable(); return dataAccess_; } /** * repeated string data_access = 4; * @return The count of dataAccess. */ public int getDataAccessCount() { return dataAccess_.size(); } /** * repeated string data_access = 4; * @param index The index of the element to return. * @return The dataAccess at the given index. */ public java.lang.String getDataAccess(int index) { return dataAccess_.get(index); } /** * repeated string data_access = 4; * @param index The index of the value to return. * @return The bytes of the dataAccess at the given index. */ public com.google.protobuf.ByteString getDataAccessBytes(int index) { return dataAccess_.getByteString(index); } /** * repeated string data_access = 4; * @param index The index to set the value at. * @param value The dataAccess to set. * @return This builder for chaining. */ public Builder setDataAccess( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataAccessIsMutable(); dataAccess_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string data_access = 4; * @param value The dataAccess to add. * @return This builder for chaining. */ public Builder addDataAccess( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataAccessIsMutable(); dataAccess_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string data_access = 4; * @param values The dataAccess to add. * @return This builder for chaining. */ public Builder addAllDataAccess( java.lang.Iterable values) { ensureDataAccessIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataAccess_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string data_access = 4; * @return This builder for chaining. */ public Builder clearDataAccess() { dataAccess_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string data_access = 4; * @param value The bytes of the dataAccess to add. * @return This builder for chaining. */ public Builder addDataAccessBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataAccessIsMutable(); dataAccess_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object valueOwnerAddress_ = ""; /** * string value_owner_address = 5; * @return The valueOwnerAddress. */ public java.lang.String getValueOwnerAddress() { java.lang.Object ref = valueOwnerAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueOwnerAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value_owner_address = 5; * @return The bytes for valueOwnerAddress. */ public com.google.protobuf.ByteString getValueOwnerAddressBytes() { java.lang.Object ref = valueOwnerAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); valueOwnerAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value_owner_address = 5; * @param value The valueOwnerAddress to set. * @return This builder for chaining. */ public Builder setValueOwnerAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueOwnerAddress_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string value_owner_address = 5; * @return This builder for chaining. */ public Builder clearValueOwnerAddress() { valueOwnerAddress_ = getDefaultInstance().getValueOwnerAddress(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string value_owner_address = 5; * @param value The bytes for valueOwnerAddress to set. * @return This builder for chaining. */ public Builder setValueOwnerAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueOwnerAddress_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private long height_ ; /** * uint64 height = 6; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * uint64 height = 6; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * uint64 height = 6; * @return This builder for chaining. */ public Builder clearHeight() { bitField0_ = (bitField0_ & ~0x00000020); height_ = 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:api.ScopeState) } // @@protoc_insertion_point(class_scope:api.ScopeState) private static final tech.figure.block.api.proto.BlockOuterClass.ScopeState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.ScopeState(); } public static tech.figure.block.api.proto.BlockOuterClass.ScopeState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopeState 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 tech.figure.block.api.proto.BlockOuterClass.ScopeState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartyOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Party) com.google.protobuf.MessageOrBuilder { /** * string address = 1; * @return The address. */ java.lang.String getAddress(); /** * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** * string role = 2; * @return The role. */ java.lang.String getRole(); /** * string role = 2; * @return The bytes for role. */ com.google.protobuf.ByteString getRoleBytes(); } /** * Protobuf type {@code api.Party} */ public static final class Party extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Party) PartyOrBuilder { private static final long serialVersionUID = 0L; // Use Party.newBuilder() to construct. private Party(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Party() { address_ = ""; role_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Party(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Party_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Party_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Party.class, tech.figure.block.api.proto.BlockOuterClass.Party.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object address_ = ""; /** * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** * string role = 2; * @return The role. */ @java.lang.Override public java.lang.String getRole() { java.lang.Object ref = role_; 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(); role_ = s; return s; } } /** * string role = 2; * @return The bytes for role. */ @java.lang.Override public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); } 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 tech.figure.block.api.proto.BlockOuterClass.Party)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Party other = (tech.figure.block.api.proto.BlockOuterClass.Party) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getRole() .equals(other.getRole())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Party parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Party 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 tech.figure.block.api.proto.BlockOuterClass.Party parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Party 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 tech.figure.block.api.proto.BlockOuterClass.Party parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Party 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(tech.figure.block.api.proto.BlockOuterClass.Party 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 api.Party} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Party) tech.figure.block.api.proto.BlockOuterClass.PartyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Party_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Party_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Party.class, tech.figure.block.api.proto.BlockOuterClass.Party.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Party.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = ""; role_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Party_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Party getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Party.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Party build() { tech.figure.block.api.proto.BlockOuterClass.Party result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Party buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Party result = new tech.figure.block.api.proto.BlockOuterClass.Party(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Party result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.role_ = role_; } } @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 tech.figure.block.api.proto.BlockOuterClass.Party) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Party)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Party other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Party.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getRole().isEmpty()) { role_ = other.role_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { role_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object address_ = ""; /** * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object role_ = ""; /** * string role = 2; * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * string role = 2; * @return The bytes for role. */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string role = 2; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string role = 2; * @return This builder for chaining. */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string role = 2; * @param value The bytes for role to set. * @return This builder for chaining. */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Party) } // @@protoc_insertion_point(class_scope:api.Party) private static final tech.figure.block.api.proto.BlockOuterClass.Party DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Party(); } public static tech.figure.block.api.proto.BlockOuterClass.Party getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Party 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 tech.figure.block.api.proto.BlockOuterClass.Party getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeeOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Fee) com.google.protobuf.MessageOrBuilder { /** * uint64 fee = 1; * @return The fee. */ long getFee(); /** * string denom = 2; * @return The denom. */ java.lang.String getDenom(); /** * string denom = 2; * @return The bytes for denom. */ com.google.protobuf.ByteString getDenomBytes(); /** * .api.SignerInfo signerInfo = 3; * @return Whether the signerInfo field is set. */ boolean hasSignerInfo(); /** * .api.SignerInfo signerInfo = 3; * @return The signerInfo. */ tech.figure.block.api.proto.BlockOuterClass.SignerInfo getSignerInfo(); /** * .api.SignerInfo signerInfo = 3; */ tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder getSignerInfoOrBuilder(); /** * int64 height = 4; * @return The height. */ long getHeight(); /** * string tx_hash = 5; * @return The txHash. */ java.lang.String getTxHash(); /** * string tx_hash = 5; * @return The bytes for txHash. */ com.google.protobuf.ByteString getTxHashBytes(); } /** * Protobuf type {@code api.Fee} */ public static final class Fee extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Fee) FeeOrBuilder { private static final long serialVersionUID = 0L; // Use Fee.newBuilder() to construct. private Fee(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fee() { denom_ = ""; txHash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Fee(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Fee_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Fee_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Fee.class, tech.figure.block.api.proto.BlockOuterClass.Fee.Builder.class); } private int bitField0_; public static final int FEE_FIELD_NUMBER = 1; private long fee_ = 0L; /** * uint64 fee = 1; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } public static final int DENOM_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object denom_ = ""; /** * string denom = 2; * @return The denom. */ @java.lang.Override public java.lang.String getDenom() { java.lang.Object ref = denom_; 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(); denom_ = s; return s; } } /** * string denom = 2; * @return The bytes for denom. */ @java.lang.Override public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIGNERINFO_FIELD_NUMBER = 3; private tech.figure.block.api.proto.BlockOuterClass.SignerInfo signerInfo_; /** * .api.SignerInfo signerInfo = 3; * @return Whether the signerInfo field is set. */ @java.lang.Override public boolean hasSignerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * .api.SignerInfo signerInfo = 3; * @return The signerInfo. */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.SignerInfo getSignerInfo() { return signerInfo_ == null ? tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance() : signerInfo_; } /** * .api.SignerInfo signerInfo = 3; */ @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder getSignerInfoOrBuilder() { return signerInfo_ == null ? tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance() : signerInfo_; } public static final int HEIGHT_FIELD_NUMBER = 4; private long height_ = 0L; /** * int64 height = 4; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int TX_HASH_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object txHash_ = ""; /** * string tx_hash = 5; * @return The txHash. */ @java.lang.Override public java.lang.String getTxHash() { java.lang.Object ref = txHash_; 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(); txHash_ = s; return s; } } /** * string tx_hash = 5; * @return The bytes for txHash. */ @java.lang.Override public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = 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 (fee_ != 0L) { output.writeUInt64(1, fee_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denom_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, denom_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getSignerInfo()); } if (height_ != 0L) { output.writeInt64(4, height_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, txHash_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, fee_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denom_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, denom_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSignerInfo()); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, height_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, txHash_); } 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 tech.figure.block.api.proto.BlockOuterClass.Fee)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.Fee other = (tech.figure.block.api.proto.BlockOuterClass.Fee) obj; if (getFee() != other.getFee()) return false; if (!getDenom() .equals(other.getDenom())) return false; if (hasSignerInfo() != other.hasSignerInfo()) return false; if (hasSignerInfo()) { if (!getSignerInfo() .equals(other.getSignerInfo())) return false; } if (getHeight() != other.getHeight()) return false; if (!getTxHash() .equals(other.getTxHash())) 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) + FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFee()); hash = (37 * hash) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); if (hasSignerInfo()) { hash = (37 * hash) + SIGNERINFO_FIELD_NUMBER; hash = (53 * hash) + getSignerInfo().hashCode(); } hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + TX_HASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Fee 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 tech.figure.block.api.proto.BlockOuterClass.Fee parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Fee 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 tech.figure.block.api.proto.BlockOuterClass.Fee parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.Fee 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(tech.figure.block.api.proto.BlockOuterClass.Fee 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 api.Fee} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Fee) tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Fee_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Fee_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.Fee.class, tech.figure.block.api.proto.BlockOuterClass.Fee.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.Fee.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSignerInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fee_ = 0L; denom_ = ""; signerInfo_ = null; if (signerInfoBuilder_ != null) { signerInfoBuilder_.dispose(); signerInfoBuilder_ = null; } height_ = 0L; txHash_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_Fee_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Fee getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Fee build() { tech.figure.block.api.proto.BlockOuterClass.Fee result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.Fee buildPartial() { tech.figure.block.api.proto.BlockOuterClass.Fee result = new tech.figure.block.api.proto.BlockOuterClass.Fee(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.Fee result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fee_ = fee_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.denom_ = denom_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.signerInfo_ = signerInfoBuilder_ == null ? signerInfo_ : signerInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.height_ = height_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.txHash_ = txHash_; } 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 tech.figure.block.api.proto.BlockOuterClass.Fee) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.Fee)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.Fee other) { if (other == tech.figure.block.api.proto.BlockOuterClass.Fee.getDefaultInstance()) return this; if (other.getFee() != 0L) { setFee(other.getFee()); } if (!other.getDenom().isEmpty()) { denom_ = other.denom_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasSignerInfo()) { mergeSignerInfo(other.getSignerInfo()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; bitField0_ |= 0x00000010; 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: { fee_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { denom_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSignerInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { height_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { txHash_ = input.readStringRequireUtf8(); 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 long fee_ ; /** * uint64 fee = 1; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } /** * uint64 fee = 1; * @param value The fee to set. * @return This builder for chaining. */ public Builder setFee(long value) { fee_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint64 fee = 1; * @return This builder for chaining. */ public Builder clearFee() { bitField0_ = (bitField0_ & ~0x00000001); fee_ = 0L; onChanged(); return this; } private java.lang.Object denom_ = ""; /** * string denom = 2; * @return The denom. */ public java.lang.String getDenom() { java.lang.Object ref = denom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denom_ = s; return s; } else { return (java.lang.String) ref; } } /** * string denom = 2; * @return The bytes for denom. */ public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string denom = 2; * @param value The denom to set. * @return This builder for chaining. */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string denom = 2; * @return This builder for chaining. */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string denom = 2; * @param value The bytes for denom to set. * @return This builder for chaining. */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private tech.figure.block.api.proto.BlockOuterClass.SignerInfo signerInfo_; private com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.SignerInfo, tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder, tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder> signerInfoBuilder_; /** * .api.SignerInfo signerInfo = 3; * @return Whether the signerInfo field is set. */ public boolean hasSignerInfo() { return ((bitField0_ & 0x00000004) != 0); } /** * .api.SignerInfo signerInfo = 3; * @return The signerInfo. */ public tech.figure.block.api.proto.BlockOuterClass.SignerInfo getSignerInfo() { if (signerInfoBuilder_ == null) { return signerInfo_ == null ? tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance() : signerInfo_; } else { return signerInfoBuilder_.getMessage(); } } /** * .api.SignerInfo signerInfo = 3; */ public Builder setSignerInfo(tech.figure.block.api.proto.BlockOuterClass.SignerInfo value) { if (signerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signerInfo_ = value; } else { signerInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .api.SignerInfo signerInfo = 3; */ public Builder setSignerInfo( tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder builderForValue) { if (signerInfoBuilder_ == null) { signerInfo_ = builderForValue.build(); } else { signerInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .api.SignerInfo signerInfo = 3; */ public Builder mergeSignerInfo(tech.figure.block.api.proto.BlockOuterClass.SignerInfo value) { if (signerInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && signerInfo_ != null && signerInfo_ != tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance()) { getSignerInfoBuilder().mergeFrom(value); } else { signerInfo_ = value; } } else { signerInfoBuilder_.mergeFrom(value); } if (signerInfo_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .api.SignerInfo signerInfo = 3; */ public Builder clearSignerInfo() { bitField0_ = (bitField0_ & ~0x00000004); signerInfo_ = null; if (signerInfoBuilder_ != null) { signerInfoBuilder_.dispose(); signerInfoBuilder_ = null; } onChanged(); return this; } /** * .api.SignerInfo signerInfo = 3; */ public tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder getSignerInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSignerInfoFieldBuilder().getBuilder(); } /** * .api.SignerInfo signerInfo = 3; */ public tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder getSignerInfoOrBuilder() { if (signerInfoBuilder_ != null) { return signerInfoBuilder_.getMessageOrBuilder(); } else { return signerInfo_ == null ? tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance() : signerInfo_; } } /** * .api.SignerInfo signerInfo = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.SignerInfo, tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder, tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder> getSignerInfoFieldBuilder() { if (signerInfoBuilder_ == null) { signerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.figure.block.api.proto.BlockOuterClass.SignerInfo, tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder, tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder>( getSignerInfo(), getParentForChildren(), isClean()); signerInfo_ = null; } return signerInfoBuilder_; } private long height_ ; /** * int64 height = 4; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * int64 height = 4; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 height = 4; * @return This builder for chaining. */ public Builder clearHeight() { bitField0_ = (bitField0_ & ~0x00000008); height_ = 0L; onChanged(); return this; } private java.lang.Object txHash_ = ""; /** * string tx_hash = 5; * @return The txHash. */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tx_hash = 5; * @return The bytes for txHash. */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tx_hash = 5; * @param value The txHash to set. * @return This builder for chaining. */ public Builder setTxHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txHash_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string tx_hash = 5; * @return This builder for chaining. */ public Builder clearTxHash() { txHash_ = getDefaultInstance().getTxHash(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string tx_hash = 5; * @param value The bytes for txHash to set. * @return This builder for chaining. */ public Builder setTxHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txHash_ = 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:api.Fee) } // @@protoc_insertion_point(class_scope:api.Fee) private static final tech.figure.block.api.proto.BlockOuterClass.Fee DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.Fee(); } public static tech.figure.block.api.proto.BlockOuterClass.Fee getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Fee 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 tech.figure.block.api.proto.BlockOuterClass.Fee getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:api.SignerInfo) com.google.protobuf.MessageOrBuilder { /** * repeated string signerAddr = 1; * @return A list containing the signerAddr. */ java.util.List getSignerAddrList(); /** * repeated string signerAddr = 1; * @return The count of signerAddr. */ int getSignerAddrCount(); /** * repeated string signerAddr = 1; * @param index The index of the element to return. * @return The signerAddr at the given index. */ java.lang.String getSignerAddr(int index); /** * repeated string signerAddr = 1; * @param index The index of the value to return. * @return The bytes of the signerAddr at the given index. */ com.google.protobuf.ByteString getSignerAddrBytes(int index); /** * string incurringAddr = 2; * @return The incurringAddr. */ java.lang.String getIncurringAddr(); /** * string incurringAddr = 2; * @return The bytes for incurringAddr. */ com.google.protobuf.ByteString getIncurringAddrBytes(); } /** * Protobuf type {@code api.SignerInfo} */ public static final class SignerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.SignerInfo) SignerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SignerInfo.newBuilder() to construct. private SignerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignerInfo() { signerAddr_ = com.google.protobuf.LazyStringArrayList.emptyList(); incurringAddr_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignerInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_SignerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_SignerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.SignerInfo.class, tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder.class); } public static final int SIGNERADDR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList signerAddr_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string signerAddr = 1; * @return A list containing the signerAddr. */ public com.google.protobuf.ProtocolStringList getSignerAddrList() { return signerAddr_; } /** * repeated string signerAddr = 1; * @return The count of signerAddr. */ public int getSignerAddrCount() { return signerAddr_.size(); } /** * repeated string signerAddr = 1; * @param index The index of the element to return. * @return The signerAddr at the given index. */ public java.lang.String getSignerAddr(int index) { return signerAddr_.get(index); } /** * repeated string signerAddr = 1; * @param index The index of the value to return. * @return The bytes of the signerAddr at the given index. */ public com.google.protobuf.ByteString getSignerAddrBytes(int index) { return signerAddr_.getByteString(index); } public static final int INCURRINGADDR_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object incurringAddr_ = ""; /** * string incurringAddr = 2; * @return The incurringAddr. */ @java.lang.Override public java.lang.String getIncurringAddr() { java.lang.Object ref = incurringAddr_; 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(); incurringAddr_ = s; return s; } } /** * string incurringAddr = 2; * @return The bytes for incurringAddr. */ @java.lang.Override public com.google.protobuf.ByteString getIncurringAddrBytes() { java.lang.Object ref = incurringAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); incurringAddr_ = 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 < signerAddr_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signerAddr_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(incurringAddr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, incurringAddr_); } 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 < signerAddr_.size(); i++) { dataSize += computeStringSizeNoTag(signerAddr_.getRaw(i)); } size += dataSize; size += 1 * getSignerAddrList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(incurringAddr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, incurringAddr_); } 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 tech.figure.block.api.proto.BlockOuterClass.SignerInfo)) { return super.equals(obj); } tech.figure.block.api.proto.BlockOuterClass.SignerInfo other = (tech.figure.block.api.proto.BlockOuterClass.SignerInfo) obj; if (!getSignerAddrList() .equals(other.getSignerAddrList())) return false; if (!getIncurringAddr() .equals(other.getIncurringAddr())) 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 (getSignerAddrCount() > 0) { hash = (37 * hash) + SIGNERADDR_FIELD_NUMBER; hash = (53 * hash) + getSignerAddrList().hashCode(); } hash = (37 * hash) + INCURRINGADDR_FIELD_NUMBER; hash = (53 * hash) + getIncurringAddr().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo 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 tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo 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 tech.figure.block.api.proto.BlockOuterClass.SignerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo 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(tech.figure.block.api.proto.BlockOuterClass.SignerInfo 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 api.SignerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.SignerInfo) tech.figure.block.api.proto.BlockOuterClass.SignerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_SignerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_SignerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.figure.block.api.proto.BlockOuterClass.SignerInfo.class, tech.figure.block.api.proto.BlockOuterClass.SignerInfo.Builder.class); } // Construct using tech.figure.block.api.proto.BlockOuterClass.SignerInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; signerAddr_ = com.google.protobuf.LazyStringArrayList.emptyList(); incurringAddr_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.figure.block.api.proto.BlockOuterClass.internal_static_api_SignerInfo_descriptor; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.SignerInfo getDefaultInstanceForType() { return tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance(); } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.SignerInfo build() { tech.figure.block.api.proto.BlockOuterClass.SignerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.figure.block.api.proto.BlockOuterClass.SignerInfo buildPartial() { tech.figure.block.api.proto.BlockOuterClass.SignerInfo result = new tech.figure.block.api.proto.BlockOuterClass.SignerInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.figure.block.api.proto.BlockOuterClass.SignerInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { signerAddr_.makeImmutable(); result.signerAddr_ = signerAddr_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.incurringAddr_ = incurringAddr_; } } @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 tech.figure.block.api.proto.BlockOuterClass.SignerInfo) { return mergeFrom((tech.figure.block.api.proto.BlockOuterClass.SignerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.figure.block.api.proto.BlockOuterClass.SignerInfo other) { if (other == tech.figure.block.api.proto.BlockOuterClass.SignerInfo.getDefaultInstance()) return this; if (!other.signerAddr_.isEmpty()) { if (signerAddr_.isEmpty()) { signerAddr_ = other.signerAddr_; bitField0_ |= 0x00000001; } else { ensureSignerAddrIsMutable(); signerAddr_.addAll(other.signerAddr_); } onChanged(); } if (!other.getIncurringAddr().isEmpty()) { incurringAddr_ = other.incurringAddr_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureSignerAddrIsMutable(); signerAddr_.add(s); break; } // case 10 case 18: { incurringAddr_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList signerAddr_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSignerAddrIsMutable() { if (!signerAddr_.isModifiable()) { signerAddr_ = new com.google.protobuf.LazyStringArrayList(signerAddr_); } bitField0_ |= 0x00000001; } /** * repeated string signerAddr = 1; * @return A list containing the signerAddr. */ public com.google.protobuf.ProtocolStringList getSignerAddrList() { signerAddr_.makeImmutable(); return signerAddr_; } /** * repeated string signerAddr = 1; * @return The count of signerAddr. */ public int getSignerAddrCount() { return signerAddr_.size(); } /** * repeated string signerAddr = 1; * @param index The index of the element to return. * @return The signerAddr at the given index. */ public java.lang.String getSignerAddr(int index) { return signerAddr_.get(index); } /** * repeated string signerAddr = 1; * @param index The index of the value to return. * @return The bytes of the signerAddr at the given index. */ public com.google.protobuf.ByteString getSignerAddrBytes(int index) { return signerAddr_.getByteString(index); } /** * repeated string signerAddr = 1; * @param index The index to set the value at. * @param value The signerAddr to set. * @return This builder for chaining. */ public Builder setSignerAddr( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignerAddrIsMutable(); signerAddr_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string signerAddr = 1; * @param value The signerAddr to add. * @return This builder for chaining. */ public Builder addSignerAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignerAddrIsMutable(); signerAddr_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string signerAddr = 1; * @param values The signerAddr to add. * @return This builder for chaining. */ public Builder addAllSignerAddr( java.lang.Iterable values) { ensureSignerAddrIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signerAddr_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string signerAddr = 1; * @return This builder for chaining. */ public Builder clearSignerAddr() { signerAddr_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string signerAddr = 1; * @param value The bytes of the signerAddr to add. * @return This builder for chaining. */ public Builder addSignerAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSignerAddrIsMutable(); signerAddr_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object incurringAddr_ = ""; /** * string incurringAddr = 2; * @return The incurringAddr. */ public java.lang.String getIncurringAddr() { java.lang.Object ref = incurringAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); incurringAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** * string incurringAddr = 2; * @return The bytes for incurringAddr. */ public com.google.protobuf.ByteString getIncurringAddrBytes() { java.lang.Object ref = incurringAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); incurringAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string incurringAddr = 2; * @param value The incurringAddr to set. * @return This builder for chaining. */ public Builder setIncurringAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } incurringAddr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string incurringAddr = 2; * @return This builder for chaining. */ public Builder clearIncurringAddr() { incurringAddr_ = getDefaultInstance().getIncurringAddr(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string incurringAddr = 2; * @param value The bytes for incurringAddr to set. * @return This builder for chaining. */ public Builder setIncurringAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); incurringAddr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.SignerInfo) } // @@protoc_insertion_point(class_scope:api.SignerInfo) private static final tech.figure.block.api.proto.BlockOuterClass.SignerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.figure.block.api.proto.BlockOuterClass.SignerInfo(); } public static tech.figure.block.api.proto.BlockOuterClass.SignerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignerInfo 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 tech.figure.block.api.proto.BlockOuterClass.SignerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Block_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Blocks_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Blocks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Version_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Version_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Transactions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Transactions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TransactionsMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TransactionsMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TxEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TxEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Attribute_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Attribute_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Scope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Scope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ScopeState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ScopeState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Party_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Party_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Fee_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Fee_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_SignerInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_SignerInfo_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\013block.proto\022\003api\032\037google/protobuf/time" + "stamp.proto\"\245\001\n\005Block\022\016\n\006height\030\001 \001(\004\022\014\n" + "\004size\030\002 \001(\004\022\033\n\006header\030\003 \001(\0132\013.api.Header" + "\022(\n\004time\030\004 \001(\0132\032.google.protobuf.Timesta" + "mp\022\017\n\007num_txs\030\005 \001(\005\022&\n\014transactions\030\006 \003(" + "\0132\020.api.Transaction\"$\n\006Blocks\022\032\n\006blocks\030" + "\001 \003(\0132\n.api.Block\"%\n\007Version\022\013\n\003app\030\001 \001(" + "\t\022\r\n\005block\030\002 \001(\t\"9\n\006Header\022\020\n\010chain_id\030\001" + " \001(\t\022\035\n\007version\030\002 \001(\0132\014.api.Version\"5\n\014T" + "ransactions\022%\n\013transaction\030\001 \003(\0132\020.api.T" + "ransaction\"S\n\023TransactionsMessage\022\024\n\014blo" + "ck_height\030\001 \001(\004\022&\n\014transactions\030\002 \003(\0132\020." + "api.Transaction\"\200\002\n\013Transaction\022\017\n\007tx_ha" + "sh\030\001 \001(\t\022\024\n\014block_height\030\002 \001(\004\022\014\n\004code\030\003" + " \001(\004\022\014\n\004data\030\004 \001(\t\022\014\n\004info\030\005 \001(\t\022\022\n\ngas_" + "wanted\030\006 \001(\004\022\020\n\010gas_used\030\007 \001(\004\022\022\n\nnum_ev" + "ents\030\010 \001(\r\022\021\n\taddresses\030\t \003(\t\022\020\n\010message" + "s\030\n \003(\t\022\034\n\006events\030\013 \003(\0132\014.api.TxEvent\022\014\n" + "\004tags\030\014 \003(\t\022\025\n\003fee\030\r \001(\0132\010.api.Fee\"b\n\007Tx" + "Event\022\017\n\007tx_hash\030\001 \001(\t\022\016\n\006height\030\002 \001(\004\022\022" + "\n\nevent_type\030\003 \001(\t\022\"\n\nattributes\030\004 \003(\0132\016" + ".api.Attribute\"6\n\tAttribute\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t\022\r\n\005index\030\003 \001(\010\"R\n\005Scope\022" + "\020\n\010scope_id\030\001 \001(\t\022\024\n\014block_height\030\002 \001(\004\022" + "\017\n\007tx_hash\030\003 \001(\t\022\020\n\010messages\030\004 \003(\t\"\226\001\n\nS" + "copeState\022\020\n\010scope_id\030\001 \001(\t\022\030\n\020specifica" + "tion_id\030\002 \001(\t\022\032\n\006owners\030\003 \003(\0132\n.api.Part" + "y\022\023\n\013data_access\030\004 \003(\t\022\033\n\023value_owner_ad" + "dress\030\005 \001(\t\022\016\n\006height\030\006 \001(\004\"&\n\005Party\022\017\n\007" + "address\030\001 \001(\t\022\014\n\004role\030\002 \001(\t\"g\n\003Fee\022\013\n\003fe" + "e\030\001 \001(\004\022\r\n\005denom\030\002 \001(\t\022#\n\nsignerInfo\030\003 \001" + "(\0132\017.api.SignerInfo\022\016\n\006height\030\004 \001(\003\022\017\n\007t" + "x_hash\030\005 \001(\t\"7\n\nSignerInfo\022\022\n\nsignerAddr" + "\030\001 \003(\t\022\025\n\rincurringAddr\030\002 \001(\tB\035\n\033tech.fi" + "gure.block.api.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_api_Block_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_api_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Block_descriptor, new java.lang.String[] { "Height", "Size", "Header", "Time", "NumTxs", "Transactions", }); internal_static_api_Blocks_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_api_Blocks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Blocks_descriptor, new java.lang.String[] { "Blocks", }); internal_static_api_Version_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_api_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Version_descriptor, new java.lang.String[] { "App", "Block", }); internal_static_api_Header_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_api_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Header_descriptor, new java.lang.String[] { "ChainId", "Version", }); internal_static_api_Transactions_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_api_Transactions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Transactions_descriptor, new java.lang.String[] { "Transaction", }); internal_static_api_TransactionsMessage_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_api_TransactionsMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TransactionsMessage_descriptor, new java.lang.String[] { "BlockHeight", "Transactions", }); internal_static_api_Transaction_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_api_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Transaction_descriptor, new java.lang.String[] { "TxHash", "BlockHeight", "Code", "Data", "Info", "GasWanted", "GasUsed", "NumEvents", "Addresses", "Messages", "Events", "Tags", "Fee", }); internal_static_api_TxEvent_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_api_TxEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TxEvent_descriptor, new java.lang.String[] { "TxHash", "Height", "EventType", "Attributes", }); internal_static_api_Attribute_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_api_Attribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Attribute_descriptor, new java.lang.String[] { "Key", "Value", "Index", }); internal_static_api_Scope_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_api_Scope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Scope_descriptor, new java.lang.String[] { "ScopeId", "BlockHeight", "TxHash", "Messages", }); internal_static_api_ScopeState_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_api_ScopeState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ScopeState_descriptor, new java.lang.String[] { "ScopeId", "SpecificationId", "Owners", "DataAccess", "ValueOwnerAddress", "Height", }); internal_static_api_Party_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_api_Party_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Party_descriptor, new java.lang.String[] { "Address", "Role", }); internal_static_api_Fee_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_api_Fee_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Fee_descriptor, new java.lang.String[] { "Fee", "Denom", "SignerInfo", "Height", "TxHash", }); internal_static_api_SignerInfo_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_api_SignerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_SignerInfo_descriptor, new java.lang.String[] { "SignerAddr", "IncurringAddr", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy