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

cosmos.slashing.v1beta1.Genesis Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cosmos/slashing/v1beta1/genesis.proto

package cosmos.slashing.v1beta1;

public final class Genesis {
  private Genesis() {}
  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 GenesisStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.GenesisState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ boolean hasParams(); /** *
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.slashing.v1beta1.Slashing.Params getParams(); /** *
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder getParamsOrBuilder(); /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ java.util.List getSigningInfosList(); /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ cosmos.slashing.v1beta1.Genesis.SigningInfo getSigningInfos(int index); /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ int getSigningInfosCount(); /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ java.util.List getSigningInfosOrBuilderList(); /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder getSigningInfosOrBuilder( int index); /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ java.util.List getMissedBlocksList(); /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getMissedBlocks(int index); /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ int getMissedBlocksCount(); /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ java.util.List getMissedBlocksOrBuilderList(); /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( int index); } /** *
   * GenesisState defines the slashing module's genesis state.
   * 
* * Protobuf type {@code cosmos.slashing.v1beta1.GenesisState} */ public static final class GenesisState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.GenesisState) GenesisStateOrBuilder { private static final long serialVersionUID = 0L; // Use GenesisState.newBuilder() to construct. private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenesisState() { signingInfos_ = java.util.Collections.emptyList(); missedBlocks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenesisState( 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: { cosmos.slashing.v1beta1.Slashing.Params.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(cosmos.slashing.v1beta1.Slashing.Params.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(params_); params_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { signingInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } signingInfos_.add( input.readMessage(cosmos.slashing.v1beta1.Genesis.SigningInfo.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { missedBlocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } missedBlocks_.add( input.readMessage(cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { signingInfos_ = java.util.Collections.unmodifiableList(signingInfos_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.GenesisState.class, cosmos.slashing.v1beta1.Genesis.GenesisState.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private cosmos.slashing.v1beta1.Slashing.Params params_; /** *
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return params_ != null; } /** *
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.slashing.v1beta1.Slashing.Params getParams() { return params_ == null ? cosmos.slashing.v1beta1.Slashing.Params.getDefaultInstance() : params_; } /** *
     * params defines all the paramaters of related to deposit.
     * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder getParamsOrBuilder() { return getParams(); } public static final int SIGNING_INFOS_FIELD_NUMBER = 2; private java.util.List signingInfos_; /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public java.util.List getSigningInfosList() { return signingInfos_; } /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public java.util.List getSigningInfosOrBuilderList() { return signingInfos_; } /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public int getSigningInfosCount() { return signingInfos_.size(); } /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfo getSigningInfos(int index) { return signingInfos_.get(index); } /** *
     * signing_infos represents a map between validator addresses and their
     * signing infos.
     * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder getSigningInfosOrBuilder( int index) { return signingInfos_.get(index); } public static final int MISSED_BLOCKS_FIELD_NUMBER = 3; private java.util.List missedBlocks_; /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksList() { return missedBlocks_; } /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksOrBuilderList() { return missedBlocks_; } /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public int getMissedBlocksCount() { return missedBlocks_.size(); } /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getMissedBlocks(int index) { return missedBlocks_.get(index); } /** *
     * signing_infos represents a map between validator addresses and their
     * missed blocks.
     * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( int index) { return missedBlocks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (params_ != null) { output.writeMessage(1, getParams()); } for (int i = 0; i < signingInfos_.size(); i++) { output.writeMessage(2, signingInfos_.get(i)); } for (int i = 0; i < missedBlocks_.size(); i++) { output.writeMessage(3, missedBlocks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (params_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParams()); } for (int i = 0; i < signingInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, signingInfos_.get(i)); } for (int i = 0; i < missedBlocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, missedBlocks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.slashing.v1beta1.Genesis.GenesisState)) { return super.equals(obj); } cosmos.slashing.v1beta1.Genesis.GenesisState other = (cosmos.slashing.v1beta1.Genesis.GenesisState) obj; boolean result = true; result = result && (hasParams() == other.hasParams()); if (hasParams()) { result = result && getParams() .equals(other.getParams()); } result = result && getSigningInfosList() .equals(other.getSigningInfosList()); result = result && getMissedBlocksList() .equals(other.getMissedBlocksList()); 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (getSigningInfosCount() > 0) { hash = (37 * hash) + SIGNING_INFOS_FIELD_NUMBER; hash = (53 * hash) + getSigningInfosList().hashCode(); } if (getMissedBlocksCount() > 0) { hash = (37 * hash) + MISSED_BLOCKS_FIELD_NUMBER; hash = (53 * hash) + getMissedBlocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.GenesisState 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 cosmos.slashing.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.GenesisState 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 cosmos.slashing.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.GenesisState 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(cosmos.slashing.v1beta1.Genesis.GenesisState 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; } /** *
     * GenesisState defines the slashing module's genesis state.
     * 
* * Protobuf type {@code cosmos.slashing.v1beta1.GenesisState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.GenesisState) cosmos.slashing.v1beta1.Genesis.GenesisStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.GenesisState.class, cosmos.slashing.v1beta1.Genesis.GenesisState.Builder.class); } // Construct using cosmos.slashing.v1beta1.Genesis.GenesisState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSigningInfosFieldBuilder(); getMissedBlocksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramsBuilder_ == null) { params_ = null; } else { params_ = null; paramsBuilder_ = null; } if (signingInfosBuilder_ == null) { signingInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { signingInfosBuilder_.clear(); } if (missedBlocksBuilder_ == null) { missedBlocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { missedBlocksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return cosmos.slashing.v1beta1.Genesis.GenesisState.getDefaultInstance(); } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.GenesisState build() { cosmos.slashing.v1beta1.Genesis.GenesisState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.GenesisState buildPartial() { cosmos.slashing.v1beta1.Genesis.GenesisState result = new cosmos.slashing.v1beta1.Genesis.GenesisState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (paramsBuilder_ == null) { result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (signingInfosBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { signingInfos_ = java.util.Collections.unmodifiableList(signingInfos_); bitField0_ = (bitField0_ & ~0x00000002); } result.signingInfos_ = signingInfos_; } else { result.signingInfos_ = signingInfosBuilder_.build(); } if (missedBlocksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); bitField0_ = (bitField0_ & ~0x00000004); } result.missedBlocks_ = missedBlocks_; } else { result.missedBlocks_ = missedBlocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.slashing.v1beta1.Genesis.GenesisState) { return mergeFrom((cosmos.slashing.v1beta1.Genesis.GenesisState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.slashing.v1beta1.Genesis.GenesisState other) { if (other == cosmos.slashing.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (signingInfosBuilder_ == null) { if (!other.signingInfos_.isEmpty()) { if (signingInfos_.isEmpty()) { signingInfos_ = other.signingInfos_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSigningInfosIsMutable(); signingInfos_.addAll(other.signingInfos_); } onChanged(); } } else { if (!other.signingInfos_.isEmpty()) { if (signingInfosBuilder_.isEmpty()) { signingInfosBuilder_.dispose(); signingInfosBuilder_ = null; signingInfos_ = other.signingInfos_; bitField0_ = (bitField0_ & ~0x00000002); signingInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSigningInfosFieldBuilder() : null; } else { signingInfosBuilder_.addAllMessages(other.signingInfos_); } } } if (missedBlocksBuilder_ == null) { if (!other.missedBlocks_.isEmpty()) { if (missedBlocks_.isEmpty()) { missedBlocks_ = other.missedBlocks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMissedBlocksIsMutable(); missedBlocks_.addAll(other.missedBlocks_); } onChanged(); } } else { if (!other.missedBlocks_.isEmpty()) { if (missedBlocksBuilder_.isEmpty()) { missedBlocksBuilder_.dispose(); missedBlocksBuilder_ = null; missedBlocks_ = other.missedBlocks_; bitField0_ = (bitField0_ & ~0x00000004); missedBlocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMissedBlocksFieldBuilder() : null; } else { missedBlocksBuilder_.addAllMessages(other.missedBlocks_); } } } 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 { cosmos.slashing.v1beta1.Genesis.GenesisState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.slashing.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private cosmos.slashing.v1beta1.Slashing.Params params_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.Params, cosmos.slashing.v1beta1.Slashing.Params.Builder, cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder> paramsBuilder_; /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.slashing.v1beta1.Slashing.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? cosmos.slashing.v1beta1.Slashing.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams(cosmos.slashing.v1beta1.Slashing.Params value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; onChanged(); } else { paramsBuilder_.setMessage(value); } return this; } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams( cosmos.slashing.v1beta1.Slashing.Params.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); onChanged(); } else { paramsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParams(cosmos.slashing.v1beta1.Slashing.Params value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = cosmos.slashing.v1beta1.Slashing.Params.newBuilder(params_).mergeFrom(value).buildPartial(); } else { params_ = value; } onChanged(); } else { paramsBuilder_.mergeFrom(value); } return this; } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = null; onChanged(); } else { params_ = null; paramsBuilder_ = null; } return this; } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.slashing.v1beta1.Slashing.Params.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? cosmos.slashing.v1beta1.Slashing.Params.getDefaultInstance() : params_; } } /** *
       * params defines all the paramaters of related to deposit.
       * 
* * .cosmos.slashing.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.Params, cosmos.slashing.v1beta1.Slashing.Params.Builder, cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.Params, cosmos.slashing.v1beta1.Slashing.Params.Builder, cosmos.slashing.v1beta1.Slashing.ParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private java.util.List signingInfos_ = java.util.Collections.emptyList(); private void ensureSigningInfosIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { signingInfos_ = new java.util.ArrayList(signingInfos_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.SigningInfo, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder, cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder> signingInfosBuilder_; /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public java.util.List getSigningInfosList() { if (signingInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(signingInfos_); } else { return signingInfosBuilder_.getMessageList(); } } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public int getSigningInfosCount() { if (signingInfosBuilder_ == null) { return signingInfos_.size(); } else { return signingInfosBuilder_.getCount(); } } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfo getSigningInfos(int index) { if (signingInfosBuilder_ == null) { return signingInfos_.get(index); } else { return signingInfosBuilder_.getMessage(index); } } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder setSigningInfos( int index, cosmos.slashing.v1beta1.Genesis.SigningInfo value) { if (signingInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSigningInfosIsMutable(); signingInfos_.set(index, value); onChanged(); } else { signingInfosBuilder_.setMessage(index, value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder setSigningInfos( int index, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder builderForValue) { if (signingInfosBuilder_ == null) { ensureSigningInfosIsMutable(); signingInfos_.set(index, builderForValue.build()); onChanged(); } else { signingInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder addSigningInfos(cosmos.slashing.v1beta1.Genesis.SigningInfo value) { if (signingInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSigningInfosIsMutable(); signingInfos_.add(value); onChanged(); } else { signingInfosBuilder_.addMessage(value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder addSigningInfos( int index, cosmos.slashing.v1beta1.Genesis.SigningInfo value) { if (signingInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSigningInfosIsMutable(); signingInfos_.add(index, value); onChanged(); } else { signingInfosBuilder_.addMessage(index, value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder addSigningInfos( cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder builderForValue) { if (signingInfosBuilder_ == null) { ensureSigningInfosIsMutable(); signingInfos_.add(builderForValue.build()); onChanged(); } else { signingInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder addSigningInfos( int index, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder builderForValue) { if (signingInfosBuilder_ == null) { ensureSigningInfosIsMutable(); signingInfos_.add(index, builderForValue.build()); onChanged(); } else { signingInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder addAllSigningInfos( java.lang.Iterable values) { if (signingInfosBuilder_ == null) { ensureSigningInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signingInfos_); onChanged(); } else { signingInfosBuilder_.addAllMessages(values); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder clearSigningInfos() { if (signingInfosBuilder_ == null) { signingInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { signingInfosBuilder_.clear(); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public Builder removeSigningInfos(int index) { if (signingInfosBuilder_ == null) { ensureSigningInfosIsMutable(); signingInfos_.remove(index); onChanged(); } else { signingInfosBuilder_.remove(index); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder getSigningInfosBuilder( int index) { return getSigningInfosFieldBuilder().getBuilder(index); } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder getSigningInfosOrBuilder( int index) { if (signingInfosBuilder_ == null) { return signingInfos_.get(index); } else { return signingInfosBuilder_.getMessageOrBuilder(index); } } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public java.util.List getSigningInfosOrBuilderList() { if (signingInfosBuilder_ != null) { return signingInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signingInfos_); } } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder addSigningInfosBuilder() { return getSigningInfosFieldBuilder().addBuilder( cosmos.slashing.v1beta1.Genesis.SigningInfo.getDefaultInstance()); } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder addSigningInfosBuilder( int index) { return getSigningInfosFieldBuilder().addBuilder( index, cosmos.slashing.v1beta1.Genesis.SigningInfo.getDefaultInstance()); } /** *
       * signing_infos represents a map between validator addresses and their
       * signing infos.
       * 
* * repeated .cosmos.slashing.v1beta1.SigningInfo signing_infos = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"signing_infos\""]; */ public java.util.List getSigningInfosBuilderList() { return getSigningInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.SigningInfo, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder, cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder> getSigningInfosFieldBuilder() { if (signingInfosBuilder_ == null) { signingInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.SigningInfo, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder, cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder>( signingInfos_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); signingInfos_ = null; } return signingInfosBuilder_; } private java.util.List missedBlocks_ = java.util.Collections.emptyList(); private void ensureMissedBlocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { missedBlocks_ = new java.util.ArrayList(missedBlocks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder> missedBlocksBuilder_; /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksList() { if (missedBlocksBuilder_ == null) { return java.util.Collections.unmodifiableList(missedBlocks_); } else { return missedBlocksBuilder_.getMessageList(); } } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public int getMissedBlocksCount() { if (missedBlocksBuilder_ == null) { return missedBlocks_.size(); } else { return missedBlocksBuilder_.getCount(); } } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getMissedBlocks(int index) { if (missedBlocksBuilder_ == null) { return missedBlocks_.get(index); } else { return missedBlocksBuilder_.getMessage(index); } } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder setMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.set(index, value); onChanged(); } else { missedBlocksBuilder_.setMessage(index, value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder setMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.set(index, builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks(cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.add(value); onChanged(); } else { missedBlocksBuilder_.addMessage(value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.add(index, value); onChanged(); } else { missedBlocksBuilder_.addMessage(index, value); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.add(builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.add(index, builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addAllMissedBlocks( java.lang.Iterable values) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, missedBlocks_); onChanged(); } else { missedBlocksBuilder_.addAllMessages(values); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder clearMissedBlocks() { if (missedBlocksBuilder_ == null) { missedBlocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { missedBlocksBuilder_.clear(); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder removeMissedBlocks(int index) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.remove(index); onChanged(); } else { missedBlocksBuilder_.remove(index); } return this; } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder getMissedBlocksBuilder( int index) { return getMissedBlocksFieldBuilder().getBuilder(index); } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder getMissedBlocksOrBuilder( int index) { if (missedBlocksBuilder_ == null) { return missedBlocks_.get(index); } else { return missedBlocksBuilder_.getMessageOrBuilder(index); } } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksOrBuilderList() { if (missedBlocksBuilder_ != null) { return missedBlocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(missedBlocks_); } } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder addMissedBlocksBuilder() { return getMissedBlocksFieldBuilder().addBuilder( cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.getDefaultInstance()); } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder addMissedBlocksBuilder( int index) { return getMissedBlocksFieldBuilder().addBuilder( index, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.getDefaultInstance()); } /** *
       * signing_infos represents a map between validator addresses and their
       * missed blocks.
       * 
* * repeated .cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksBuilderList() { return getMissedBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder> getMissedBlocksFieldBuilder() { if (missedBlocksBuilder_ == null) { missedBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder>( missedBlocks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); missedBlocks_ = null; } return missedBlocksBuilder_; } @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:cosmos.slashing.v1beta1.GenesisState) } // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.GenesisState) private static final cosmos.slashing.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.Genesis.GenesisState(); } public static cosmos.slashing.v1beta1.Genesis.GenesisState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenesisState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenesisState(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 cosmos.slashing.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SigningInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.SigningInfo) com.google.protobuf.MessageOrBuilder { /** *
     * address is the validator address.
     * 
* * string address = 1; */ java.lang.String getAddress(); /** *
     * address is the validator address.
     * 
* * string address = 1; */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ boolean hasValidatorSigningInfo(); /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo getValidatorSigningInfo(); /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder(); } /** *
   * SigningInfo stores validator signing info of corresponding address.
   * 
* * Protobuf type {@code cosmos.slashing.v1beta1.SigningInfo} */ public static final class SigningInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.SigningInfo) SigningInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SigningInfo.newBuilder() to construct. private SigningInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SigningInfo() { address_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SigningInfo( 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(); address_ = s; break; } case 18: { cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder subBuilder = null; if (validatorSigningInfo_ != null) { subBuilder = validatorSigningInfo_.toBuilder(); } validatorSigningInfo_ = input.readMessage(cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validatorSigningInfo_); validatorSigningInfo_ = 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 cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.SigningInfo.class, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * address is the validator address.
     * 
* * string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * address is the validator address.
     * 
* * string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_SIGNING_INFO_FIELD_NUMBER = 2; private cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo validatorSigningInfo_; /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public boolean hasValidatorSigningInfo() { return validatorSigningInfo_ != null; } /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo getValidatorSigningInfo() { return validatorSigningInfo_ == null ? cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; } /** *
     * validator_signing_info represents the signing info of this validator.
     * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder() { return getValidatorSigningInfo(); } 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 (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (validatorSigningInfo_ != null) { output.writeMessage(2, getValidatorSigningInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (validatorSigningInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValidatorSigningInfo()); } 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 cosmos.slashing.v1beta1.Genesis.SigningInfo)) { return super.equals(obj); } cosmos.slashing.v1beta1.Genesis.SigningInfo other = (cosmos.slashing.v1beta1.Genesis.SigningInfo) obj; boolean result = true; result = result && getAddress() .equals(other.getAddress()); result = result && (hasValidatorSigningInfo() == other.hasValidatorSigningInfo()); if (hasValidatorSigningInfo()) { result = result && getValidatorSigningInfo() .equals(other.getValidatorSigningInfo()); } 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) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (hasValidatorSigningInfo()) { hash = (37 * hash) + VALIDATOR_SIGNING_INFO_FIELD_NUMBER; hash = (53 * hash) + getValidatorSigningInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo 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 cosmos.slashing.v1beta1.Genesis.SigningInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo 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 cosmos.slashing.v1beta1.Genesis.SigningInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo 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(cosmos.slashing.v1beta1.Genesis.SigningInfo 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; } /** *
     * SigningInfo stores validator signing info of corresponding address.
     * 
* * Protobuf type {@code cosmos.slashing.v1beta1.SigningInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.SigningInfo) cosmos.slashing.v1beta1.Genesis.SigningInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.SigningInfo.class, cosmos.slashing.v1beta1.Genesis.SigningInfo.Builder.class); } // Construct using cosmos.slashing.v1beta1.Genesis.SigningInfo.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(); address_ = ""; if (validatorSigningInfoBuilder_ == null) { validatorSigningInfo_ = null; } else { validatorSigningInfo_ = null; validatorSigningInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.SigningInfo getDefaultInstanceForType() { return cosmos.slashing.v1beta1.Genesis.SigningInfo.getDefaultInstance(); } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.SigningInfo build() { cosmos.slashing.v1beta1.Genesis.SigningInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.SigningInfo buildPartial() { cosmos.slashing.v1beta1.Genesis.SigningInfo result = new cosmos.slashing.v1beta1.Genesis.SigningInfo(this); result.address_ = address_; if (validatorSigningInfoBuilder_ == null) { result.validatorSigningInfo_ = validatorSigningInfo_; } else { result.validatorSigningInfo_ = validatorSigningInfoBuilder_.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 cosmos.slashing.v1beta1.Genesis.SigningInfo) { return mergeFrom((cosmos.slashing.v1beta1.Genesis.SigningInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.slashing.v1beta1.Genesis.SigningInfo other) { if (other == cosmos.slashing.v1beta1.Genesis.SigningInfo.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (other.hasValidatorSigningInfo()) { mergeValidatorSigningInfo(other.getValidatorSigningInfo()); } 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 { cosmos.slashing.v1beta1.Genesis.SigningInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.slashing.v1beta1.Genesis.SigningInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object address_ = ""; /** *
       * address is the validator address.
       * 
* * string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo validatorSigningInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder> validatorSigningInfoBuilder_; /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public boolean hasValidatorSigningInfo() { return validatorSigningInfoBuilder_ != null || validatorSigningInfo_ != null; } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo getValidatorSigningInfo() { if (validatorSigningInfoBuilder_ == null) { return validatorSigningInfo_ == null ? cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; } else { return validatorSigningInfoBuilder_.getMessage(); } } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public Builder setValidatorSigningInfo(cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo value) { if (validatorSigningInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validatorSigningInfo_ = value; onChanged(); } else { validatorSigningInfoBuilder_.setMessage(value); } return this; } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public Builder setValidatorSigningInfo( cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder builderForValue) { if (validatorSigningInfoBuilder_ == null) { validatorSigningInfo_ = builderForValue.build(); onChanged(); } else { validatorSigningInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public Builder mergeValidatorSigningInfo(cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo value) { if (validatorSigningInfoBuilder_ == null) { if (validatorSigningInfo_ != null) { validatorSigningInfo_ = cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.newBuilder(validatorSigningInfo_).mergeFrom(value).buildPartial(); } else { validatorSigningInfo_ = value; } onChanged(); } else { validatorSigningInfoBuilder_.mergeFrom(value); } return this; } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public Builder clearValidatorSigningInfo() { if (validatorSigningInfoBuilder_ == null) { validatorSigningInfo_ = null; onChanged(); } else { validatorSigningInfo_ = null; validatorSigningInfoBuilder_ = null; } return this; } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder getValidatorSigningInfoBuilder() { onChanged(); return getValidatorSigningInfoFieldBuilder().getBuilder(); } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ public cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder getValidatorSigningInfoOrBuilder() { if (validatorSigningInfoBuilder_ != null) { return validatorSigningInfoBuilder_.getMessageOrBuilder(); } else { return validatorSigningInfo_ == null ? cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.getDefaultInstance() : validatorSigningInfo_; } } /** *
       * validator_signing_info represents the signing info of this validator.
       * 
* * .cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_signing_info\""]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder> getValidatorSigningInfoFieldBuilder() { if (validatorSigningInfoBuilder_ == null) { validatorSigningInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfo.Builder, cosmos.slashing.v1beta1.Slashing.ValidatorSigningInfoOrBuilder>( getValidatorSigningInfo(), getParentForChildren(), isClean()); validatorSigningInfo_ = null; } return validatorSigningInfoBuilder_; } @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:cosmos.slashing.v1beta1.SigningInfo) } // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.SigningInfo) private static final cosmos.slashing.v1beta1.Genesis.SigningInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.Genesis.SigningInfo(); } public static cosmos.slashing.v1beta1.Genesis.SigningInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SigningInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SigningInfo(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 cosmos.slashing.v1beta1.Genesis.SigningInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatorMissedBlocksOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.ValidatorMissedBlocks) com.google.protobuf.MessageOrBuilder { /** *
     * address is the validator address.
     * 
* * string address = 1; */ java.lang.String getAddress(); /** *
     * address is the validator address.
     * 
* * string address = 1; */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ java.util.List getMissedBlocksList(); /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ cosmos.slashing.v1beta1.Genesis.MissedBlock getMissedBlocks(int index); /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ int getMissedBlocksCount(); /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ java.util.List getMissedBlocksOrBuilderList(); /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder getMissedBlocksOrBuilder( int index); } /** *
   * ValidatorMissedBlocks contains array of missed blocks of corresponding
   * address.
   * 
* * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorMissedBlocks} */ public static final class ValidatorMissedBlocks extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.ValidatorMissedBlocks) ValidatorMissedBlocksOrBuilder { private static final long serialVersionUID = 0L; // Use ValidatorMissedBlocks.newBuilder() to construct. private ValidatorMissedBlocks(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatorMissedBlocks() { address_ = ""; missedBlocks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValidatorMissedBlocks( 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(); address_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { missedBlocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } missedBlocks_.add( input.readMessage(cosmos.slashing.v1beta1.Genesis.MissedBlock.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.class, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder.class); } private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * address is the validator address.
     * 
* * string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * address is the validator address.
     * 
* * string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MISSED_BLOCKS_FIELD_NUMBER = 2; private java.util.List missedBlocks_; /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksList() { return missedBlocks_; } /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksOrBuilderList() { return missedBlocks_; } /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public int getMissedBlocksCount() { return missedBlocks_.size(); } /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlock getMissedBlocks(int index) { return missedBlocks_.get(index); } /** *
     * missed_blocks is an array of missed blocks by the validator.
     * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder getMissedBlocksOrBuilder( int index) { return missedBlocks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } for (int i = 0; i < missedBlocks_.size(); i++) { output.writeMessage(2, missedBlocks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } for (int i = 0; i < missedBlocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, missedBlocks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks)) { return super.equals(obj); } cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks other = (cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks) obj; boolean result = true; result = result && getAddress() .equals(other.getAddress()); result = result && getMissedBlocksList() .equals(other.getMissedBlocksList()); 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) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (getMissedBlocksCount() > 0) { hash = (37 * hash) + MISSED_BLOCKS_FIELD_NUMBER; hash = (53 * hash) + getMissedBlocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks 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 cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks 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 cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks 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(cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks 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; } /** *
     * ValidatorMissedBlocks contains array of missed blocks of corresponding
     * address.
     * 
* * Protobuf type {@code cosmos.slashing.v1beta1.ValidatorMissedBlocks} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.ValidatorMissedBlocks) cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocksOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.class, cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.Builder.class); } // Construct using cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMissedBlocksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); address_ = ""; if (missedBlocksBuilder_ == null) { missedBlocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { missedBlocksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getDefaultInstanceForType() { return cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.getDefaultInstance(); } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks build() { cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks buildPartial() { cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks result = new cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.address_ = address_; if (missedBlocksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { missedBlocks_ = java.util.Collections.unmodifiableList(missedBlocks_); bitField0_ = (bitField0_ & ~0x00000002); } result.missedBlocks_ = missedBlocks_; } else { result.missedBlocks_ = missedBlocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks) { return mergeFrom((cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks other) { if (other == cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (missedBlocksBuilder_ == null) { if (!other.missedBlocks_.isEmpty()) { if (missedBlocks_.isEmpty()) { missedBlocks_ = other.missedBlocks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMissedBlocksIsMutable(); missedBlocks_.addAll(other.missedBlocks_); } onChanged(); } } else { if (!other.missedBlocks_.isEmpty()) { if (missedBlocksBuilder_.isEmpty()) { missedBlocksBuilder_.dispose(); missedBlocksBuilder_ = null; missedBlocks_ = other.missedBlocks_; bitField0_ = (bitField0_ & ~0x00000002); missedBlocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMissedBlocksFieldBuilder() : null; } else { missedBlocksBuilder_.addAllMessages(other.missedBlocks_); } } } 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 { cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** *
       * address is the validator address.
       * 
* * string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * address is the validator address.
       * 
* * string address = 1; */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.util.List missedBlocks_ = java.util.Collections.emptyList(); private void ensureMissedBlocksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { missedBlocks_ = new java.util.ArrayList(missedBlocks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.MissedBlock, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder, cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder> missedBlocksBuilder_; /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksList() { if (missedBlocksBuilder_ == null) { return java.util.Collections.unmodifiableList(missedBlocks_); } else { return missedBlocksBuilder_.getMessageList(); } } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public int getMissedBlocksCount() { if (missedBlocksBuilder_ == null) { return missedBlocks_.size(); } else { return missedBlocksBuilder_.getCount(); } } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlock getMissedBlocks(int index) { if (missedBlocksBuilder_ == null) { return missedBlocks_.get(index); } else { return missedBlocksBuilder_.getMessage(index); } } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder setMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.MissedBlock value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.set(index, value); onChanged(); } else { missedBlocksBuilder_.setMessage(index, value); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder setMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.set(index, builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks(cosmos.slashing.v1beta1.Genesis.MissedBlock value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.add(value); onChanged(); } else { missedBlocksBuilder_.addMessage(value); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.MissedBlock value) { if (missedBlocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissedBlocksIsMutable(); missedBlocks_.add(index, value); onChanged(); } else { missedBlocksBuilder_.addMessage(index, value); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.add(builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addMissedBlocks( int index, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder builderForValue) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.add(index, builderForValue.build()); onChanged(); } else { missedBlocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder addAllMissedBlocks( java.lang.Iterable values) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, missedBlocks_); onChanged(); } else { missedBlocksBuilder_.addAllMessages(values); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder clearMissedBlocks() { if (missedBlocksBuilder_ == null) { missedBlocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { missedBlocksBuilder_.clear(); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public Builder removeMissedBlocks(int index) { if (missedBlocksBuilder_ == null) { ensureMissedBlocksIsMutable(); missedBlocks_.remove(index); onChanged(); } else { missedBlocksBuilder_.remove(index); } return this; } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder getMissedBlocksBuilder( int index) { return getMissedBlocksFieldBuilder().getBuilder(index); } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder getMissedBlocksOrBuilder( int index) { if (missedBlocksBuilder_ == null) { return missedBlocks_.get(index); } else { return missedBlocksBuilder_.getMessageOrBuilder(index); } } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksOrBuilderList() { if (missedBlocksBuilder_ != null) { return missedBlocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(missedBlocks_); } } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder addMissedBlocksBuilder() { return getMissedBlocksFieldBuilder().addBuilder( cosmos.slashing.v1beta1.Genesis.MissedBlock.getDefaultInstance()); } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder addMissedBlocksBuilder( int index) { return getMissedBlocksFieldBuilder().addBuilder( index, cosmos.slashing.v1beta1.Genesis.MissedBlock.getDefaultInstance()); } /** *
       * missed_blocks is an array of missed blocks by the validator.
       * 
* * repeated .cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"missed_blocks\""]; */ public java.util.List getMissedBlocksBuilderList() { return getMissedBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.MissedBlock, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder, cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder> getMissedBlocksFieldBuilder() { if (missedBlocksBuilder_ == null) { missedBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.slashing.v1beta1.Genesis.MissedBlock, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder, cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder>( missedBlocks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); missedBlocks_ = null; } return missedBlocksBuilder_; } @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:cosmos.slashing.v1beta1.ValidatorMissedBlocks) } // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.ValidatorMissedBlocks) private static final cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks(); } public static cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValidatorMissedBlocks parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatorMissedBlocks(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 cosmos.slashing.v1beta1.Genesis.ValidatorMissedBlocks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MissedBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.slashing.v1beta1.MissedBlock) com.google.protobuf.MessageOrBuilder { /** *
     * index is the height at which the block was missed.
     * 
* * int64 index = 1; */ long getIndex(); /** *
     * missed is the missed status.
     * 
* * bool missed = 2; */ boolean getMissed(); } /** *
   * MissedBlock contains height and missed status as boolean.
   * 
* * Protobuf type {@code cosmos.slashing.v1beta1.MissedBlock} */ public static final class MissedBlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.slashing.v1beta1.MissedBlock) MissedBlockOrBuilder { private static final long serialVersionUID = 0L; // Use MissedBlock.newBuilder() to construct. private MissedBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MissedBlock() { index_ = 0L; missed_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MissedBlock( 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: { index_ = input.readInt64(); break; } case 16: { missed_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.MissedBlock.class, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** *
     * index is the height at which the block was missed.
     * 
* * int64 index = 1; */ public long getIndex() { return index_; } public static final int MISSED_FIELD_NUMBER = 2; private boolean missed_; /** *
     * missed is the missed status.
     * 
* * bool missed = 2; */ public boolean getMissed() { return missed_; } 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 (index_ != 0L) { output.writeInt64(1, index_); } if (missed_ != false) { output.writeBool(2, missed_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, index_); } if (missed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, missed_); } 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 cosmos.slashing.v1beta1.Genesis.MissedBlock)) { return super.equals(obj); } cosmos.slashing.v1beta1.Genesis.MissedBlock other = (cosmos.slashing.v1beta1.Genesis.MissedBlock) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && (getMissed() == other.getMissed()); 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); hash = (37 * hash) + MISSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMissed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock 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 cosmos.slashing.v1beta1.Genesis.MissedBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock 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 cosmos.slashing.v1beta1.Genesis.MissedBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock 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(cosmos.slashing.v1beta1.Genesis.MissedBlock 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; } /** *
     * MissedBlock contains height and missed status as boolean.
     * 
* * Protobuf type {@code cosmos.slashing.v1beta1.MissedBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.slashing.v1beta1.MissedBlock) cosmos.slashing.v1beta1.Genesis.MissedBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.slashing.v1beta1.Genesis.MissedBlock.class, cosmos.slashing.v1beta1.Genesis.MissedBlock.Builder.class); } // Construct using cosmos.slashing.v1beta1.Genesis.MissedBlock.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(); index_ = 0L; missed_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.slashing.v1beta1.Genesis.internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.MissedBlock getDefaultInstanceForType() { return cosmos.slashing.v1beta1.Genesis.MissedBlock.getDefaultInstance(); } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.MissedBlock build() { cosmos.slashing.v1beta1.Genesis.MissedBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.slashing.v1beta1.Genesis.MissedBlock buildPartial() { cosmos.slashing.v1beta1.Genesis.MissedBlock result = new cosmos.slashing.v1beta1.Genesis.MissedBlock(this); result.index_ = index_; result.missed_ = missed_; 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 cosmos.slashing.v1beta1.Genesis.MissedBlock) { return mergeFrom((cosmos.slashing.v1beta1.Genesis.MissedBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.slashing.v1beta1.Genesis.MissedBlock other) { if (other == cosmos.slashing.v1beta1.Genesis.MissedBlock.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.getMissed() != false) { setMissed(other.getMissed()); } 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 { cosmos.slashing.v1beta1.Genesis.MissedBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.slashing.v1beta1.Genesis.MissedBlock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long index_ ; /** *
       * index is the height at which the block was missed.
       * 
* * int64 index = 1; */ public long getIndex() { return index_; } /** *
       * index is the height at which the block was missed.
       * 
* * int64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** *
       * index is the height at which the block was missed.
       * 
* * int64 index = 1; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private boolean missed_ ; /** *
       * missed is the missed status.
       * 
* * bool missed = 2; */ public boolean getMissed() { return missed_; } /** *
       * missed is the missed status.
       * 
* * bool missed = 2; */ public Builder setMissed(boolean value) { missed_ = value; onChanged(); return this; } /** *
       * missed is the missed status.
       * 
* * bool missed = 2; */ public Builder clearMissed() { missed_ = 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:cosmos.slashing.v1beta1.MissedBlock) } // @@protoc_insertion_point(class_scope:cosmos.slashing.v1beta1.MissedBlock) private static final cosmos.slashing.v1beta1.Genesis.MissedBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.slashing.v1beta1.Genesis.MissedBlock(); } public static cosmos.slashing.v1beta1.Genesis.MissedBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MissedBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MissedBlock(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 cosmos.slashing.v1beta1.Genesis.MissedBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_slashing_v1beta1_MissedBlock_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%cosmos/slashing/v1beta1/genesis.proto\022" + "\027cosmos.slashing.v1beta1\032\024gogoproto/gogo" + ".proto\032&cosmos/slashing/v1beta1/slashing" + ".proto\"\205\002\n\014GenesisState\0225\n\006params\030\001 \001(\0132" + "\037.cosmos.slashing.v1beta1.ParamsB\004\310\336\037\000\022Y" + "\n\rsigning_infos\030\002 \003(\0132$.cosmos.slashing." + "v1beta1.SigningInfoB\034\362\336\037\024yaml:\"signing_i" + "nfos\"\310\336\037\000\022c\n\rmissed_blocks\030\003 \003(\0132..cosmo" + "s.slashing.v1beta1.ValidatorMissedBlocks" + "B\034\362\336\037\024yaml:\"missed_blocks\"\310\336\037\000\"\224\001\n\013Signi" + "ngInfo\022\017\n\007address\030\001 \001(\t\022t\n\026validator_sig" + "ning_info\030\002 \001(\0132-.cosmos.slashing.v1beta" + "1.ValidatorSigningInfoB%\310\336\037\000\362\336\037\035yaml:\"va" + "lidator_signing_info\"\"\203\001\n\025ValidatorMisse" + "dBlocks\022\017\n\007address\030\001 \001(\t\022Y\n\rmissed_block" + "s\030\002 \003(\0132$.cosmos.slashing.v1beta1.Missed" + "BlockB\034\310\336\037\000\362\336\037\024yaml:\"missed_blocks\"\",\n\013M" + "issedBlock\022\r\n\005index\030\001 \001(\003\022\016\n\006missed\030\002 \001(" + "\010B/Z-github.com/cosmos/cosmos-sdk/x/slas" + "hing/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), cosmos.slashing.v1beta1.Slashing.getDescriptor(), }, assigner); internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_slashing_v1beta1_GenesisState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_slashing_v1beta1_GenesisState_descriptor, new java.lang.String[] { "Params", "SigningInfos", "MissedBlocks", }); internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_slashing_v1beta1_SigningInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_slashing_v1beta1_SigningInfo_descriptor, new java.lang.String[] { "Address", "ValidatorSigningInfo", }); internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_slashing_v1beta1_ValidatorMissedBlocks_descriptor, new java.lang.String[] { "Address", "MissedBlocks", }); internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_slashing_v1beta1_MissedBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_slashing_v1beta1_MissedBlock_descriptor, new java.lang.String[] { "Index", "Missed", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); cosmos.slashing.v1beta1.Slashing.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy