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

ibc.lightclients.tendermint.v1.Tendermint Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ibc/lightclients/tendermint/v1/tendermint.proto

package ibc.lightclients.tendermint.v1;

public final class Tendermint {
  private Tendermint() {}
  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 ClientStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.ClientState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string chain_id = 1;
     */
    java.lang.String getChainId();
    /**
     * string chain_id = 1;
     */
    com.google.protobuf.ByteString
        getChainIdBytes();

    /**
     * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""];
     */
    boolean hasTrustLevel();
    /**
     * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""];
     */
    ibc.lightclients.tendermint.v1.Tendermint.Fraction getTrustLevel();
    /**
     * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""];
     */
    ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder getTrustLevelOrBuilder();

    /**
     * 
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ boolean hasTrustingPeriod(); /** *
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.Duration getTrustingPeriod(); /** *
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder(); /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ boolean hasUnbondingPeriod(); /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.Duration getUnbondingPeriod(); /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder(); /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ boolean hasMaxClockDrift(); /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.Duration getMaxClockDrift(); /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder(); /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ boolean hasFrozenHeight(); /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ ibc.core.client.v1.Client.Height getFrozenHeight(); /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ ibc.core.client.v1.Client.HeightOrBuilder getFrozenHeightOrBuilder(); /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ boolean hasLatestHeight(); /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ ibc.core.client.v1.Client.Height getLatestHeight(); /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ ibc.core.client.v1.Client.HeightOrBuilder getLatestHeightOrBuilder(); /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ java.util.List getProofSpecsList(); /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ tech.confio.ics23.ProofSpec getProofSpecs(int index); /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ int getProofSpecsCount(); /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ java.util.List getProofSpecsOrBuilderList(); /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ tech.confio.ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( int index); /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ java.util.List getUpgradePathList(); /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ int getUpgradePathCount(); /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ java.lang.String getUpgradePath(int index); /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ com.google.protobuf.ByteString getUpgradePathBytes(int index); /** *
     * This flag, when set to true, will allow governance to recover a client
     * which has expired
     * 
* * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; */ boolean getAllowUpdateAfterExpiry(); /** *
     * This flag, when set to true, will allow governance to unfreeze a client
     * whose chain has experienced a misbehaviour event
     * 
* * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; */ boolean getAllowUpdateAfterMisbehaviour(); } /** *
   * ClientState from Tendermint tracks the current validator set, latest height,
   * and a possible frozen height.
   * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.ClientState} */ public static final class ClientState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.ClientState) ClientStateOrBuilder { private static final long serialVersionUID = 0L; // Use ClientState.newBuilder() to construct. private ClientState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientState() { chainId_ = ""; proofSpecs_ = java.util.Collections.emptyList(); upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowUpdateAfterExpiry_ = false; allowUpdateAfterMisbehaviour_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClientState( 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(); chainId_ = s; break; } case 18: { ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder subBuilder = null; if (trustLevel_ != null) { subBuilder = trustLevel_.toBuilder(); } trustLevel_ = input.readMessage(ibc.lightclients.tendermint.v1.Tendermint.Fraction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trustLevel_); trustLevel_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (trustingPeriod_ != null) { subBuilder = trustingPeriod_.toBuilder(); } trustingPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trustingPeriod_); trustingPeriod_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Duration.Builder subBuilder = null; if (unbondingPeriod_ != null) { subBuilder = unbondingPeriod_.toBuilder(); } unbondingPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unbondingPeriod_); unbondingPeriod_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxClockDrift_ != null) { subBuilder = maxClockDrift_.toBuilder(); } maxClockDrift_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxClockDrift_); maxClockDrift_ = subBuilder.buildPartial(); } break; } case 50: { ibc.core.client.v1.Client.Height.Builder subBuilder = null; if (frozenHeight_ != null) { subBuilder = frozenHeight_.toBuilder(); } frozenHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frozenHeight_); frozenHeight_ = subBuilder.buildPartial(); } break; } case 58: { ibc.core.client.v1.Client.Height.Builder subBuilder = null; if (latestHeight_ != null) { subBuilder = latestHeight_.toBuilder(); } latestHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(latestHeight_); latestHeight_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { proofSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } proofSpecs_.add( input.readMessage(tech.confio.ics23.ProofSpec.parser(), extensionRegistry)); break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { upgradePath_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000100; } upgradePath_.add(s); break; } case 80: { allowUpdateAfterExpiry_ = input.readBool(); break; } case 88: { allowUpdateAfterMisbehaviour_ = input.readBool(); 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_ & 0x00000080) == 0x00000080)) { proofSpecs_ = java.util.Collections.unmodifiableList(proofSpecs_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { upgradePath_ = upgradePath_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.ClientState.class, ibc.lightclients.tendermint.v1.Tendermint.ClientState.Builder.class); } private int bitField0_; public static final int CHAIN_ID_FIELD_NUMBER = 1; private volatile java.lang.Object chainId_; /** * string chain_id = 1; */ public java.lang.String getChainId() { java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainId_ = s; return s; } } /** * string chain_id = 1; */ public com.google.protobuf.ByteString getChainIdBytes() { java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRUST_LEVEL_FIELD_NUMBER = 2; private ibc.lightclients.tendermint.v1.Tendermint.Fraction trustLevel_; /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public boolean hasTrustLevel() { return trustLevel_ != null; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Fraction getTrustLevel() { return trustLevel_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Fraction.getDefaultInstance() : trustLevel_; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder getTrustLevelOrBuilder() { return getTrustLevel(); } public static final int TRUSTING_PERIOD_FIELD_NUMBER = 3; private com.google.protobuf.Duration trustingPeriod_; /** *
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public boolean hasTrustingPeriod() { return trustingPeriod_ != null; } /** *
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getTrustingPeriod() { return trustingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; } /** *
     * duration of the period since the LastestTimestamp during which the
     * submitted headers are valid for upgrade
     * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder() { return getTrustingPeriod(); } public static final int UNBONDING_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration unbondingPeriod_; /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public boolean hasUnbondingPeriod() { return unbondingPeriod_ != null; } /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getUnbondingPeriod() { return unbondingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; } /** *
     * duration of the staking unbonding period
     * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder() { return getUnbondingPeriod(); } public static final int MAX_CLOCK_DRIFT_FIELD_NUMBER = 5; private com.google.protobuf.Duration maxClockDrift_; /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public boolean hasMaxClockDrift() { return maxClockDrift_ != null; } /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getMaxClockDrift() { return maxClockDrift_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; } /** *
     * defines how much new (untrusted) header's Time can drift into the future.
     * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder() { return getMaxClockDrift(); } public static final int FROZEN_HEIGHT_FIELD_NUMBER = 6; private ibc.core.client.v1.Client.Height frozenHeight_; /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public boolean hasFrozenHeight() { return frozenHeight_ != null; } /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public ibc.core.client.v1.Client.Height getFrozenHeight() { return frozenHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : frozenHeight_; } /** *
     * Block height when the client was frozen due to a misbehaviour
     * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getFrozenHeightOrBuilder() { return getFrozenHeight(); } public static final int LATEST_HEIGHT_FIELD_NUMBER = 7; private ibc.core.client.v1.Client.Height latestHeight_; /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public boolean hasLatestHeight() { return latestHeight_ != null; } /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public ibc.core.client.v1.Client.Height getLatestHeight() { return latestHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : latestHeight_; } /** *
     * Latest height the client was updated to
     * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getLatestHeightOrBuilder() { return getLatestHeight(); } public static final int PROOF_SPECS_FIELD_NUMBER = 8; private java.util.List proofSpecs_; /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public java.util.List getProofSpecsList() { return proofSpecs_; } /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public java.util.List getProofSpecsOrBuilderList() { return proofSpecs_; } /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public int getProofSpecsCount() { return proofSpecs_.size(); } /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpec getProofSpecs(int index) { return proofSpecs_.get(index); } /** *
     * Proof specifications used in verifying counterparty state
     * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( int index) { return proofSpecs_.get(index); } public static final int UPGRADE_PATH_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList upgradePath_; /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public com.google.protobuf.ProtocolStringList getUpgradePathList() { return upgradePath_; } /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public int getUpgradePathCount() { return upgradePath_.size(); } /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public java.lang.String getUpgradePath(int index) { return upgradePath_.get(index); } /** *
     * Path at which next upgraded client will be committed.
     * Each element corresponds to the key for a single CommitmentProof in the chained proof.
     * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
     * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
     * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
     * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public com.google.protobuf.ByteString getUpgradePathBytes(int index) { return upgradePath_.getByteString(index); } public static final int ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER = 10; private boolean allowUpdateAfterExpiry_; /** *
     * This flag, when set to true, will allow governance to recover a client
     * which has expired
     * 
* * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; */ public boolean getAllowUpdateAfterExpiry() { return allowUpdateAfterExpiry_; } public static final int ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER = 11; private boolean allowUpdateAfterMisbehaviour_; /** *
     * This flag, when set to true, will allow governance to unfreeze a client
     * whose chain has experienced a misbehaviour event
     * 
* * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; */ public boolean getAllowUpdateAfterMisbehaviour() { return allowUpdateAfterMisbehaviour_; } 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 (!getChainIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainId_); } if (trustLevel_ != null) { output.writeMessage(2, getTrustLevel()); } if (trustingPeriod_ != null) { output.writeMessage(3, getTrustingPeriod()); } if (unbondingPeriod_ != null) { output.writeMessage(4, getUnbondingPeriod()); } if (maxClockDrift_ != null) { output.writeMessage(5, getMaxClockDrift()); } if (frozenHeight_ != null) { output.writeMessage(6, getFrozenHeight()); } if (latestHeight_ != null) { output.writeMessage(7, getLatestHeight()); } for (int i = 0; i < proofSpecs_.size(); i++) { output.writeMessage(8, proofSpecs_.get(i)); } for (int i = 0; i < upgradePath_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, upgradePath_.getRaw(i)); } if (allowUpdateAfterExpiry_ != false) { output.writeBool(10, allowUpdateAfterExpiry_); } if (allowUpdateAfterMisbehaviour_ != false) { output.writeBool(11, allowUpdateAfterMisbehaviour_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChainIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainId_); } if (trustLevel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTrustLevel()); } if (trustingPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTrustingPeriod()); } if (unbondingPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUnbondingPeriod()); } if (maxClockDrift_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMaxClockDrift()); } if (frozenHeight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFrozenHeight()); } if (latestHeight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLatestHeight()); } for (int i = 0; i < proofSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, proofSpecs_.get(i)); } { int dataSize = 0; for (int i = 0; i < upgradePath_.size(); i++) { dataSize += computeStringSizeNoTag(upgradePath_.getRaw(i)); } size += dataSize; size += 1 * getUpgradePathList().size(); } if (allowUpdateAfterExpiry_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, allowUpdateAfterExpiry_); } if (allowUpdateAfterMisbehaviour_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, allowUpdateAfterMisbehaviour_); } 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 ibc.lightclients.tendermint.v1.Tendermint.ClientState)) { return super.equals(obj); } ibc.lightclients.tendermint.v1.Tendermint.ClientState other = (ibc.lightclients.tendermint.v1.Tendermint.ClientState) obj; boolean result = true; result = result && getChainId() .equals(other.getChainId()); result = result && (hasTrustLevel() == other.hasTrustLevel()); if (hasTrustLevel()) { result = result && getTrustLevel() .equals(other.getTrustLevel()); } result = result && (hasTrustingPeriod() == other.hasTrustingPeriod()); if (hasTrustingPeriod()) { result = result && getTrustingPeriod() .equals(other.getTrustingPeriod()); } result = result && (hasUnbondingPeriod() == other.hasUnbondingPeriod()); if (hasUnbondingPeriod()) { result = result && getUnbondingPeriod() .equals(other.getUnbondingPeriod()); } result = result && (hasMaxClockDrift() == other.hasMaxClockDrift()); if (hasMaxClockDrift()) { result = result && getMaxClockDrift() .equals(other.getMaxClockDrift()); } result = result && (hasFrozenHeight() == other.hasFrozenHeight()); if (hasFrozenHeight()) { result = result && getFrozenHeight() .equals(other.getFrozenHeight()); } result = result && (hasLatestHeight() == other.hasLatestHeight()); if (hasLatestHeight()) { result = result && getLatestHeight() .equals(other.getLatestHeight()); } result = result && getProofSpecsList() .equals(other.getProofSpecsList()); result = result && getUpgradePathList() .equals(other.getUpgradePathList()); result = result && (getAllowUpdateAfterExpiry() == other.getAllowUpdateAfterExpiry()); result = result && (getAllowUpdateAfterMisbehaviour() == other.getAllowUpdateAfterMisbehaviour()); 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) + CHAIN_ID_FIELD_NUMBER; hash = (53 * hash) + getChainId().hashCode(); if (hasTrustLevel()) { hash = (37 * hash) + TRUST_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getTrustLevel().hashCode(); } if (hasTrustingPeriod()) { hash = (37 * hash) + TRUSTING_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getTrustingPeriod().hashCode(); } if (hasUnbondingPeriod()) { hash = (37 * hash) + UNBONDING_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getUnbondingPeriod().hashCode(); } if (hasMaxClockDrift()) { hash = (37 * hash) + MAX_CLOCK_DRIFT_FIELD_NUMBER; hash = (53 * hash) + getMaxClockDrift().hashCode(); } if (hasFrozenHeight()) { hash = (37 * hash) + FROZEN_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getFrozenHeight().hashCode(); } if (hasLatestHeight()) { hash = (37 * hash) + LATEST_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getLatestHeight().hashCode(); } if (getProofSpecsCount() > 0) { hash = (37 * hash) + PROOF_SPECS_FIELD_NUMBER; hash = (53 * hash) + getProofSpecsList().hashCode(); } if (getUpgradePathCount() > 0) { hash = (37 * hash) + UPGRADE_PATH_FIELD_NUMBER; hash = (53 * hash) + getUpgradePathList().hashCode(); } hash = (37 * hash) + ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowUpdateAfterExpiry()); hash = (37 * hash) + ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowUpdateAfterMisbehaviour()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState 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 ibc.lightclients.tendermint.v1.Tendermint.ClientState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState 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 ibc.lightclients.tendermint.v1.Tendermint.ClientState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState 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(ibc.lightclients.tendermint.v1.Tendermint.ClientState 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; } /** *
     * ClientState from Tendermint tracks the current validator set, latest height,
     * and a possible frozen height.
     * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.ClientState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.ClientState) ibc.lightclients.tendermint.v1.Tendermint.ClientStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.ClientState.class, ibc.lightclients.tendermint.v1.Tendermint.ClientState.Builder.class); } // Construct using ibc.lightclients.tendermint.v1.Tendermint.ClientState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getProofSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); chainId_ = ""; if (trustLevelBuilder_ == null) { trustLevel_ = null; } else { trustLevel_ = null; trustLevelBuilder_ = null; } if (trustingPeriodBuilder_ == null) { trustingPeriod_ = null; } else { trustingPeriod_ = null; trustingPeriodBuilder_ = null; } if (unbondingPeriodBuilder_ == null) { unbondingPeriod_ = null; } else { unbondingPeriod_ = null; unbondingPeriodBuilder_ = null; } if (maxClockDriftBuilder_ == null) { maxClockDrift_ = null; } else { maxClockDrift_ = null; maxClockDriftBuilder_ = null; } if (frozenHeightBuilder_ == null) { frozenHeight_ = null; } else { frozenHeight_ = null; frozenHeightBuilder_ = null; } if (latestHeightBuilder_ == null) { latestHeight_ = null; } else { latestHeight_ = null; latestHeightBuilder_ = null; } if (proofSpecsBuilder_ == null) { proofSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { proofSpecsBuilder_.clear(); } upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); allowUpdateAfterExpiry_ = false; allowUpdateAfterMisbehaviour_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ClientState getDefaultInstanceForType() { return ibc.lightclients.tendermint.v1.Tendermint.ClientState.getDefaultInstance(); } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ClientState build() { ibc.lightclients.tendermint.v1.Tendermint.ClientState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ClientState buildPartial() { ibc.lightclients.tendermint.v1.Tendermint.ClientState result = new ibc.lightclients.tendermint.v1.Tendermint.ClientState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.chainId_ = chainId_; if (trustLevelBuilder_ == null) { result.trustLevel_ = trustLevel_; } else { result.trustLevel_ = trustLevelBuilder_.build(); } if (trustingPeriodBuilder_ == null) { result.trustingPeriod_ = trustingPeriod_; } else { result.trustingPeriod_ = trustingPeriodBuilder_.build(); } if (unbondingPeriodBuilder_ == null) { result.unbondingPeriod_ = unbondingPeriod_; } else { result.unbondingPeriod_ = unbondingPeriodBuilder_.build(); } if (maxClockDriftBuilder_ == null) { result.maxClockDrift_ = maxClockDrift_; } else { result.maxClockDrift_ = maxClockDriftBuilder_.build(); } if (frozenHeightBuilder_ == null) { result.frozenHeight_ = frozenHeight_; } else { result.frozenHeight_ = frozenHeightBuilder_.build(); } if (latestHeightBuilder_ == null) { result.latestHeight_ = latestHeight_; } else { result.latestHeight_ = latestHeightBuilder_.build(); } if (proofSpecsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { proofSpecs_ = java.util.Collections.unmodifiableList(proofSpecs_); bitField0_ = (bitField0_ & ~0x00000080); } result.proofSpecs_ = proofSpecs_; } else { result.proofSpecs_ = proofSpecsBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { upgradePath_ = upgradePath_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000100); } result.upgradePath_ = upgradePath_; result.allowUpdateAfterExpiry_ = allowUpdateAfterExpiry_; result.allowUpdateAfterMisbehaviour_ = allowUpdateAfterMisbehaviour_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.lightclients.tendermint.v1.Tendermint.ClientState) { return mergeFrom((ibc.lightclients.tendermint.v1.Tendermint.ClientState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.lightclients.tendermint.v1.Tendermint.ClientState other) { if (other == ibc.lightclients.tendermint.v1.Tendermint.ClientState.getDefaultInstance()) return this; if (!other.getChainId().isEmpty()) { chainId_ = other.chainId_; onChanged(); } if (other.hasTrustLevel()) { mergeTrustLevel(other.getTrustLevel()); } if (other.hasTrustingPeriod()) { mergeTrustingPeriod(other.getTrustingPeriod()); } if (other.hasUnbondingPeriod()) { mergeUnbondingPeriod(other.getUnbondingPeriod()); } if (other.hasMaxClockDrift()) { mergeMaxClockDrift(other.getMaxClockDrift()); } if (other.hasFrozenHeight()) { mergeFrozenHeight(other.getFrozenHeight()); } if (other.hasLatestHeight()) { mergeLatestHeight(other.getLatestHeight()); } if (proofSpecsBuilder_ == null) { if (!other.proofSpecs_.isEmpty()) { if (proofSpecs_.isEmpty()) { proofSpecs_ = other.proofSpecs_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureProofSpecsIsMutable(); proofSpecs_.addAll(other.proofSpecs_); } onChanged(); } } else { if (!other.proofSpecs_.isEmpty()) { if (proofSpecsBuilder_.isEmpty()) { proofSpecsBuilder_.dispose(); proofSpecsBuilder_ = null; proofSpecs_ = other.proofSpecs_; bitField0_ = (bitField0_ & ~0x00000080); proofSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProofSpecsFieldBuilder() : null; } else { proofSpecsBuilder_.addAllMessages(other.proofSpecs_); } } } if (!other.upgradePath_.isEmpty()) { if (upgradePath_.isEmpty()) { upgradePath_ = other.upgradePath_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUpgradePathIsMutable(); upgradePath_.addAll(other.upgradePath_); } onChanged(); } if (other.getAllowUpdateAfterExpiry() != false) { setAllowUpdateAfterExpiry(other.getAllowUpdateAfterExpiry()); } if (other.getAllowUpdateAfterMisbehaviour() != false) { setAllowUpdateAfterMisbehaviour(other.getAllowUpdateAfterMisbehaviour()); } 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 { ibc.lightclients.tendermint.v1.Tendermint.ClientState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.lightclients.tendermint.v1.Tendermint.ClientState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object chainId_ = ""; /** * string chain_id = 1; */ public java.lang.String getChainId() { java.lang.Object ref = chainId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string chain_id = 1; */ public com.google.protobuf.ByteString getChainIdBytes() { java.lang.Object ref = chainId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string chain_id = 1; */ public Builder setChainId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chainId_ = value; onChanged(); return this; } /** * string chain_id = 1; */ public Builder clearChainId() { chainId_ = getDefaultInstance().getChainId(); onChanged(); return this; } /** * string chain_id = 1; */ public Builder setChainIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chainId_ = value; onChanged(); return this; } private ibc.lightclients.tendermint.v1.Tendermint.Fraction trustLevel_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Fraction, ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder, ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder> trustLevelBuilder_; /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public boolean hasTrustLevel() { return trustLevelBuilder_ != null || trustLevel_ != null; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Fraction getTrustLevel() { if (trustLevelBuilder_ == null) { return trustLevel_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Fraction.getDefaultInstance() : trustLevel_; } else { return trustLevelBuilder_.getMessage(); } } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public Builder setTrustLevel(ibc.lightclients.tendermint.v1.Tendermint.Fraction value) { if (trustLevelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trustLevel_ = value; onChanged(); } else { trustLevelBuilder_.setMessage(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public Builder setTrustLevel( ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder builderForValue) { if (trustLevelBuilder_ == null) { trustLevel_ = builderForValue.build(); onChanged(); } else { trustLevelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public Builder mergeTrustLevel(ibc.lightclients.tendermint.v1.Tendermint.Fraction value) { if (trustLevelBuilder_ == null) { if (trustLevel_ != null) { trustLevel_ = ibc.lightclients.tendermint.v1.Tendermint.Fraction.newBuilder(trustLevel_).mergeFrom(value).buildPartial(); } else { trustLevel_ = value; } onChanged(); } else { trustLevelBuilder_.mergeFrom(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public Builder clearTrustLevel() { if (trustLevelBuilder_ == null) { trustLevel_ = null; onChanged(); } else { trustLevel_ = null; trustLevelBuilder_ = null; } return this; } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder getTrustLevelBuilder() { onChanged(); return getTrustLevelFieldBuilder().getBuilder(); } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder getTrustLevelOrBuilder() { if (trustLevelBuilder_ != null) { return trustLevelBuilder_.getMessageOrBuilder(); } else { return trustLevel_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Fraction.getDefaultInstance() : trustLevel_; } } /** * .ibc.lightclients.tendermint.v1.Fraction trust_level = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trust_level\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Fraction, ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder, ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder> getTrustLevelFieldBuilder() { if (trustLevelBuilder_ == null) { trustLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Fraction, ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder, ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder>( getTrustLevel(), getParentForChildren(), isClean()); trustLevel_ = null; } return trustLevelBuilder_; } private com.google.protobuf.Duration trustingPeriod_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> trustingPeriodBuilder_; /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public boolean hasTrustingPeriod() { return trustingPeriodBuilder_ != null || trustingPeriod_ != null; } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getTrustingPeriod() { if (trustingPeriodBuilder_ == null) { return trustingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; } else { return trustingPeriodBuilder_.getMessage(); } } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public Builder setTrustingPeriod(com.google.protobuf.Duration value) { if (trustingPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trustingPeriod_ = value; onChanged(); } else { trustingPeriodBuilder_.setMessage(value); } return this; } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public Builder setTrustingPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (trustingPeriodBuilder_ == null) { trustingPeriod_ = builderForValue.build(); onChanged(); } else { trustingPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public Builder mergeTrustingPeriod(com.google.protobuf.Duration value) { if (trustingPeriodBuilder_ == null) { if (trustingPeriod_ != null) { trustingPeriod_ = com.google.protobuf.Duration.newBuilder(trustingPeriod_).mergeFrom(value).buildPartial(); } else { trustingPeriod_ = value; } onChanged(); } else { trustingPeriodBuilder_.mergeFrom(value); } return this; } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public Builder clearTrustingPeriod() { if (trustingPeriodBuilder_ == null) { trustingPeriod_ = null; onChanged(); } else { trustingPeriod_ = null; trustingPeriodBuilder_ = null; } return this; } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getTrustingPeriodBuilder() { onChanged(); return getTrustingPeriodFieldBuilder().getBuilder(); } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getTrustingPeriodOrBuilder() { if (trustingPeriodBuilder_ != null) { return trustingPeriodBuilder_.getMessageOrBuilder(); } else { return trustingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : trustingPeriod_; } } /** *
       * duration of the period since the LastestTimestamp during which the
       * submitted headers are valid for upgrade
       * 
* * .google.protobuf.Duration trusting_period = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusting_period\"", (.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTrustingPeriodFieldBuilder() { if (trustingPeriodBuilder_ == null) { trustingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTrustingPeriod(), getParentForChildren(), isClean()); trustingPeriod_ = null; } return trustingPeriodBuilder_; } private com.google.protobuf.Duration unbondingPeriod_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> unbondingPeriodBuilder_; /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public boolean hasUnbondingPeriod() { return unbondingPeriodBuilder_ != null || unbondingPeriod_ != null; } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getUnbondingPeriod() { if (unbondingPeriodBuilder_ == null) { return unbondingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; } else { return unbondingPeriodBuilder_.getMessage(); } } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public Builder setUnbondingPeriod(com.google.protobuf.Duration value) { if (unbondingPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unbondingPeriod_ = value; onChanged(); } else { unbondingPeriodBuilder_.setMessage(value); } return this; } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public Builder setUnbondingPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (unbondingPeriodBuilder_ == null) { unbondingPeriod_ = builderForValue.build(); onChanged(); } else { unbondingPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public Builder mergeUnbondingPeriod(com.google.protobuf.Duration value) { if (unbondingPeriodBuilder_ == null) { if (unbondingPeriod_ != null) { unbondingPeriod_ = com.google.protobuf.Duration.newBuilder(unbondingPeriod_).mergeFrom(value).buildPartial(); } else { unbondingPeriod_ = value; } onChanged(); } else { unbondingPeriodBuilder_.mergeFrom(value); } return this; } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public Builder clearUnbondingPeriod() { if (unbondingPeriodBuilder_ == null) { unbondingPeriod_ = null; onChanged(); } else { unbondingPeriod_ = null; unbondingPeriodBuilder_ = null; } return this; } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getUnbondingPeriodBuilder() { onChanged(); return getUnbondingPeriodFieldBuilder().getBuilder(); } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getUnbondingPeriodOrBuilder() { if (unbondingPeriodBuilder_ != null) { return unbondingPeriodBuilder_.getMessageOrBuilder(); } else { return unbondingPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unbondingPeriod_; } } /** *
       * duration of the staking unbonding period
       * 
* * .google.protobuf.Duration unbonding_period = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"unbonding_period\"", (.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getUnbondingPeriodFieldBuilder() { if (unbondingPeriodBuilder_ == null) { unbondingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getUnbondingPeriod(), getParentForChildren(), isClean()); unbondingPeriod_ = null; } return unbondingPeriodBuilder_; } private com.google.protobuf.Duration maxClockDrift_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxClockDriftBuilder_; /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public boolean hasMaxClockDrift() { return maxClockDriftBuilder_ != null || maxClockDrift_ != null; } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration getMaxClockDrift() { if (maxClockDriftBuilder_ == null) { return maxClockDrift_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; } else { return maxClockDriftBuilder_.getMessage(); } } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public Builder setMaxClockDrift(com.google.protobuf.Duration value) { if (maxClockDriftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxClockDrift_ = value; onChanged(); } else { maxClockDriftBuilder_.setMessage(value); } return this; } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public Builder setMaxClockDrift( com.google.protobuf.Duration.Builder builderForValue) { if (maxClockDriftBuilder_ == null) { maxClockDrift_ = builderForValue.build(); onChanged(); } else { maxClockDriftBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public Builder mergeMaxClockDrift(com.google.protobuf.Duration value) { if (maxClockDriftBuilder_ == null) { if (maxClockDrift_ != null) { maxClockDrift_ = com.google.protobuf.Duration.newBuilder(maxClockDrift_).mergeFrom(value).buildPartial(); } else { maxClockDrift_ = value; } onChanged(); } else { maxClockDriftBuilder_.mergeFrom(value); } return this; } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public Builder clearMaxClockDrift() { if (maxClockDriftBuilder_ == null) { maxClockDrift_ = null; onChanged(); } else { maxClockDrift_ = null; maxClockDriftBuilder_ = null; } return this; } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getMaxClockDriftBuilder() { onChanged(); return getMaxClockDriftFieldBuilder().getBuilder(); } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getMaxClockDriftOrBuilder() { if (maxClockDriftBuilder_ != null) { return maxClockDriftBuilder_.getMessageOrBuilder(); } else { return maxClockDrift_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxClockDrift_; } } /** *
       * defines how much new (untrusted) header's Time can drift into the future.
       * 
* * .google.protobuf.Duration max_clock_drift = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"max_clock_drift\"", (.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxClockDriftFieldBuilder() { if (maxClockDriftBuilder_ == null) { maxClockDriftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxClockDrift(), getParentForChildren(), isClean()); maxClockDrift_ = null; } return maxClockDriftBuilder_; } private ibc.core.client.v1.Client.Height frozenHeight_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> frozenHeightBuilder_; /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public boolean hasFrozenHeight() { return frozenHeightBuilder_ != null || frozenHeight_ != null; } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public ibc.core.client.v1.Client.Height getFrozenHeight() { if (frozenHeightBuilder_ == null) { return frozenHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : frozenHeight_; } else { return frozenHeightBuilder_.getMessage(); } } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public Builder setFrozenHeight(ibc.core.client.v1.Client.Height value) { if (frozenHeightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } frozenHeight_ = value; onChanged(); } else { frozenHeightBuilder_.setMessage(value); } return this; } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public Builder setFrozenHeight( ibc.core.client.v1.Client.Height.Builder builderForValue) { if (frozenHeightBuilder_ == null) { frozenHeight_ = builderForValue.build(); onChanged(); } else { frozenHeightBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public Builder mergeFrozenHeight(ibc.core.client.v1.Client.Height value) { if (frozenHeightBuilder_ == null) { if (frozenHeight_ != null) { frozenHeight_ = ibc.core.client.v1.Client.Height.newBuilder(frozenHeight_).mergeFrom(value).buildPartial(); } else { frozenHeight_ = value; } onChanged(); } else { frozenHeightBuilder_.mergeFrom(value); } return this; } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public Builder clearFrozenHeight() { if (frozenHeightBuilder_ == null) { frozenHeight_ = null; onChanged(); } else { frozenHeight_ = null; frozenHeightBuilder_ = null; } return this; } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public ibc.core.client.v1.Client.Height.Builder getFrozenHeightBuilder() { onChanged(); return getFrozenHeightFieldBuilder().getBuilder(); } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getFrozenHeightOrBuilder() { if (frozenHeightBuilder_ != null) { return frozenHeightBuilder_.getMessageOrBuilder(); } else { return frozenHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : frozenHeight_; } } /** *
       * Block height when the client was frozen due to a misbehaviour
       * 
* * .ibc.core.client.v1.Height frozen_height = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"frozen_height\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> getFrozenHeightFieldBuilder() { if (frozenHeightBuilder_ == null) { frozenHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>( getFrozenHeight(), getParentForChildren(), isClean()); frozenHeight_ = null; } return frozenHeightBuilder_; } private ibc.core.client.v1.Client.Height latestHeight_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> latestHeightBuilder_; /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public boolean hasLatestHeight() { return latestHeightBuilder_ != null || latestHeight_ != null; } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public ibc.core.client.v1.Client.Height getLatestHeight() { if (latestHeightBuilder_ == null) { return latestHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : latestHeight_; } else { return latestHeightBuilder_.getMessage(); } } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public Builder setLatestHeight(ibc.core.client.v1.Client.Height value) { if (latestHeightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } latestHeight_ = value; onChanged(); } else { latestHeightBuilder_.setMessage(value); } return this; } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public Builder setLatestHeight( ibc.core.client.v1.Client.Height.Builder builderForValue) { if (latestHeightBuilder_ == null) { latestHeight_ = builderForValue.build(); onChanged(); } else { latestHeightBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public Builder mergeLatestHeight(ibc.core.client.v1.Client.Height value) { if (latestHeightBuilder_ == null) { if (latestHeight_ != null) { latestHeight_ = ibc.core.client.v1.Client.Height.newBuilder(latestHeight_).mergeFrom(value).buildPartial(); } else { latestHeight_ = value; } onChanged(); } else { latestHeightBuilder_.mergeFrom(value); } return this; } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public Builder clearLatestHeight() { if (latestHeightBuilder_ == null) { latestHeight_ = null; onChanged(); } else { latestHeight_ = null; latestHeightBuilder_ = null; } return this; } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public ibc.core.client.v1.Client.Height.Builder getLatestHeightBuilder() { onChanged(); return getLatestHeightFieldBuilder().getBuilder(); } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getLatestHeightOrBuilder() { if (latestHeightBuilder_ != null) { return latestHeightBuilder_.getMessageOrBuilder(); } else { return latestHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : latestHeight_; } } /** *
       * Latest height the client was updated to
       * 
* * .ibc.core.client.v1.Height latest_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"latest_height\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> getLatestHeightFieldBuilder() { if (latestHeightBuilder_ == null) { latestHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>( getLatestHeight(), getParentForChildren(), isClean()); latestHeight_ = null; } return latestHeightBuilder_; } private java.util.List proofSpecs_ = java.util.Collections.emptyList(); private void ensureProofSpecsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { proofSpecs_ = new java.util.ArrayList(proofSpecs_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.ProofSpec, tech.confio.ics23.ProofSpec.Builder, tech.confio.ics23.ProofSpecOrBuilder> proofSpecsBuilder_; /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public java.util.List getProofSpecsList() { if (proofSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(proofSpecs_); } else { return proofSpecsBuilder_.getMessageList(); } } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public int getProofSpecsCount() { if (proofSpecsBuilder_ == null) { return proofSpecs_.size(); } else { return proofSpecsBuilder_.getCount(); } } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpec getProofSpecs(int index) { if (proofSpecsBuilder_ == null) { return proofSpecs_.get(index); } else { return proofSpecsBuilder_.getMessage(index); } } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder setProofSpecs( int index, tech.confio.ics23.ProofSpec value) { if (proofSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProofSpecsIsMutable(); proofSpecs_.set(index, value); onChanged(); } else { proofSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder setProofSpecs( int index, tech.confio.ics23.ProofSpec.Builder builderForValue) { if (proofSpecsBuilder_ == null) { ensureProofSpecsIsMutable(); proofSpecs_.set(index, builderForValue.build()); onChanged(); } else { proofSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder addProofSpecs(tech.confio.ics23.ProofSpec value) { if (proofSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProofSpecsIsMutable(); proofSpecs_.add(value); onChanged(); } else { proofSpecsBuilder_.addMessage(value); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder addProofSpecs( int index, tech.confio.ics23.ProofSpec value) { if (proofSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProofSpecsIsMutable(); proofSpecs_.add(index, value); onChanged(); } else { proofSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder addProofSpecs( tech.confio.ics23.ProofSpec.Builder builderForValue) { if (proofSpecsBuilder_ == null) { ensureProofSpecsIsMutable(); proofSpecs_.add(builderForValue.build()); onChanged(); } else { proofSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder addProofSpecs( int index, tech.confio.ics23.ProofSpec.Builder builderForValue) { if (proofSpecsBuilder_ == null) { ensureProofSpecsIsMutable(); proofSpecs_.add(index, builderForValue.build()); onChanged(); } else { proofSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder addAllProofSpecs( java.lang.Iterable values) { if (proofSpecsBuilder_ == null) { ensureProofSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, proofSpecs_); onChanged(); } else { proofSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder clearProofSpecs() { if (proofSpecsBuilder_ == null) { proofSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { proofSpecsBuilder_.clear(); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public Builder removeProofSpecs(int index) { if (proofSpecsBuilder_ == null) { ensureProofSpecsIsMutable(); proofSpecs_.remove(index); onChanged(); } else { proofSpecsBuilder_.remove(index); } return this; } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpec.Builder getProofSpecsBuilder( int index) { return getProofSpecsFieldBuilder().getBuilder(index); } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpecOrBuilder getProofSpecsOrBuilder( int index) { if (proofSpecsBuilder_ == null) { return proofSpecs_.get(index); } else { return proofSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public java.util.List getProofSpecsOrBuilderList() { if (proofSpecsBuilder_ != null) { return proofSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(proofSpecs_); } } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpec.Builder addProofSpecsBuilder() { return getProofSpecsFieldBuilder().addBuilder( tech.confio.ics23.ProofSpec.getDefaultInstance()); } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public tech.confio.ics23.ProofSpec.Builder addProofSpecsBuilder( int index) { return getProofSpecsFieldBuilder().addBuilder( index, tech.confio.ics23.ProofSpec.getDefaultInstance()); } /** *
       * Proof specifications used in verifying counterparty state
       * 
* * repeated .ics23.ProofSpec proof_specs = 8 [(.gogoproto.moretags) = "yaml:\"proof_specs\""]; */ public java.util.List getProofSpecsBuilderList() { return getProofSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.ProofSpec, tech.confio.ics23.ProofSpec.Builder, tech.confio.ics23.ProofSpecOrBuilder> getProofSpecsFieldBuilder() { if (proofSpecsBuilder_ == null) { proofSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.ProofSpec, tech.confio.ics23.ProofSpec.Builder, tech.confio.ics23.ProofSpecOrBuilder>( proofSpecs_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); proofSpecs_ = null; } return proofSpecsBuilder_; } private com.google.protobuf.LazyStringList upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUpgradePathIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { upgradePath_ = new com.google.protobuf.LazyStringArrayList(upgradePath_); bitField0_ |= 0x00000100; } } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public com.google.protobuf.ProtocolStringList getUpgradePathList() { return upgradePath_.getUnmodifiableView(); } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public int getUpgradePathCount() { return upgradePath_.size(); } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public java.lang.String getUpgradePath(int index) { return upgradePath_.get(index); } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public com.google.protobuf.ByteString getUpgradePathBytes(int index) { return upgradePath_.getByteString(index); } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public Builder setUpgradePath( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUpgradePathIsMutable(); upgradePath_.set(index, value); onChanged(); return this; } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public Builder addUpgradePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUpgradePathIsMutable(); upgradePath_.add(value); onChanged(); return this; } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public Builder addAllUpgradePath( java.lang.Iterable values) { ensureUpgradePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, upgradePath_); onChanged(); return this; } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public Builder clearUpgradePath() { upgradePath_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
       * Path at which next upgraded client will be committed.
       * Each element corresponds to the key for a single CommitmentProof in the chained proof.
       * NOTE: ClientState must stored under `{upgradePath}/{upgradeHeight}/clientState`
       * ConsensusState must be stored under `{upgradepath}/{upgradeHeight}/consensusState`
       * For SDK chains using the default upgrade module, upgrade_path should be []string{"upgrade", "upgradedIBCState"}`
       * 
* * repeated string upgrade_path = 9 [(.gogoproto.moretags) = "yaml:\"upgrade_path\""]; */ public Builder addUpgradePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUpgradePathIsMutable(); upgradePath_.add(value); onChanged(); return this; } private boolean allowUpdateAfterExpiry_ ; /** *
       * This flag, when set to true, will allow governance to recover a client
       * which has expired
       * 
* * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; */ public boolean getAllowUpdateAfterExpiry() { return allowUpdateAfterExpiry_; } /** *
       * This flag, when set to true, will allow governance to recover a client
       * which has expired
       * 
* * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; */ public Builder setAllowUpdateAfterExpiry(boolean value) { allowUpdateAfterExpiry_ = value; onChanged(); return this; } /** *
       * This flag, when set to true, will allow governance to recover a client
       * which has expired
       * 
* * bool allow_update_after_expiry = 10 [(.gogoproto.moretags) = "yaml:\"allow_update_after_expiry\""]; */ public Builder clearAllowUpdateAfterExpiry() { allowUpdateAfterExpiry_ = false; onChanged(); return this; } private boolean allowUpdateAfterMisbehaviour_ ; /** *
       * This flag, when set to true, will allow governance to unfreeze a client
       * whose chain has experienced a misbehaviour event
       * 
* * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; */ public boolean getAllowUpdateAfterMisbehaviour() { return allowUpdateAfterMisbehaviour_; } /** *
       * This flag, when set to true, will allow governance to unfreeze a client
       * whose chain has experienced a misbehaviour event
       * 
* * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; */ public Builder setAllowUpdateAfterMisbehaviour(boolean value) { allowUpdateAfterMisbehaviour_ = value; onChanged(); return this; } /** *
       * This flag, when set to true, will allow governance to unfreeze a client
       * whose chain has experienced a misbehaviour event
       * 
* * bool allow_update_after_misbehaviour = 11 [(.gogoproto.moretags) = "yaml:\"allow_update_after_misbehaviour\""]; */ public Builder clearAllowUpdateAfterMisbehaviour() { allowUpdateAfterMisbehaviour_ = false; 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:ibc.lightclients.tendermint.v1.ClientState) } // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.ClientState) private static final ibc.lightclients.tendermint.v1.Tendermint.ClientState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Tendermint.ClientState(); } public static ibc.lightclients.tendermint.v1.Tendermint.ClientState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientState(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 ibc.lightclients.tendermint.v1.Tendermint.ClientState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsensusStateOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.ConsensusState) com.google.protobuf.MessageOrBuilder { /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ boolean hasTimestamp(); /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ boolean hasRoot(); /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ ibc.core.commitment.v1.Commitment.MerkleRoot getRoot(); /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder getRootOrBuilder(); /** * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; */ com.google.protobuf.ByteString getNextValidatorsHash(); } /** *
   * ConsensusState defines the consensus state from Tendermint.
   * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.ConsensusState} */ public static final class ConsensusState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.ConsensusState) ConsensusStateOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusState.newBuilder() to construct. private ConsensusState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusState() { nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsensusState( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 18: { ibc.core.commitment.v1.Commitment.MerkleRoot.Builder subBuilder = null; if (root_ != null) { subBuilder = root_.toBuilder(); } root_ = input.readMessage(ibc.core.commitment.v1.Commitment.MerkleRoot.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(root_); root_ = subBuilder.buildPartial(); } break; } case 26: { nextValidatorsHash_ = input.readBytes(); 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 ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.class, ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
     * timestamp that corresponds to the block height in which the ConsensusState
     * was stored.
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int ROOT_FIELD_NUMBER = 2; private ibc.core.commitment.v1.Commitment.MerkleRoot root_; /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public boolean hasRoot() { return root_ != null; } /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public ibc.core.commitment.v1.Commitment.MerkleRoot getRoot() { return root_ == null ? ibc.core.commitment.v1.Commitment.MerkleRoot.getDefaultInstance() : root_; } /** *
     * commitment root (i.e app hash)
     * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder getRootOrBuilder() { return getRoot(); } public static final int NEXT_VALIDATORS_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nextValidatorsHash_; /** * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; */ public com.google.protobuf.ByteString getNextValidatorsHash() { return nextValidatorsHash_; } 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 (timestamp_ != null) { output.writeMessage(1, getTimestamp()); } if (root_ != null) { output.writeMessage(2, getRoot()); } if (!nextValidatorsHash_.isEmpty()) { output.writeBytes(3, nextValidatorsHash_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimestamp()); } if (root_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRoot()); } if (!nextValidatorsHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nextValidatorsHash_); } 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 ibc.lightclients.tendermint.v1.Tendermint.ConsensusState)) { return super.equals(obj); } ibc.lightclients.tendermint.v1.Tendermint.ConsensusState other = (ibc.lightclients.tendermint.v1.Tendermint.ConsensusState) obj; boolean result = true; result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && (hasRoot() == other.hasRoot()); if (hasRoot()) { result = result && getRoot() .equals(other.getRoot()); } result = result && getNextValidatorsHash() .equals(other.getNextValidatorsHash()); 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 (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } if (hasRoot()) { hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); } hash = (37 * hash) + NEXT_VALIDATORS_HASH_FIELD_NUMBER; hash = (53 * hash) + getNextValidatorsHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState 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 ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState 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 ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState 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(ibc.lightclients.tendermint.v1.Tendermint.ConsensusState 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; } /** *
     * ConsensusState defines the consensus state from Tendermint.
     * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.ConsensusState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.ConsensusState) ibc.lightclients.tendermint.v1.Tendermint.ConsensusStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.class, ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.Builder.class); } // Construct using ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.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 (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } if (rootBuilder_ == null) { root_ = null; } else { root_ = null; rootBuilder_ = null; } nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ConsensusState getDefaultInstanceForType() { return ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.getDefaultInstance(); } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ConsensusState build() { ibc.lightclients.tendermint.v1.Tendermint.ConsensusState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.ConsensusState buildPartial() { ibc.lightclients.tendermint.v1.Tendermint.ConsensusState result = new ibc.lightclients.tendermint.v1.Tendermint.ConsensusState(this); if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } if (rootBuilder_ == null) { result.root_ = root_; } else { result.root_ = rootBuilder_.build(); } result.nextValidatorsHash_ = nextValidatorsHash_; 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 ibc.lightclients.tendermint.v1.Tendermint.ConsensusState) { return mergeFrom((ibc.lightclients.tendermint.v1.Tendermint.ConsensusState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.lightclients.tendermint.v1.Tendermint.ConsensusState other) { if (other == ibc.lightclients.tendermint.v1.Tendermint.ConsensusState.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.hasRoot()) { mergeRoot(other.getRoot()); } if (other.getNextValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { setNextValidatorsHash(other.getNextValidatorsHash()); } 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 { ibc.lightclients.tendermint.v1.Tendermint.ConsensusState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.lightclients.tendermint.v1.Tendermint.ConsensusState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
       * timestamp that corresponds to the block height in which the ConsensusState
       * was stored.
       * 
* * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private ibc.core.commitment.v1.Commitment.MerkleRoot root_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.commitment.v1.Commitment.MerkleRoot, ibc.core.commitment.v1.Commitment.MerkleRoot.Builder, ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder> rootBuilder_; /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public boolean hasRoot() { return rootBuilder_ != null || root_ != null; } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public ibc.core.commitment.v1.Commitment.MerkleRoot getRoot() { if (rootBuilder_ == null) { return root_ == null ? ibc.core.commitment.v1.Commitment.MerkleRoot.getDefaultInstance() : root_; } else { return rootBuilder_.getMessage(); } } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public Builder setRoot(ibc.core.commitment.v1.Commitment.MerkleRoot value) { if (rootBuilder_ == null) { if (value == null) { throw new NullPointerException(); } root_ = value; onChanged(); } else { rootBuilder_.setMessage(value); } return this; } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public Builder setRoot( ibc.core.commitment.v1.Commitment.MerkleRoot.Builder builderForValue) { if (rootBuilder_ == null) { root_ = builderForValue.build(); onChanged(); } else { rootBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public Builder mergeRoot(ibc.core.commitment.v1.Commitment.MerkleRoot value) { if (rootBuilder_ == null) { if (root_ != null) { root_ = ibc.core.commitment.v1.Commitment.MerkleRoot.newBuilder(root_).mergeFrom(value).buildPartial(); } else { root_ = value; } onChanged(); } else { rootBuilder_.mergeFrom(value); } return this; } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public Builder clearRoot() { if (rootBuilder_ == null) { root_ = null; onChanged(); } else { root_ = null; rootBuilder_ = null; } return this; } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public ibc.core.commitment.v1.Commitment.MerkleRoot.Builder getRootBuilder() { onChanged(); return getRootFieldBuilder().getBuilder(); } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ public ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder getRootOrBuilder() { if (rootBuilder_ != null) { return rootBuilder_.getMessageOrBuilder(); } else { return root_ == null ? ibc.core.commitment.v1.Commitment.MerkleRoot.getDefaultInstance() : root_; } } /** *
       * commitment root (i.e app hash)
       * 
* * .ibc.core.commitment.v1.MerkleRoot root = 2 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.commitment.v1.Commitment.MerkleRoot, ibc.core.commitment.v1.Commitment.MerkleRoot.Builder, ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder> getRootFieldBuilder() { if (rootBuilder_ == null) { rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.commitment.v1.Commitment.MerkleRoot, ibc.core.commitment.v1.Commitment.MerkleRoot.Builder, ibc.core.commitment.v1.Commitment.MerkleRootOrBuilder>( getRoot(), getParentForChildren(), isClean()); root_ = null; } return rootBuilder_; } private com.google.protobuf.ByteString nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; */ public com.google.protobuf.ByteString getNextValidatorsHash() { return nextValidatorsHash_; } /** * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; */ public Builder setNextValidatorsHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nextValidatorsHash_ = value; onChanged(); return this; } /** * bytes next_validators_hash = 3 [(.gogoproto.moretags) = "yaml:\"next_validators_hash\"", (.gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"]; */ public Builder clearNextValidatorsHash() { nextValidatorsHash_ = getDefaultInstance().getNextValidatorsHash(); 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:ibc.lightclients.tendermint.v1.ConsensusState) } // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.ConsensusState) private static final ibc.lightclients.tendermint.v1.Tendermint.ConsensusState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Tendermint.ConsensusState(); } public static ibc.lightclients.tendermint.v1.Tendermint.ConsensusState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusState(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 ibc.lightclients.tendermint.v1.Tendermint.ConsensusState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MisbehaviourOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Misbehaviour) com.google.protobuf.MessageOrBuilder { /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ java.lang.String getClientId(); /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ com.google.protobuf.ByteString getClientIdBytes(); /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ boolean hasHeader1(); /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ ibc.lightclients.tendermint.v1.Tendermint.Header getHeader1(); /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader1OrBuilder(); /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ boolean hasHeader2(); /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ ibc.lightclients.tendermint.v1.Tendermint.Header getHeader2(); /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader2OrBuilder(); } /** *
   * Misbehaviour is a wrapper over two conflicting Headers
   * that implements Misbehaviour interface expected by ICS-02
   * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Misbehaviour} */ public static final class Misbehaviour extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Misbehaviour) MisbehaviourOrBuilder { private static final long serialVersionUID = 0L; // Use Misbehaviour.newBuilder() to construct. private Misbehaviour(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Misbehaviour() { clientId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Misbehaviour( 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(); clientId_ = s; break; } case 18: { ibc.lightclients.tendermint.v1.Tendermint.Header.Builder subBuilder = null; if (header1_ != null) { subBuilder = header1_.toBuilder(); } header1_ = input.readMessage(ibc.lightclients.tendermint.v1.Tendermint.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header1_); header1_ = subBuilder.buildPartial(); } break; } case 26: { ibc.lightclients.tendermint.v1.Tendermint.Header.Builder subBuilder = null; if (header2_ != null) { subBuilder = header2_.toBuilder(); } header2_ = input.readMessage(ibc.lightclients.tendermint.v1.Tendermint.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header2_); header2_ = 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 ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.class, ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object clientId_; /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } } /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADER_1_FIELD_NUMBER = 2; private ibc.lightclients.tendermint.v1.Tendermint.Header header1_; /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public boolean hasHeader1() { return header1_ != null; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header getHeader1() { return header1_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header1_; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader1OrBuilder() { return getHeader1(); } public static final int HEADER_2_FIELD_NUMBER = 3; private ibc.lightclients.tendermint.v1.Tendermint.Header header2_; /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public boolean hasHeader2() { return header2_ != null; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header getHeader2() { return header2_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header2_; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader2OrBuilder() { return getHeader2(); } 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 (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } if (header1_ != null) { output.writeMessage(2, getHeader1()); } if (header2_ != null) { output.writeMessage(3, getHeader2()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } if (header1_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeader1()); } if (header2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHeader2()); } 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 ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour)) { return super.equals(obj); } ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour other = (ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour) obj; boolean result = true; result = result && getClientId() .equals(other.getClientId()); result = result && (hasHeader1() == other.hasHeader1()); if (hasHeader1()) { result = result && getHeader1() .equals(other.getHeader1()); } result = result && (hasHeader2() == other.hasHeader2()); if (hasHeader2()) { result = result && getHeader2() .equals(other.getHeader2()); } 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) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); if (hasHeader1()) { hash = (37 * hash) + HEADER_1_FIELD_NUMBER; hash = (53 * hash) + getHeader1().hashCode(); } if (hasHeader2()) { hash = (37 * hash) + HEADER_2_FIELD_NUMBER; hash = (53 * hash) + getHeader2().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour 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 ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour 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 ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour 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(ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour 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; } /** *
     * Misbehaviour is a wrapper over two conflicting Headers
     * that implements Misbehaviour interface expected by ICS-02
     * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Misbehaviour} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Misbehaviour) ibc.lightclients.tendermint.v1.Tendermint.MisbehaviourOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.class, ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.Builder.class); } // Construct using ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.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(); clientId_ = ""; if (header1Builder_ == null) { header1_ = null; } else { header1_ = null; header1Builder_ = null; } if (header2Builder_ == null) { header2_ = null; } else { header2_ = null; header2Builder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour getDefaultInstanceForType() { return ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.getDefaultInstance(); } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour build() { ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour buildPartial() { ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour result = new ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour(this); result.clientId_ = clientId_; if (header1Builder_ == null) { result.header1_ = header1_; } else { result.header1_ = header1Builder_.build(); } if (header2Builder_ == null) { result.header2_ = header2_; } else { result.header2_ = header2Builder_.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 ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour) { return mergeFrom((ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour other) { if (other == ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; onChanged(); } if (other.hasHeader1()) { mergeHeader1(other.getHeader1()); } if (other.hasHeader2()) { mergeHeader2(other.getHeader2()); } 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 { ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientId_ = ""; /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; onChanged(); return this; } /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** * string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""]; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; onChanged(); return this; } private ibc.lightclients.tendermint.v1.Tendermint.Header header1_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder> header1Builder_; /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public boolean hasHeader1() { return header1Builder_ != null || header1_ != null; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header getHeader1() { if (header1Builder_ == null) { return header1_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header1_; } else { return header1Builder_.getMessage(); } } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public Builder setHeader1(ibc.lightclients.tendermint.v1.Tendermint.Header value) { if (header1Builder_ == null) { if (value == null) { throw new NullPointerException(); } header1_ = value; onChanged(); } else { header1Builder_.setMessage(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public Builder setHeader1( ibc.lightclients.tendermint.v1.Tendermint.Header.Builder builderForValue) { if (header1Builder_ == null) { header1_ = builderForValue.build(); onChanged(); } else { header1Builder_.setMessage(builderForValue.build()); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public Builder mergeHeader1(ibc.lightclients.tendermint.v1.Tendermint.Header value) { if (header1Builder_ == null) { if (header1_ != null) { header1_ = ibc.lightclients.tendermint.v1.Tendermint.Header.newBuilder(header1_).mergeFrom(value).buildPartial(); } else { header1_ = value; } onChanged(); } else { header1Builder_.mergeFrom(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public Builder clearHeader1() { if (header1Builder_ == null) { header1_ = null; onChanged(); } else { header1_ = null; header1Builder_ = null; } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header.Builder getHeader1Builder() { onChanged(); return getHeader1FieldBuilder().getBuilder(); } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader1OrBuilder() { if (header1Builder_ != null) { return header1Builder_.getMessageOrBuilder(); } else { return header1_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header1_; } } /** * .ibc.lightclients.tendermint.v1.Header header_1 = 2 [(.gogoproto.customname) = "Header1", (.gogoproto.moretags) = "yaml:\"header_1\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder> getHeader1FieldBuilder() { if (header1Builder_ == null) { header1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder>( getHeader1(), getParentForChildren(), isClean()); header1_ = null; } return header1Builder_; } private ibc.lightclients.tendermint.v1.Tendermint.Header header2_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder> header2Builder_; /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public boolean hasHeader2() { return header2Builder_ != null || header2_ != null; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header getHeader2() { if (header2Builder_ == null) { return header2_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header2_; } else { return header2Builder_.getMessage(); } } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public Builder setHeader2(ibc.lightclients.tendermint.v1.Tendermint.Header value) { if (header2Builder_ == null) { if (value == null) { throw new NullPointerException(); } header2_ = value; onChanged(); } else { header2Builder_.setMessage(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public Builder setHeader2( ibc.lightclients.tendermint.v1.Tendermint.Header.Builder builderForValue) { if (header2Builder_ == null) { header2_ = builderForValue.build(); onChanged(); } else { header2Builder_.setMessage(builderForValue.build()); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public Builder mergeHeader2(ibc.lightclients.tendermint.v1.Tendermint.Header value) { if (header2Builder_ == null) { if (header2_ != null) { header2_ = ibc.lightclients.tendermint.v1.Tendermint.Header.newBuilder(header2_).mergeFrom(value).buildPartial(); } else { header2_ = value; } onChanged(); } else { header2Builder_.mergeFrom(value); } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public Builder clearHeader2() { if (header2Builder_ == null) { header2_ = null; onChanged(); } else { header2_ = null; header2Builder_ = null; } return this; } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.Header.Builder getHeader2Builder() { onChanged(); return getHeader2FieldBuilder().getBuilder(); } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ public ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder getHeader2OrBuilder() { if (header2Builder_ != null) { return header2Builder_.getMessageOrBuilder(); } else { return header2_ == null ? ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance() : header2_; } } /** * .ibc.lightclients.tendermint.v1.Header header_2 = 3 [(.gogoproto.customname) = "Header2", (.gogoproto.moretags) = "yaml:\"header_2\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder> getHeader2FieldBuilder() { if (header2Builder_ == null) { header2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.lightclients.tendermint.v1.Tendermint.Header, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder, ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder>( getHeader2(), getParentForChildren(), isClean()); header2_ = null; } return header2Builder_; } @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:ibc.lightclients.tendermint.v1.Misbehaviour) } // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Misbehaviour) private static final ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour(); } public static ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Misbehaviour parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Misbehaviour(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 ibc.lightclients.tendermint.v1.Tendermint.Misbehaviour getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Header) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ boolean hasSignedHeader(); /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ tendermint.types.Types.SignedHeader getSignedHeader(); /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder(); /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ boolean hasValidatorSet(); /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet(); /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder(); /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ boolean hasTrustedHeight(); /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ ibc.core.client.v1.Client.Height getTrustedHeight(); /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ ibc.core.client.v1.Client.HeightOrBuilder getTrustedHeightOrBuilder(); /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ boolean hasTrustedValidators(); /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ tendermint.types.ValidatorOuterClass.ValidatorSet getTrustedValidators(); /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder(); } /** *
   * Header defines the Tendermint client consensus Header.
   * It encapsulates all the information necessary to update from a trusted
   * Tendermint ConsensusState. The inclusion of TrustedHeight and
   * TrustedValidators allows this update to process correctly, so long as the
   * ConsensusState for the TrustedHeight exists, this removes race conditions
   * among relayers The SignedHeader and ValidatorSet are the new untrusted update
   * fields for the client. The TrustedHeight is the height of a stored
   * ConsensusState on the client that will be used to verify the new untrusted
   * header. The Trusted ConsensusState must be within the unbonding period of
   * current time in order to correctly verify, and the TrustedValidators must
   * hash to TrustedConsensusState.NextValidatorsHash since that is the last
   * trusted validator set at the TrustedHeight.
   * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Header} */ public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Header) HeaderOrBuilder { private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tendermint.types.Types.SignedHeader.Builder subBuilder = null; if (signedHeader_ != null) { subBuilder = signedHeader_.toBuilder(); } signedHeader_ = input.readMessage(tendermint.types.Types.SignedHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signedHeader_); signedHeader_ = subBuilder.buildPartial(); } break; } case 18: { tendermint.types.ValidatorOuterClass.ValidatorSet.Builder subBuilder = null; if (validatorSet_ != null) { subBuilder = validatorSet_.toBuilder(); } validatorSet_ = input.readMessage(tendermint.types.ValidatorOuterClass.ValidatorSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validatorSet_); validatorSet_ = subBuilder.buildPartial(); } break; } case 26: { ibc.core.client.v1.Client.Height.Builder subBuilder = null; if (trustedHeight_ != null) { subBuilder = trustedHeight_.toBuilder(); } trustedHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trustedHeight_); trustedHeight_ = subBuilder.buildPartial(); } break; } case 34: { tendermint.types.ValidatorOuterClass.ValidatorSet.Builder subBuilder = null; if (trustedValidators_ != null) { subBuilder = trustedValidators_.toBuilder(); } trustedValidators_ = input.readMessage(tendermint.types.ValidatorOuterClass.ValidatorSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trustedValidators_); trustedValidators_ = 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 ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Header.class, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder.class); } public static final int SIGNED_HEADER_FIELD_NUMBER = 1; private tendermint.types.Types.SignedHeader signedHeader_; /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public boolean hasSignedHeader() { return signedHeader_ != null; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public tendermint.types.Types.SignedHeader getSignedHeader() { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { return getSignedHeader(); } public static final int VALIDATOR_SET_FIELD_NUMBER = 2; private tendermint.types.ValidatorOuterClass.ValidatorSet validatorSet_; /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public boolean hasValidatorSet() { return validatorSet_ != null; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet() { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder() { return getValidatorSet(); } public static final int TRUSTED_HEIGHT_FIELD_NUMBER = 3; private ibc.core.client.v1.Client.Height trustedHeight_; /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public boolean hasTrustedHeight() { return trustedHeight_ != null; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public ibc.core.client.v1.Client.Height getTrustedHeight() { return trustedHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : trustedHeight_; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getTrustedHeightOrBuilder() { return getTrustedHeight(); } public static final int TRUSTED_VALIDATORS_FIELD_NUMBER = 4; private tendermint.types.ValidatorOuterClass.ValidatorSet trustedValidators_; /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public boolean hasTrustedValidators() { return trustedValidators_ != null; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet getTrustedValidators() { return trustedValidators_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : trustedValidators_; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder() { return getTrustedValidators(); } 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 (signedHeader_ != null) { output.writeMessage(1, getSignedHeader()); } if (validatorSet_ != null) { output.writeMessage(2, getValidatorSet()); } if (trustedHeight_ != null) { output.writeMessage(3, getTrustedHeight()); } if (trustedValidators_ != null) { output.writeMessage(4, getTrustedValidators()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (signedHeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSignedHeader()); } if (validatorSet_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValidatorSet()); } if (trustedHeight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTrustedHeight()); } if (trustedValidators_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTrustedValidators()); } 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 ibc.lightclients.tendermint.v1.Tendermint.Header)) { return super.equals(obj); } ibc.lightclients.tendermint.v1.Tendermint.Header other = (ibc.lightclients.tendermint.v1.Tendermint.Header) obj; boolean result = true; result = result && (hasSignedHeader() == other.hasSignedHeader()); if (hasSignedHeader()) { result = result && getSignedHeader() .equals(other.getSignedHeader()); } result = result && (hasValidatorSet() == other.hasValidatorSet()); if (hasValidatorSet()) { result = result && getValidatorSet() .equals(other.getValidatorSet()); } result = result && (hasTrustedHeight() == other.hasTrustedHeight()); if (hasTrustedHeight()) { result = result && getTrustedHeight() .equals(other.getTrustedHeight()); } result = result && (hasTrustedValidators() == other.hasTrustedValidators()); if (hasTrustedValidators()) { result = result && getTrustedValidators() .equals(other.getTrustedValidators()); } 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 (hasSignedHeader()) { hash = (37 * hash) + SIGNED_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignedHeader().hashCode(); } if (hasValidatorSet()) { hash = (37 * hash) + VALIDATOR_SET_FIELD_NUMBER; hash = (53 * hash) + getValidatorSet().hashCode(); } if (hasTrustedHeight()) { hash = (37 * hash) + TRUSTED_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getTrustedHeight().hashCode(); } if (hasTrustedValidators()) { hash = (37 * hash) + TRUSTED_VALIDATORS_FIELD_NUMBER; hash = (53 * hash) + getTrustedValidators().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ibc.lightclients.tendermint.v1.Tendermint.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Header defines the Tendermint client consensus Header.
     * It encapsulates all the information necessary to update from a trusted
     * Tendermint ConsensusState. The inclusion of TrustedHeight and
     * TrustedValidators allows this update to process correctly, so long as the
     * ConsensusState for the TrustedHeight exists, this removes race conditions
     * among relayers The SignedHeader and ValidatorSet are the new untrusted update
     * fields for the client. The TrustedHeight is the height of a stored
     * ConsensusState on the client that will be used to verify the new untrusted
     * header. The Trusted ConsensusState must be within the unbonding period of
     * current time in order to correctly verify, and the TrustedValidators must
     * hash to TrustedConsensusState.NextValidatorsHash since that is the last
     * trusted validator set at the TrustedHeight.
     * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Header) ibc.lightclients.tendermint.v1.Tendermint.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Header.class, ibc.lightclients.tendermint.v1.Tendermint.Header.Builder.class); } // Construct using ibc.lightclients.tendermint.v1.Tendermint.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (signedHeaderBuilder_ == null) { signedHeader_ = null; } else { signedHeader_ = null; signedHeaderBuilder_ = null; } if (validatorSetBuilder_ == null) { validatorSet_ = null; } else { validatorSet_ = null; validatorSetBuilder_ = null; } if (trustedHeightBuilder_ == null) { trustedHeight_ = null; } else { trustedHeight_ = null; trustedHeightBuilder_ = null; } if (trustedValidatorsBuilder_ == null) { trustedValidators_ = null; } else { trustedValidators_ = null; trustedValidatorsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Header getDefaultInstanceForType() { return ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance(); } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Header build() { ibc.lightclients.tendermint.v1.Tendermint.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Header buildPartial() { ibc.lightclients.tendermint.v1.Tendermint.Header result = new ibc.lightclients.tendermint.v1.Tendermint.Header(this); if (signedHeaderBuilder_ == null) { result.signedHeader_ = signedHeader_; } else { result.signedHeader_ = signedHeaderBuilder_.build(); } if (validatorSetBuilder_ == null) { result.validatorSet_ = validatorSet_; } else { result.validatorSet_ = validatorSetBuilder_.build(); } if (trustedHeightBuilder_ == null) { result.trustedHeight_ = trustedHeight_; } else { result.trustedHeight_ = trustedHeightBuilder_.build(); } if (trustedValidatorsBuilder_ == null) { result.trustedValidators_ = trustedValidators_; } else { result.trustedValidators_ = trustedValidatorsBuilder_.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 ibc.lightclients.tendermint.v1.Tendermint.Header) { return mergeFrom((ibc.lightclients.tendermint.v1.Tendermint.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.lightclients.tendermint.v1.Tendermint.Header other) { if (other == ibc.lightclients.tendermint.v1.Tendermint.Header.getDefaultInstance()) return this; if (other.hasSignedHeader()) { mergeSignedHeader(other.getSignedHeader()); } if (other.hasValidatorSet()) { mergeValidatorSet(other.getValidatorSet()); } if (other.hasTrustedHeight()) { mergeTrustedHeight(other.getTrustedHeight()); } if (other.hasTrustedValidators()) { mergeTrustedValidators(other.getTrustedValidators()); } 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 { ibc.lightclients.tendermint.v1.Tendermint.Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.lightclients.tendermint.v1.Tendermint.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.types.Types.SignedHeader signedHeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder> signedHeaderBuilder_; /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public boolean hasSignedHeader() { return signedHeaderBuilder_ != null || signedHeader_ != null; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public tendermint.types.Types.SignedHeader getSignedHeader() { if (signedHeaderBuilder_ == null) { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } else { return signedHeaderBuilder_.getMessage(); } } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public Builder setSignedHeader(tendermint.types.Types.SignedHeader value) { if (signedHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signedHeader_ = value; onChanged(); } else { signedHeaderBuilder_.setMessage(value); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public Builder setSignedHeader( tendermint.types.Types.SignedHeader.Builder builderForValue) { if (signedHeaderBuilder_ == null) { signedHeader_ = builderForValue.build(); onChanged(); } else { signedHeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public Builder mergeSignedHeader(tendermint.types.Types.SignedHeader value) { if (signedHeaderBuilder_ == null) { if (signedHeader_ != null) { signedHeader_ = tendermint.types.Types.SignedHeader.newBuilder(signedHeader_).mergeFrom(value).buildPartial(); } else { signedHeader_ = value; } onChanged(); } else { signedHeaderBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public Builder clearSignedHeader() { if (signedHeaderBuilder_ == null) { signedHeader_ = null; onChanged(); } else { signedHeader_ = null; signedHeaderBuilder_ = null; } return this; } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public tendermint.types.Types.SignedHeader.Builder getSignedHeaderBuilder() { onChanged(); return getSignedHeaderFieldBuilder().getBuilder(); } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ public tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { if (signedHeaderBuilder_ != null) { return signedHeaderBuilder_.getMessageOrBuilder(); } else { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } } /** * .tendermint.types.SignedHeader signed_header = 1 [(.gogoproto.embed) = true, (.gogoproto.moretags) = "yaml:\"signed_header\""]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder> getSignedHeaderFieldBuilder() { if (signedHeaderBuilder_ == null) { signedHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder>( getSignedHeader(), getParentForChildren(), isClean()); signedHeader_ = null; } return signedHeaderBuilder_; } private tendermint.types.ValidatorOuterClass.ValidatorSet validatorSet_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> validatorSetBuilder_; /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public boolean hasValidatorSet() { return validatorSetBuilder_ != null || validatorSet_ != null; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet() { if (validatorSetBuilder_ == null) { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } else { return validatorSetBuilder_.getMessage(); } } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public Builder setValidatorSet(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (validatorSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validatorSet_ = value; onChanged(); } else { validatorSetBuilder_.setMessage(value); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public Builder setValidatorSet( tendermint.types.ValidatorOuterClass.ValidatorSet.Builder builderForValue) { if (validatorSetBuilder_ == null) { validatorSet_ = builderForValue.build(); onChanged(); } else { validatorSetBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public Builder mergeValidatorSet(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (validatorSetBuilder_ == null) { if (validatorSet_ != null) { validatorSet_ = tendermint.types.ValidatorOuterClass.ValidatorSet.newBuilder(validatorSet_).mergeFrom(value).buildPartial(); } else { validatorSet_ = value; } onChanged(); } else { validatorSetBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public Builder clearValidatorSet() { if (validatorSetBuilder_ == null) { validatorSet_ = null; onChanged(); } else { validatorSet_ = null; validatorSetBuilder_ = null; } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet.Builder getValidatorSetBuilder() { onChanged(); return getValidatorSetFieldBuilder().getBuilder(); } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder() { if (validatorSetBuilder_ != null) { return validatorSetBuilder_.getMessageOrBuilder(); } else { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } } /** * .tendermint.types.ValidatorSet validator_set = 2 [(.gogoproto.moretags) = "yaml:\"validator_set\""]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> getValidatorSetFieldBuilder() { if (validatorSetBuilder_ == null) { validatorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder>( getValidatorSet(), getParentForChildren(), isClean()); validatorSet_ = null; } return validatorSetBuilder_; } private ibc.core.client.v1.Client.Height trustedHeight_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> trustedHeightBuilder_; /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public boolean hasTrustedHeight() { return trustedHeightBuilder_ != null || trustedHeight_ != null; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public ibc.core.client.v1.Client.Height getTrustedHeight() { if (trustedHeightBuilder_ == null) { return trustedHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : trustedHeight_; } else { return trustedHeightBuilder_.getMessage(); } } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public Builder setTrustedHeight(ibc.core.client.v1.Client.Height value) { if (trustedHeightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trustedHeight_ = value; onChanged(); } else { trustedHeightBuilder_.setMessage(value); } return this; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public Builder setTrustedHeight( ibc.core.client.v1.Client.Height.Builder builderForValue) { if (trustedHeightBuilder_ == null) { trustedHeight_ = builderForValue.build(); onChanged(); } else { trustedHeightBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public Builder mergeTrustedHeight(ibc.core.client.v1.Client.Height value) { if (trustedHeightBuilder_ == null) { if (trustedHeight_ != null) { trustedHeight_ = ibc.core.client.v1.Client.Height.newBuilder(trustedHeight_).mergeFrom(value).buildPartial(); } else { trustedHeight_ = value; } onChanged(); } else { trustedHeightBuilder_.mergeFrom(value); } return this; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public Builder clearTrustedHeight() { if (trustedHeightBuilder_ == null) { trustedHeight_ = null; onChanged(); } else { trustedHeight_ = null; trustedHeightBuilder_ = null; } return this; } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public ibc.core.client.v1.Client.Height.Builder getTrustedHeightBuilder() { onChanged(); return getTrustedHeightFieldBuilder().getBuilder(); } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ public ibc.core.client.v1.Client.HeightOrBuilder getTrustedHeightOrBuilder() { if (trustedHeightBuilder_ != null) { return trustedHeightBuilder_.getMessageOrBuilder(); } else { return trustedHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : trustedHeight_; } } /** * .ibc.core.client.v1.Height trusted_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"trusted_height\""]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> getTrustedHeightFieldBuilder() { if (trustedHeightBuilder_ == null) { trustedHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>( getTrustedHeight(), getParentForChildren(), isClean()); trustedHeight_ = null; } return trustedHeightBuilder_; } private tendermint.types.ValidatorOuterClass.ValidatorSet trustedValidators_ = null; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> trustedValidatorsBuilder_; /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public boolean hasTrustedValidators() { return trustedValidatorsBuilder_ != null || trustedValidators_ != null; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet getTrustedValidators() { if (trustedValidatorsBuilder_ == null) { return trustedValidators_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : trustedValidators_; } else { return trustedValidatorsBuilder_.getMessage(); } } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public Builder setTrustedValidators(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (trustedValidatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trustedValidators_ = value; onChanged(); } else { trustedValidatorsBuilder_.setMessage(value); } return this; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public Builder setTrustedValidators( tendermint.types.ValidatorOuterClass.ValidatorSet.Builder builderForValue) { if (trustedValidatorsBuilder_ == null) { trustedValidators_ = builderForValue.build(); onChanged(); } else { trustedValidatorsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public Builder mergeTrustedValidators(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (trustedValidatorsBuilder_ == null) { if (trustedValidators_ != null) { trustedValidators_ = tendermint.types.ValidatorOuterClass.ValidatorSet.newBuilder(trustedValidators_).mergeFrom(value).buildPartial(); } else { trustedValidators_ = value; } onChanged(); } else { trustedValidatorsBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public Builder clearTrustedValidators() { if (trustedValidatorsBuilder_ == null) { trustedValidators_ = null; onChanged(); } else { trustedValidators_ = null; trustedValidatorsBuilder_ = null; } return this; } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSet.Builder getTrustedValidatorsBuilder() { onChanged(); return getTrustedValidatorsFieldBuilder().getBuilder(); } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getTrustedValidatorsOrBuilder() { if (trustedValidatorsBuilder_ != null) { return trustedValidatorsBuilder_.getMessageOrBuilder(); } else { return trustedValidators_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : trustedValidators_; } } /** * .tendermint.types.ValidatorSet trusted_validators = 4 [(.gogoproto.moretags) = "yaml:\"trusted_validators\""]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> getTrustedValidatorsFieldBuilder() { if (trustedValidatorsBuilder_ == null) { trustedValidatorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder>( getTrustedValidators(), getParentForChildren(), isClean()); trustedValidators_ = null; } return trustedValidatorsBuilder_; } @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:ibc.lightclients.tendermint.v1.Header) } // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Header) private static final ibc.lightclients.tendermint.v1.Tendermint.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Tendermint.Header(); } public static ibc.lightclients.tendermint.v1.Tendermint.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Header(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 ibc.lightclients.tendermint.v1.Tendermint.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FractionOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.lightclients.tendermint.v1.Fraction) com.google.protobuf.MessageOrBuilder { /** * uint64 numerator = 1; */ long getNumerator(); /** * uint64 denominator = 2; */ long getDenominator(); } /** *
   * Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.
   * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Fraction} */ public static final class Fraction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.lightclients.tendermint.v1.Fraction) FractionOrBuilder { private static final long serialVersionUID = 0L; // Use Fraction.newBuilder() to construct. private Fraction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fraction() { numerator_ = 0L; denominator_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Fraction( 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: { numerator_ = input.readUInt64(); break; } case 16: { denominator_ = 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 ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Fraction.class, ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder.class); } public static final int NUMERATOR_FIELD_NUMBER = 1; private long numerator_; /** * uint64 numerator = 1; */ public long getNumerator() { return numerator_; } public static final int DENOMINATOR_FIELD_NUMBER = 2; private long denominator_; /** * uint64 denominator = 2; */ public long getDenominator() { return denominator_; } 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 (numerator_ != 0L) { output.writeUInt64(1, numerator_); } if (denominator_ != 0L) { output.writeUInt64(2, denominator_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numerator_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, numerator_); } if (denominator_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, denominator_); } 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 ibc.lightclients.tendermint.v1.Tendermint.Fraction)) { return super.equals(obj); } ibc.lightclients.tendermint.v1.Tendermint.Fraction other = (ibc.lightclients.tendermint.v1.Tendermint.Fraction) obj; boolean result = true; result = result && (getNumerator() == other.getNumerator()); result = result && (getDenominator() == other.getDenominator()); 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) + NUMERATOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumerator()); hash = (37 * hash) + DENOMINATOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDenominator()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction 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 ibc.lightclients.tendermint.v1.Tendermint.Fraction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction 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 ibc.lightclients.tendermint.v1.Tendermint.Fraction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction 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(ibc.lightclients.tendermint.v1.Tendermint.Fraction 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; } /** *
     * Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.
     * 
* * Protobuf type {@code ibc.lightclients.tendermint.v1.Fraction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.lightclients.tendermint.v1.Fraction) ibc.lightclients.tendermint.v1.Tendermint.FractionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.lightclients.tendermint.v1.Tendermint.Fraction.class, ibc.lightclients.tendermint.v1.Tendermint.Fraction.Builder.class); } // Construct using ibc.lightclients.tendermint.v1.Tendermint.Fraction.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(); numerator_ = 0L; denominator_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.lightclients.tendermint.v1.Tendermint.internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Fraction getDefaultInstanceForType() { return ibc.lightclients.tendermint.v1.Tendermint.Fraction.getDefaultInstance(); } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Fraction build() { ibc.lightclients.tendermint.v1.Tendermint.Fraction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.lightclients.tendermint.v1.Tendermint.Fraction buildPartial() { ibc.lightclients.tendermint.v1.Tendermint.Fraction result = new ibc.lightclients.tendermint.v1.Tendermint.Fraction(this); result.numerator_ = numerator_; result.denominator_ = denominator_; 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 ibc.lightclients.tendermint.v1.Tendermint.Fraction) { return mergeFrom((ibc.lightclients.tendermint.v1.Tendermint.Fraction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.lightclients.tendermint.v1.Tendermint.Fraction other) { if (other == ibc.lightclients.tendermint.v1.Tendermint.Fraction.getDefaultInstance()) return this; if (other.getNumerator() != 0L) { setNumerator(other.getNumerator()); } if (other.getDenominator() != 0L) { setDenominator(other.getDenominator()); } 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 { ibc.lightclients.tendermint.v1.Tendermint.Fraction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.lightclients.tendermint.v1.Tendermint.Fraction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long numerator_ ; /** * uint64 numerator = 1; */ public long getNumerator() { return numerator_; } /** * uint64 numerator = 1; */ public Builder setNumerator(long value) { numerator_ = value; onChanged(); return this; } /** * uint64 numerator = 1; */ public Builder clearNumerator() { numerator_ = 0L; onChanged(); return this; } private long denominator_ ; /** * uint64 denominator = 2; */ public long getDenominator() { return denominator_; } /** * uint64 denominator = 2; */ public Builder setDenominator(long value) { denominator_ = value; onChanged(); return this; } /** * uint64 denominator = 2; */ public Builder clearDenominator() { denominator_ = 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:ibc.lightclients.tendermint.v1.Fraction) } // @@protoc_insertion_point(class_scope:ibc.lightclients.tendermint.v1.Fraction) private static final ibc.lightclients.tendermint.v1.Tendermint.Fraction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.lightclients.tendermint.v1.Tendermint.Fraction(); } public static ibc.lightclients.tendermint.v1.Tendermint.Fraction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Fraction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Fraction(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 ibc.lightclients.tendermint.v1.Tendermint.Fraction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_lightclients_tendermint_v1_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_lightclients_tendermint_v1_Fraction_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/ibc/lightclients/tendermint/v1/tenderm" + "int.proto\022\036ibc.lightclients.tendermint.v" + "1\032 tendermint/types/validator.proto\032\034ten" + "dermint/types/types.proto\032\023confio/proofs" + ".proto\032\036google/protobuf/duration.proto\032\037" + "google/protobuf/timestamp.proto\032\037ibc/cor" + "e/client/v1/client.proto\032\'ibc/core/commi" + "tment/v1/commitment.proto\032\024gogoproto/gog" + "o.proto\"\270\006\n\013ClientState\022\020\n\010chain_id\030\001 \001(" + "\t\022Y\n\013trust_level\030\002 \001(\0132(.ibc.lightclient" + "s.tendermint.v1.FractionB\032\310\336\037\000\362\336\037\022yaml:\"" + "trust_level\"\022V\n\017trusting_period\030\003 \001(\0132\031." + "google.protobuf.DurationB\"\310\336\037\000\230\337\037\001\362\336\037\026ya" + "ml:\"trusting_period\"\022X\n\020unbonding_period" + "\030\004 \001(\0132\031.google.protobuf.DurationB#\310\336\037\000\230" + "\337\037\001\362\336\037\027yaml:\"unbonding_period\"\022V\n\017max_cl" + "ock_drift\030\005 \001(\0132\031.google.protobuf.Durati" + "onB\"\310\336\037\000\230\337\037\001\362\336\037\026yaml:\"max_clock_drift\"\022O" + "\n\rfrozen_height\030\006 \001(\0132\032.ibc.core.client." + "v1.HeightB\034\310\336\037\000\362\336\037\024yaml:\"frozen_height\"\022" + "O\n\rlatest_height\030\007 \001(\0132\032.ibc.core.client" + ".v1.HeightB\034\310\336\037\000\362\336\037\024yaml:\"latest_height\"" + "\022=\n\013proof_specs\030\010 \003(\0132\020.ics23.ProofSpecB" + "\026\362\336\037\022yaml:\"proof_specs\"\022-\n\014upgrade_path\030" + "\t \003(\tB\027\362\336\037\023yaml:\"upgrade_path\"\022G\n\031allow_" + "update_after_expiry\030\n \001(\010B$\362\336\037 yaml:\"all" + "ow_update_after_expiry\"\022S\n\037allow_update_" + "after_misbehaviour\030\013 \001(\010B*\362\336\037&yaml:\"allo" + "w_update_after_misbehaviour\":\004\210\240\037\000\"\376\001\n\016C" + "onsensusState\0227\n\ttimestamp\030\001 \001(\0132\032.googl" + "e.protobuf.TimestampB\010\310\336\037\000\220\337\037\001\0226\n\004root\030\002" + " \001(\0132\".ibc.core.commitment.v1.MerkleRoot" + "B\004\310\336\037\000\022u\n\024next_validators_hash\030\003 \001(\014BW\372\336" + "\0374github.com/tendermint/tendermint/libs/" + "bytes.HexBytes\362\336\037\033yaml:\"next_validators_" + "hash\":\004\210\240\037\000\"\361\001\n\014Misbehaviour\022\'\n\tclient_i" + "d\030\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\022X\n\010header_" + "1\030\002 \001(\0132&.ibc.lightclients.tendermint.v1" + ".HeaderB\036\342\336\037\007Header1\362\336\037\017yaml:\"header_1\"\022" + "X\n\010header_2\030\003 \001(\0132&.ibc.lightclients.ten" + "dermint.v1.HeaderB\036\342\336\037\007Header2\362\336\037\017yaml:\"" + "header_2\":\004\210\240\037\000\"\334\002\n\006Header\022S\n\rsigned_hea" + "der\030\001 \001(\0132\036.tendermint.types.SignedHeade" + "rB\034\320\336\037\001\362\336\037\024yaml:\"signed_header\"\022O\n\rvalid" + "ator_set\030\002 \001(\0132\036.tendermint.types.Valida" + "torSetB\030\362\336\037\024yaml:\"validator_set\"\022Q\n\016trus" + "ted_height\030\003 \001(\0132\032.ibc.core.client.v1.He" + "ightB\035\310\336\037\000\362\336\037\025yaml:\"trusted_height\"\022Y\n\022t" + "rusted_validators\030\004 \001(\0132\036.tendermint.typ" + "es.ValidatorSetB\035\362\336\037\031yaml:\"trusted_valid" + "ators\"\"2\n\010Fraction\022\021\n\tnumerator\030\001 \001(\004\022\023\n" + "\013denominator\030\002 \001(\004BFZDgithub.com/cosmos/" + "cosmos-sdk/x/ibc/light-clients/07-tender" + "mint/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { tendermint.types.ValidatorOuterClass.getDescriptor(), tendermint.types.Types.getDescriptor(), tech.confio.ics23.Proofs.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), ibc.core.client.v1.Client.getDescriptor(), ibc.core.commitment.v1.Commitment.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), }, assigner); internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ibc_lightclients_tendermint_v1_ClientState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_lightclients_tendermint_v1_ClientState_descriptor, new java.lang.String[] { "ChainId", "TrustLevel", "TrustingPeriod", "UnbondingPeriod", "MaxClockDrift", "FrozenHeight", "LatestHeight", "ProofSpecs", "UpgradePath", "AllowUpdateAfterExpiry", "AllowUpdateAfterMisbehaviour", }); internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ibc_lightclients_tendermint_v1_ConsensusState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_lightclients_tendermint_v1_ConsensusState_descriptor, new java.lang.String[] { "Timestamp", "Root", "NextValidatorsHash", }); internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_lightclients_tendermint_v1_Misbehaviour_descriptor, new java.lang.String[] { "ClientId", "Header1", "Header2", }); internal_static_ibc_lightclients_tendermint_v1_Header_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ibc_lightclients_tendermint_v1_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_lightclients_tendermint_v1_Header_descriptor, new java.lang.String[] { "SignedHeader", "ValidatorSet", "TrustedHeight", "TrustedValidators", }); internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_ibc_lightclients_tendermint_v1_Fraction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_lightclients_tendermint_v1_Fraction_descriptor, new java.lang.String[] { "Numerator", "Denominator", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.casttype); registry.add(com.google.protobuf.GoGoProtos.customname); registry.add(com.google.protobuf.GoGoProtos.embed); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.stdduration); registry.add(com.google.protobuf.GoGoProtos.stdtime); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); tendermint.types.ValidatorOuterClass.getDescriptor(); tendermint.types.Types.getDescriptor(); tech.confio.ics23.Proofs.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); ibc.core.client.v1.Client.getDescriptor(); ibc.core.commitment.v1.Commitment.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy