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

tendermint.types.EvidenceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tendermint/types/evidence.proto

package tendermint.types;

public final class EvidenceOuterClass {
  private EvidenceOuterClass() {}
  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 EvidenceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.types.Evidence)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    boolean hasDuplicateVoteEvidence();
    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDuplicateVoteEvidence();
    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder();

    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    boolean hasLightClientAttackEvidence();
    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getLightClientAttackEvidence();
    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder();

    public tendermint.types.EvidenceOuterClass.Evidence.SumCase getSumCase();
  }
  /**
   * Protobuf type {@code tendermint.types.Evidence}
   */
  public  static final class Evidence extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.types.Evidence)
      EvidenceOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Evidence.newBuilder() to construct.
    private Evidence(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Evidence() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Evidence(
        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: {
              tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder subBuilder = null;
              if (sumCase_ == 1) {
                subBuilder = ((tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_).toBuilder();
              }
              sum_ =
                  input.readMessage(tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_);
                sum_ = subBuilder.buildPartial();
              }
              sumCase_ = 1;
              break;
            }
            case 18: {
              tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder subBuilder = null;
              if (sumCase_ == 2) {
                subBuilder = ((tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_).toBuilder();
              }
              sum_ =
                  input.readMessage(tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_);
                sum_ = subBuilder.buildPartial();
              }
              sumCase_ = 2;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tendermint.types.EvidenceOuterClass.Evidence.class, tendermint.types.EvidenceOuterClass.Evidence.Builder.class);
    }

    private int sumCase_ = 0;
    private java.lang.Object sum_;
    public enum SumCase
        implements com.google.protobuf.Internal.EnumLite {
      DUPLICATE_VOTE_EVIDENCE(1),
      LIGHT_CLIENT_ATTACK_EVIDENCE(2),
      SUM_NOT_SET(0);
      private final int value;
      private SumCase(int value) {
        this.value = value;
      }
      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static SumCase valueOf(int value) {
        return forNumber(value);
      }

      public static SumCase forNumber(int value) {
        switch (value) {
          case 1: return DUPLICATE_VOTE_EVIDENCE;
          case 2: return LIGHT_CLIENT_ATTACK_EVIDENCE;
          case 0: return SUM_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public SumCase
    getSumCase() {
      return SumCase.forNumber(
          sumCase_);
    }

    public static final int DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER = 1;
    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    public boolean hasDuplicateVoteEvidence() {
      return sumCase_ == 1;
    }
    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDuplicateVoteEvidence() {
      if (sumCase_ == 1) {
         return (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_;
      }
      return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
    }
    /**
     * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
     */
    public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder() {
      if (sumCase_ == 1) {
         return (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_;
      }
      return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
    }

    public static final int LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER = 2;
    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    public boolean hasLightClientAttackEvidence() {
      return sumCase_ == 2;
    }
    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getLightClientAttackEvidence() {
      if (sumCase_ == 2) {
         return (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_;
      }
      return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
    }
    /**
     * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
     */
    public tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder() {
      if (sumCase_ == 2) {
         return (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_;
      }
      return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
    }

    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 (sumCase_ == 1) {
        output.writeMessage(1, (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_);
      }
      if (sumCase_ == 2) {
        output.writeMessage(2, (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (sumCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_);
      }
      if (sumCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_);
      }
      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 tendermint.types.EvidenceOuterClass.Evidence)) {
        return super.equals(obj);
      }
      tendermint.types.EvidenceOuterClass.Evidence other = (tendermint.types.EvidenceOuterClass.Evidence) obj;

      boolean result = true;
      result = result && getSumCase().equals(
          other.getSumCase());
      if (!result) return false;
      switch (sumCase_) {
        case 1:
          result = result && getDuplicateVoteEvidence()
              .equals(other.getDuplicateVoteEvidence());
          break;
        case 2:
          result = result && getLightClientAttackEvidence()
              .equals(other.getLightClientAttackEvidence());
          break;
        case 0:
        default:
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (sumCase_) {
        case 1:
          hash = (37 * hash) + DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER;
          hash = (53 * hash) + getDuplicateVoteEvidence().hashCode();
          break;
        case 2:
          hash = (37 * hash) + LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER;
          hash = (53 * hash) + getLightClientAttackEvidence().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tendermint.types.EvidenceOuterClass.Evidence.class, tendermint.types.EvidenceOuterClass.Evidence.Builder.class);
      }

      // Construct using tendermint.types.EvidenceOuterClass.Evidence.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();
        sumCase_ = 0;
        sum_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_Evidence_descriptor;
      }

      @java.lang.Override
      public tendermint.types.EvidenceOuterClass.Evidence getDefaultInstanceForType() {
        return tendermint.types.EvidenceOuterClass.Evidence.getDefaultInstance();
      }

      @java.lang.Override
      public tendermint.types.EvidenceOuterClass.Evidence build() {
        tendermint.types.EvidenceOuterClass.Evidence result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tendermint.types.EvidenceOuterClass.Evidence buildPartial() {
        tendermint.types.EvidenceOuterClass.Evidence result = new tendermint.types.EvidenceOuterClass.Evidence(this);
        if (sumCase_ == 1) {
          if (duplicateVoteEvidenceBuilder_ == null) {
            result.sum_ = sum_;
          } else {
            result.sum_ = duplicateVoteEvidenceBuilder_.build();
          }
        }
        if (sumCase_ == 2) {
          if (lightClientAttackEvidenceBuilder_ == null) {
            result.sum_ = sum_;
          } else {
            result.sum_ = lightClientAttackEvidenceBuilder_.build();
          }
        }
        result.sumCase_ = sumCase_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tendermint.types.EvidenceOuterClass.Evidence other) {
        if (other == tendermint.types.EvidenceOuterClass.Evidence.getDefaultInstance()) return this;
        switch (other.getSumCase()) {
          case DUPLICATE_VOTE_EVIDENCE: {
            mergeDuplicateVoteEvidence(other.getDuplicateVoteEvidence());
            break;
          }
          case LIGHT_CLIENT_ATTACK_EVIDENCE: {
            mergeLightClientAttackEvidence(other.getLightClientAttackEvidence());
            break;
          }
          case SUM_NOT_SET: {
            break;
          }
        }
        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 {
        tendermint.types.EvidenceOuterClass.Evidence parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tendermint.types.EvidenceOuterClass.Evidence) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int sumCase_ = 0;
      private java.lang.Object sum_;
      public SumCase
          getSumCase() {
        return SumCase.forNumber(
            sumCase_);
      }

      public Builder clearSum() {
        sumCase_ = 0;
        sum_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder> duplicateVoteEvidenceBuilder_;
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public boolean hasDuplicateVoteEvidence() {
        return sumCase_ == 1;
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDuplicateVoteEvidence() {
        if (duplicateVoteEvidenceBuilder_ == null) {
          if (sumCase_ == 1) {
            return (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_;
          }
          return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
        } else {
          if (sumCase_ == 1) {
            return duplicateVoteEvidenceBuilder_.getMessage();
          }
          return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
        }
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public Builder setDuplicateVoteEvidence(tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence value) {
        if (duplicateVoteEvidenceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          sum_ = value;
          onChanged();
        } else {
          duplicateVoteEvidenceBuilder_.setMessage(value);
        }
        sumCase_ = 1;
        return this;
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public Builder setDuplicateVoteEvidence(
          tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder builderForValue) {
        if (duplicateVoteEvidenceBuilder_ == null) {
          sum_ = builderForValue.build();
          onChanged();
        } else {
          duplicateVoteEvidenceBuilder_.setMessage(builderForValue.build());
        }
        sumCase_ = 1;
        return this;
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public Builder mergeDuplicateVoteEvidence(tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence value) {
        if (duplicateVoteEvidenceBuilder_ == null) {
          if (sumCase_ == 1 &&
              sum_ != tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance()) {
            sum_ = tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.newBuilder((tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_)
                .mergeFrom(value).buildPartial();
          } else {
            sum_ = value;
          }
          onChanged();
        } else {
          if (sumCase_ == 1) {
            duplicateVoteEvidenceBuilder_.mergeFrom(value);
          }
          duplicateVoteEvidenceBuilder_.setMessage(value);
        }
        sumCase_ = 1;
        return this;
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public Builder clearDuplicateVoteEvidence() {
        if (duplicateVoteEvidenceBuilder_ == null) {
          if (sumCase_ == 1) {
            sumCase_ = 0;
            sum_ = null;
            onChanged();
          }
        } else {
          if (sumCase_ == 1) {
            sumCase_ = 0;
            sum_ = null;
          }
          duplicateVoteEvidenceBuilder_.clear();
        }
        return this;
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder getDuplicateVoteEvidenceBuilder() {
        return getDuplicateVoteEvidenceFieldBuilder().getBuilder();
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder getDuplicateVoteEvidenceOrBuilder() {
        if ((sumCase_ == 1) && (duplicateVoteEvidenceBuilder_ != null)) {
          return duplicateVoteEvidenceBuilder_.getMessageOrBuilder();
        } else {
          if (sumCase_ == 1) {
            return (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_;
          }
          return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
        }
      }
      /**
       * .tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder> 
          getDuplicateVoteEvidenceFieldBuilder() {
        if (duplicateVoteEvidenceBuilder_ == null) {
          if (!(sumCase_ == 1)) {
            sum_ = tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance();
          }
          duplicateVoteEvidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder>(
                  (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) sum_,
                  getParentForChildren(),
                  isClean());
          sum_ = null;
        }
        sumCase_ = 1;
        onChanged();;
        return duplicateVoteEvidenceBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.types.EvidenceOuterClass.LightClientAttackEvidence, tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder, tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder> lightClientAttackEvidenceBuilder_;
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public boolean hasLightClientAttackEvidence() {
        return sumCase_ == 2;
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getLightClientAttackEvidence() {
        if (lightClientAttackEvidenceBuilder_ == null) {
          if (sumCase_ == 2) {
            return (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_;
          }
          return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
        } else {
          if (sumCase_ == 2) {
            return lightClientAttackEvidenceBuilder_.getMessage();
          }
          return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
        }
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public Builder setLightClientAttackEvidence(tendermint.types.EvidenceOuterClass.LightClientAttackEvidence value) {
        if (lightClientAttackEvidenceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          sum_ = value;
          onChanged();
        } else {
          lightClientAttackEvidenceBuilder_.setMessage(value);
        }
        sumCase_ = 2;
        return this;
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public Builder setLightClientAttackEvidence(
          tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder builderForValue) {
        if (lightClientAttackEvidenceBuilder_ == null) {
          sum_ = builderForValue.build();
          onChanged();
        } else {
          lightClientAttackEvidenceBuilder_.setMessage(builderForValue.build());
        }
        sumCase_ = 2;
        return this;
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public Builder mergeLightClientAttackEvidence(tendermint.types.EvidenceOuterClass.LightClientAttackEvidence value) {
        if (lightClientAttackEvidenceBuilder_ == null) {
          if (sumCase_ == 2 &&
              sum_ != tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance()) {
            sum_ = tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.newBuilder((tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_)
                .mergeFrom(value).buildPartial();
          } else {
            sum_ = value;
          }
          onChanged();
        } else {
          if (sumCase_ == 2) {
            lightClientAttackEvidenceBuilder_.mergeFrom(value);
          }
          lightClientAttackEvidenceBuilder_.setMessage(value);
        }
        sumCase_ = 2;
        return this;
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public Builder clearLightClientAttackEvidence() {
        if (lightClientAttackEvidenceBuilder_ == null) {
          if (sumCase_ == 2) {
            sumCase_ = 0;
            sum_ = null;
            onChanged();
          }
        } else {
          if (sumCase_ == 2) {
            sumCase_ = 0;
            sum_ = null;
          }
          lightClientAttackEvidenceBuilder_.clear();
        }
        return this;
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder getLightClientAttackEvidenceBuilder() {
        return getLightClientAttackEvidenceFieldBuilder().getBuilder();
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      public tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder getLightClientAttackEvidenceOrBuilder() {
        if ((sumCase_ == 2) && (lightClientAttackEvidenceBuilder_ != null)) {
          return lightClientAttackEvidenceBuilder_.getMessageOrBuilder();
        } else {
          if (sumCase_ == 2) {
            return (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_;
          }
          return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
        }
      }
      /**
       * .tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.types.EvidenceOuterClass.LightClientAttackEvidence, tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder, tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder> 
          getLightClientAttackEvidenceFieldBuilder() {
        if (lightClientAttackEvidenceBuilder_ == null) {
          if (!(sumCase_ == 2)) {
            sum_ = tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance();
          }
          lightClientAttackEvidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tendermint.types.EvidenceOuterClass.LightClientAttackEvidence, tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder, tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder>(
                  (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) sum_,
                  getParentForChildren(),
                  isClean());
          sum_ = null;
        }
        sumCase_ = 2;
        onChanged();;
        return lightClientAttackEvidenceBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:tendermint.types.Evidence)
    }

    // @@protoc_insertion_point(class_scope:tendermint.types.Evidence)
    private static final tendermint.types.EvidenceOuterClass.Evidence DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tendermint.types.EvidenceOuterClass.Evidence();
    }

    public static tendermint.types.EvidenceOuterClass.Evidence getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Evidence parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Evidence(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 tendermint.types.EvidenceOuterClass.Evidence getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DuplicateVoteEvidenceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.types.DuplicateVoteEvidence)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .tendermint.types.Vote vote_a = 1;
     */
    boolean hasVoteA();
    /**
     * .tendermint.types.Vote vote_a = 1;
     */
    tendermint.types.Types.Vote getVoteA();
    /**
     * .tendermint.types.Vote vote_a = 1;
     */
    tendermint.types.Types.VoteOrBuilder getVoteAOrBuilder();

    /**
     * .tendermint.types.Vote vote_b = 2;
     */
    boolean hasVoteB();
    /**
     * .tendermint.types.Vote vote_b = 2;
     */
    tendermint.types.Types.Vote getVoteB();
    /**
     * .tendermint.types.Vote vote_b = 2;
     */
    tendermint.types.Types.VoteOrBuilder getVoteBOrBuilder();

    /**
     * int64 total_voting_power = 3;
     */
    long getTotalVotingPower();

    /**
     * int64 validator_power = 4;
     */
    long getValidatorPower();

    /**
     * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    boolean hasTimestamp();
    /**
     * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.Timestamp getTimestamp();
    /**
     * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
  }
  /**
   * 
   * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
   * 
* * Protobuf type {@code tendermint.types.DuplicateVoteEvidence} */ public static final class DuplicateVoteEvidence extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.DuplicateVoteEvidence) DuplicateVoteEvidenceOrBuilder { private static final long serialVersionUID = 0L; // Use DuplicateVoteEvidence.newBuilder() to construct. private DuplicateVoteEvidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DuplicateVoteEvidence() { totalVotingPower_ = 0L; validatorPower_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DuplicateVoteEvidence( 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: { tendermint.types.Types.Vote.Builder subBuilder = null; if (voteA_ != null) { subBuilder = voteA_.toBuilder(); } voteA_ = input.readMessage(tendermint.types.Types.Vote.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(voteA_); voteA_ = subBuilder.buildPartial(); } break; } case 18: { tendermint.types.Types.Vote.Builder subBuilder = null; if (voteB_ != null) { subBuilder = voteB_.toBuilder(); } voteB_ = input.readMessage(tendermint.types.Types.Vote.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(voteB_); voteB_ = subBuilder.buildPartial(); } break; } case 24: { totalVotingPower_ = input.readInt64(); break; } case 32: { validatorPower_ = input.readInt64(); break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.class, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder.class); } public static final int VOTE_A_FIELD_NUMBER = 1; private tendermint.types.Types.Vote voteA_; /** * .tendermint.types.Vote vote_a = 1; */ public boolean hasVoteA() { return voteA_ != null; } /** * .tendermint.types.Vote vote_a = 1; */ public tendermint.types.Types.Vote getVoteA() { return voteA_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteA_; } /** * .tendermint.types.Vote vote_a = 1; */ public tendermint.types.Types.VoteOrBuilder getVoteAOrBuilder() { return getVoteA(); } public static final int VOTE_B_FIELD_NUMBER = 2; private tendermint.types.Types.Vote voteB_; /** * .tendermint.types.Vote vote_b = 2; */ public boolean hasVoteB() { return voteB_ != null; } /** * .tendermint.types.Vote vote_b = 2; */ public tendermint.types.Types.Vote getVoteB() { return voteB_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteB_; } /** * .tendermint.types.Vote vote_b = 2; */ public tendermint.types.Types.VoteOrBuilder getVoteBOrBuilder() { return getVoteB(); } public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 3; private long totalVotingPower_; /** * int64 total_voting_power = 3; */ public long getTotalVotingPower() { return totalVotingPower_; } public static final int VALIDATOR_POWER_FIELD_NUMBER = 4; private long validatorPower_; /** * int64 validator_power = 4; */ public long getValidatorPower() { return validatorPower_; } public static final int TIMESTAMP_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } 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 (voteA_ != null) { output.writeMessage(1, getVoteA()); } if (voteB_ != null) { output.writeMessage(2, getVoteB()); } if (totalVotingPower_ != 0L) { output.writeInt64(3, totalVotingPower_); } if (validatorPower_ != 0L) { output.writeInt64(4, validatorPower_); } if (timestamp_ != null) { output.writeMessage(5, getTimestamp()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (voteA_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVoteA()); } if (voteB_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getVoteB()); } if (totalVotingPower_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, totalVotingPower_); } if (validatorPower_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, validatorPower_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTimestamp()); } 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 tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence)) { return super.equals(obj); } tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence other = (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) obj; boolean result = true; result = result && (hasVoteA() == other.hasVoteA()); if (hasVoteA()) { result = result && getVoteA() .equals(other.getVoteA()); } result = result && (hasVoteB() == other.hasVoteB()); if (hasVoteB()) { result = result && getVoteB() .equals(other.getVoteB()); } result = result && (getTotalVotingPower() == other.getTotalVotingPower()); result = result && (getValidatorPower() == other.getValidatorPower()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasVoteA()) { hash = (37 * hash) + VOTE_A_FIELD_NUMBER; hash = (53 * hash) + getVoteA().hashCode(); } if (hasVoteB()) { hash = (37 * hash) + VOTE_B_FIELD_NUMBER; hash = (53 * hash) + getVoteB().hashCode(); } hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalVotingPower()); hash = (37 * hash) + VALIDATOR_POWER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValidatorPower()); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence 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 tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence 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 tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence 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(tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence 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; } /** *
     * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
     * 
* * Protobuf type {@code tendermint.types.DuplicateVoteEvidence} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.DuplicateVoteEvidence) tendermint.types.EvidenceOuterClass.DuplicateVoteEvidenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.class, tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.Builder.class); } // Construct using tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.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(); if (voteABuilder_ == null) { voteA_ = null; } else { voteA_ = null; voteABuilder_ = null; } if (voteBBuilder_ == null) { voteB_ = null; } else { voteB_ = null; voteBBuilder_ = null; } totalVotingPower_ = 0L; validatorPower_ = 0L; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; } @java.lang.Override public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDefaultInstanceForType() { return tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance(); } @java.lang.Override public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence build() { tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence buildPartial() { tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence result = new tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence(this); if (voteABuilder_ == null) { result.voteA_ = voteA_; } else { result.voteA_ = voteABuilder_.build(); } if (voteBBuilder_ == null) { result.voteB_ = voteB_; } else { result.voteB_ = voteBBuilder_.build(); } result.totalVotingPower_ = totalVotingPower_; result.validatorPower_ = validatorPower_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) { return mergeFrom((tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence other) { if (other == tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence.getDefaultInstance()) return this; if (other.hasVoteA()) { mergeVoteA(other.getVoteA()); } if (other.hasVoteB()) { mergeVoteB(other.getVoteB()); } if (other.getTotalVotingPower() != 0L) { setTotalVotingPower(other.getTotalVotingPower()); } if (other.getValidatorPower() != 0L) { setValidatorPower(other.getValidatorPower()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } 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 { tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.types.Types.Vote voteA_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder> voteABuilder_; /** * .tendermint.types.Vote vote_a = 1; */ public boolean hasVoteA() { return voteABuilder_ != null || voteA_ != null; } /** * .tendermint.types.Vote vote_a = 1; */ public tendermint.types.Types.Vote getVoteA() { if (voteABuilder_ == null) { return voteA_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteA_; } else { return voteABuilder_.getMessage(); } } /** * .tendermint.types.Vote vote_a = 1; */ public Builder setVoteA(tendermint.types.Types.Vote value) { if (voteABuilder_ == null) { if (value == null) { throw new NullPointerException(); } voteA_ = value; onChanged(); } else { voteABuilder_.setMessage(value); } return this; } /** * .tendermint.types.Vote vote_a = 1; */ public Builder setVoteA( tendermint.types.Types.Vote.Builder builderForValue) { if (voteABuilder_ == null) { voteA_ = builderForValue.build(); onChanged(); } else { voteABuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.Vote vote_a = 1; */ public Builder mergeVoteA(tendermint.types.Types.Vote value) { if (voteABuilder_ == null) { if (voteA_ != null) { voteA_ = tendermint.types.Types.Vote.newBuilder(voteA_).mergeFrom(value).buildPartial(); } else { voteA_ = value; } onChanged(); } else { voteABuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.Vote vote_a = 1; */ public Builder clearVoteA() { if (voteABuilder_ == null) { voteA_ = null; onChanged(); } else { voteA_ = null; voteABuilder_ = null; } return this; } /** * .tendermint.types.Vote vote_a = 1; */ public tendermint.types.Types.Vote.Builder getVoteABuilder() { onChanged(); return getVoteAFieldBuilder().getBuilder(); } /** * .tendermint.types.Vote vote_a = 1; */ public tendermint.types.Types.VoteOrBuilder getVoteAOrBuilder() { if (voteABuilder_ != null) { return voteABuilder_.getMessageOrBuilder(); } else { return voteA_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteA_; } } /** * .tendermint.types.Vote vote_a = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder> getVoteAFieldBuilder() { if (voteABuilder_ == null) { voteABuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder>( getVoteA(), getParentForChildren(), isClean()); voteA_ = null; } return voteABuilder_; } private tendermint.types.Types.Vote voteB_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder> voteBBuilder_; /** * .tendermint.types.Vote vote_b = 2; */ public boolean hasVoteB() { return voteBBuilder_ != null || voteB_ != null; } /** * .tendermint.types.Vote vote_b = 2; */ public tendermint.types.Types.Vote getVoteB() { if (voteBBuilder_ == null) { return voteB_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteB_; } else { return voteBBuilder_.getMessage(); } } /** * .tendermint.types.Vote vote_b = 2; */ public Builder setVoteB(tendermint.types.Types.Vote value) { if (voteBBuilder_ == null) { if (value == null) { throw new NullPointerException(); } voteB_ = value; onChanged(); } else { voteBBuilder_.setMessage(value); } return this; } /** * .tendermint.types.Vote vote_b = 2; */ public Builder setVoteB( tendermint.types.Types.Vote.Builder builderForValue) { if (voteBBuilder_ == null) { voteB_ = builderForValue.build(); onChanged(); } else { voteBBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.Vote vote_b = 2; */ public Builder mergeVoteB(tendermint.types.Types.Vote value) { if (voteBBuilder_ == null) { if (voteB_ != null) { voteB_ = tendermint.types.Types.Vote.newBuilder(voteB_).mergeFrom(value).buildPartial(); } else { voteB_ = value; } onChanged(); } else { voteBBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.Vote vote_b = 2; */ public Builder clearVoteB() { if (voteBBuilder_ == null) { voteB_ = null; onChanged(); } else { voteB_ = null; voteBBuilder_ = null; } return this; } /** * .tendermint.types.Vote vote_b = 2; */ public tendermint.types.Types.Vote.Builder getVoteBBuilder() { onChanged(); return getVoteBFieldBuilder().getBuilder(); } /** * .tendermint.types.Vote vote_b = 2; */ public tendermint.types.Types.VoteOrBuilder getVoteBOrBuilder() { if (voteBBuilder_ != null) { return voteBBuilder_.getMessageOrBuilder(); } else { return voteB_ == null ? tendermint.types.Types.Vote.getDefaultInstance() : voteB_; } } /** * .tendermint.types.Vote vote_b = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder> getVoteBFieldBuilder() { if (voteBBuilder_ == null) { voteBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Vote, tendermint.types.Types.Vote.Builder, tendermint.types.Types.VoteOrBuilder>( getVoteB(), getParentForChildren(), isClean()); voteB_ = null; } return voteBBuilder_; } private long totalVotingPower_ ; /** * int64 total_voting_power = 3; */ public long getTotalVotingPower() { return totalVotingPower_; } /** * int64 total_voting_power = 3; */ public Builder setTotalVotingPower(long value) { totalVotingPower_ = value; onChanged(); return this; } /** * int64 total_voting_power = 3; */ public Builder clearTotalVotingPower() { totalVotingPower_ = 0L; onChanged(); return this; } private long validatorPower_ ; /** * int64 validator_power = 4; */ public long getValidatorPower() { return validatorPower_; } /** * int64 validator_power = 4; */ public Builder setValidatorPower(long value) { validatorPower_ = value; onChanged(); return this; } /** * int64 validator_power = 4; */ public Builder clearValidatorPower() { validatorPower_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tendermint.types.DuplicateVoteEvidence) } // @@protoc_insertion_point(class_scope:tendermint.types.DuplicateVoteEvidence) private static final tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence(); } public static tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DuplicateVoteEvidence parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DuplicateVoteEvidence(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 tendermint.types.EvidenceOuterClass.DuplicateVoteEvidence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LightClientAttackEvidenceOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.LightClientAttackEvidence) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.LightBlock conflicting_block = 1; */ boolean hasConflictingBlock(); /** * .tendermint.types.LightBlock conflicting_block = 1; */ tendermint.types.Types.LightBlock getConflictingBlock(); /** * .tendermint.types.LightBlock conflicting_block = 1; */ tendermint.types.Types.LightBlockOrBuilder getConflictingBlockOrBuilder(); /** * int64 common_height = 2; */ long getCommonHeight(); /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ java.util.List getByzantineValidatorsList(); /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ tendermint.types.ValidatorOuterClass.Validator getByzantineValidators(int index); /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ int getByzantineValidatorsCount(); /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ java.util.List getByzantineValidatorsOrBuilderList(); /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ tendermint.types.ValidatorOuterClass.ValidatorOrBuilder getByzantineValidatorsOrBuilder( int index); /** * int64 total_voting_power = 4; */ long getTotalVotingPower(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ boolean hasTimestamp(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.Timestamp getTimestamp(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); } /** *
   * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
   * 
* * Protobuf type {@code tendermint.types.LightClientAttackEvidence} */ public static final class LightClientAttackEvidence extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.LightClientAttackEvidence) LightClientAttackEvidenceOrBuilder { private static final long serialVersionUID = 0L; // Use LightClientAttackEvidence.newBuilder() to construct. private LightClientAttackEvidence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LightClientAttackEvidence() { commonHeight_ = 0L; byzantineValidators_ = java.util.Collections.emptyList(); totalVotingPower_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LightClientAttackEvidence( 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: { tendermint.types.Types.LightBlock.Builder subBuilder = null; if (conflictingBlock_ != null) { subBuilder = conflictingBlock_.toBuilder(); } conflictingBlock_ = input.readMessage(tendermint.types.Types.LightBlock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conflictingBlock_); conflictingBlock_ = subBuilder.buildPartial(); } break; } case 16: { commonHeight_ = input.readInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { byzantineValidators_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } byzantineValidators_.add( input.readMessage(tendermint.types.ValidatorOuterClass.Validator.parser(), extensionRegistry)); break; } case 32: { totalVotingPower_ = input.readInt64(); break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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_ & 0x00000004) == 0x00000004)) { byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.class, tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder.class); } private int bitField0_; public static final int CONFLICTING_BLOCK_FIELD_NUMBER = 1; private tendermint.types.Types.LightBlock conflictingBlock_; /** * .tendermint.types.LightBlock conflicting_block = 1; */ public boolean hasConflictingBlock() { return conflictingBlock_ != null; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public tendermint.types.Types.LightBlock getConflictingBlock() { return conflictingBlock_ == null ? tendermint.types.Types.LightBlock.getDefaultInstance() : conflictingBlock_; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public tendermint.types.Types.LightBlockOrBuilder getConflictingBlockOrBuilder() { return getConflictingBlock(); } public static final int COMMON_HEIGHT_FIELD_NUMBER = 2; private long commonHeight_; /** * int64 common_height = 2; */ public long getCommonHeight() { return commonHeight_; } public static final int BYZANTINE_VALIDATORS_FIELD_NUMBER = 3; private java.util.List byzantineValidators_; /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public java.util.List getByzantineValidatorsList() { return byzantineValidators_; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public java.util.List getByzantineValidatorsOrBuilderList() { return byzantineValidators_; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public int getByzantineValidatorsCount() { return byzantineValidators_.size(); } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.Validator getByzantineValidators(int index) { return byzantineValidators_.get(index); } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.ValidatorOrBuilder getByzantineValidatorsOrBuilder( int index) { return byzantineValidators_.get(index); } public static final int TOTAL_VOTING_POWER_FIELD_NUMBER = 4; private long totalVotingPower_; /** * int64 total_voting_power = 4; */ public long getTotalVotingPower() { return totalVotingPower_; } public static final int TIMESTAMP_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } 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 (conflictingBlock_ != null) { output.writeMessage(1, getConflictingBlock()); } if (commonHeight_ != 0L) { output.writeInt64(2, commonHeight_); } for (int i = 0; i < byzantineValidators_.size(); i++) { output.writeMessage(3, byzantineValidators_.get(i)); } if (totalVotingPower_ != 0L) { output.writeInt64(4, totalVotingPower_); } if (timestamp_ != null) { output.writeMessage(5, getTimestamp()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (conflictingBlock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConflictingBlock()); } if (commonHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, commonHeight_); } for (int i = 0; i < byzantineValidators_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, byzantineValidators_.get(i)); } if (totalVotingPower_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, totalVotingPower_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTimestamp()); } 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 tendermint.types.EvidenceOuterClass.LightClientAttackEvidence)) { return super.equals(obj); } tendermint.types.EvidenceOuterClass.LightClientAttackEvidence other = (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) obj; boolean result = true; result = result && (hasConflictingBlock() == other.hasConflictingBlock()); if (hasConflictingBlock()) { result = result && getConflictingBlock() .equals(other.getConflictingBlock()); } result = result && (getCommonHeight() == other.getCommonHeight()); result = result && getByzantineValidatorsList() .equals(other.getByzantineValidatorsList()); result = result && (getTotalVotingPower() == other.getTotalVotingPower()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConflictingBlock()) { hash = (37 * hash) + CONFLICTING_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getConflictingBlock().hashCode(); } hash = (37 * hash) + COMMON_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommonHeight()); if (getByzantineValidatorsCount() > 0) { hash = (37 * hash) + BYZANTINE_VALIDATORS_FIELD_NUMBER; hash = (53 * hash) + getByzantineValidatorsList().hashCode(); } hash = (37 * hash) + TOTAL_VOTING_POWER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalVotingPower()); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence 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 tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence 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 tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence 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(tendermint.types.EvidenceOuterClass.LightClientAttackEvidence 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; } /** *
     * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
     * 
* * Protobuf type {@code tendermint.types.LightClientAttackEvidence} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.LightClientAttackEvidence) tendermint.types.EvidenceOuterClass.LightClientAttackEvidenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.class, tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.Builder.class); } // Construct using tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getByzantineValidatorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (conflictingBlockBuilder_ == null) { conflictingBlock_ = null; } else { conflictingBlock_ = null; conflictingBlockBuilder_ = null; } commonHeight_ = 0L; if (byzantineValidatorsBuilder_ == null) { byzantineValidators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { byzantineValidatorsBuilder_.clear(); } totalVotingPower_ = 0L; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_LightClientAttackEvidence_descriptor; } @java.lang.Override public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getDefaultInstanceForType() { return tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance(); } @java.lang.Override public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence build() { tendermint.types.EvidenceOuterClass.LightClientAttackEvidence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.EvidenceOuterClass.LightClientAttackEvidence buildPartial() { tendermint.types.EvidenceOuterClass.LightClientAttackEvidence result = new tendermint.types.EvidenceOuterClass.LightClientAttackEvidence(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (conflictingBlockBuilder_ == null) { result.conflictingBlock_ = conflictingBlock_; } else { result.conflictingBlock_ = conflictingBlockBuilder_.build(); } result.commonHeight_ = commonHeight_; if (byzantineValidatorsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_); bitField0_ = (bitField0_ & ~0x00000004); } result.byzantineValidators_ = byzantineValidators_; } else { result.byzantineValidators_ = byzantineValidatorsBuilder_.build(); } result.totalVotingPower_ = totalVotingPower_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) { return mergeFrom((tendermint.types.EvidenceOuterClass.LightClientAttackEvidence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.EvidenceOuterClass.LightClientAttackEvidence other) { if (other == tendermint.types.EvidenceOuterClass.LightClientAttackEvidence.getDefaultInstance()) return this; if (other.hasConflictingBlock()) { mergeConflictingBlock(other.getConflictingBlock()); } if (other.getCommonHeight() != 0L) { setCommonHeight(other.getCommonHeight()); } if (byzantineValidatorsBuilder_ == null) { if (!other.byzantineValidators_.isEmpty()) { if (byzantineValidators_.isEmpty()) { byzantineValidators_ = other.byzantineValidators_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureByzantineValidatorsIsMutable(); byzantineValidators_.addAll(other.byzantineValidators_); } onChanged(); } } else { if (!other.byzantineValidators_.isEmpty()) { if (byzantineValidatorsBuilder_.isEmpty()) { byzantineValidatorsBuilder_.dispose(); byzantineValidatorsBuilder_ = null; byzantineValidators_ = other.byzantineValidators_; bitField0_ = (bitField0_ & ~0x00000004); byzantineValidatorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getByzantineValidatorsFieldBuilder() : null; } else { byzantineValidatorsBuilder_.addAllMessages(other.byzantineValidators_); } } } if (other.getTotalVotingPower() != 0L) { setTotalVotingPower(other.getTotalVotingPower()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } 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 { tendermint.types.EvidenceOuterClass.LightClientAttackEvidence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.EvidenceOuterClass.LightClientAttackEvidence) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private tendermint.types.Types.LightBlock conflictingBlock_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.LightBlock, tendermint.types.Types.LightBlock.Builder, tendermint.types.Types.LightBlockOrBuilder> conflictingBlockBuilder_; /** * .tendermint.types.LightBlock conflicting_block = 1; */ public boolean hasConflictingBlock() { return conflictingBlockBuilder_ != null || conflictingBlock_ != null; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public tendermint.types.Types.LightBlock getConflictingBlock() { if (conflictingBlockBuilder_ == null) { return conflictingBlock_ == null ? tendermint.types.Types.LightBlock.getDefaultInstance() : conflictingBlock_; } else { return conflictingBlockBuilder_.getMessage(); } } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public Builder setConflictingBlock(tendermint.types.Types.LightBlock value) { if (conflictingBlockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conflictingBlock_ = value; onChanged(); } else { conflictingBlockBuilder_.setMessage(value); } return this; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public Builder setConflictingBlock( tendermint.types.Types.LightBlock.Builder builderForValue) { if (conflictingBlockBuilder_ == null) { conflictingBlock_ = builderForValue.build(); onChanged(); } else { conflictingBlockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public Builder mergeConflictingBlock(tendermint.types.Types.LightBlock value) { if (conflictingBlockBuilder_ == null) { if (conflictingBlock_ != null) { conflictingBlock_ = tendermint.types.Types.LightBlock.newBuilder(conflictingBlock_).mergeFrom(value).buildPartial(); } else { conflictingBlock_ = value; } onChanged(); } else { conflictingBlockBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public Builder clearConflictingBlock() { if (conflictingBlockBuilder_ == null) { conflictingBlock_ = null; onChanged(); } else { conflictingBlock_ = null; conflictingBlockBuilder_ = null; } return this; } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public tendermint.types.Types.LightBlock.Builder getConflictingBlockBuilder() { onChanged(); return getConflictingBlockFieldBuilder().getBuilder(); } /** * .tendermint.types.LightBlock conflicting_block = 1; */ public tendermint.types.Types.LightBlockOrBuilder getConflictingBlockOrBuilder() { if (conflictingBlockBuilder_ != null) { return conflictingBlockBuilder_.getMessageOrBuilder(); } else { return conflictingBlock_ == null ? tendermint.types.Types.LightBlock.getDefaultInstance() : conflictingBlock_; } } /** * .tendermint.types.LightBlock conflicting_block = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.LightBlock, tendermint.types.Types.LightBlock.Builder, tendermint.types.Types.LightBlockOrBuilder> getConflictingBlockFieldBuilder() { if (conflictingBlockBuilder_ == null) { conflictingBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.LightBlock, tendermint.types.Types.LightBlock.Builder, tendermint.types.Types.LightBlockOrBuilder>( getConflictingBlock(), getParentForChildren(), isClean()); conflictingBlock_ = null; } return conflictingBlockBuilder_; } private long commonHeight_ ; /** * int64 common_height = 2; */ public long getCommonHeight() { return commonHeight_; } /** * int64 common_height = 2; */ public Builder setCommonHeight(long value) { commonHeight_ = value; onChanged(); return this; } /** * int64 common_height = 2; */ public Builder clearCommonHeight() { commonHeight_ = 0L; onChanged(); return this; } private java.util.List byzantineValidators_ = java.util.Collections.emptyList(); private void ensureByzantineValidatorsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { byzantineValidators_ = new java.util.ArrayList(byzantineValidators_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.ValidatorOuterClass.Validator, tendermint.types.ValidatorOuterClass.Validator.Builder, tendermint.types.ValidatorOuterClass.ValidatorOrBuilder> byzantineValidatorsBuilder_; /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public java.util.List getByzantineValidatorsList() { if (byzantineValidatorsBuilder_ == null) { return java.util.Collections.unmodifiableList(byzantineValidators_); } else { return byzantineValidatorsBuilder_.getMessageList(); } } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public int getByzantineValidatorsCount() { if (byzantineValidatorsBuilder_ == null) { return byzantineValidators_.size(); } else { return byzantineValidatorsBuilder_.getCount(); } } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.Validator getByzantineValidators(int index) { if (byzantineValidatorsBuilder_ == null) { return byzantineValidators_.get(index); } else { return byzantineValidatorsBuilder_.getMessage(index); } } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder setByzantineValidators( int index, tendermint.types.ValidatorOuterClass.Validator value) { if (byzantineValidatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByzantineValidatorsIsMutable(); byzantineValidators_.set(index, value); onChanged(); } else { byzantineValidatorsBuilder_.setMessage(index, value); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder setByzantineValidators( int index, tendermint.types.ValidatorOuterClass.Validator.Builder builderForValue) { if (byzantineValidatorsBuilder_ == null) { ensureByzantineValidatorsIsMutable(); byzantineValidators_.set(index, builderForValue.build()); onChanged(); } else { byzantineValidatorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder addByzantineValidators(tendermint.types.ValidatorOuterClass.Validator value) { if (byzantineValidatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByzantineValidatorsIsMutable(); byzantineValidators_.add(value); onChanged(); } else { byzantineValidatorsBuilder_.addMessage(value); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder addByzantineValidators( int index, tendermint.types.ValidatorOuterClass.Validator value) { if (byzantineValidatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureByzantineValidatorsIsMutable(); byzantineValidators_.add(index, value); onChanged(); } else { byzantineValidatorsBuilder_.addMessage(index, value); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder addByzantineValidators( tendermint.types.ValidatorOuterClass.Validator.Builder builderForValue) { if (byzantineValidatorsBuilder_ == null) { ensureByzantineValidatorsIsMutable(); byzantineValidators_.add(builderForValue.build()); onChanged(); } else { byzantineValidatorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder addByzantineValidators( int index, tendermint.types.ValidatorOuterClass.Validator.Builder builderForValue) { if (byzantineValidatorsBuilder_ == null) { ensureByzantineValidatorsIsMutable(); byzantineValidators_.add(index, builderForValue.build()); onChanged(); } else { byzantineValidatorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder addAllByzantineValidators( java.lang.Iterable values) { if (byzantineValidatorsBuilder_ == null) { ensureByzantineValidatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, byzantineValidators_); onChanged(); } else { byzantineValidatorsBuilder_.addAllMessages(values); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder clearByzantineValidators() { if (byzantineValidatorsBuilder_ == null) { byzantineValidators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { byzantineValidatorsBuilder_.clear(); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public Builder removeByzantineValidators(int index) { if (byzantineValidatorsBuilder_ == null) { ensureByzantineValidatorsIsMutable(); byzantineValidators_.remove(index); onChanged(); } else { byzantineValidatorsBuilder_.remove(index); } return this; } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.Validator.Builder getByzantineValidatorsBuilder( int index) { return getByzantineValidatorsFieldBuilder().getBuilder(index); } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.ValidatorOrBuilder getByzantineValidatorsOrBuilder( int index) { if (byzantineValidatorsBuilder_ == null) { return byzantineValidators_.get(index); } else { return byzantineValidatorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public java.util.List getByzantineValidatorsOrBuilderList() { if (byzantineValidatorsBuilder_ != null) { return byzantineValidatorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(byzantineValidators_); } } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.Validator.Builder addByzantineValidatorsBuilder() { return getByzantineValidatorsFieldBuilder().addBuilder( tendermint.types.ValidatorOuterClass.Validator.getDefaultInstance()); } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public tendermint.types.ValidatorOuterClass.Validator.Builder addByzantineValidatorsBuilder( int index) { return getByzantineValidatorsFieldBuilder().addBuilder( index, tendermint.types.ValidatorOuterClass.Validator.getDefaultInstance()); } /** * repeated .tendermint.types.Validator byzantine_validators = 3; */ public java.util.List getByzantineValidatorsBuilderList() { return getByzantineValidatorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.ValidatorOuterClass.Validator, tendermint.types.ValidatorOuterClass.Validator.Builder, tendermint.types.ValidatorOuterClass.ValidatorOrBuilder> getByzantineValidatorsFieldBuilder() { if (byzantineValidatorsBuilder_ == null) { byzantineValidatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.ValidatorOuterClass.Validator, tendermint.types.ValidatorOuterClass.Validator.Builder, tendermint.types.ValidatorOuterClass.ValidatorOrBuilder>( byzantineValidators_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); byzantineValidators_ = null; } return byzantineValidatorsBuilder_; } private long totalVotingPower_ ; /** * int64 total_voting_power = 4; */ public long getTotalVotingPower() { return totalVotingPower_; } /** * int64 total_voting_power = 4; */ public Builder setTotalVotingPower(long value) { totalVotingPower_ = value; onChanged(); return this; } /** * int64 total_voting_power = 4; */ public Builder clearTotalVotingPower() { totalVotingPower_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tendermint.types.LightClientAttackEvidence) } // @@protoc_insertion_point(class_scope:tendermint.types.LightClientAttackEvidence) private static final tendermint.types.EvidenceOuterClass.LightClientAttackEvidence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.EvidenceOuterClass.LightClientAttackEvidence(); } public static tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LightClientAttackEvidence parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LightClientAttackEvidence(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 tendermint.types.EvidenceOuterClass.LightClientAttackEvidence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvidenceListOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.EvidenceList) com.google.protobuf.MessageOrBuilder { /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ java.util.List getEvidenceList(); /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ tendermint.types.EvidenceOuterClass.Evidence getEvidence(int index); /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ int getEvidenceCount(); /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ java.util.List getEvidenceOrBuilderList(); /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ tendermint.types.EvidenceOuterClass.EvidenceOrBuilder getEvidenceOrBuilder( int index); } /** * Protobuf type {@code tendermint.types.EvidenceList} */ public static final class EvidenceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.EvidenceList) EvidenceListOrBuilder { private static final long serialVersionUID = 0L; // Use EvidenceList.newBuilder() to construct. private EvidenceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvidenceList() { evidence_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EvidenceList( 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) == 0x00000001)) { evidence_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } evidence_.add( input.readMessage(tendermint.types.EvidenceOuterClass.Evidence.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( 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) == 0x00000001)) { evidence_ = java.util.Collections.unmodifiableList(evidence_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.EvidenceList.class, tendermint.types.EvidenceOuterClass.EvidenceList.Builder.class); } public static final int EVIDENCE_FIELD_NUMBER = 1; private java.util.List evidence_; /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getEvidenceList() { return evidence_; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getEvidenceOrBuilderList() { return evidence_; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public int getEvidenceCount() { return evidence_.size(); } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.Evidence getEvidence(int index) { return evidence_.get(index); } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.EvidenceOrBuilder getEvidenceOrBuilder( int index) { return evidence_.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 < evidence_.size(); i++) { output.writeMessage(1, evidence_.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 < evidence_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, evidence_.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 tendermint.types.EvidenceOuterClass.EvidenceList)) { return super.equals(obj); } tendermint.types.EvidenceOuterClass.EvidenceList other = (tendermint.types.EvidenceOuterClass.EvidenceList) obj; boolean result = true; result = result && getEvidenceList() .equals(other.getEvidenceList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEvidenceCount() > 0) { hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; hash = (53 * hash) + getEvidenceList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.EvidenceOuterClass.EvidenceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.EvidenceList 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 tendermint.types.EvidenceOuterClass.EvidenceList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.EvidenceList 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 tendermint.types.EvidenceOuterClass.EvidenceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.EvidenceOuterClass.EvidenceList 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(tendermint.types.EvidenceOuterClass.EvidenceList 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.types.EvidenceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.EvidenceList) tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.EvidenceOuterClass.EvidenceList.class, tendermint.types.EvidenceOuterClass.EvidenceList.Builder.class); } // Construct using tendermint.types.EvidenceOuterClass.EvidenceList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEvidenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (evidenceBuilder_ == null) { evidence_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { evidenceBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.EvidenceOuterClass.internal_static_tendermint_types_EvidenceList_descriptor; } @java.lang.Override public tendermint.types.EvidenceOuterClass.EvidenceList getDefaultInstanceForType() { return tendermint.types.EvidenceOuterClass.EvidenceList.getDefaultInstance(); } @java.lang.Override public tendermint.types.EvidenceOuterClass.EvidenceList build() { tendermint.types.EvidenceOuterClass.EvidenceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.EvidenceOuterClass.EvidenceList buildPartial() { tendermint.types.EvidenceOuterClass.EvidenceList result = new tendermint.types.EvidenceOuterClass.EvidenceList(this); int from_bitField0_ = bitField0_; if (evidenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { evidence_ = java.util.Collections.unmodifiableList(evidence_); bitField0_ = (bitField0_ & ~0x00000001); } result.evidence_ = evidence_; } else { result.evidence_ = evidenceBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tendermint.types.EvidenceOuterClass.EvidenceList) { return mergeFrom((tendermint.types.EvidenceOuterClass.EvidenceList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.EvidenceOuterClass.EvidenceList other) { if (other == tendermint.types.EvidenceOuterClass.EvidenceList.getDefaultInstance()) return this; if (evidenceBuilder_ == null) { if (!other.evidence_.isEmpty()) { if (evidence_.isEmpty()) { evidence_ = other.evidence_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEvidenceIsMutable(); evidence_.addAll(other.evidence_); } onChanged(); } } else { if (!other.evidence_.isEmpty()) { if (evidenceBuilder_.isEmpty()) { evidenceBuilder_.dispose(); evidenceBuilder_ = null; evidence_ = other.evidence_; bitField0_ = (bitField0_ & ~0x00000001); evidenceBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEvidenceFieldBuilder() : null; } else { evidenceBuilder_.addAllMessages(other.evidence_); } } } 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 { tendermint.types.EvidenceOuterClass.EvidenceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.EvidenceOuterClass.EvidenceList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List evidence_ = java.util.Collections.emptyList(); private void ensureEvidenceIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { evidence_ = new java.util.ArrayList(evidence_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.EvidenceOuterClass.Evidence, tendermint.types.EvidenceOuterClass.Evidence.Builder, tendermint.types.EvidenceOuterClass.EvidenceOrBuilder> evidenceBuilder_; /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getEvidenceList() { if (evidenceBuilder_ == null) { return java.util.Collections.unmodifiableList(evidence_); } else { return evidenceBuilder_.getMessageList(); } } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public int getEvidenceCount() { if (evidenceBuilder_ == null) { return evidence_.size(); } else { return evidenceBuilder_.getCount(); } } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.Evidence getEvidence(int index) { if (evidenceBuilder_ == null) { return evidence_.get(index); } else { return evidenceBuilder_.getMessage(index); } } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder setEvidence( int index, tendermint.types.EvidenceOuterClass.Evidence value) { if (evidenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEvidenceIsMutable(); evidence_.set(index, value); onChanged(); } else { evidenceBuilder_.setMessage(index, value); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder setEvidence( int index, tendermint.types.EvidenceOuterClass.Evidence.Builder builderForValue) { if (evidenceBuilder_ == null) { ensureEvidenceIsMutable(); evidence_.set(index, builderForValue.build()); onChanged(); } else { evidenceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder addEvidence(tendermint.types.EvidenceOuterClass.Evidence value) { if (evidenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEvidenceIsMutable(); evidence_.add(value); onChanged(); } else { evidenceBuilder_.addMessage(value); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder addEvidence( int index, tendermint.types.EvidenceOuterClass.Evidence value) { if (evidenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEvidenceIsMutable(); evidence_.add(index, value); onChanged(); } else { evidenceBuilder_.addMessage(index, value); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder addEvidence( tendermint.types.EvidenceOuterClass.Evidence.Builder builderForValue) { if (evidenceBuilder_ == null) { ensureEvidenceIsMutable(); evidence_.add(builderForValue.build()); onChanged(); } else { evidenceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder addEvidence( int index, tendermint.types.EvidenceOuterClass.Evidence.Builder builderForValue) { if (evidenceBuilder_ == null) { ensureEvidenceIsMutable(); evidence_.add(index, builderForValue.build()); onChanged(); } else { evidenceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllEvidence( java.lang.Iterable values) { if (evidenceBuilder_ == null) { ensureEvidenceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, evidence_); onChanged(); } else { evidenceBuilder_.addAllMessages(values); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder clearEvidence() { if (evidenceBuilder_ == null) { evidence_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { evidenceBuilder_.clear(); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public Builder removeEvidence(int index) { if (evidenceBuilder_ == null) { ensureEvidenceIsMutable(); evidence_.remove(index); onChanged(); } else { evidenceBuilder_.remove(index); } return this; } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.Evidence.Builder getEvidenceBuilder( int index) { return getEvidenceFieldBuilder().getBuilder(index); } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.EvidenceOrBuilder getEvidenceOrBuilder( int index) { if (evidenceBuilder_ == null) { return evidence_.get(index); } else { return evidenceBuilder_.getMessageOrBuilder(index); } } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getEvidenceOrBuilderList() { if (evidenceBuilder_ != null) { return evidenceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(evidence_); } } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.Evidence.Builder addEvidenceBuilder() { return getEvidenceFieldBuilder().addBuilder( tendermint.types.EvidenceOuterClass.Evidence.getDefaultInstance()); } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.EvidenceOuterClass.Evidence.Builder addEvidenceBuilder( int index) { return getEvidenceFieldBuilder().addBuilder( index, tendermint.types.EvidenceOuterClass.Evidence.getDefaultInstance()); } /** * repeated .tendermint.types.Evidence evidence = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getEvidenceBuilderList() { return getEvidenceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.EvidenceOuterClass.Evidence, tendermint.types.EvidenceOuterClass.Evidence.Builder, tendermint.types.EvidenceOuterClass.EvidenceOrBuilder> getEvidenceFieldBuilder() { if (evidenceBuilder_ == null) { evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.EvidenceOuterClass.Evidence, tendermint.types.EvidenceOuterClass.Evidence.Builder, tendermint.types.EvidenceOuterClass.EvidenceOrBuilder>( evidence_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); evidence_ = null; } return evidenceBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tendermint.types.EvidenceList) } // @@protoc_insertion_point(class_scope:tendermint.types.EvidenceList) private static final tendermint.types.EvidenceOuterClass.EvidenceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.EvidenceOuterClass.EvidenceList(); } public static tendermint.types.EvidenceOuterClass.EvidenceList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvidenceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EvidenceList(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 tendermint.types.EvidenceOuterClass.EvidenceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Evidence_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Evidence_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_DuplicateVoteEvidence_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_LightClientAttackEvidence_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_EvidenceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_EvidenceList_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\037tendermint/types/evidence.proto\022\020tende" + "rmint.types\032\024gogoproto/gogo.proto\032\037googl" + "e/protobuf/timestamp.proto\032\034tendermint/t" + "ypes/types.proto\032 tendermint/types/valid" + "ator.proto\"\262\001\n\010Evidence\022J\n\027duplicate_vot" + "e_evidence\030\001 \001(\0132\'.tendermint.types.Dupl" + "icateVoteEvidenceH\000\022S\n\034light_client_atta" + "ck_evidence\030\002 \001(\0132+.tendermint.types.Lig" + "htClientAttackEvidenceH\000B\005\n\003sum\"\325\001\n\025Dupl" + "icateVoteEvidence\022&\n\006vote_a\030\001 \001(\0132\026.tend" + "ermint.types.Vote\022&\n\006vote_b\030\002 \001(\0132\026.tend" + "ermint.types.Vote\022\032\n\022total_voting_power\030" + "\003 \001(\003\022\027\n\017validator_power\030\004 \001(\003\0227\n\ttimest" + "amp\030\005 \001(\0132\032.google.protobuf.TimestampB\010\310" + "\336\037\000\220\337\037\001\"\373\001\n\031LightClientAttackEvidence\0227\n" + "\021conflicting_block\030\001 \001(\0132\034.tendermint.ty" + "pes.LightBlock\022\025\n\rcommon_height\030\002 \001(\003\0229\n" + "\024byzantine_validators\030\003 \003(\0132\033.tendermint" + ".types.Validator\022\032\n\022total_voting_power\030\004" + " \001(\003\0227\n\ttimestamp\030\005 \001(\0132\032.google.protobu" + "f.TimestampB\010\310\336\037\000\220\337\037\001\"B\n\014EvidenceList\0222\n" + "\010evidence\030\001 \003(\0132\032.tendermint.types.Evide" + "nceB\004\310\336\037\000B9Z7github.com/tendermint/tende" + "rmint/proto/tendermint/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), tendermint.types.Types.getDescriptor(), tendermint.types.ValidatorOuterClass.getDescriptor(), }, assigner); internal_static_tendermint_types_Evidence_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tendermint_types_Evidence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Evidence_descriptor, new java.lang.String[] { "DuplicateVoteEvidence", "LightClientAttackEvidence", "Sum", }); internal_static_tendermint_types_DuplicateVoteEvidence_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tendermint_types_DuplicateVoteEvidence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_DuplicateVoteEvidence_descriptor, new java.lang.String[] { "VoteA", "VoteB", "TotalVotingPower", "ValidatorPower", "Timestamp", }); internal_static_tendermint_types_LightClientAttackEvidence_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tendermint_types_LightClientAttackEvidence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_LightClientAttackEvidence_descriptor, new java.lang.String[] { "ConflictingBlock", "CommonHeight", "ByzantineValidators", "TotalVotingPower", "Timestamp", }); internal_static_tendermint_types_EvidenceList_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tendermint_types_EvidenceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_EvidenceList_descriptor, new java.lang.String[] { "Evidence", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.stdtime); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); tendermint.types.Types.getDescriptor(); tendermint.types.ValidatorOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy