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

proto.tendermint.crypto.ProofOuterClass Maven / Gradle / Ivy

There is a newer version: 0.13
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tendermint/crypto/proof.proto

package proto.tendermint.crypto;

public final class ProofOuterClass {
  private ProofOuterClass() {}
  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 ProofOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.crypto.Proof)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int64 total = 1;
     * @return The total.
     */
    long getTotal();

    /**
     * int64 index = 2;
     * @return The index.
     */
    long getIndex();

    /**
     * bytes leaf_hash = 3;
     * @return The leafHash.
     */
    com.google.protobuf.ByteString getLeafHash();

    /**
     * repeated bytes aunts = 4;
     * @return A list containing the aunts.
     */
    java.util.List getAuntsList();
    /**
     * repeated bytes aunts = 4;
     * @return The count of aunts.
     */
    int getAuntsCount();
    /**
     * repeated bytes aunts = 4;
     * @param index The index of the element to return.
     * @return The aunts at the given index.
     */
    com.google.protobuf.ByteString getAunts(int index);
  }
  /**
   * Protobuf type {@code tendermint.crypto.Proof}
   */
  public static final class Proof extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.crypto.Proof)
      ProofOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Proof.newBuilder() to construct.
    private Proof(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Proof() {
      leafHash_ = com.google.protobuf.ByteString.EMPTY;
      aunts_ = java.util.Collections.emptyList();
    }

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

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

              total_ = input.readInt64();
              break;
            }
            case 16: {

              index_ = input.readInt64();
              break;
            }
            case 26: {

              leafHash_ = input.readBytes();
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                aunts_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              aunts_.add(input.readBytes());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          aunts_ = java.util.Collections.unmodifiableList(aunts_); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.tendermint.crypto.ProofOuterClass.Proof.class, proto.tendermint.crypto.ProofOuterClass.Proof.Builder.class);
    }

    public static final int TOTAL_FIELD_NUMBER = 1;
    private long total_;
    /**
     * int64 total = 1;
     * @return The total.
     */
    @java.lang.Override
    public long getTotal() {
      return total_;
    }

    public static final int INDEX_FIELD_NUMBER = 2;
    private long index_;
    /**
     * int64 index = 2;
     * @return The index.
     */
    @java.lang.Override
    public long getIndex() {
      return index_;
    }

    public static final int LEAF_HASH_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString leafHash_;
    /**
     * bytes leaf_hash = 3;
     * @return The leafHash.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getLeafHash() {
      return leafHash_;
    }

    public static final int AUNTS_FIELD_NUMBER = 4;
    private java.util.List aunts_;
    /**
     * repeated bytes aunts = 4;
     * @return A list containing the aunts.
     */
    @java.lang.Override
    public java.util.List
        getAuntsList() {
      return aunts_;
    }
    /**
     * repeated bytes aunts = 4;
     * @return The count of aunts.
     */
    public int getAuntsCount() {
      return aunts_.size();
    }
    /**
     * repeated bytes aunts = 4;
     * @param index The index of the element to return.
     * @return The aunts at the given index.
     */
    public com.google.protobuf.ByteString getAunts(int index) {
      return aunts_.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 (total_ != 0L) {
        output.writeInt64(1, total_);
      }
      if (index_ != 0L) {
        output.writeInt64(2, index_);
      }
      if (!leafHash_.isEmpty()) {
        output.writeBytes(3, leafHash_);
      }
      for (int i = 0; i < aunts_.size(); i++) {
        output.writeBytes(4, aunts_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (total_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, total_);
      }
      if (index_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, index_);
      }
      if (!leafHash_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, leafHash_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < aunts_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(aunts_.get(i));
        }
        size += dataSize;
        size += 1 * getAuntsList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.tendermint.crypto.ProofOuterClass.Proof)) {
        return super.equals(obj);
      }
      proto.tendermint.crypto.ProofOuterClass.Proof other = (proto.tendermint.crypto.ProofOuterClass.Proof) obj;

      if (getTotal()
          != other.getTotal()) return false;
      if (getIndex()
          != other.getIndex()) return false;
      if (!getLeafHash()
          .equals(other.getLeafHash())) return false;
      if (!getAuntsList()
          .equals(other.getAuntsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + TOTAL_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTotal());
      hash = (37 * hash) + INDEX_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getIndex());
      hash = (37 * hash) + LEAF_HASH_FIELD_NUMBER;
      hash = (53 * hash) + getLeafHash().hashCode();
      if (getAuntsCount() > 0) {
        hash = (37 * hash) + AUNTS_FIELD_NUMBER;
        hash = (53 * hash) + getAuntsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof 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 proto.tendermint.crypto.ProofOuterClass.Proof parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof 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 proto.tendermint.crypto.ProofOuterClass.Proof parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.tendermint.crypto.ProofOuterClass.Proof 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(proto.tendermint.crypto.ProofOuterClass.Proof 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 tendermint.crypto.Proof}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:tendermint.crypto.Proof)
        proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.tendermint.crypto.ProofOuterClass.Proof.class, proto.tendermint.crypto.ProofOuterClass.Proof.Builder.class);
      }

      // Construct using proto.tendermint.crypto.ProofOuterClass.Proof.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        total_ = 0L;

        index_ = 0L;

        leafHash_ = com.google.protobuf.ByteString.EMPTY;

        aunts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_Proof_descriptor;
      }

      @java.lang.Override
      public proto.tendermint.crypto.ProofOuterClass.Proof getDefaultInstanceForType() {
        return proto.tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance();
      }

      @java.lang.Override
      public proto.tendermint.crypto.ProofOuterClass.Proof build() {
        proto.tendermint.crypto.ProofOuterClass.Proof result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.tendermint.crypto.ProofOuterClass.Proof buildPartial() {
        proto.tendermint.crypto.ProofOuterClass.Proof result = new proto.tendermint.crypto.ProofOuterClass.Proof(this);
        int from_bitField0_ = bitField0_;
        result.total_ = total_;
        result.index_ = index_;
        result.leafHash_ = leafHash_;
        if (((bitField0_ & 0x00000001) != 0)) {
          aunts_ = java.util.Collections.unmodifiableList(aunts_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.aunts_ = aunts_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.tendermint.crypto.ProofOuterClass.Proof other) {
        if (other == proto.tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance()) return this;
        if (other.getTotal() != 0L) {
          setTotal(other.getTotal());
        }
        if (other.getIndex() != 0L) {
          setIndex(other.getIndex());
        }
        if (other.getLeafHash() != com.google.protobuf.ByteString.EMPTY) {
          setLeafHash(other.getLeafHash());
        }
        if (!other.aunts_.isEmpty()) {
          if (aunts_.isEmpty()) {
            aunts_ = other.aunts_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAuntsIsMutable();
            aunts_.addAll(other.aunts_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        proto.tendermint.crypto.ProofOuterClass.Proof parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (proto.tendermint.crypto.ProofOuterClass.Proof) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long total_ ;
      /**
       * int64 total = 1;
       * @return The total.
       */
      @java.lang.Override
      public long getTotal() {
        return total_;
      }
      /**
       * int64 total = 1;
       * @param value The total to set.
       * @return This builder for chaining.
       */
      public Builder setTotal(long value) {
        
        total_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 total = 1;
       * @return This builder for chaining.
       */
      public Builder clearTotal() {
        
        total_ = 0L;
        onChanged();
        return this;
      }

      private long index_ ;
      /**
       * int64 index = 2;
       * @return The index.
       */
      @java.lang.Override
      public long getIndex() {
        return index_;
      }
      /**
       * int64 index = 2;
       * @param value The index to set.
       * @return This builder for chaining.
       */
      public Builder setIndex(long value) {
        
        index_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 index = 2;
       * @return This builder for chaining.
       */
      public Builder clearIndex() {
        
        index_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString leafHash_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes leaf_hash = 3;
       * @return The leafHash.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getLeafHash() {
        return leafHash_;
      }
      /**
       * bytes leaf_hash = 3;
       * @param value The leafHash to set.
       * @return This builder for chaining.
       */
      public Builder setLeafHash(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        leafHash_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes leaf_hash = 3;
       * @return This builder for chaining.
       */
      public Builder clearLeafHash() {
        
        leafHash_ = getDefaultInstance().getLeafHash();
        onChanged();
        return this;
      }

      private java.util.List aunts_ = java.util.Collections.emptyList();
      private void ensureAuntsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          aunts_ = new java.util.ArrayList(aunts_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * repeated bytes aunts = 4;
       * @return A list containing the aunts.
       */
      public java.util.List
          getAuntsList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(aunts_) : aunts_;
      }
      /**
       * repeated bytes aunts = 4;
       * @return The count of aunts.
       */
      public int getAuntsCount() {
        return aunts_.size();
      }
      /**
       * repeated bytes aunts = 4;
       * @param index The index of the element to return.
       * @return The aunts at the given index.
       */
      public com.google.protobuf.ByteString getAunts(int index) {
        return aunts_.get(index);
      }
      /**
       * repeated bytes aunts = 4;
       * @param index The index to set the value at.
       * @param value The aunts to set.
       * @return This builder for chaining.
       */
      public Builder setAunts(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAuntsIsMutable();
        aunts_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated bytes aunts = 4;
       * @param value The aunts to add.
       * @return This builder for chaining.
       */
      public Builder addAunts(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAuntsIsMutable();
        aunts_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated bytes aunts = 4;
       * @param values The aunts to add.
       * @return This builder for chaining.
       */
      public Builder addAllAunts(
          java.lang.Iterable values) {
        ensureAuntsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, aunts_);
        onChanged();
        return this;
      }
      /**
       * repeated bytes aunts = 4;
       * @return This builder for chaining.
       */
      public Builder clearAunts() {
        aunts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tendermint.crypto.Proof)
    }

    // @@protoc_insertion_point(class_scope:tendermint.crypto.Proof)
    private static final proto.tendermint.crypto.ProofOuterClass.Proof DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.tendermint.crypto.ProofOuterClass.Proof();
    }

    public static proto.tendermint.crypto.ProofOuterClass.Proof getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Proof parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Proof(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public proto.tendermint.crypto.ProofOuterClass.Proof getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ValueOpOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.crypto.ValueOp)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Encoded in ProofOp.Key.
     * 
* * bytes key = 1; * @return The key. */ com.google.protobuf.ByteString getKey(); /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; * @return Whether the proof field is set. */ boolean hasProof(); /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; * @return The proof. */ proto.tendermint.crypto.ProofOuterClass.Proof getProof(); /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; */ proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder(); } /** * Protobuf type {@code tendermint.crypto.ValueOp} */ public static final class ValueOp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.crypto.ValueOp) ValueOpOrBuilder { private static final long serialVersionUID = 0L; // Use ValueOp.newBuilder() to construct. private ValueOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValueOp() { key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValueOp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValueOp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readBytes(); break; } case 18: { proto.tendermint.crypto.ProofOuterClass.Proof.Builder subBuilder = null; if (proof_ != null) { subBuilder = proof_.toBuilder(); } proof_ = input.readMessage(proto.tendermint.crypto.ProofOuterClass.Proof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proof_); proof_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ValueOp.class, proto.tendermint.crypto.ProofOuterClass.ValueOp.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * Encoded in ProofOp.Key.
     * 
* * bytes key = 1; * @return The key. */ @java.lang.Override public com.google.protobuf.ByteString getKey() { return key_; } public static final int PROOF_FIELD_NUMBER = 2; private proto.tendermint.crypto.ProofOuterClass.Proof proof_; /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; * @return Whether the proof field is set. */ @java.lang.Override public boolean hasProof() { return proof_ != null; } /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; * @return The proof. */ @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.Proof getProof() { return proof_ == null ? proto.tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } /** *
     * To encode in ProofOp.Data
     * 
* * .tendermint.crypto.Proof proof = 2; */ @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { return getProof(); } 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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (proof_ != null) { output.writeMessage(2, getProof()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (proof_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getProof()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto.tendermint.crypto.ProofOuterClass.ValueOp)) { return super.equals(obj); } proto.tendermint.crypto.ProofOuterClass.ValueOp other = (proto.tendermint.crypto.ProofOuterClass.ValueOp) obj; if (!getKey() .equals(other.getKey())) return false; if (hasProof() != other.hasProof()) return false; if (hasProof()) { if (!getProof() .equals(other.getProof())) return false; } if (!unknownFields.equals(other.unknownFields)) 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(); if (hasProof()) { hash = (37 * hash) + PROOF_FIELD_NUMBER; hash = (53 * hash) + getProof().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp 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 proto.tendermint.crypto.ProofOuterClass.ValueOp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp 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 proto.tendermint.crypto.ProofOuterClass.ValueOp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp 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(proto.tendermint.crypto.ProofOuterClass.ValueOp 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 tendermint.crypto.ValueOp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.crypto.ValueOp) proto.tendermint.crypto.ProofOuterClass.ValueOpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ValueOp.class, proto.tendermint.crypto.ProofOuterClass.ValueOp.Builder.class); } // Construct using proto.tendermint.crypto.ProofOuterClass.ValueOp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; if (proofBuilder_ == null) { proof_ = null; } else { proof_ = null; proofBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ValueOp_descriptor; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ValueOp getDefaultInstanceForType() { return proto.tendermint.crypto.ProofOuterClass.ValueOp.getDefaultInstance(); } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ValueOp build() { proto.tendermint.crypto.ProofOuterClass.ValueOp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ValueOp buildPartial() { proto.tendermint.crypto.ProofOuterClass.ValueOp result = new proto.tendermint.crypto.ProofOuterClass.ValueOp(this); result.key_ = key_; if (proofBuilder_ == null) { result.proof_ = proof_; } else { result.proof_ = proofBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.tendermint.crypto.ProofOuterClass.ValueOp) { return mergeFrom((proto.tendermint.crypto.ProofOuterClass.ValueOp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.tendermint.crypto.ProofOuterClass.ValueOp other) { if (other == proto.tendermint.crypto.ProofOuterClass.ValueOp.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.hasProof()) { mergeProof(other.getProof()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.tendermint.crypto.ProofOuterClass.ValueOp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.tendermint.crypto.ProofOuterClass.ValueOp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Encoded in ProofOp.Key.
       * 
* * bytes key = 1; * @return The key. */ @java.lang.Override public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * Encoded in ProofOp.Key.
       * 
* * bytes key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * Encoded in ProofOp.Key.
       * 
* * bytes key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private proto.tendermint.crypto.ProofOuterClass.Proof proof_; private com.google.protobuf.SingleFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.Proof, proto.tendermint.crypto.ProofOuterClass.Proof.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder> proofBuilder_; /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; * @return Whether the proof field is set. */ public boolean hasProof() { return proofBuilder_ != null || proof_ != null; } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; * @return The proof. */ public proto.tendermint.crypto.ProofOuterClass.Proof getProof() { if (proofBuilder_ == null) { return proof_ == null ? proto.tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } else { return proofBuilder_.getMessage(); } } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public Builder setProof(proto.tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proof_ = value; onChanged(); } else { proofBuilder_.setMessage(value); } return this; } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public Builder setProof( proto.tendermint.crypto.ProofOuterClass.Proof.Builder builderForValue) { if (proofBuilder_ == null) { proof_ = builderForValue.build(); onChanged(); } else { proofBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public Builder mergeProof(proto.tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (proof_ != null) { proof_ = proto.tendermint.crypto.ProofOuterClass.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); } else { proof_ = value; } onChanged(); } else { proofBuilder_.mergeFrom(value); } return this; } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public Builder clearProof() { if (proofBuilder_ == null) { proof_ = null; onChanged(); } else { proof_ = null; proofBuilder_ = null; } return this; } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public proto.tendermint.crypto.ProofOuterClass.Proof.Builder getProofBuilder() { onChanged(); return getProofFieldBuilder().getBuilder(); } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ public proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { if (proofBuilder_ != null) { return proofBuilder_.getMessageOrBuilder(); } else { return proof_ == null ? proto.tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } } /** *
       * To encode in ProofOp.Data
       * 
* * .tendermint.crypto.Proof proof = 2; */ private com.google.protobuf.SingleFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.Proof, proto.tendermint.crypto.ProofOuterClass.Proof.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder> getProofFieldBuilder() { if (proofBuilder_ == null) { proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.Proof, proto.tendermint.crypto.ProofOuterClass.Proof.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOrBuilder>( getProof(), getParentForChildren(), isClean()); proof_ = null; } return proofBuilder_; } @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:tendermint.crypto.ValueOp) } // @@protoc_insertion_point(class_scope:tendermint.crypto.ValueOp) private static final proto.tendermint.crypto.ProofOuterClass.ValueOp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.tendermint.crypto.ProofOuterClass.ValueOp(); } public static proto.tendermint.crypto.ProofOuterClass.ValueOp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValueOp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValueOp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ValueOp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DominoOpOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.crypto.DominoOp) 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 input = 2; * @return The input. */ java.lang.String getInput(); /** * string input = 2; * @return The bytes for input. */ com.google.protobuf.ByteString getInputBytes(); /** * string output = 3; * @return The output. */ java.lang.String getOutput(); /** * string output = 3; * @return The bytes for output. */ com.google.protobuf.ByteString getOutputBytes(); } /** * Protobuf type {@code tendermint.crypto.DominoOp} */ public static final class DominoOp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.crypto.DominoOp) DominoOpOrBuilder { private static final long serialVersionUID = 0L; // Use DominoOp.newBuilder() to construct. private DominoOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DominoOp() { key_ = ""; input_ = ""; output_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DominoOp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DominoOp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); input_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); output_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.DominoOp.class, proto.tendermint.crypto.ProofOuterClass.DominoOp.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; 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 INPUT_FIELD_NUMBER = 2; private volatile java.lang.Object input_; /** * string input = 2; * @return The input. */ @java.lang.Override public java.lang.String getInput() { java.lang.Object ref = input_; 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(); input_ = s; return s; } } /** * string input = 2; * @return The bytes for input. */ @java.lang.Override public com.google.protobuf.ByteString getInputBytes() { java.lang.Object ref = input_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); input_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OUTPUT_FIELD_NUMBER = 3; private volatile java.lang.Object output_; /** * string output = 3; * @return The output. */ @java.lang.Override public java.lang.String getOutput() { java.lang.Object ref = output_; 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(); output_ = s; return s; } } /** * string output = 3; * @return The bytes for output. */ @java.lang.Override public com.google.protobuf.ByteString getOutputBytes() { java.lang.Object ref = output_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); output_ = 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 (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!getInputBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_); } if (!getOutputBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, output_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!getInputBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_); } if (!getOutputBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, output_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto.tendermint.crypto.ProofOuterClass.DominoOp)) { return super.equals(obj); } proto.tendermint.crypto.ProofOuterClass.DominoOp other = (proto.tendermint.crypto.ProofOuterClass.DominoOp) obj; if (!getKey() .equals(other.getKey())) return false; if (!getInput() .equals(other.getInput())) return false; if (!getOutput() .equals(other.getOutput())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getOutput().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp 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 proto.tendermint.crypto.ProofOuterClass.DominoOp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp 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 proto.tendermint.crypto.ProofOuterClass.DominoOp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp 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(proto.tendermint.crypto.ProofOuterClass.DominoOp 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 tendermint.crypto.DominoOp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.crypto.DominoOp) proto.tendermint.crypto.ProofOuterClass.DominoOpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.DominoOp.class, proto.tendermint.crypto.ProofOuterClass.DominoOp.Builder.class); } // Construct using proto.tendermint.crypto.ProofOuterClass.DominoOp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; input_ = ""; output_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstanceForType() { return proto.tendermint.crypto.ProofOuterClass.DominoOp.getDefaultInstance(); } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.DominoOp build() { proto.tendermint.crypto.ProofOuterClass.DominoOp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.DominoOp buildPartial() { proto.tendermint.crypto.ProofOuterClass.DominoOp result = new proto.tendermint.crypto.ProofOuterClass.DominoOp(this); result.key_ = key_; result.input_ = input_; result.output_ = output_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.tendermint.crypto.ProofOuterClass.DominoOp) { return mergeFrom((proto.tendermint.crypto.ProofOuterClass.DominoOp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.tendermint.crypto.ProofOuterClass.DominoOp other) { if (other == proto.tendermint.crypto.ProofOuterClass.DominoOp.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getInput().isEmpty()) { input_ = other.input_; onChanged(); } if (!other.getOutput().isEmpty()) { output_ = other.output_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.tendermint.crypto.ProofOuterClass.DominoOp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.tendermint.crypto.ProofOuterClass.DominoOp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); 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; onChanged(); return this; } private java.lang.Object input_ = ""; /** * string input = 2; * @return The input. */ public java.lang.String getInput() { java.lang.Object ref = input_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; } else { return (java.lang.String) ref; } } /** * string input = 2; * @return The bytes for input. */ public com.google.protobuf.ByteString getInputBytes() { java.lang.Object ref = input_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); input_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string input = 2; * @param value The input to set. * @return This builder for chaining. */ public Builder setInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); return this; } /** * string input = 2; * @return This builder for chaining. */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; } /** * string input = 2; * @param value The bytes for input to set. * @return This builder for chaining. */ public Builder setInputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; onChanged(); return this; } private java.lang.Object output_ = ""; /** * string output = 3; * @return The output. */ public java.lang.String getOutput() { java.lang.Object ref = output_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); output_ = s; return s; } else { return (java.lang.String) ref; } } /** * string output = 3; * @return The bytes for output. */ public com.google.protobuf.ByteString getOutputBytes() { java.lang.Object ref = output_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); output_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string output = 3; * @param value The output to set. * @return This builder for chaining. */ public Builder setOutput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } output_ = value; onChanged(); return this; } /** * string output = 3; * @return This builder for chaining. */ public Builder clearOutput() { output_ = getDefaultInstance().getOutput(); onChanged(); return this; } /** * string output = 3; * @param value The bytes for output to set. * @return This builder for chaining. */ public Builder setOutputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); output_ = value; 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:tendermint.crypto.DominoOp) } // @@protoc_insertion_point(class_scope:tendermint.crypto.DominoOp) private static final proto.tendermint.crypto.ProofOuterClass.DominoOp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.tendermint.crypto.ProofOuterClass.DominoOp(); } public static proto.tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DominoOp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DominoOp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProofOpOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOp) com.google.protobuf.MessageOrBuilder { /** * string type = 1; * @return The type. */ java.lang.String getType(); /** * string type = 1; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * bytes key = 2; * @return The key. */ com.google.protobuf.ByteString getKey(); /** * bytes data = 3; * @return The data. */ com.google.protobuf.ByteString getData(); } /** *
   * ProofOp defines an operation used for calculating Merkle root
   * The data could be arbitrary format, providing nessecary data
   * for example neighbouring node hash
   * 
* * Protobuf type {@code tendermint.crypto.ProofOp} */ public static final class ProofOp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOp) ProofOpOrBuilder { private static final long serialVersionUID = 0L; // Use ProofOp.newBuilder() to construct. private ProofOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProofOp() { type_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProofOp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProofOp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); type_ = s; break; } case 18: { key_ = input.readBytes(); break; } case 26: { data_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ProofOp.class, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * string type = 1; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** * string type = 1; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; * @return The key. */ @java.lang.Override public com.google.protobuf.ByteString getKey() { return key_; } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto.tendermint.crypto.ProofOuterClass.ProofOp)) { return super.equals(obj); } proto.tendermint.crypto.ProofOuterClass.ProofOp other = (proto.tendermint.crypto.ProofOuterClass.ProofOp) obj; if (!getType() .equals(other.getType())) return false; if (!getKey() .equals(other.getKey())) return false; if (!getData() .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp 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 proto.tendermint.crypto.ProofOuterClass.ProofOp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp 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 proto.tendermint.crypto.ProofOuterClass.ProofOp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp 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(proto.tendermint.crypto.ProofOuterClass.ProofOp 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; } /** *
     * ProofOp defines an operation used for calculating Merkle root
     * The data could be arbitrary format, providing nessecary data
     * for example neighbouring node hash
     * 
* * Protobuf type {@code tendermint.crypto.ProofOp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.crypto.ProofOp) proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ProofOp.class, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder.class); } // Construct using proto.tendermint.crypto.ProofOuterClass.ProofOp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstanceForType() { return proto.tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance(); } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOp build() { proto.tendermint.crypto.ProofOuterClass.ProofOp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOp buildPartial() { proto.tendermint.crypto.ProofOuterClass.ProofOp result = new proto.tendermint.crypto.ProofOuterClass.ProofOp(this); result.type_ = type_; result.key_ = key_; result.data_ = data_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.tendermint.crypto.ProofOuterClass.ProofOp) { return mergeFrom((proto.tendermint.crypto.ProofOuterClass.ProofOp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.tendermint.crypto.ProofOuterClass.ProofOp other) { if (other == proto.tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.tendermint.crypto.ProofOuterClass.ProofOp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.tendermint.crypto.ProofOuterClass.ProofOp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object type_ = ""; /** * string type = 1; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * string type = 1; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** * string type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * string type = 1; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; * @return The key. */ @java.lang.Override public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 3; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 3; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tendermint.crypto.ProofOp) } // @@protoc_insertion_point(class_scope:tendermint.crypto.ProofOp) private static final proto.tendermint.crypto.ProofOuterClass.ProofOp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.tendermint.crypto.ProofOuterClass.ProofOp(); } public static proto.tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProofOp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProofOp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProofOpsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOps) com.google.protobuf.MessageOrBuilder { /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ java.util.List getOpsList(); /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ proto.tendermint.crypto.ProofOuterClass.ProofOp getOps(int index); /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ int getOpsCount(); /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ java.util.List getOpsOrBuilderList(); /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder getOpsOrBuilder( int index); } /** *
   * ProofOps is Merkle proof defined by the list of ProofOps
   * 
* * Protobuf type {@code tendermint.crypto.ProofOps} */ public static final class ProofOps extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOps) ProofOpsOrBuilder { private static final long serialVersionUID = 0L; // Use ProofOps.newBuilder() to construct. private ProofOps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProofOps() { ops_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProofOps(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProofOps( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { ops_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ops_.add( input.readMessage(proto.tendermint.crypto.ProofOuterClass.ProofOp.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ops_ = java.util.Collections.unmodifiableList(ops_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ProofOps.class, proto.tendermint.crypto.ProofOuterClass.ProofOps.Builder.class); } public static final int OPS_FIELD_NUMBER = 1; private java.util.List ops_; /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getOpsList() { return ops_; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getOpsOrBuilderList() { return ops_; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getOpsCount() { return ops_.size(); } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOp getOps(int index) { return ops_.get(index); } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder getOpsOrBuilder( int index) { return ops_.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 < ops_.size(); i++) { output.writeMessage(1, ops_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < ops_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, ops_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto.tendermint.crypto.ProofOuterClass.ProofOps)) { return super.equals(obj); } proto.tendermint.crypto.ProofOuterClass.ProofOps other = (proto.tendermint.crypto.ProofOuterClass.ProofOps) obj; if (!getOpsList() .equals(other.getOpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOpsCount() > 0) { hash = (37 * hash) + OPS_FIELD_NUMBER; hash = (53 * hash) + getOpsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps 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 proto.tendermint.crypto.ProofOuterClass.ProofOps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps 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 proto.tendermint.crypto.ProofOuterClass.ProofOps parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps 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(proto.tendermint.crypto.ProofOuterClass.ProofOps 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; } /** *
     * ProofOps is Merkle proof defined by the list of ProofOps
     * 
* * Protobuf type {@code tendermint.crypto.ProofOps} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.crypto.ProofOps) proto.tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.tendermint.crypto.ProofOuterClass.ProofOps.class, proto.tendermint.crypto.ProofOuterClass.ProofOps.Builder.class); } // Construct using proto.tendermint.crypto.ProofOuterClass.ProofOps.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOpsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (opsBuilder_ == null) { ops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { opsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOps getDefaultInstanceForType() { return proto.tendermint.crypto.ProofOuterClass.ProofOps.getDefaultInstance(); } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOps build() { proto.tendermint.crypto.ProofOuterClass.ProofOps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOps buildPartial() { proto.tendermint.crypto.ProofOuterClass.ProofOps result = new proto.tendermint.crypto.ProofOuterClass.ProofOps(this); int from_bitField0_ = bitField0_; if (opsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ops_ = java.util.Collections.unmodifiableList(ops_); bitField0_ = (bitField0_ & ~0x00000001); } result.ops_ = ops_; } else { result.ops_ = opsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.tendermint.crypto.ProofOuterClass.ProofOps) { return mergeFrom((proto.tendermint.crypto.ProofOuterClass.ProofOps)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.tendermint.crypto.ProofOuterClass.ProofOps other) { if (other == proto.tendermint.crypto.ProofOuterClass.ProofOps.getDefaultInstance()) return this; if (opsBuilder_ == null) { if (!other.ops_.isEmpty()) { if (ops_.isEmpty()) { ops_ = other.ops_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOpsIsMutable(); ops_.addAll(other.ops_); } onChanged(); } } else { if (!other.ops_.isEmpty()) { if (opsBuilder_.isEmpty()) { opsBuilder_.dispose(); opsBuilder_ = null; ops_ = other.ops_; bitField0_ = (bitField0_ & ~0x00000001); opsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpsFieldBuilder() : null; } else { opsBuilder_.addAllMessages(other.ops_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.tendermint.crypto.ProofOuterClass.ProofOps parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.tendermint.crypto.ProofOuterClass.ProofOps) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ops_ = java.util.Collections.emptyList(); private void ensureOpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ops_ = new java.util.ArrayList(ops_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.ProofOp, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder> opsBuilder_; /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getOpsList() { if (opsBuilder_ == null) { return java.util.Collections.unmodifiableList(ops_); } else { return opsBuilder_.getMessageList(); } } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public int getOpsCount() { if (opsBuilder_ == null) { return ops_.size(); } else { return opsBuilder_.getCount(); } } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public proto.tendermint.crypto.ProofOuterClass.ProofOp getOps(int index) { if (opsBuilder_ == null) { return ops_.get(index); } else { return opsBuilder_.getMessage(index); } } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder setOps( int index, proto.tendermint.crypto.ProofOuterClass.ProofOp value) { if (opsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsIsMutable(); ops_.set(index, value); onChanged(); } else { opsBuilder_.setMessage(index, value); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder setOps( int index, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder builderForValue) { if (opsBuilder_ == null) { ensureOpsIsMutable(); ops_.set(index, builderForValue.build()); onChanged(); } else { opsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder addOps(proto.tendermint.crypto.ProofOuterClass.ProofOp value) { if (opsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsIsMutable(); ops_.add(value); onChanged(); } else { opsBuilder_.addMessage(value); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder addOps( int index, proto.tendermint.crypto.ProofOuterClass.ProofOp value) { if (opsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpsIsMutable(); ops_.add(index, value); onChanged(); } else { opsBuilder_.addMessage(index, value); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder addOps( proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder builderForValue) { if (opsBuilder_ == null) { ensureOpsIsMutable(); ops_.add(builderForValue.build()); onChanged(); } else { opsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder addOps( int index, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder builderForValue) { if (opsBuilder_ == null) { ensureOpsIsMutable(); ops_.add(index, builderForValue.build()); onChanged(); } else { opsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllOps( java.lang.Iterable values) { if (opsBuilder_ == null) { ensureOpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ops_); onChanged(); } else { opsBuilder_.addAllMessages(values); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder clearOps() { if (opsBuilder_ == null) { ops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { opsBuilder_.clear(); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public Builder removeOps(int index) { if (opsBuilder_ == null) { ensureOpsIsMutable(); ops_.remove(index); onChanged(); } else { opsBuilder_.remove(index); } return this; } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder getOpsBuilder( int index) { return getOpsFieldBuilder().getBuilder(index); } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder getOpsOrBuilder( int index) { if (opsBuilder_ == null) { return ops_.get(index); } else { return opsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getOpsOrBuilderList() { if (opsBuilder_ != null) { return opsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ops_); } } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder addOpsBuilder() { return getOpsFieldBuilder().addBuilder( proto.tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance()); } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder addOpsBuilder( int index) { return getOpsFieldBuilder().addBuilder( index, proto.tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance()); } /** * repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getOpsBuilderList() { return getOpsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.ProofOp, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder> getOpsFieldBuilder() { if (opsBuilder_ == null) { opsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.tendermint.crypto.ProofOuterClass.ProofOp, proto.tendermint.crypto.ProofOuterClass.ProofOp.Builder, proto.tendermint.crypto.ProofOuterClass.ProofOpOrBuilder>( ops_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); ops_ = null; } return opsBuilder_; } @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:tendermint.crypto.ProofOps) } // @@protoc_insertion_point(class_scope:tendermint.crypto.ProofOps) private static final proto.tendermint.crypto.ProofOuterClass.ProofOps DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.tendermint.crypto.ProofOuterClass.ProofOps(); } public static proto.tendermint.crypto.ProofOuterClass.ProofOps getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProofOps parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProofOps(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto.tendermint.crypto.ProofOuterClass.ProofOps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_crypto_Proof_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_crypto_Proof_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_crypto_ValueOp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_crypto_ValueOp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_crypto_DominoOp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_crypto_DominoOp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_crypto_ProofOp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_crypto_ProofOp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_crypto_ProofOps_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_crypto_ProofOps_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\035tendermint/crypto/proof.proto\022\021tenderm" + "int.crypto\032\024gogoproto/gogo.proto\"G\n\005Proo" + "f\022\r\n\005total\030\001 \001(\003\022\r\n\005index\030\002 \001(\003\022\021\n\tleaf_" + "hash\030\003 \001(\014\022\r\n\005aunts\030\004 \003(\014\"?\n\007ValueOp\022\013\n\003" + "key\030\001 \001(\014\022\'\n\005proof\030\002 \001(\0132\030.tendermint.cr" + "ypto.Proof\"6\n\010DominoOp\022\013\n\003key\030\001 \001(\t\022\r\n\005i" + "nput\030\002 \001(\t\022\016\n\006output\030\003 \001(\t\"2\n\007ProofOp\022\014\n" + "\004type\030\001 \001(\t\022\013\n\003key\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\"9" + "\n\010ProofOps\022-\n\003ops\030\001 \003(\0132\032.tendermint.cry" + "pto.ProofOpB\004\310\336\037\000B\031\n\027proto.tendermint.cr" + "yptob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), }); internal_static_tendermint_crypto_Proof_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tendermint_crypto_Proof_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_crypto_Proof_descriptor, new java.lang.String[] { "Total", "Index", "LeafHash", "Aunts", }); internal_static_tendermint_crypto_ValueOp_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tendermint_crypto_ValueOp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_crypto_ValueOp_descriptor, new java.lang.String[] { "Key", "Proof", }); internal_static_tendermint_crypto_DominoOp_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tendermint_crypto_DominoOp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_crypto_DominoOp_descriptor, new java.lang.String[] { "Key", "Input", "Output", }); internal_static_tendermint_crypto_ProofOp_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tendermint_crypto_ProofOp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_crypto_ProofOp_descriptor, new java.lang.String[] { "Type", "Key", "Data", }); internal_static_tendermint_crypto_ProofOps_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tendermint_crypto_ProofOps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_crypto_ProofOps_descriptor, new java.lang.String[] { "Ops", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy