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

tendermint.types.Params Maven / Gradle / Ivy

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

package tendermint.types;

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

    /**
     * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false];
     */
    boolean hasBlock();
    /**
     * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.BlockParams getBlock();
    /**
     * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.BlockParamsOrBuilder getBlockOrBuilder();

    /**
     * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false];
     */
    boolean hasEvidence();
    /**
     * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.EvidenceParams getEvidence();
    /**
     * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.EvidenceParamsOrBuilder getEvidenceOrBuilder();

    /**
     * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false];
     */
    boolean hasValidator();
    /**
     * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.ValidatorParams getValidator();
    /**
     * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.ValidatorParamsOrBuilder getValidatorOrBuilder();

    /**
     * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false];
     */
    boolean hasVersion();
    /**
     * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.VersionParams getVersion();
    /**
     * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false];
     */
    tendermint.types.Params.VersionParamsOrBuilder getVersionOrBuilder();
  }
  /**
   * 
   * ConsensusParams contains consensus critical parameters that determine the
   * validity of blocks.
   * 
* * Protobuf type {@code tendermint.types.ConsensusParams} */ public static final class ConsensusParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.ConsensusParams) ConsensusParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusParams.newBuilder() to construct. private ConsensusParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusParams() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsensusParams( 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.Params.BlockParams.Builder subBuilder = null; if (block_ != null) { subBuilder = block_.toBuilder(); } block_ = input.readMessage(tendermint.types.Params.BlockParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(block_); block_ = subBuilder.buildPartial(); } break; } case 18: { tendermint.types.Params.EvidenceParams.Builder subBuilder = null; if (evidence_ != null) { subBuilder = evidence_.toBuilder(); } evidence_ = input.readMessage(tendermint.types.Params.EvidenceParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(evidence_); evidence_ = subBuilder.buildPartial(); } break; } case 26: { tendermint.types.Params.ValidatorParams.Builder subBuilder = null; if (validator_ != null) { subBuilder = validator_.toBuilder(); } validator_ = input.readMessage(tendermint.types.Params.ValidatorParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validator_); validator_ = subBuilder.buildPartial(); } break; } case 34: { tendermint.types.Params.VersionParams.Builder subBuilder = null; if (version_ != null) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(tendermint.types.Params.VersionParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = 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.Params.internal_static_tendermint_types_ConsensusParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.ConsensusParams.class, tendermint.types.Params.ConsensusParams.Builder.class); } public static final int BLOCK_FIELD_NUMBER = 1; private tendermint.types.Params.BlockParams block_; /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public boolean hasBlock() { return block_ != null; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.BlockParams getBlock() { return block_ == null ? tendermint.types.Params.BlockParams.getDefaultInstance() : block_; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.BlockParamsOrBuilder getBlockOrBuilder() { return getBlock(); } public static final int EVIDENCE_FIELD_NUMBER = 2; private tendermint.types.Params.EvidenceParams evidence_; /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public boolean hasEvidence() { return evidence_ != null; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.EvidenceParams getEvidence() { return evidence_ == null ? tendermint.types.Params.EvidenceParams.getDefaultInstance() : evidence_; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.EvidenceParamsOrBuilder getEvidenceOrBuilder() { return getEvidence(); } public static final int VALIDATOR_FIELD_NUMBER = 3; private tendermint.types.Params.ValidatorParams validator_; /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validator_ != null; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.ValidatorParams getValidator() { return validator_ == null ? tendermint.types.Params.ValidatorParams.getDefaultInstance() : validator_; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.ValidatorParamsOrBuilder getValidatorOrBuilder() { return getValidator(); } public static final int VERSION_FIELD_NUMBER = 4; private tendermint.types.Params.VersionParams version_; /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public boolean hasVersion() { return version_ != null; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.VersionParams getVersion() { return version_ == null ? tendermint.types.Params.VersionParams.getDefaultInstance() : version_; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.VersionParamsOrBuilder getVersionOrBuilder() { return getVersion(); } 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 (block_ != null) { output.writeMessage(1, getBlock()); } if (evidence_ != null) { output.writeMessage(2, getEvidence()); } if (validator_ != null) { output.writeMessage(3, getValidator()); } if (version_ != null) { output.writeMessage(4, getVersion()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (block_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBlock()); } if (evidence_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEvidence()); } if (validator_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValidator()); } if (version_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getVersion()); } 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.Params.ConsensusParams)) { return super.equals(obj); } tendermint.types.Params.ConsensusParams other = (tendermint.types.Params.ConsensusParams) obj; boolean result = true; result = result && (hasBlock() == other.hasBlock()); if (hasBlock()) { result = result && getBlock() .equals(other.getBlock()); } result = result && (hasEvidence() == other.hasEvidence()); if (hasEvidence()) { result = result && getEvidence() .equals(other.getEvidence()); } result = result && (hasValidator() == other.hasValidator()); if (hasValidator()) { result = result && getValidator() .equals(other.getValidator()); } result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion() .equals(other.getVersion()); } 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 (hasBlock()) { hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); } if (hasEvidence()) { hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; hash = (53 * hash) + getEvidence().hashCode(); } if (hasValidator()) { hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; hash = (53 * hash) + getValidator().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.ConsensusParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ConsensusParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.ConsensusParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ConsensusParams 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.Params.ConsensusParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ConsensusParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.ConsensusParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.ConsensusParams 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.Params.ConsensusParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.ConsensusParams 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.Params.ConsensusParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.ConsensusParams 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.Params.ConsensusParams 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; } /** *
     * ConsensusParams contains consensus critical parameters that determine the
     * validity of blocks.
     * 
* * Protobuf type {@code tendermint.types.ConsensusParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.ConsensusParams) tendermint.types.Params.ConsensusParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.ConsensusParams.class, tendermint.types.Params.ConsensusParams.Builder.class); } // Construct using tendermint.types.Params.ConsensusParams.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 (blockBuilder_ == null) { block_ = null; } else { block_ = null; blockBuilder_ = null; } if (evidenceBuilder_ == null) { evidence_ = null; } else { evidence_ = null; evidenceBuilder_ = null; } if (validatorBuilder_ == null) { validator_ = null; } else { validator_ = null; validatorBuilder_ = null; } if (versionBuilder_ == null) { version_ = null; } else { version_ = null; versionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_ConsensusParams_descriptor; } @java.lang.Override public tendermint.types.Params.ConsensusParams getDefaultInstanceForType() { return tendermint.types.Params.ConsensusParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.ConsensusParams build() { tendermint.types.Params.ConsensusParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.ConsensusParams buildPartial() { tendermint.types.Params.ConsensusParams result = new tendermint.types.Params.ConsensusParams(this); if (blockBuilder_ == null) { result.block_ = block_; } else { result.block_ = blockBuilder_.build(); } if (evidenceBuilder_ == null) { result.evidence_ = evidence_; } else { result.evidence_ = evidenceBuilder_.build(); } if (validatorBuilder_ == null) { result.validator_ = validator_; } else { result.validator_ = validatorBuilder_.build(); } if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.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.Params.ConsensusParams) { return mergeFrom((tendermint.types.Params.ConsensusParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.ConsensusParams other) { if (other == tendermint.types.Params.ConsensusParams.getDefaultInstance()) return this; if (other.hasBlock()) { mergeBlock(other.getBlock()); } if (other.hasEvidence()) { mergeEvidence(other.getEvidence()); } if (other.hasValidator()) { mergeValidator(other.getValidator()); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } 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.Params.ConsensusParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.ConsensusParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.types.Params.BlockParams block_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.BlockParams, tendermint.types.Params.BlockParams.Builder, tendermint.types.Params.BlockParamsOrBuilder> blockBuilder_; /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public boolean hasBlock() { return blockBuilder_ != null || block_ != null; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.BlockParams getBlock() { if (blockBuilder_ == null) { return block_ == null ? tendermint.types.Params.BlockParams.getDefaultInstance() : block_; } else { return blockBuilder_.getMessage(); } } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public Builder setBlock(tendermint.types.Params.BlockParams value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } block_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } return this; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public Builder setBlock( tendermint.types.Params.BlockParams.Builder builderForValue) { if (blockBuilder_ == null) { block_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeBlock(tendermint.types.Params.BlockParams value) { if (blockBuilder_ == null) { if (block_ != null) { block_ = tendermint.types.Params.BlockParams.newBuilder(block_).mergeFrom(value).buildPartial(); } else { block_ = value; } onChanged(); } else { blockBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public Builder clearBlock() { if (blockBuilder_ == null) { block_ = null; onChanged(); } else { block_ = null; blockBuilder_ = null; } return this; } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.BlockParams.Builder getBlockBuilder() { onChanged(); return getBlockFieldBuilder().getBuilder(); } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.BlockParamsOrBuilder getBlockOrBuilder() { if (blockBuilder_ != null) { return blockBuilder_.getMessageOrBuilder(); } else { return block_ == null ? tendermint.types.Params.BlockParams.getDefaultInstance() : block_; } } /** * .tendermint.types.BlockParams block = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.BlockParams, tendermint.types.Params.BlockParams.Builder, tendermint.types.Params.BlockParamsOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.BlockParams, tendermint.types.Params.BlockParams.Builder, tendermint.types.Params.BlockParamsOrBuilder>( getBlock(), getParentForChildren(), isClean()); block_ = null; } return blockBuilder_; } private tendermint.types.Params.EvidenceParams evidence_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.EvidenceParams, tendermint.types.Params.EvidenceParams.Builder, tendermint.types.Params.EvidenceParamsOrBuilder> evidenceBuilder_; /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public boolean hasEvidence() { return evidenceBuilder_ != null || evidence_ != null; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.EvidenceParams getEvidence() { if (evidenceBuilder_ == null) { return evidence_ == null ? tendermint.types.Params.EvidenceParams.getDefaultInstance() : evidence_; } else { return evidenceBuilder_.getMessage(); } } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public Builder setEvidence(tendermint.types.Params.EvidenceParams value) { if (evidenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evidence_ = value; onChanged(); } else { evidenceBuilder_.setMessage(value); } return this; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public Builder setEvidence( tendermint.types.Params.EvidenceParams.Builder builderForValue) { if (evidenceBuilder_ == null) { evidence_ = builderForValue.build(); onChanged(); } else { evidenceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public Builder mergeEvidence(tendermint.types.Params.EvidenceParams value) { if (evidenceBuilder_ == null) { if (evidence_ != null) { evidence_ = tendermint.types.Params.EvidenceParams.newBuilder(evidence_).mergeFrom(value).buildPartial(); } else { evidence_ = value; } onChanged(); } else { evidenceBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public Builder clearEvidence() { if (evidenceBuilder_ == null) { evidence_ = null; onChanged(); } else { evidence_ = null; evidenceBuilder_ = null; } return this; } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.EvidenceParams.Builder getEvidenceBuilder() { onChanged(); return getEvidenceFieldBuilder().getBuilder(); } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.EvidenceParamsOrBuilder getEvidenceOrBuilder() { if (evidenceBuilder_ != null) { return evidenceBuilder_.getMessageOrBuilder(); } else { return evidence_ == null ? tendermint.types.Params.EvidenceParams.getDefaultInstance() : evidence_; } } /** * .tendermint.types.EvidenceParams evidence = 2 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.EvidenceParams, tendermint.types.Params.EvidenceParams.Builder, tendermint.types.Params.EvidenceParamsOrBuilder> getEvidenceFieldBuilder() { if (evidenceBuilder_ == null) { evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.EvidenceParams, tendermint.types.Params.EvidenceParams.Builder, tendermint.types.Params.EvidenceParamsOrBuilder>( getEvidence(), getParentForChildren(), isClean()); evidence_ = null; } return evidenceBuilder_; } private tendermint.types.Params.ValidatorParams validator_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.ValidatorParams, tendermint.types.Params.ValidatorParams.Builder, tendermint.types.Params.ValidatorParamsOrBuilder> validatorBuilder_; /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validatorBuilder_ != null || validator_ != null; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.ValidatorParams getValidator() { if (validatorBuilder_ == null) { return validator_ == null ? tendermint.types.Params.ValidatorParams.getDefaultInstance() : validator_; } else { return validatorBuilder_.getMessage(); } } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public Builder setValidator(tendermint.types.Params.ValidatorParams value) { if (validatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validator_ = value; onChanged(); } else { validatorBuilder_.setMessage(value); } return this; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public Builder setValidator( tendermint.types.Params.ValidatorParams.Builder builderForValue) { if (validatorBuilder_ == null) { validator_ = builderForValue.build(); onChanged(); } else { validatorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeValidator(tendermint.types.Params.ValidatorParams value) { if (validatorBuilder_ == null) { if (validator_ != null) { validator_ = tendermint.types.Params.ValidatorParams.newBuilder(validator_).mergeFrom(value).buildPartial(); } else { validator_ = value; } onChanged(); } else { validatorBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public Builder clearValidator() { if (validatorBuilder_ == null) { validator_ = null; onChanged(); } else { validator_ = null; validatorBuilder_ = null; } return this; } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.ValidatorParams.Builder getValidatorBuilder() { onChanged(); return getValidatorFieldBuilder().getBuilder(); } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.ValidatorParamsOrBuilder getValidatorOrBuilder() { if (validatorBuilder_ != null) { return validatorBuilder_.getMessageOrBuilder(); } else { return validator_ == null ? tendermint.types.Params.ValidatorParams.getDefaultInstance() : validator_; } } /** * .tendermint.types.ValidatorParams validator = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.ValidatorParams, tendermint.types.Params.ValidatorParams.Builder, tendermint.types.Params.ValidatorParamsOrBuilder> getValidatorFieldBuilder() { if (validatorBuilder_ == null) { validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.ValidatorParams, tendermint.types.Params.ValidatorParams.Builder, tendermint.types.Params.ValidatorParamsOrBuilder>( getValidator(), getParentForChildren(), isClean()); validator_ = null; } return validatorBuilder_; } private tendermint.types.Params.VersionParams version_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.VersionParams, tendermint.types.Params.VersionParams.Builder, tendermint.types.Params.VersionParamsOrBuilder> versionBuilder_; /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.VersionParams getVersion() { if (versionBuilder_ == null) { return version_ == null ? tendermint.types.Params.VersionParams.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public Builder setVersion(tendermint.types.Params.VersionParams value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } return this; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public Builder setVersion( tendermint.types.Params.VersionParams.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public Builder mergeVersion(tendermint.types.Params.VersionParams value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = tendermint.types.Params.VersionParams.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = null; onChanged(); } else { version_ = null; versionBuilder_ = null; } return this; } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.VersionParams.Builder getVersionBuilder() { onChanged(); return getVersionFieldBuilder().getBuilder(); } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Params.VersionParamsOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_ == null ? tendermint.types.Params.VersionParams.getDefaultInstance() : version_; } } /** * .tendermint.types.VersionParams version = 4 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.VersionParams, tendermint.types.Params.VersionParams.Builder, tendermint.types.Params.VersionParamsOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Params.VersionParams, tendermint.types.Params.VersionParams.Builder, tendermint.types.Params.VersionParamsOrBuilder>( getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } @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.ConsensusParams) } // @@protoc_insertion_point(class_scope:tendermint.types.ConsensusParams) private static final tendermint.types.Params.ConsensusParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.ConsensusParams(); } public static tendermint.types.Params.ConsensusParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusParams(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.Params.ConsensusParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.BlockParams) com.google.protobuf.MessageOrBuilder { /** *
     * Max block size, in bytes.
     * Note: must be greater than 0
     * 
* * int64 max_bytes = 1; */ long getMaxBytes(); /** *
     * Max gas per block.
     * Note: must be greater or equal to -1
     * 
* * int64 max_gas = 2; */ long getMaxGas(); /** *
     * Minimum time increment between consecutive blocks (in milliseconds) If the
     * block header timestamp is ahead of the system clock, decrease this value.
     * Not exposed to the application.
     * 
* * int64 time_iota_ms = 3; */ long getTimeIotaMs(); } /** *
   * BlockParams contains limits on the block size.
   * 
* * Protobuf type {@code tendermint.types.BlockParams} */ public static final class BlockParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.BlockParams) BlockParamsOrBuilder { private static final long serialVersionUID = 0L; // Use BlockParams.newBuilder() to construct. private BlockParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockParams() { maxBytes_ = 0L; maxGas_ = 0L; timeIotaMs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxBytes_ = input.readInt64(); break; } case 16: { maxGas_ = input.readInt64(); break; } case 24: { timeIotaMs_ = input.readInt64(); 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.Params.internal_static_tendermint_types_BlockParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_BlockParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.BlockParams.class, tendermint.types.Params.BlockParams.Builder.class); } public static final int MAX_BYTES_FIELD_NUMBER = 1; private long maxBytes_; /** *
     * Max block size, in bytes.
     * Note: must be greater than 0
     * 
* * int64 max_bytes = 1; */ public long getMaxBytes() { return maxBytes_; } public static final int MAX_GAS_FIELD_NUMBER = 2; private long maxGas_; /** *
     * Max gas per block.
     * Note: must be greater or equal to -1
     * 
* * int64 max_gas = 2; */ public long getMaxGas() { return maxGas_; } public static final int TIME_IOTA_MS_FIELD_NUMBER = 3; private long timeIotaMs_; /** *
     * Minimum time increment between consecutive blocks (in milliseconds) If the
     * block header timestamp is ahead of the system clock, decrease this value.
     * Not exposed to the application.
     * 
* * int64 time_iota_ms = 3; */ public long getTimeIotaMs() { return timeIotaMs_; } 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 (maxBytes_ != 0L) { output.writeInt64(1, maxBytes_); } if (maxGas_ != 0L) { output.writeInt64(2, maxGas_); } if (timeIotaMs_ != 0L) { output.writeInt64(3, timeIotaMs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxBytes_); } if (maxGas_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxGas_); } if (timeIotaMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, timeIotaMs_); } 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.Params.BlockParams)) { return super.equals(obj); } tendermint.types.Params.BlockParams other = (tendermint.types.Params.BlockParams) obj; boolean result = true; result = result && (getMaxBytes() == other.getMaxBytes()); result = result && (getMaxGas() == other.getMaxGas()); result = result && (getTimeIotaMs() == other.getTimeIotaMs()); 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(); hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxBytes()); hash = (37 * hash) + MAX_GAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxGas()); hash = (37 * hash) + TIME_IOTA_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeIotaMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.BlockParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.BlockParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.BlockParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.BlockParams 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.Params.BlockParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.BlockParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.BlockParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.BlockParams 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.Params.BlockParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.BlockParams 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.Params.BlockParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.BlockParams 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.Params.BlockParams 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; } /** *
     * BlockParams contains limits on the block size.
     * 
* * Protobuf type {@code tendermint.types.BlockParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.BlockParams) tendermint.types.Params.BlockParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_BlockParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_BlockParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.BlockParams.class, tendermint.types.Params.BlockParams.Builder.class); } // Construct using tendermint.types.Params.BlockParams.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(); maxBytes_ = 0L; maxGas_ = 0L; timeIotaMs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_BlockParams_descriptor; } @java.lang.Override public tendermint.types.Params.BlockParams getDefaultInstanceForType() { return tendermint.types.Params.BlockParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.BlockParams build() { tendermint.types.Params.BlockParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.BlockParams buildPartial() { tendermint.types.Params.BlockParams result = new tendermint.types.Params.BlockParams(this); result.maxBytes_ = maxBytes_; result.maxGas_ = maxGas_; result.timeIotaMs_ = timeIotaMs_; 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.Params.BlockParams) { return mergeFrom((tendermint.types.Params.BlockParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.BlockParams other) { if (other == tendermint.types.Params.BlockParams.getDefaultInstance()) return this; if (other.getMaxBytes() != 0L) { setMaxBytes(other.getMaxBytes()); } if (other.getMaxGas() != 0L) { setMaxGas(other.getMaxGas()); } if (other.getTimeIotaMs() != 0L) { setTimeIotaMs(other.getTimeIotaMs()); } 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.Params.BlockParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.BlockParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long maxBytes_ ; /** *
       * Max block size, in bytes.
       * Note: must be greater than 0
       * 
* * int64 max_bytes = 1; */ public long getMaxBytes() { return maxBytes_; } /** *
       * Max block size, in bytes.
       * Note: must be greater than 0
       * 
* * int64 max_bytes = 1; */ public Builder setMaxBytes(long value) { maxBytes_ = value; onChanged(); return this; } /** *
       * Max block size, in bytes.
       * Note: must be greater than 0
       * 
* * int64 max_bytes = 1; */ public Builder clearMaxBytes() { maxBytes_ = 0L; onChanged(); return this; } private long maxGas_ ; /** *
       * Max gas per block.
       * Note: must be greater or equal to -1
       * 
* * int64 max_gas = 2; */ public long getMaxGas() { return maxGas_; } /** *
       * Max gas per block.
       * Note: must be greater or equal to -1
       * 
* * int64 max_gas = 2; */ public Builder setMaxGas(long value) { maxGas_ = value; onChanged(); return this; } /** *
       * Max gas per block.
       * Note: must be greater or equal to -1
       * 
* * int64 max_gas = 2; */ public Builder clearMaxGas() { maxGas_ = 0L; onChanged(); return this; } private long timeIotaMs_ ; /** *
       * Minimum time increment between consecutive blocks (in milliseconds) If the
       * block header timestamp is ahead of the system clock, decrease this value.
       * Not exposed to the application.
       * 
* * int64 time_iota_ms = 3; */ public long getTimeIotaMs() { return timeIotaMs_; } /** *
       * Minimum time increment between consecutive blocks (in milliseconds) If the
       * block header timestamp is ahead of the system clock, decrease this value.
       * Not exposed to the application.
       * 
* * int64 time_iota_ms = 3; */ public Builder setTimeIotaMs(long value) { timeIotaMs_ = value; onChanged(); return this; } /** *
       * Minimum time increment between consecutive blocks (in milliseconds) If the
       * block header timestamp is ahead of the system clock, decrease this value.
       * Not exposed to the application.
       * 
* * int64 time_iota_ms = 3; */ public Builder clearTimeIotaMs() { timeIotaMs_ = 0L; onChanged(); return this; } @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.BlockParams) } // @@protoc_insertion_point(class_scope:tendermint.types.BlockParams) private static final tendermint.types.Params.BlockParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.BlockParams(); } public static tendermint.types.Params.BlockParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockParams(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.Params.BlockParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvidenceParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.EvidenceParams) com.google.protobuf.MessageOrBuilder { /** *
     * Max age of evidence, in blocks.
     * The basic formula for calculating this is: MaxAgeDuration / {average block
     * time}.
     * 
* * int64 max_age_num_blocks = 1; */ long getMaxAgeNumBlocks(); /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ boolean hasMaxAgeDuration(); /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ com.google.protobuf.Duration getMaxAgeDuration(); /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder(); /** *
     * This sets the maximum size of total evidence in bytes that can be committed in a single block.
     * and should fall comfortably under the max block bytes.
     * Default is 1048576 or 1MB
     * 
* * int64 max_bytes = 3; */ long getMaxBytes(); } /** *
   * EvidenceParams determine how we handle evidence of malfeasance.
   * 
* * Protobuf type {@code tendermint.types.EvidenceParams} */ public static final class EvidenceParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.EvidenceParams) EvidenceParamsOrBuilder { private static final long serialVersionUID = 0L; // Use EvidenceParams.newBuilder() to construct. private EvidenceParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvidenceParams() { maxAgeNumBlocks_ = 0L; maxBytes_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EvidenceParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxAgeNumBlocks_ = input.readInt64(); break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxAgeDuration_ != null) { subBuilder = maxAgeDuration_.toBuilder(); } maxAgeDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxAgeDuration_); maxAgeDuration_ = subBuilder.buildPartial(); } break; } case 24: { maxBytes_ = input.readInt64(); 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.Params.internal_static_tendermint_types_EvidenceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.EvidenceParams.class, tendermint.types.Params.EvidenceParams.Builder.class); } public static final int MAX_AGE_NUM_BLOCKS_FIELD_NUMBER = 1; private long maxAgeNumBlocks_; /** *
     * Max age of evidence, in blocks.
     * The basic formula for calculating this is: MaxAgeDuration / {average block
     * time}.
     * 
* * int64 max_age_num_blocks = 1; */ public long getMaxAgeNumBlocks() { return maxAgeNumBlocks_; } public static final int MAX_AGE_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxAgeDuration_; /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public boolean hasMaxAgeDuration() { return maxAgeDuration_ != null; } /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getMaxAgeDuration() { return maxAgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; } /** *
     * Max age of evidence, in time.
     * It should correspond with an app's "unbonding period" or other similar
     * mechanism for handling [Nothing-At-Stake
     * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
     * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder() { return getMaxAgeDuration(); } public static final int MAX_BYTES_FIELD_NUMBER = 3; private long maxBytes_; /** *
     * This sets the maximum size of total evidence in bytes that can be committed in a single block.
     * and should fall comfortably under the max block bytes.
     * Default is 1048576 or 1MB
     * 
* * int64 max_bytes = 3; */ public long getMaxBytes() { return maxBytes_; } 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 (maxAgeNumBlocks_ != 0L) { output.writeInt64(1, maxAgeNumBlocks_); } if (maxAgeDuration_ != null) { output.writeMessage(2, getMaxAgeDuration()); } if (maxBytes_ != 0L) { output.writeInt64(3, maxBytes_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxAgeNumBlocks_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxAgeNumBlocks_); } if (maxAgeDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxAgeDuration()); } if (maxBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, maxBytes_); } 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.Params.EvidenceParams)) { return super.equals(obj); } tendermint.types.Params.EvidenceParams other = (tendermint.types.Params.EvidenceParams) obj; boolean result = true; result = result && (getMaxAgeNumBlocks() == other.getMaxAgeNumBlocks()); result = result && (hasMaxAgeDuration() == other.hasMaxAgeDuration()); if (hasMaxAgeDuration()) { result = result && getMaxAgeDuration() .equals(other.getMaxAgeDuration()); } result = result && (getMaxBytes() == other.getMaxBytes()); 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(); hash = (37 * hash) + MAX_AGE_NUM_BLOCKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxAgeNumBlocks()); if (hasMaxAgeDuration()) { hash = (37 * hash) + MAX_AGE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxAgeDuration().hashCode(); } hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.EvidenceParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.EvidenceParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.EvidenceParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.EvidenceParams 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.Params.EvidenceParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.EvidenceParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.EvidenceParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.EvidenceParams 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.Params.EvidenceParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.EvidenceParams 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.Params.EvidenceParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.EvidenceParams 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.Params.EvidenceParams 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; } /** *
     * EvidenceParams determine how we handle evidence of malfeasance.
     * 
* * Protobuf type {@code tendermint.types.EvidenceParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.EvidenceParams) tendermint.types.Params.EvidenceParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.EvidenceParams.class, tendermint.types.Params.EvidenceParams.Builder.class); } // Construct using tendermint.types.Params.EvidenceParams.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(); maxAgeNumBlocks_ = 0L; if (maxAgeDurationBuilder_ == null) { maxAgeDuration_ = null; } else { maxAgeDuration_ = null; maxAgeDurationBuilder_ = null; } maxBytes_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_EvidenceParams_descriptor; } @java.lang.Override public tendermint.types.Params.EvidenceParams getDefaultInstanceForType() { return tendermint.types.Params.EvidenceParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.EvidenceParams build() { tendermint.types.Params.EvidenceParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.EvidenceParams buildPartial() { tendermint.types.Params.EvidenceParams result = new tendermint.types.Params.EvidenceParams(this); result.maxAgeNumBlocks_ = maxAgeNumBlocks_; if (maxAgeDurationBuilder_ == null) { result.maxAgeDuration_ = maxAgeDuration_; } else { result.maxAgeDuration_ = maxAgeDurationBuilder_.build(); } result.maxBytes_ = maxBytes_; 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.Params.EvidenceParams) { return mergeFrom((tendermint.types.Params.EvidenceParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.EvidenceParams other) { if (other == tendermint.types.Params.EvidenceParams.getDefaultInstance()) return this; if (other.getMaxAgeNumBlocks() != 0L) { setMaxAgeNumBlocks(other.getMaxAgeNumBlocks()); } if (other.hasMaxAgeDuration()) { mergeMaxAgeDuration(other.getMaxAgeDuration()); } if (other.getMaxBytes() != 0L) { setMaxBytes(other.getMaxBytes()); } 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.Params.EvidenceParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.EvidenceParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long maxAgeNumBlocks_ ; /** *
       * Max age of evidence, in blocks.
       * The basic formula for calculating this is: MaxAgeDuration / {average block
       * time}.
       * 
* * int64 max_age_num_blocks = 1; */ public long getMaxAgeNumBlocks() { return maxAgeNumBlocks_; } /** *
       * Max age of evidence, in blocks.
       * The basic formula for calculating this is: MaxAgeDuration / {average block
       * time}.
       * 
* * int64 max_age_num_blocks = 1; */ public Builder setMaxAgeNumBlocks(long value) { maxAgeNumBlocks_ = value; onChanged(); return this; } /** *
       * Max age of evidence, in blocks.
       * The basic formula for calculating this is: MaxAgeDuration / {average block
       * time}.
       * 
* * int64 max_age_num_blocks = 1; */ public Builder clearMaxAgeNumBlocks() { maxAgeNumBlocks_ = 0L; onChanged(); return this; } private com.google.protobuf.Duration maxAgeDuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxAgeDurationBuilder_; /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public boolean hasMaxAgeDuration() { return maxAgeDurationBuilder_ != null || maxAgeDuration_ != null; } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getMaxAgeDuration() { if (maxAgeDurationBuilder_ == null) { return maxAgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; } else { return maxAgeDurationBuilder_.getMessage(); } } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public Builder setMaxAgeDuration(com.google.protobuf.Duration value) { if (maxAgeDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxAgeDuration_ = value; onChanged(); } else { maxAgeDurationBuilder_.setMessage(value); } return this; } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public Builder setMaxAgeDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxAgeDurationBuilder_ == null) { maxAgeDuration_ = builderForValue.build(); onChanged(); } else { maxAgeDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public Builder mergeMaxAgeDuration(com.google.protobuf.Duration value) { if (maxAgeDurationBuilder_ == null) { if (maxAgeDuration_ != null) { maxAgeDuration_ = com.google.protobuf.Duration.newBuilder(maxAgeDuration_).mergeFrom(value).buildPartial(); } else { maxAgeDuration_ = value; } onChanged(); } else { maxAgeDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public Builder clearMaxAgeDuration() { if (maxAgeDurationBuilder_ == null) { maxAgeDuration_ = null; onChanged(); } else { maxAgeDuration_ = null; maxAgeDurationBuilder_ = null; } return this; } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getMaxAgeDurationBuilder() { onChanged(); return getMaxAgeDurationFieldBuilder().getBuilder(); } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getMaxAgeDurationOrBuilder() { if (maxAgeDurationBuilder_ != null) { return maxAgeDurationBuilder_.getMessageOrBuilder(); } else { return maxAgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAgeDuration_; } } /** *
       * Max age of evidence, in time.
       * It should correspond with an app's "unbonding period" or other similar
       * mechanism for handling [Nothing-At-Stake
       * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
       * 
* * .google.protobuf.Duration max_age_duration = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxAgeDurationFieldBuilder() { if (maxAgeDurationBuilder_ == null) { maxAgeDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxAgeDuration(), getParentForChildren(), isClean()); maxAgeDuration_ = null; } return maxAgeDurationBuilder_; } private long maxBytes_ ; /** *
       * This sets the maximum size of total evidence in bytes that can be committed in a single block.
       * and should fall comfortably under the max block bytes.
       * Default is 1048576 or 1MB
       * 
* * int64 max_bytes = 3; */ public long getMaxBytes() { return maxBytes_; } /** *
       * This sets the maximum size of total evidence in bytes that can be committed in a single block.
       * and should fall comfortably under the max block bytes.
       * Default is 1048576 or 1MB
       * 
* * int64 max_bytes = 3; */ public Builder setMaxBytes(long value) { maxBytes_ = value; onChanged(); return this; } /** *
       * This sets the maximum size of total evidence in bytes that can be committed in a single block.
       * and should fall comfortably under the max block bytes.
       * Default is 1048576 or 1MB
       * 
* * int64 max_bytes = 3; */ public Builder clearMaxBytes() { maxBytes_ = 0L; onChanged(); return this; } @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.EvidenceParams) } // @@protoc_insertion_point(class_scope:tendermint.types.EvidenceParams) private static final tendermint.types.Params.EvidenceParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.EvidenceParams(); } public static tendermint.types.Params.EvidenceParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvidenceParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EvidenceParams(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.Params.EvidenceParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatorParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.ValidatorParams) com.google.protobuf.MessageOrBuilder { /** * repeated string pub_key_types = 1; */ java.util.List getPubKeyTypesList(); /** * repeated string pub_key_types = 1; */ int getPubKeyTypesCount(); /** * repeated string pub_key_types = 1; */ java.lang.String getPubKeyTypes(int index); /** * repeated string pub_key_types = 1; */ com.google.protobuf.ByteString getPubKeyTypesBytes(int index); } /** *
   * ValidatorParams restrict the public key types validators can use.
   * NOTE: uses ABCI pubkey naming, not Amino names.
   * 
* * Protobuf type {@code tendermint.types.ValidatorParams} */ public static final class ValidatorParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.ValidatorParams) ValidatorParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ValidatorParams.newBuilder() to construct. private ValidatorParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatorParams() { pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValidatorParams( 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: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { pubKeyTypes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } pubKeyTypes_.add(s); 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)) { pubKeyTypes_ = pubKeyTypes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.ValidatorParams.class, tendermint.types.Params.ValidatorParams.Builder.class); } public static final int PUB_KEY_TYPES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList pubKeyTypes_; /** * repeated string pub_key_types = 1; */ public com.google.protobuf.ProtocolStringList getPubKeyTypesList() { return pubKeyTypes_; } /** * repeated string pub_key_types = 1; */ public int getPubKeyTypesCount() { return pubKeyTypes_.size(); } /** * repeated string pub_key_types = 1; */ public java.lang.String getPubKeyTypes(int index) { return pubKeyTypes_.get(index); } /** * repeated string pub_key_types = 1; */ public com.google.protobuf.ByteString getPubKeyTypesBytes(int index) { return pubKeyTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pubKeyTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubKeyTypes_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < pubKeyTypes_.size(); i++) { dataSize += computeStringSizeNoTag(pubKeyTypes_.getRaw(i)); } size += dataSize; size += 1 * getPubKeyTypesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tendermint.types.Params.ValidatorParams)) { return super.equals(obj); } tendermint.types.Params.ValidatorParams other = (tendermint.types.Params.ValidatorParams) obj; boolean result = true; result = result && getPubKeyTypesList() .equals(other.getPubKeyTypesList()); 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 (getPubKeyTypesCount() > 0) { hash = (37 * hash) + PUB_KEY_TYPES_FIELD_NUMBER; hash = (53 * hash) + getPubKeyTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.ValidatorParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ValidatorParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.ValidatorParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ValidatorParams 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.Params.ValidatorParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.ValidatorParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.ValidatorParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.ValidatorParams 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.Params.ValidatorParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.ValidatorParams 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.Params.ValidatorParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.ValidatorParams 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.Params.ValidatorParams 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; } /** *
     * ValidatorParams restrict the public key types validators can use.
     * NOTE: uses ABCI pubkey naming, not Amino names.
     * 
* * Protobuf type {@code tendermint.types.ValidatorParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.ValidatorParams) tendermint.types.Params.ValidatorParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.ValidatorParams.class, tendermint.types.Params.ValidatorParams.Builder.class); } // Construct using tendermint.types.Params.ValidatorParams.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(); pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_ValidatorParams_descriptor; } @java.lang.Override public tendermint.types.Params.ValidatorParams getDefaultInstanceForType() { return tendermint.types.Params.ValidatorParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.ValidatorParams build() { tendermint.types.Params.ValidatorParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.ValidatorParams buildPartial() { tendermint.types.Params.ValidatorParams result = new tendermint.types.Params.ValidatorParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { pubKeyTypes_ = pubKeyTypes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.pubKeyTypes_ = pubKeyTypes_; 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.Params.ValidatorParams) { return mergeFrom((tendermint.types.Params.ValidatorParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.ValidatorParams other) { if (other == tendermint.types.Params.ValidatorParams.getDefaultInstance()) return this; if (!other.pubKeyTypes_.isEmpty()) { if (pubKeyTypes_.isEmpty()) { pubKeyTypes_ = other.pubKeyTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePubKeyTypesIsMutable(); pubKeyTypes_.addAll(other.pubKeyTypes_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tendermint.types.Params.ValidatorParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.ValidatorParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePubKeyTypesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { pubKeyTypes_ = new com.google.protobuf.LazyStringArrayList(pubKeyTypes_); bitField0_ |= 0x00000001; } } /** * repeated string pub_key_types = 1; */ public com.google.protobuf.ProtocolStringList getPubKeyTypesList() { return pubKeyTypes_.getUnmodifiableView(); } /** * repeated string pub_key_types = 1; */ public int getPubKeyTypesCount() { return pubKeyTypes_.size(); } /** * repeated string pub_key_types = 1; */ public java.lang.String getPubKeyTypes(int index) { return pubKeyTypes_.get(index); } /** * repeated string pub_key_types = 1; */ public com.google.protobuf.ByteString getPubKeyTypesBytes(int index) { return pubKeyTypes_.getByteString(index); } /** * repeated string pub_key_types = 1; */ public Builder setPubKeyTypes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePubKeyTypesIsMutable(); pubKeyTypes_.set(index, value); onChanged(); return this; } /** * repeated string pub_key_types = 1; */ public Builder addPubKeyTypes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePubKeyTypesIsMutable(); pubKeyTypes_.add(value); onChanged(); return this; } /** * repeated string pub_key_types = 1; */ public Builder addAllPubKeyTypes( java.lang.Iterable values) { ensurePubKeyTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pubKeyTypes_); onChanged(); return this; } /** * repeated string pub_key_types = 1; */ public Builder clearPubKeyTypes() { pubKeyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string pub_key_types = 1; */ public Builder addPubKeyTypesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePubKeyTypesIsMutable(); pubKeyTypes_.add(value); onChanged(); return this; } @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.ValidatorParams) } // @@protoc_insertion_point(class_scope:tendermint.types.ValidatorParams) private static final tendermint.types.Params.ValidatorParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.ValidatorParams(); } public static tendermint.types.Params.ValidatorParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValidatorParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatorParams(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.Params.ValidatorParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VersionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.VersionParams) com.google.protobuf.MessageOrBuilder { /** * uint64 app_version = 1; */ long getAppVersion(); } /** *
   * VersionParams contains the ABCI application version.
   * 
* * Protobuf type {@code tendermint.types.VersionParams} */ public static final class VersionParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.VersionParams) VersionParamsOrBuilder { private static final long serialVersionUID = 0L; // Use VersionParams.newBuilder() to construct. private VersionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VersionParams() { appVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VersionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { appVersion_ = input.readUInt64(); 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.Params.internal_static_tendermint_types_VersionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_VersionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.VersionParams.class, tendermint.types.Params.VersionParams.Builder.class); } public static final int APP_VERSION_FIELD_NUMBER = 1; private long appVersion_; /** * uint64 app_version = 1; */ public long getAppVersion() { return appVersion_; } 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 (appVersion_ != 0L) { output.writeUInt64(1, appVersion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (appVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, appVersion_); } 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.Params.VersionParams)) { return super.equals(obj); } tendermint.types.Params.VersionParams other = (tendermint.types.Params.VersionParams) obj; boolean result = true; result = result && (getAppVersion() == other.getAppVersion()); 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(); hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAppVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.VersionParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.VersionParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.VersionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.VersionParams 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.Params.VersionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.VersionParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.VersionParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.VersionParams 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.Params.VersionParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.VersionParams 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.Params.VersionParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.VersionParams 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.Params.VersionParams 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; } /** *
     * VersionParams contains the ABCI application version.
     * 
* * Protobuf type {@code tendermint.types.VersionParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.VersionParams) tendermint.types.Params.VersionParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_VersionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_VersionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.VersionParams.class, tendermint.types.Params.VersionParams.Builder.class); } // Construct using tendermint.types.Params.VersionParams.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(); appVersion_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_VersionParams_descriptor; } @java.lang.Override public tendermint.types.Params.VersionParams getDefaultInstanceForType() { return tendermint.types.Params.VersionParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.VersionParams build() { tendermint.types.Params.VersionParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.VersionParams buildPartial() { tendermint.types.Params.VersionParams result = new tendermint.types.Params.VersionParams(this); result.appVersion_ = appVersion_; 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.Params.VersionParams) { return mergeFrom((tendermint.types.Params.VersionParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.VersionParams other) { if (other == tendermint.types.Params.VersionParams.getDefaultInstance()) return this; if (other.getAppVersion() != 0L) { setAppVersion(other.getAppVersion()); } 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.Params.VersionParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.VersionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long appVersion_ ; /** * uint64 app_version = 1; */ public long getAppVersion() { return appVersion_; } /** * uint64 app_version = 1; */ public Builder setAppVersion(long value) { appVersion_ = value; onChanged(); return this; } /** * uint64 app_version = 1; */ public Builder clearAppVersion() { appVersion_ = 0L; onChanged(); return this; } @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.VersionParams) } // @@protoc_insertion_point(class_scope:tendermint.types.VersionParams) private static final tendermint.types.Params.VersionParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.VersionParams(); } public static tendermint.types.Params.VersionParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VersionParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VersionParams(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.Params.VersionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HashedParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.HashedParams) com.google.protobuf.MessageOrBuilder { /** * int64 block_max_bytes = 1; */ long getBlockMaxBytes(); /** * int64 block_max_gas = 2; */ long getBlockMaxGas(); } /** *
   * HashedParams is a subset of ConsensusParams.
   * It is hashed into the Header.ConsensusHash.
   * 
* * Protobuf type {@code tendermint.types.HashedParams} */ public static final class HashedParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.HashedParams) HashedParamsOrBuilder { private static final long serialVersionUID = 0L; // Use HashedParams.newBuilder() to construct. private HashedParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HashedParams() { blockMaxBytes_ = 0L; blockMaxGas_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HashedParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { blockMaxBytes_ = input.readInt64(); break; } case 16: { blockMaxGas_ = input.readInt64(); 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.Params.internal_static_tendermint_types_HashedParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_HashedParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.HashedParams.class, tendermint.types.Params.HashedParams.Builder.class); } public static final int BLOCK_MAX_BYTES_FIELD_NUMBER = 1; private long blockMaxBytes_; /** * int64 block_max_bytes = 1; */ public long getBlockMaxBytes() { return blockMaxBytes_; } public static final int BLOCK_MAX_GAS_FIELD_NUMBER = 2; private long blockMaxGas_; /** * int64 block_max_gas = 2; */ public long getBlockMaxGas() { return blockMaxGas_; } 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 (blockMaxBytes_ != 0L) { output.writeInt64(1, blockMaxBytes_); } if (blockMaxGas_ != 0L) { output.writeInt64(2, blockMaxGas_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (blockMaxBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, blockMaxBytes_); } if (blockMaxGas_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, blockMaxGas_); } 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.Params.HashedParams)) { return super.equals(obj); } tendermint.types.Params.HashedParams other = (tendermint.types.Params.HashedParams) obj; boolean result = true; result = result && (getBlockMaxBytes() == other.getBlockMaxBytes()); result = result && (getBlockMaxGas() == other.getBlockMaxGas()); 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(); hash = (37 * hash) + BLOCK_MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockMaxBytes()); hash = (37 * hash) + BLOCK_MAX_GAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockMaxGas()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Params.HashedParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.HashedParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.HashedParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.HashedParams 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.Params.HashedParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Params.HashedParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Params.HashedParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.HashedParams 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.Params.HashedParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Params.HashedParams 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.Params.HashedParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Params.HashedParams 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.Params.HashedParams 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; } /** *
     * HashedParams is a subset of ConsensusParams.
     * It is hashed into the Header.ConsensusHash.
     * 
* * Protobuf type {@code tendermint.types.HashedParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.HashedParams) tendermint.types.Params.HashedParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Params.internal_static_tendermint_types_HashedParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Params.internal_static_tendermint_types_HashedParams_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Params.HashedParams.class, tendermint.types.Params.HashedParams.Builder.class); } // Construct using tendermint.types.Params.HashedParams.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(); blockMaxBytes_ = 0L; blockMaxGas_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Params.internal_static_tendermint_types_HashedParams_descriptor; } @java.lang.Override public tendermint.types.Params.HashedParams getDefaultInstanceForType() { return tendermint.types.Params.HashedParams.getDefaultInstance(); } @java.lang.Override public tendermint.types.Params.HashedParams build() { tendermint.types.Params.HashedParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Params.HashedParams buildPartial() { tendermint.types.Params.HashedParams result = new tendermint.types.Params.HashedParams(this); result.blockMaxBytes_ = blockMaxBytes_; result.blockMaxGas_ = blockMaxGas_; 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.Params.HashedParams) { return mergeFrom((tendermint.types.Params.HashedParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Params.HashedParams other) { if (other == tendermint.types.Params.HashedParams.getDefaultInstance()) return this; if (other.getBlockMaxBytes() != 0L) { setBlockMaxBytes(other.getBlockMaxBytes()); } if (other.getBlockMaxGas() != 0L) { setBlockMaxGas(other.getBlockMaxGas()); } 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.Params.HashedParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Params.HashedParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long blockMaxBytes_ ; /** * int64 block_max_bytes = 1; */ public long getBlockMaxBytes() { return blockMaxBytes_; } /** * int64 block_max_bytes = 1; */ public Builder setBlockMaxBytes(long value) { blockMaxBytes_ = value; onChanged(); return this; } /** * int64 block_max_bytes = 1; */ public Builder clearBlockMaxBytes() { blockMaxBytes_ = 0L; onChanged(); return this; } private long blockMaxGas_ ; /** * int64 block_max_gas = 2; */ public long getBlockMaxGas() { return blockMaxGas_; } /** * int64 block_max_gas = 2; */ public Builder setBlockMaxGas(long value) { blockMaxGas_ = value; onChanged(); return this; } /** * int64 block_max_gas = 2; */ public Builder clearBlockMaxGas() { blockMaxGas_ = 0L; onChanged(); return this; } @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.HashedParams) } // @@protoc_insertion_point(class_scope:tendermint.types.HashedParams) private static final tendermint.types.Params.HashedParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Params.HashedParams(); } public static tendermint.types.Params.HashedParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HashedParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HashedParams(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.Params.HashedParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_ConsensusParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_ConsensusParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_BlockParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_BlockParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_EvidenceParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_EvidenceParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_ValidatorParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_ValidatorParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_VersionParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_VersionParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_HashedParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_HashedParams_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\035tendermint/types/params.proto\022\020tenderm" + "int.types\032\024gogoproto/gogo.proto\032\036google/" + "protobuf/duration.proto\"\363\001\n\017ConsensusPar" + "ams\0222\n\005block\030\001 \001(\0132\035.tendermint.types.Bl" + "ockParamsB\004\310\336\037\000\0228\n\010evidence\030\002 \001(\0132 .tend" + "ermint.types.EvidenceParamsB\004\310\336\037\000\022:\n\tval" + "idator\030\003 \001(\0132!.tendermint.types.Validato" + "rParamsB\004\310\336\037\000\0226\n\007version\030\004 \001(\0132\037.tenderm" + "int.types.VersionParamsB\004\310\336\037\000\"G\n\013BlockPa" + "rams\022\021\n\tmax_bytes\030\001 \001(\003\022\017\n\007max_gas\030\002 \001(\003" + "\022\024\n\014time_iota_ms\030\003 \001(\003\"~\n\016EvidenceParams" + "\022\032\n\022max_age_num_blocks\030\001 \001(\003\022=\n\020max_age_" + "duration\030\002 \001(\0132\031.google.protobuf.Duratio" + "nB\010\310\336\037\000\230\337\037\001\022\021\n\tmax_bytes\030\003 \001(\003\"2\n\017Valida" + "torParams\022\025\n\rpub_key_types\030\001 \003(\t:\010\270\240\037\001\350\240" + "\037\001\".\n\rVersionParams\022\023\n\013app_version\030\001 \001(\004" + ":\010\270\240\037\001\350\240\037\001\">\n\014HashedParams\022\027\n\017block_max_" + "bytes\030\001 \001(\003\022\025\n\rblock_max_gas\030\002 \001(\003B=Z7gi" + "thub.com/tendermint/tendermint/proto/ten" + "dermint/types\250\342\036\001b\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.DurationProto.getDescriptor(), }, assigner); internal_static_tendermint_types_ConsensusParams_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tendermint_types_ConsensusParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_ConsensusParams_descriptor, new java.lang.String[] { "Block", "Evidence", "Validator", "Version", }); internal_static_tendermint_types_BlockParams_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tendermint_types_BlockParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_BlockParams_descriptor, new java.lang.String[] { "MaxBytes", "MaxGas", "TimeIotaMs", }); internal_static_tendermint_types_EvidenceParams_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tendermint_types_EvidenceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_EvidenceParams_descriptor, new java.lang.String[] { "MaxAgeNumBlocks", "MaxAgeDuration", "MaxBytes", }); internal_static_tendermint_types_ValidatorParams_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tendermint_types_ValidatorParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_ValidatorParams_descriptor, new java.lang.String[] { "PubKeyTypes", }); internal_static_tendermint_types_VersionParams_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tendermint_types_VersionParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_VersionParams_descriptor, new java.lang.String[] { "AppVersion", }); internal_static_tendermint_types_HashedParams_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_tendermint_types_HashedParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_HashedParams_descriptor, new java.lang.String[] { "BlockMaxBytes", "BlockMaxGas", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.equal); registry.add(com.google.protobuf.GoGoProtos.equalAll); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.populate); registry.add(com.google.protobuf.GoGoProtos.stdduration); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy