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

jvmMain.terra.oracle.v1beta1.Genesis Maven / Gradle / Ivy

There is a newer version: 3.1.6-4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: terra/oracle/v1beta1/genesis.proto

// Protobuf Java Version: 3.25.3
package terra.oracle.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:terra.oracle.v1beta1.GenesisState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
     * @return Whether the params field is set.
     */
    boolean hasParams();
    /**
     * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
     * @return The params.
     */
    terra.oracle.v1beta1.Oracle.Params getParams();
    /**
     * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Oracle.ParamsOrBuilder getParamsOrBuilder();

    /**
     * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getFeederDelegationsList();
    /**
     * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.FeederDelegation getFeederDelegations(int index);
    /**
     * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false];
     */
    int getFeederDelegationsCount();
    /**
     * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getFeederDelegationsOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder getFeederDelegationsOrBuilder(
        int index);

    /**
     * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"];
     */
    java.util.List 
        getExchangeRatesList();
    /**
     * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"];
     */
    terra.oracle.v1beta1.Oracle.ExchangeRateTuple getExchangeRates(int index);
    /**
     * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"];
     */
    int getExchangeRatesCount();
    /**
     * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"];
     */
    java.util.List 
        getExchangeRatesOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"];
     */
    terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder getExchangeRatesOrBuilder(
        int index);

    /**
     * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getMissCountersList();
    /**
     * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.MissCounter getMissCounters(int index);
    /**
     * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false];
     */
    int getMissCountersCount();
    /**
     * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getMissCountersOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.MissCounterOrBuilder getMissCountersOrBuilder(
        int index);

    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getAggregateExchangeRatePrevotesList();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote getAggregateExchangeRatePrevotes(int index);
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false];
     */
    int getAggregateExchangeRatePrevotesCount();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getAggregateExchangeRatePrevotesOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder getAggregateExchangeRatePrevotesOrBuilder(
        int index);

    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getAggregateExchangeRateVotesList();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote getAggregateExchangeRateVotes(int index);
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false];
     */
    int getAggregateExchangeRateVotesCount();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getAggregateExchangeRateVotesOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder getAggregateExchangeRateVotesOrBuilder(
        int index);

    /**
     * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getTobinTaxesList();
    /**
     * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.TobinTax getTobinTaxes(int index);
    /**
     * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false];
     */
    int getTobinTaxesCount();
    /**
     * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getTobinTaxesOrBuilderList();
    /**
     * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false];
     */
    terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder getTobinTaxesOrBuilder(
        int index);
  }
  /**
   * 
   * GenesisState defines the oracle module's genesis state.
   * 
* * Protobuf type {@code terra.oracle.v1beta1.GenesisState} */ public static final class GenesisState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.oracle.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() { feederDelegations_ = java.util.Collections.emptyList(); exchangeRates_ = java.util.Collections.emptyList(); missCounters_ = java.util.Collections.emptyList(); aggregateExchangeRatePrevotes_ = java.util.Collections.emptyList(); aggregateExchangeRateVotes_ = java.util.Collections.emptyList(); tobinTaxes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenesisState(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.GenesisState.class, terra.oracle.v1beta1.Genesis.GenesisState.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private terra.oracle.v1beta1.Oracle.Params params_; /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return The params. */ @java.lang.Override public terra.oracle.v1beta1.Oracle.Params getParams() { return params_ == null ? terra.oracle.v1beta1.Oracle.Params.getDefaultInstance() : params_; } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.ParamsOrBuilder getParamsOrBuilder() { return params_ == null ? terra.oracle.v1beta1.Oracle.Params.getDefaultInstance() : params_; } public static final int FEEDER_DELEGATIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List feederDelegations_; /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getFeederDelegationsList() { return feederDelegations_; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getFeederDelegationsOrBuilderList() { return feederDelegations_; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getFeederDelegationsCount() { return feederDelegations_.size(); } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegation getFeederDelegations(int index) { return feederDelegations_.get(index); } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder getFeederDelegationsOrBuilder( int index) { return feederDelegations_.get(index); } public static final int EXCHANGE_RATES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List exchangeRates_; /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ @java.lang.Override public java.util.List getExchangeRatesList() { return exchangeRates_; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ @java.lang.Override public java.util.List getExchangeRatesOrBuilderList() { return exchangeRates_; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ @java.lang.Override public int getExchangeRatesCount() { return exchangeRates_.size(); } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.ExchangeRateTuple getExchangeRates(int index) { return exchangeRates_.get(index); } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder getExchangeRatesOrBuilder( int index) { return exchangeRates_.get(index); } public static final int MISS_COUNTERS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List missCounters_; /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getMissCountersList() { return missCounters_; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getMissCountersOrBuilderList() { return missCounters_; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getMissCountersCount() { return missCounters_.size(); } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounter getMissCounters(int index) { return missCounters_.get(index); } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounterOrBuilder getMissCountersOrBuilder( int index) { return missCounters_.get(index); } public static final int AGGREGATE_EXCHANGE_RATE_PREVOTES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List aggregateExchangeRatePrevotes_; /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getAggregateExchangeRatePrevotesList() { return aggregateExchangeRatePrevotes_; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getAggregateExchangeRatePrevotesOrBuilderList() { return aggregateExchangeRatePrevotes_; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getAggregateExchangeRatePrevotesCount() { return aggregateExchangeRatePrevotes_.size(); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote getAggregateExchangeRatePrevotes(int index) { return aggregateExchangeRatePrevotes_.get(index); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder getAggregateExchangeRatePrevotesOrBuilder( int index) { return aggregateExchangeRatePrevotes_.get(index); } public static final int AGGREGATE_EXCHANGE_RATE_VOTES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List aggregateExchangeRateVotes_; /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getAggregateExchangeRateVotesList() { return aggregateExchangeRateVotes_; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getAggregateExchangeRateVotesOrBuilderList() { return aggregateExchangeRateVotes_; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getAggregateExchangeRateVotesCount() { return aggregateExchangeRateVotes_.size(); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote getAggregateExchangeRateVotes(int index) { return aggregateExchangeRateVotes_.get(index); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder getAggregateExchangeRateVotesOrBuilder( int index) { return aggregateExchangeRateVotes_.get(index); } public static final int TOBIN_TAXES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List tobinTaxes_; /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getTobinTaxesList() { return tobinTaxes_; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getTobinTaxesOrBuilderList() { return tobinTaxes_; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getTobinTaxesCount() { return tobinTaxes_.size(); } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTax getTobinTaxes(int index) { return tobinTaxes_.get(index); } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder getTobinTaxesOrBuilder( int index) { return tobinTaxes_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getParams()); } for (int i = 0; i < feederDelegations_.size(); i++) { output.writeMessage(2, feederDelegations_.get(i)); } for (int i = 0; i < exchangeRates_.size(); i++) { output.writeMessage(3, exchangeRates_.get(i)); } for (int i = 0; i < missCounters_.size(); i++) { output.writeMessage(4, missCounters_.get(i)); } for (int i = 0; i < aggregateExchangeRatePrevotes_.size(); i++) { output.writeMessage(5, aggregateExchangeRatePrevotes_.get(i)); } for (int i = 0; i < aggregateExchangeRateVotes_.size(); i++) { output.writeMessage(6, aggregateExchangeRateVotes_.get(i)); } for (int i = 0; i < tobinTaxes_.size(); i++) { output.writeMessage(7, tobinTaxes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParams()); } for (int i = 0; i < feederDelegations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, feederDelegations_.get(i)); } for (int i = 0; i < exchangeRates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, exchangeRates_.get(i)); } for (int i = 0; i < missCounters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, missCounters_.get(i)); } for (int i = 0; i < aggregateExchangeRatePrevotes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, aggregateExchangeRatePrevotes_.get(i)); } for (int i = 0; i < aggregateExchangeRateVotes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, aggregateExchangeRateVotes_.get(i)); } for (int i = 0; i < tobinTaxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, tobinTaxes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.oracle.v1beta1.Genesis.GenesisState)) { return super.equals(obj); } terra.oracle.v1beta1.Genesis.GenesisState other = (terra.oracle.v1beta1.Genesis.GenesisState) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (!getFeederDelegationsList() .equals(other.getFeederDelegationsList())) return false; if (!getExchangeRatesList() .equals(other.getExchangeRatesList())) return false; if (!getMissCountersList() .equals(other.getMissCountersList())) return false; if (!getAggregateExchangeRatePrevotesList() .equals(other.getAggregateExchangeRatePrevotesList())) return false; if (!getAggregateExchangeRateVotesList() .equals(other.getAggregateExchangeRateVotesList())) return false; if (!getTobinTaxesList() .equals(other.getTobinTaxesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @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 (getFeederDelegationsCount() > 0) { hash = (37 * hash) + FEEDER_DELEGATIONS_FIELD_NUMBER; hash = (53 * hash) + getFeederDelegationsList().hashCode(); } if (getExchangeRatesCount() > 0) { hash = (37 * hash) + EXCHANGE_RATES_FIELD_NUMBER; hash = (53 * hash) + getExchangeRatesList().hashCode(); } if (getMissCountersCount() > 0) { hash = (37 * hash) + MISS_COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getMissCountersList().hashCode(); } if (getAggregateExchangeRatePrevotesCount() > 0) { hash = (37 * hash) + AGGREGATE_EXCHANGE_RATE_PREVOTES_FIELD_NUMBER; hash = (53 * hash) + getAggregateExchangeRatePrevotesList().hashCode(); } if (getAggregateExchangeRateVotesCount() > 0) { hash = (37 * hash) + AGGREGATE_EXCHANGE_RATE_VOTES_FIELD_NUMBER; hash = (53 * hash) + getAggregateExchangeRateVotesList().hashCode(); } if (getTobinTaxesCount() > 0) { hash = (37 * hash) + TOBIN_TAXES_FIELD_NUMBER; hash = (53 * hash) + getTobinTaxesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.oracle.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.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 terra.oracle.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.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 terra.oracle.v1beta1.Genesis.GenesisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.GenesisState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.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 terra.oracle.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.oracle.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 terra.oracle.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.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(terra.oracle.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 oracle module's genesis state.
     * 
* * Protobuf type {@code terra.oracle.v1beta1.GenesisState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.GenesisState) terra.oracle.v1beta1.Genesis.GenesisStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.GenesisState.class, terra.oracle.v1beta1.Genesis.GenesisState.Builder.class); } // Construct using terra.oracle.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) { getParamsFieldBuilder(); getFeederDelegationsFieldBuilder(); getExchangeRatesFieldBuilder(); getMissCountersFieldBuilder(); getAggregateExchangeRatePrevotesFieldBuilder(); getAggregateExchangeRateVotesFieldBuilder(); getTobinTaxesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } if (feederDelegationsBuilder_ == null) { feederDelegations_ = java.util.Collections.emptyList(); } else { feederDelegations_ = null; feederDelegationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (exchangeRatesBuilder_ == null) { exchangeRates_ = java.util.Collections.emptyList(); } else { exchangeRates_ = null; exchangeRatesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (missCountersBuilder_ == null) { missCounters_ = java.util.Collections.emptyList(); } else { missCounters_ = null; missCountersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (aggregateExchangeRatePrevotesBuilder_ == null) { aggregateExchangeRatePrevotes_ = java.util.Collections.emptyList(); } else { aggregateExchangeRatePrevotes_ = null; aggregateExchangeRatePrevotesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (aggregateExchangeRateVotesBuilder_ == null) { aggregateExchangeRateVotes_ = java.util.Collections.emptyList(); } else { aggregateExchangeRateVotes_ = null; aggregateExchangeRateVotesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (tobinTaxesBuilder_ == null) { tobinTaxes_ = java.util.Collections.emptyList(); } else { tobinTaxes_ = null; tobinTaxesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_GenesisState_descriptor; } @java.lang.Override public terra.oracle.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return terra.oracle.v1beta1.Genesis.GenesisState.getDefaultInstance(); } @java.lang.Override public terra.oracle.v1beta1.Genesis.GenesisState build() { terra.oracle.v1beta1.Genesis.GenesisState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.oracle.v1beta1.Genesis.GenesisState buildPartial() { terra.oracle.v1beta1.Genesis.GenesisState result = new terra.oracle.v1beta1.Genesis.GenesisState(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(terra.oracle.v1beta1.Genesis.GenesisState result) { if (feederDelegationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { feederDelegations_ = java.util.Collections.unmodifiableList(feederDelegations_); bitField0_ = (bitField0_ & ~0x00000002); } result.feederDelegations_ = feederDelegations_; } else { result.feederDelegations_ = feederDelegationsBuilder_.build(); } if (exchangeRatesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { exchangeRates_ = java.util.Collections.unmodifiableList(exchangeRates_); bitField0_ = (bitField0_ & ~0x00000004); } result.exchangeRates_ = exchangeRates_; } else { result.exchangeRates_ = exchangeRatesBuilder_.build(); } if (missCountersBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { missCounters_ = java.util.Collections.unmodifiableList(missCounters_); bitField0_ = (bitField0_ & ~0x00000008); } result.missCounters_ = missCounters_; } else { result.missCounters_ = missCountersBuilder_.build(); } if (aggregateExchangeRatePrevotesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { aggregateExchangeRatePrevotes_ = java.util.Collections.unmodifiableList(aggregateExchangeRatePrevotes_); bitField0_ = (bitField0_ & ~0x00000010); } result.aggregateExchangeRatePrevotes_ = aggregateExchangeRatePrevotes_; } else { result.aggregateExchangeRatePrevotes_ = aggregateExchangeRatePrevotesBuilder_.build(); } if (aggregateExchangeRateVotesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { aggregateExchangeRateVotes_ = java.util.Collections.unmodifiableList(aggregateExchangeRateVotes_); bitField0_ = (bitField0_ & ~0x00000020); } result.aggregateExchangeRateVotes_ = aggregateExchangeRateVotes_; } else { result.aggregateExchangeRateVotes_ = aggregateExchangeRateVotesBuilder_.build(); } if (tobinTaxesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { tobinTaxes_ = java.util.Collections.unmodifiableList(tobinTaxes_); bitField0_ = (bitField0_ & ~0x00000040); } result.tobinTaxes_ = tobinTaxes_; } else { result.tobinTaxes_ = tobinTaxesBuilder_.build(); } } private void buildPartial0(terra.oracle.v1beta1.Genesis.GenesisState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof terra.oracle.v1beta1.Genesis.GenesisState) { return mergeFrom((terra.oracle.v1beta1.Genesis.GenesisState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.oracle.v1beta1.Genesis.GenesisState other) { if (other == terra.oracle.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (feederDelegationsBuilder_ == null) { if (!other.feederDelegations_.isEmpty()) { if (feederDelegations_.isEmpty()) { feederDelegations_ = other.feederDelegations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFeederDelegationsIsMutable(); feederDelegations_.addAll(other.feederDelegations_); } onChanged(); } } else { if (!other.feederDelegations_.isEmpty()) { if (feederDelegationsBuilder_.isEmpty()) { feederDelegationsBuilder_.dispose(); feederDelegationsBuilder_ = null; feederDelegations_ = other.feederDelegations_; bitField0_ = (bitField0_ & ~0x00000002); feederDelegationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeederDelegationsFieldBuilder() : null; } else { feederDelegationsBuilder_.addAllMessages(other.feederDelegations_); } } } if (exchangeRatesBuilder_ == null) { if (!other.exchangeRates_.isEmpty()) { if (exchangeRates_.isEmpty()) { exchangeRates_ = other.exchangeRates_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureExchangeRatesIsMutable(); exchangeRates_.addAll(other.exchangeRates_); } onChanged(); } } else { if (!other.exchangeRates_.isEmpty()) { if (exchangeRatesBuilder_.isEmpty()) { exchangeRatesBuilder_.dispose(); exchangeRatesBuilder_ = null; exchangeRates_ = other.exchangeRates_; bitField0_ = (bitField0_ & ~0x00000004); exchangeRatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExchangeRatesFieldBuilder() : null; } else { exchangeRatesBuilder_.addAllMessages(other.exchangeRates_); } } } if (missCountersBuilder_ == null) { if (!other.missCounters_.isEmpty()) { if (missCounters_.isEmpty()) { missCounters_ = other.missCounters_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMissCountersIsMutable(); missCounters_.addAll(other.missCounters_); } onChanged(); } } else { if (!other.missCounters_.isEmpty()) { if (missCountersBuilder_.isEmpty()) { missCountersBuilder_.dispose(); missCountersBuilder_ = null; missCounters_ = other.missCounters_; bitField0_ = (bitField0_ & ~0x00000008); missCountersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMissCountersFieldBuilder() : null; } else { missCountersBuilder_.addAllMessages(other.missCounters_); } } } if (aggregateExchangeRatePrevotesBuilder_ == null) { if (!other.aggregateExchangeRatePrevotes_.isEmpty()) { if (aggregateExchangeRatePrevotes_.isEmpty()) { aggregateExchangeRatePrevotes_ = other.aggregateExchangeRatePrevotes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.addAll(other.aggregateExchangeRatePrevotes_); } onChanged(); } } else { if (!other.aggregateExchangeRatePrevotes_.isEmpty()) { if (aggregateExchangeRatePrevotesBuilder_.isEmpty()) { aggregateExchangeRatePrevotesBuilder_.dispose(); aggregateExchangeRatePrevotesBuilder_ = null; aggregateExchangeRatePrevotes_ = other.aggregateExchangeRatePrevotes_; bitField0_ = (bitField0_ & ~0x00000010); aggregateExchangeRatePrevotesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAggregateExchangeRatePrevotesFieldBuilder() : null; } else { aggregateExchangeRatePrevotesBuilder_.addAllMessages(other.aggregateExchangeRatePrevotes_); } } } if (aggregateExchangeRateVotesBuilder_ == null) { if (!other.aggregateExchangeRateVotes_.isEmpty()) { if (aggregateExchangeRateVotes_.isEmpty()) { aggregateExchangeRateVotes_ = other.aggregateExchangeRateVotes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.addAll(other.aggregateExchangeRateVotes_); } onChanged(); } } else { if (!other.aggregateExchangeRateVotes_.isEmpty()) { if (aggregateExchangeRateVotesBuilder_.isEmpty()) { aggregateExchangeRateVotesBuilder_.dispose(); aggregateExchangeRateVotesBuilder_ = null; aggregateExchangeRateVotes_ = other.aggregateExchangeRateVotes_; bitField0_ = (bitField0_ & ~0x00000020); aggregateExchangeRateVotesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAggregateExchangeRateVotesFieldBuilder() : null; } else { aggregateExchangeRateVotesBuilder_.addAllMessages(other.aggregateExchangeRateVotes_); } } } if (tobinTaxesBuilder_ == null) { if (!other.tobinTaxes_.isEmpty()) { if (tobinTaxes_.isEmpty()) { tobinTaxes_ = other.tobinTaxes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTobinTaxesIsMutable(); tobinTaxes_.addAll(other.tobinTaxes_); } onChanged(); } } else { if (!other.tobinTaxes_.isEmpty()) { if (tobinTaxesBuilder_.isEmpty()) { tobinTaxesBuilder_.dispose(); tobinTaxesBuilder_ = null; tobinTaxes_ = other.tobinTaxes_; bitField0_ = (bitField0_ & ~0x00000040); tobinTaxesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTobinTaxesFieldBuilder() : null; } else { tobinTaxesBuilder_.addAllMessages(other.tobinTaxes_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { terra.oracle.v1beta1.Genesis.FeederDelegation m = input.readMessage( terra.oracle.v1beta1.Genesis.FeederDelegation.parser(), extensionRegistry); if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); feederDelegations_.add(m); } else { feederDelegationsBuilder_.addMessage(m); } break; } // case 18 case 26: { terra.oracle.v1beta1.Oracle.ExchangeRateTuple m = input.readMessage( terra.oracle.v1beta1.Oracle.ExchangeRateTuple.parser(), extensionRegistry); if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); exchangeRates_.add(m); } else { exchangeRatesBuilder_.addMessage(m); } break; } // case 26 case 34: { terra.oracle.v1beta1.Genesis.MissCounter m = input.readMessage( terra.oracle.v1beta1.Genesis.MissCounter.parser(), extensionRegistry); if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); missCounters_.add(m); } else { missCountersBuilder_.addMessage(m); } break; } // case 34 case 42: { terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote m = input.readMessage( terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.parser(), extensionRegistry); if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.add(m); } else { aggregateExchangeRatePrevotesBuilder_.addMessage(m); } break; } // case 42 case 50: { terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote m = input.readMessage( terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.parser(), extensionRegistry); if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.add(m); } else { aggregateExchangeRateVotesBuilder_.addMessage(m); } break; } // case 50 case 58: { terra.oracle.v1beta1.Genesis.TobinTax m = input.readMessage( terra.oracle.v1beta1.Genesis.TobinTax.parser(), extensionRegistry); if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); tobinTaxes_.add(m); } else { tobinTaxesBuilder_.addMessage(m); } break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private terra.oracle.v1beta1.Oracle.Params params_; private com.google.protobuf.SingleFieldBuilderV3< terra.oracle.v1beta1.Oracle.Params, terra.oracle.v1beta1.Oracle.Params.Builder, terra.oracle.v1beta1.Oracle.ParamsOrBuilder> paramsBuilder_; /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return The params. */ public terra.oracle.v1beta1.Oracle.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? terra.oracle.v1beta1.Oracle.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams(terra.oracle.v1beta1.Oracle.Params value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams( terra.oracle.v1beta1.Oracle.Params.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParams(terra.oracle.v1beta1.Oracle.Params value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != terra.oracle.v1beta1.Oracle.Params.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } if (params_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.Params.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? terra.oracle.v1beta1.Oracle.Params.getDefaultInstance() : params_; } } /** * .terra.oracle.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< terra.oracle.v1beta1.Oracle.Params, terra.oracle.v1beta1.Oracle.Params.Builder, terra.oracle.v1beta1.Oracle.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< terra.oracle.v1beta1.Oracle.Params, terra.oracle.v1beta1.Oracle.Params.Builder, terra.oracle.v1beta1.Oracle.ParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private java.util.List feederDelegations_ = java.util.Collections.emptyList(); private void ensureFeederDelegationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { feederDelegations_ = new java.util.ArrayList(feederDelegations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.FeederDelegation, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder, terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder> feederDelegationsBuilder_; /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getFeederDelegationsList() { if (feederDelegationsBuilder_ == null) { return java.util.Collections.unmodifiableList(feederDelegations_); } else { return feederDelegationsBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public int getFeederDelegationsCount() { if (feederDelegationsBuilder_ == null) { return feederDelegations_.size(); } else { return feederDelegationsBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.FeederDelegation getFeederDelegations(int index) { if (feederDelegationsBuilder_ == null) { return feederDelegations_.get(index); } else { return feederDelegationsBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder setFeederDelegations( int index, terra.oracle.v1beta1.Genesis.FeederDelegation value) { if (feederDelegationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeederDelegationsIsMutable(); feederDelegations_.set(index, value); onChanged(); } else { feederDelegationsBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder setFeederDelegations( int index, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder builderForValue) { if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); feederDelegations_.set(index, builderForValue.build()); onChanged(); } else { feederDelegationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder addFeederDelegations(terra.oracle.v1beta1.Genesis.FeederDelegation value) { if (feederDelegationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeederDelegationsIsMutable(); feederDelegations_.add(value); onChanged(); } else { feederDelegationsBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder addFeederDelegations( int index, terra.oracle.v1beta1.Genesis.FeederDelegation value) { if (feederDelegationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeederDelegationsIsMutable(); feederDelegations_.add(index, value); onChanged(); } else { feederDelegationsBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder addFeederDelegations( terra.oracle.v1beta1.Genesis.FeederDelegation.Builder builderForValue) { if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); feederDelegations_.add(builderForValue.build()); onChanged(); } else { feederDelegationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder addFeederDelegations( int index, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder builderForValue) { if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); feederDelegations_.add(index, builderForValue.build()); onChanged(); } else { feederDelegationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder addAllFeederDelegations( java.lang.Iterable values) { if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, feederDelegations_); onChanged(); } else { feederDelegationsBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder clearFeederDelegations() { if (feederDelegationsBuilder_ == null) { feederDelegations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { feederDelegationsBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public Builder removeFeederDelegations(int index) { if (feederDelegationsBuilder_ == null) { ensureFeederDelegationsIsMutable(); feederDelegations_.remove(index); onChanged(); } else { feederDelegationsBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.FeederDelegation.Builder getFeederDelegationsBuilder( int index) { return getFeederDelegationsFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder getFeederDelegationsOrBuilder( int index) { if (feederDelegationsBuilder_ == null) { return feederDelegations_.get(index); } else { return feederDelegationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getFeederDelegationsOrBuilderList() { if (feederDelegationsBuilder_ != null) { return feederDelegationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(feederDelegations_); } } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.FeederDelegation.Builder addFeederDelegationsBuilder() { return getFeederDelegationsFieldBuilder().addBuilder( terra.oracle.v1beta1.Genesis.FeederDelegation.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.FeederDelegation.Builder addFeederDelegationsBuilder( int index) { return getFeederDelegationsFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Genesis.FeederDelegation.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.FeederDelegation feeder_delegations = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getFeederDelegationsBuilderList() { return getFeederDelegationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.FeederDelegation, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder, terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder> getFeederDelegationsFieldBuilder() { if (feederDelegationsBuilder_ == null) { feederDelegationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.FeederDelegation, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder, terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder>( feederDelegations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); feederDelegations_ = null; } return feederDelegationsBuilder_; } private java.util.List exchangeRates_ = java.util.Collections.emptyList(); private void ensureExchangeRatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exchangeRates_ = new java.util.ArrayList(exchangeRates_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.ExchangeRateTuple, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder, terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder> exchangeRatesBuilder_; /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public java.util.List getExchangeRatesList() { if (exchangeRatesBuilder_ == null) { return java.util.Collections.unmodifiableList(exchangeRates_); } else { return exchangeRatesBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public int getExchangeRatesCount() { if (exchangeRatesBuilder_ == null) { return exchangeRates_.size(); } else { return exchangeRatesBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public terra.oracle.v1beta1.Oracle.ExchangeRateTuple getExchangeRates(int index) { if (exchangeRatesBuilder_ == null) { return exchangeRates_.get(index); } else { return exchangeRatesBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder setExchangeRates( int index, terra.oracle.v1beta1.Oracle.ExchangeRateTuple value) { if (exchangeRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeRatesIsMutable(); exchangeRates_.set(index, value); onChanged(); } else { exchangeRatesBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder setExchangeRates( int index, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder builderForValue) { if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); exchangeRates_.set(index, builderForValue.build()); onChanged(); } else { exchangeRatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder addExchangeRates(terra.oracle.v1beta1.Oracle.ExchangeRateTuple value) { if (exchangeRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeRatesIsMutable(); exchangeRates_.add(value); onChanged(); } else { exchangeRatesBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder addExchangeRates( int index, terra.oracle.v1beta1.Oracle.ExchangeRateTuple value) { if (exchangeRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeRatesIsMutable(); exchangeRates_.add(index, value); onChanged(); } else { exchangeRatesBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder addExchangeRates( terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder builderForValue) { if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); exchangeRates_.add(builderForValue.build()); onChanged(); } else { exchangeRatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder addExchangeRates( int index, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder builderForValue) { if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); exchangeRates_.add(index, builderForValue.build()); onChanged(); } else { exchangeRatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder addAllExchangeRates( java.lang.Iterable values) { if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exchangeRates_); onChanged(); } else { exchangeRatesBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder clearExchangeRates() { if (exchangeRatesBuilder_ == null) { exchangeRates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { exchangeRatesBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public Builder removeExchangeRates(int index) { if (exchangeRatesBuilder_ == null) { ensureExchangeRatesIsMutable(); exchangeRates_.remove(index); onChanged(); } else { exchangeRatesBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder getExchangeRatesBuilder( int index) { return getExchangeRatesFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder getExchangeRatesOrBuilder( int index) { if (exchangeRatesBuilder_ == null) { return exchangeRates_.get(index); } else { return exchangeRatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public java.util.List getExchangeRatesOrBuilderList() { if (exchangeRatesBuilder_ != null) { return exchangeRatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exchangeRates_); } } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder addExchangeRatesBuilder() { return getExchangeRatesFieldBuilder().addBuilder( terra.oracle.v1beta1.Oracle.ExchangeRateTuple.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder addExchangeRatesBuilder( int index) { return getExchangeRatesFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.ExchangeRateTuple exchange_rates = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "ExchangeRateTuples"]; */ public java.util.List getExchangeRatesBuilderList() { return getExchangeRatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.ExchangeRateTuple, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder, terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder> getExchangeRatesFieldBuilder() { if (exchangeRatesBuilder_ == null) { exchangeRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.ExchangeRateTuple, terra.oracle.v1beta1.Oracle.ExchangeRateTuple.Builder, terra.oracle.v1beta1.Oracle.ExchangeRateTupleOrBuilder>( exchangeRates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); exchangeRates_ = null; } return exchangeRatesBuilder_; } private java.util.List missCounters_ = java.util.Collections.emptyList(); private void ensureMissCountersIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { missCounters_ = new java.util.ArrayList(missCounters_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.MissCounter, terra.oracle.v1beta1.Genesis.MissCounter.Builder, terra.oracle.v1beta1.Genesis.MissCounterOrBuilder> missCountersBuilder_; /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getMissCountersList() { if (missCountersBuilder_ == null) { return java.util.Collections.unmodifiableList(missCounters_); } else { return missCountersBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public int getMissCountersCount() { if (missCountersBuilder_ == null) { return missCounters_.size(); } else { return missCountersBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.MissCounter getMissCounters(int index) { if (missCountersBuilder_ == null) { return missCounters_.get(index); } else { return missCountersBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder setMissCounters( int index, terra.oracle.v1beta1.Genesis.MissCounter value) { if (missCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissCountersIsMutable(); missCounters_.set(index, value); onChanged(); } else { missCountersBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder setMissCounters( int index, terra.oracle.v1beta1.Genesis.MissCounter.Builder builderForValue) { if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); missCounters_.set(index, builderForValue.build()); onChanged(); } else { missCountersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder addMissCounters(terra.oracle.v1beta1.Genesis.MissCounter value) { if (missCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissCountersIsMutable(); missCounters_.add(value); onChanged(); } else { missCountersBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder addMissCounters( int index, terra.oracle.v1beta1.Genesis.MissCounter value) { if (missCountersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMissCountersIsMutable(); missCounters_.add(index, value); onChanged(); } else { missCountersBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder addMissCounters( terra.oracle.v1beta1.Genesis.MissCounter.Builder builderForValue) { if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); missCounters_.add(builderForValue.build()); onChanged(); } else { missCountersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder addMissCounters( int index, terra.oracle.v1beta1.Genesis.MissCounter.Builder builderForValue) { if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); missCounters_.add(index, builderForValue.build()); onChanged(); } else { missCountersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder addAllMissCounters( java.lang.Iterable values) { if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, missCounters_); onChanged(); } else { missCountersBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder clearMissCounters() { if (missCountersBuilder_ == null) { missCounters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { missCountersBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public Builder removeMissCounters(int index) { if (missCountersBuilder_ == null) { ensureMissCountersIsMutable(); missCounters_.remove(index); onChanged(); } else { missCountersBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.MissCounter.Builder getMissCountersBuilder( int index) { return getMissCountersFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.MissCounterOrBuilder getMissCountersOrBuilder( int index) { if (missCountersBuilder_ == null) { return missCounters_.get(index); } else { return missCountersBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getMissCountersOrBuilderList() { if (missCountersBuilder_ != null) { return missCountersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(missCounters_); } } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.MissCounter.Builder addMissCountersBuilder() { return getMissCountersFieldBuilder().addBuilder( terra.oracle.v1beta1.Genesis.MissCounter.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.MissCounter.Builder addMissCountersBuilder( int index) { return getMissCountersFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Genesis.MissCounter.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.MissCounter miss_counters = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getMissCountersBuilderList() { return getMissCountersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.MissCounter, terra.oracle.v1beta1.Genesis.MissCounter.Builder, terra.oracle.v1beta1.Genesis.MissCounterOrBuilder> getMissCountersFieldBuilder() { if (missCountersBuilder_ == null) { missCountersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.MissCounter, terra.oracle.v1beta1.Genesis.MissCounter.Builder, terra.oracle.v1beta1.Genesis.MissCounterOrBuilder>( missCounters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); missCounters_ = null; } return missCountersBuilder_; } private java.util.List aggregateExchangeRatePrevotes_ = java.util.Collections.emptyList(); private void ensureAggregateExchangeRatePrevotesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { aggregateExchangeRatePrevotes_ = new java.util.ArrayList(aggregateExchangeRatePrevotes_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder> aggregateExchangeRatePrevotesBuilder_; /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRatePrevotesList() { if (aggregateExchangeRatePrevotesBuilder_ == null) { return java.util.Collections.unmodifiableList(aggregateExchangeRatePrevotes_); } else { return aggregateExchangeRatePrevotesBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public int getAggregateExchangeRatePrevotesCount() { if (aggregateExchangeRatePrevotesBuilder_ == null) { return aggregateExchangeRatePrevotes_.size(); } else { return aggregateExchangeRatePrevotesBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote getAggregateExchangeRatePrevotes(int index) { if (aggregateExchangeRatePrevotesBuilder_ == null) { return aggregateExchangeRatePrevotes_.get(index); } else { return aggregateExchangeRatePrevotesBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder setAggregateExchangeRatePrevotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote value) { if (aggregateExchangeRatePrevotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.set(index, value); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder setAggregateExchangeRatePrevotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder builderForValue) { if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.set(index, builderForValue.build()); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRatePrevotes(terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote value) { if (aggregateExchangeRatePrevotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.add(value); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRatePrevotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote value) { if (aggregateExchangeRatePrevotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.add(index, value); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRatePrevotes( terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder builderForValue) { if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.add(builderForValue.build()); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRatePrevotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder builderForValue) { if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.add(index, builderForValue.build()); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder addAllAggregateExchangeRatePrevotes( java.lang.Iterable values) { if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aggregateExchangeRatePrevotes_); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder clearAggregateExchangeRatePrevotes() { if (aggregateExchangeRatePrevotesBuilder_ == null) { aggregateExchangeRatePrevotes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public Builder removeAggregateExchangeRatePrevotes(int index) { if (aggregateExchangeRatePrevotesBuilder_ == null) { ensureAggregateExchangeRatePrevotesIsMutable(); aggregateExchangeRatePrevotes_.remove(index); onChanged(); } else { aggregateExchangeRatePrevotesBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder getAggregateExchangeRatePrevotesBuilder( int index) { return getAggregateExchangeRatePrevotesFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder getAggregateExchangeRatePrevotesOrBuilder( int index) { if (aggregateExchangeRatePrevotesBuilder_ == null) { return aggregateExchangeRatePrevotes_.get(index); } else { return aggregateExchangeRatePrevotesBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRatePrevotesOrBuilderList() { if (aggregateExchangeRatePrevotesBuilder_ != null) { return aggregateExchangeRatePrevotesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(aggregateExchangeRatePrevotes_); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder addAggregateExchangeRatePrevotesBuilder() { return getAggregateExchangeRatePrevotesFieldBuilder().addBuilder( terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder addAggregateExchangeRatePrevotesBuilder( int index) { return getAggregateExchangeRatePrevotesFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRatePrevotesBuilderList() { return getAggregateExchangeRatePrevotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder> getAggregateExchangeRatePrevotesFieldBuilder() { if (aggregateExchangeRatePrevotesBuilder_ == null) { aggregateExchangeRatePrevotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRatePrevoteOrBuilder>( aggregateExchangeRatePrevotes_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); aggregateExchangeRatePrevotes_ = null; } return aggregateExchangeRatePrevotesBuilder_; } private java.util.List aggregateExchangeRateVotes_ = java.util.Collections.emptyList(); private void ensureAggregateExchangeRateVotesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { aggregateExchangeRateVotes_ = new java.util.ArrayList(aggregateExchangeRateVotes_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder> aggregateExchangeRateVotesBuilder_; /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRateVotesList() { if (aggregateExchangeRateVotesBuilder_ == null) { return java.util.Collections.unmodifiableList(aggregateExchangeRateVotes_); } else { return aggregateExchangeRateVotesBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public int getAggregateExchangeRateVotesCount() { if (aggregateExchangeRateVotesBuilder_ == null) { return aggregateExchangeRateVotes_.size(); } else { return aggregateExchangeRateVotesBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote getAggregateExchangeRateVotes(int index) { if (aggregateExchangeRateVotesBuilder_ == null) { return aggregateExchangeRateVotes_.get(index); } else { return aggregateExchangeRateVotesBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder setAggregateExchangeRateVotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote value) { if (aggregateExchangeRateVotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.set(index, value); onChanged(); } else { aggregateExchangeRateVotesBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder setAggregateExchangeRateVotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder builderForValue) { if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.set(index, builderForValue.build()); onChanged(); } else { aggregateExchangeRateVotesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRateVotes(terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote value) { if (aggregateExchangeRateVotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.add(value); onChanged(); } else { aggregateExchangeRateVotesBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRateVotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote value) { if (aggregateExchangeRateVotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.add(index, value); onChanged(); } else { aggregateExchangeRateVotesBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRateVotes( terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder builderForValue) { if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.add(builderForValue.build()); onChanged(); } else { aggregateExchangeRateVotesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder addAggregateExchangeRateVotes( int index, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder builderForValue) { if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.add(index, builderForValue.build()); onChanged(); } else { aggregateExchangeRateVotesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder addAllAggregateExchangeRateVotes( java.lang.Iterable values) { if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aggregateExchangeRateVotes_); onChanged(); } else { aggregateExchangeRateVotesBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder clearAggregateExchangeRateVotes() { if (aggregateExchangeRateVotesBuilder_ == null) { aggregateExchangeRateVotes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { aggregateExchangeRateVotesBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public Builder removeAggregateExchangeRateVotes(int index) { if (aggregateExchangeRateVotesBuilder_ == null) { ensureAggregateExchangeRateVotesIsMutable(); aggregateExchangeRateVotes_.remove(index); onChanged(); } else { aggregateExchangeRateVotesBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder getAggregateExchangeRateVotesBuilder( int index) { return getAggregateExchangeRateVotesFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder getAggregateExchangeRateVotesOrBuilder( int index) { if (aggregateExchangeRateVotesBuilder_ == null) { return aggregateExchangeRateVotes_.get(index); } else { return aggregateExchangeRateVotesBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRateVotesOrBuilderList() { if (aggregateExchangeRateVotesBuilder_ != null) { return aggregateExchangeRateVotesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(aggregateExchangeRateVotes_); } } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder addAggregateExchangeRateVotesBuilder() { return getAggregateExchangeRateVotesFieldBuilder().addBuilder( terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder addAggregateExchangeRateVotesBuilder( int index) { return getAggregateExchangeRateVotesFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getAggregateExchangeRateVotesBuilderList() { return getAggregateExchangeRateVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder> getAggregateExchangeRateVotesFieldBuilder() { if (aggregateExchangeRateVotesBuilder_ == null) { aggregateExchangeRateVotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVote.Builder, terra.oracle.v1beta1.Oracle.AggregateExchangeRateVoteOrBuilder>( aggregateExchangeRateVotes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); aggregateExchangeRateVotes_ = null; } return aggregateExchangeRateVotesBuilder_; } private java.util.List tobinTaxes_ = java.util.Collections.emptyList(); private void ensureTobinTaxesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { tobinTaxes_ = new java.util.ArrayList(tobinTaxes_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.TobinTax, terra.oracle.v1beta1.Genesis.TobinTax.Builder, terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder> tobinTaxesBuilder_; /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public java.util.List getTobinTaxesList() { if (tobinTaxesBuilder_ == null) { return java.util.Collections.unmodifiableList(tobinTaxes_); } else { return tobinTaxesBuilder_.getMessageList(); } } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public int getTobinTaxesCount() { if (tobinTaxesBuilder_ == null) { return tobinTaxes_.size(); } else { return tobinTaxesBuilder_.getCount(); } } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.TobinTax getTobinTaxes(int index) { if (tobinTaxesBuilder_ == null) { return tobinTaxes_.get(index); } else { return tobinTaxesBuilder_.getMessage(index); } } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder setTobinTaxes( int index, terra.oracle.v1beta1.Genesis.TobinTax value) { if (tobinTaxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTobinTaxesIsMutable(); tobinTaxes_.set(index, value); onChanged(); } else { tobinTaxesBuilder_.setMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder setTobinTaxes( int index, terra.oracle.v1beta1.Genesis.TobinTax.Builder builderForValue) { if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); tobinTaxes_.set(index, builderForValue.build()); onChanged(); } else { tobinTaxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder addTobinTaxes(terra.oracle.v1beta1.Genesis.TobinTax value) { if (tobinTaxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTobinTaxesIsMutable(); tobinTaxes_.add(value); onChanged(); } else { tobinTaxesBuilder_.addMessage(value); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder addTobinTaxes( int index, terra.oracle.v1beta1.Genesis.TobinTax value) { if (tobinTaxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTobinTaxesIsMutable(); tobinTaxes_.add(index, value); onChanged(); } else { tobinTaxesBuilder_.addMessage(index, value); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder addTobinTaxes( terra.oracle.v1beta1.Genesis.TobinTax.Builder builderForValue) { if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); tobinTaxes_.add(builderForValue.build()); onChanged(); } else { tobinTaxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder addTobinTaxes( int index, terra.oracle.v1beta1.Genesis.TobinTax.Builder builderForValue) { if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); tobinTaxes_.add(index, builderForValue.build()); onChanged(); } else { tobinTaxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder addAllTobinTaxes( java.lang.Iterable values) { if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tobinTaxes_); onChanged(); } else { tobinTaxesBuilder_.addAllMessages(values); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder clearTobinTaxes() { if (tobinTaxesBuilder_ == null) { tobinTaxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { tobinTaxesBuilder_.clear(); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public Builder removeTobinTaxes(int index) { if (tobinTaxesBuilder_ == null) { ensureTobinTaxesIsMutable(); tobinTaxes_.remove(index); onChanged(); } else { tobinTaxesBuilder_.remove(index); } return this; } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.TobinTax.Builder getTobinTaxesBuilder( int index) { return getTobinTaxesFieldBuilder().getBuilder(index); } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder getTobinTaxesOrBuilder( int index) { if (tobinTaxesBuilder_ == null) { return tobinTaxes_.get(index); } else { return tobinTaxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public java.util.List getTobinTaxesOrBuilderList() { if (tobinTaxesBuilder_ != null) { return tobinTaxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tobinTaxes_); } } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.TobinTax.Builder addTobinTaxesBuilder() { return getTobinTaxesFieldBuilder().addBuilder( terra.oracle.v1beta1.Genesis.TobinTax.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public terra.oracle.v1beta1.Genesis.TobinTax.Builder addTobinTaxesBuilder( int index) { return getTobinTaxesFieldBuilder().addBuilder( index, terra.oracle.v1beta1.Genesis.TobinTax.getDefaultInstance()); } /** * repeated .terra.oracle.v1beta1.TobinTax tobin_taxes = 7 [(.gogoproto.nullable) = false]; */ public java.util.List getTobinTaxesBuilderList() { return getTobinTaxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.TobinTax, terra.oracle.v1beta1.Genesis.TobinTax.Builder, terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder> getTobinTaxesFieldBuilder() { if (tobinTaxesBuilder_ == null) { tobinTaxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< terra.oracle.v1beta1.Genesis.TobinTax, terra.oracle.v1beta1.Genesis.TobinTax.Builder, terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder>( tobinTaxes_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); tobinTaxes_ = null; } return tobinTaxesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.oracle.v1beta1.GenesisState) } // @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.GenesisState) private static final terra.oracle.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.oracle.v1beta1.Genesis.GenesisState(); } public static terra.oracle.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.oracle.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeederDelegationOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.FeederDelegation) com.google.protobuf.MessageOrBuilder { /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The feederAddress. */ java.lang.String getFeederAddress(); /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for feederAddress. */ com.google.protobuf.ByteString getFeederAddressBytes(); /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ java.lang.String getValidatorAddress(); /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ com.google.protobuf.ByteString getValidatorAddressBytes(); } /** *
   * FeederDelegation is the address for where oracle feeder authority are
   * delegated to. By default this struct is only used at genesis to feed in
   * default feeder addresses.
   * 
* * Protobuf type {@code terra.oracle.v1beta1.FeederDelegation} */ public static final class FeederDelegation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.FeederDelegation) FeederDelegationOrBuilder { private static final long serialVersionUID = 0L; // Use FeederDelegation.newBuilder() to construct. private FeederDelegation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeederDelegation() { feederAddress_ = ""; validatorAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeederDelegation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_FeederDelegation_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.FeederDelegation.class, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder.class); } public static final int FEEDER_ADDRESS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object feederAddress_ = ""; /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The feederAddress. */ @java.lang.Override public java.lang.String getFeederAddress() { java.lang.Object ref = feederAddress_; 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(); feederAddress_ = s; return s; } } /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for feederAddress. */ @java.lang.Override public com.google.protobuf.ByteString getFeederAddressBytes() { java.lang.Object ref = feederAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feederAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object validatorAddress_ = ""; /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ @java.lang.Override public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feederAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, feederAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validatorAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feederAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, feederAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validatorAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.oracle.v1beta1.Genesis.FeederDelegation)) { return super.equals(obj); } terra.oracle.v1beta1.Genesis.FeederDelegation other = (terra.oracle.v1beta1.Genesis.FeederDelegation) obj; if (!getFeederAddress() .equals(other.getFeederAddress())) return false; if (!getValidatorAddress() .equals(other.getValidatorAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FEEDER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getFeederAddress().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.FeederDelegation 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 terra.oracle.v1beta1.Genesis.FeederDelegation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.FeederDelegation 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 terra.oracle.v1beta1.Genesis.FeederDelegation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.FeederDelegation 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(terra.oracle.v1beta1.Genesis.FeederDelegation 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; } /** *
     * FeederDelegation is the address for where oracle feeder authority are
     * delegated to. By default this struct is only used at genesis to feed in
     * default feeder addresses.
     * 
* * Protobuf type {@code terra.oracle.v1beta1.FeederDelegation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.FeederDelegation) terra.oracle.v1beta1.Genesis.FeederDelegationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_FeederDelegation_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.FeederDelegation.class, terra.oracle.v1beta1.Genesis.FeederDelegation.Builder.class); } // Construct using terra.oracle.v1beta1.Genesis.FeederDelegation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; feederAddress_ = ""; validatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor; } @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegation getDefaultInstanceForType() { return terra.oracle.v1beta1.Genesis.FeederDelegation.getDefaultInstance(); } @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegation build() { terra.oracle.v1beta1.Genesis.FeederDelegation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegation buildPartial() { terra.oracle.v1beta1.Genesis.FeederDelegation result = new terra.oracle.v1beta1.Genesis.FeederDelegation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.oracle.v1beta1.Genesis.FeederDelegation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.feederAddress_ = feederAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.validatorAddress_ = validatorAddress_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof terra.oracle.v1beta1.Genesis.FeederDelegation) { return mergeFrom((terra.oracle.v1beta1.Genesis.FeederDelegation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.oracle.v1beta1.Genesis.FeederDelegation other) { if (other == terra.oracle.v1beta1.Genesis.FeederDelegation.getDefaultInstance()) return this; if (!other.getFeederAddress().isEmpty()) { feederAddress_ = other.feederAddress_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { feederAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { validatorAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object feederAddress_ = ""; /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The feederAddress. */ public java.lang.String getFeederAddress() { java.lang.Object ref = feederAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feederAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for feederAddress. */ public com.google.protobuf.ByteString getFeederAddressBytes() { java.lang.Object ref = feederAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feederAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The feederAddress to set. * @return This builder for chaining. */ public Builder setFeederAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feederAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return This builder for chaining. */ public Builder clearFeederAddress() { feederAddress_ = getDefaultInstance().getFeederAddress(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string feeder_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The bytes for feederAddress to set. * @return This builder for chaining. */ public Builder setFeederAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feederAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return This builder for chaining. */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string validator_address = 2 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The bytes for validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.oracle.v1beta1.FeederDelegation) } // @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.FeederDelegation) private static final terra.oracle.v1beta1.Genesis.FeederDelegation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.oracle.v1beta1.Genesis.FeederDelegation(); } public static terra.oracle.v1beta1.Genesis.FeederDelegation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeederDelegation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.oracle.v1beta1.Genesis.FeederDelegation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MissCounterOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.MissCounter) com.google.protobuf.MessageOrBuilder { /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ java.lang.String getValidatorAddress(); /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ com.google.protobuf.ByteString getValidatorAddressBytes(); /** * uint64 miss_counter = 2; * @return The missCounter. */ long getMissCounter(); } /** *
   * MissCounter defines an miss counter and validator address pair used in
   * oracle module's genesis state
   * 
* * Protobuf type {@code terra.oracle.v1beta1.MissCounter} */ public static final class MissCounter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.MissCounter) MissCounterOrBuilder { private static final long serialVersionUID = 0L; // Use MissCounter.newBuilder() to construct. private MissCounter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MissCounter() { validatorAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MissCounter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_MissCounter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_MissCounter_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.MissCounter.class, terra.oracle.v1beta1.Genesis.MissCounter.Builder.class); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object validatorAddress_ = ""; /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ @java.lang.Override public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MISS_COUNTER_FIELD_NUMBER = 2; private long missCounter_ = 0L; /** * uint64 miss_counter = 2; * @return The missCounter. */ @java.lang.Override public long getMissCounter() { return missCounter_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validatorAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); } if (missCounter_ != 0L) { output.writeUInt64(2, missCounter_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validatorAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); } if (missCounter_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, missCounter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.oracle.v1beta1.Genesis.MissCounter)) { return super.equals(obj); } terra.oracle.v1beta1.Genesis.MissCounter other = (terra.oracle.v1beta1.Genesis.MissCounter) obj; if (!getValidatorAddress() .equals(other.getValidatorAddress())) return false; if (getMissCounter() != other.getMissCounter()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (37 * hash) + MISS_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMissCounter()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.MissCounter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.MissCounter 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 terra.oracle.v1beta1.Genesis.MissCounter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.MissCounter 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 terra.oracle.v1beta1.Genesis.MissCounter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.MissCounter 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(terra.oracle.v1beta1.Genesis.MissCounter 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; } /** *
     * MissCounter defines an miss counter and validator address pair used in
     * oracle module's genesis state
     * 
* * Protobuf type {@code terra.oracle.v1beta1.MissCounter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.MissCounter) terra.oracle.v1beta1.Genesis.MissCounterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_MissCounter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_MissCounter_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.MissCounter.class, terra.oracle.v1beta1.Genesis.MissCounter.Builder.class); } // Construct using terra.oracle.v1beta1.Genesis.MissCounter.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; validatorAddress_ = ""; missCounter_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_MissCounter_descriptor; } @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounter getDefaultInstanceForType() { return terra.oracle.v1beta1.Genesis.MissCounter.getDefaultInstance(); } @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounter build() { terra.oracle.v1beta1.Genesis.MissCounter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounter buildPartial() { terra.oracle.v1beta1.Genesis.MissCounter result = new terra.oracle.v1beta1.Genesis.MissCounter(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.oracle.v1beta1.Genesis.MissCounter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.validatorAddress_ = validatorAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.missCounter_ = missCounter_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof terra.oracle.v1beta1.Genesis.MissCounter) { return mergeFrom((terra.oracle.v1beta1.Genesis.MissCounter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.oracle.v1beta1.Genesis.MissCounter other) { if (other == terra.oracle.v1beta1.Genesis.MissCounter.getDefaultInstance()) return this; if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; bitField0_ |= 0x00000001; onChanged(); } if (other.getMissCounter() != 0L) { setMissCounter(other.getMissCounter()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { validatorAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { missCounter_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The validatorAddress. */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return The bytes for validatorAddress. */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @return This builder for chaining. */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string validator_address = 1 [(.cosmos_proto.scalar) = "cosmos.AddressString"]; * @param value The bytes for validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long missCounter_ ; /** * uint64 miss_counter = 2; * @return The missCounter. */ @java.lang.Override public long getMissCounter() { return missCounter_; } /** * uint64 miss_counter = 2; * @param value The missCounter to set. * @return This builder for chaining. */ public Builder setMissCounter(long value) { missCounter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 miss_counter = 2; * @return This builder for chaining. */ public Builder clearMissCounter() { bitField0_ = (bitField0_ & ~0x00000002); missCounter_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.oracle.v1beta1.MissCounter) } // @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.MissCounter) private static final terra.oracle.v1beta1.Genesis.MissCounter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.oracle.v1beta1.Genesis.MissCounter(); } public static terra.oracle.v1beta1.Genesis.MissCounter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MissCounter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.oracle.v1beta1.Genesis.MissCounter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TobinTaxOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.oracle.v1beta1.TobinTax) com.google.protobuf.MessageOrBuilder { /** * string denom = 1; * @return The denom. */ java.lang.String getDenom(); /** * string denom = 1; * @return The bytes for denom. */ com.google.protobuf.ByteString getDenomBytes(); /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The tobinTax. */ java.lang.String getTobinTax(); /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The bytes for tobinTax. */ com.google.protobuf.ByteString getTobinTaxBytes(); } /** *
   * TobinTax defines an denom and tobin_tax pair used in
   * oracle module's genesis state
   * 
* * Protobuf type {@code terra.oracle.v1beta1.TobinTax} */ public static final class TobinTax extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.oracle.v1beta1.TobinTax) TobinTaxOrBuilder { private static final long serialVersionUID = 0L; // Use TobinTax.newBuilder() to construct. private TobinTax(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TobinTax() { denom_ = ""; tobinTax_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TobinTax(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_TobinTax_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_TobinTax_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.TobinTax.class, terra.oracle.v1beta1.Genesis.TobinTax.Builder.class); } public static final int DENOM_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object denom_ = ""; /** * string denom = 1; * @return The denom. */ @java.lang.Override public java.lang.String getDenom() { java.lang.Object ref = denom_; 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(); denom_ = s; return s; } } /** * string denom = 1; * @return The bytes for denom. */ @java.lang.Override public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOBIN_TAX_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object tobinTax_ = ""; /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The tobinTax. */ @java.lang.Override public java.lang.String getTobinTax() { java.lang.Object ref = tobinTax_; 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(); tobinTax_ = s; return s; } } /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The bytes for tobinTax. */ @java.lang.Override public com.google.protobuf.ByteString getTobinTaxBytes() { java.lang.Object ref = tobinTax_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tobinTax_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denom_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tobinTax_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tobinTax_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denom_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tobinTax_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tobinTax_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.oracle.v1beta1.Genesis.TobinTax)) { return super.equals(obj); } terra.oracle.v1beta1.Genesis.TobinTax other = (terra.oracle.v1beta1.Genesis.TobinTax) obj; if (!getDenom() .equals(other.getDenom())) return false; if (!getTobinTax() .equals(other.getTobinTax())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); hash = (37 * hash) + TOBIN_TAX_FIELD_NUMBER; hash = (53 * hash) + getTobinTax().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.oracle.v1beta1.Genesis.TobinTax parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.TobinTax 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 terra.oracle.v1beta1.Genesis.TobinTax parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.TobinTax 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 terra.oracle.v1beta1.Genesis.TobinTax parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.oracle.v1beta1.Genesis.TobinTax 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(terra.oracle.v1beta1.Genesis.TobinTax 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; } /** *
     * TobinTax defines an denom and tobin_tax pair used in
     * oracle module's genesis state
     * 
* * Protobuf type {@code terra.oracle.v1beta1.TobinTax} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.oracle.v1beta1.TobinTax) terra.oracle.v1beta1.Genesis.TobinTaxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_TobinTax_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_TobinTax_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.oracle.v1beta1.Genesis.TobinTax.class, terra.oracle.v1beta1.Genesis.TobinTax.Builder.class); } // Construct using terra.oracle.v1beta1.Genesis.TobinTax.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; denom_ = ""; tobinTax_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.oracle.v1beta1.Genesis.internal_static_terra_oracle_v1beta1_TobinTax_descriptor; } @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTax getDefaultInstanceForType() { return terra.oracle.v1beta1.Genesis.TobinTax.getDefaultInstance(); } @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTax build() { terra.oracle.v1beta1.Genesis.TobinTax result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTax buildPartial() { terra.oracle.v1beta1.Genesis.TobinTax result = new terra.oracle.v1beta1.Genesis.TobinTax(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.oracle.v1beta1.Genesis.TobinTax result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.denom_ = denom_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tobinTax_ = tobinTax_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof terra.oracle.v1beta1.Genesis.TobinTax) { return mergeFrom((terra.oracle.v1beta1.Genesis.TobinTax)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.oracle.v1beta1.Genesis.TobinTax other) { if (other == terra.oracle.v1beta1.Genesis.TobinTax.getDefaultInstance()) return this; if (!other.getDenom().isEmpty()) { denom_ = other.denom_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTobinTax().isEmpty()) { tobinTax_ = other.tobinTax_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { denom_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { tobinTax_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object denom_ = ""; /** * string denom = 1; * @return The denom. */ public java.lang.String getDenom() { java.lang.Object ref = denom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denom_ = s; return s; } else { return (java.lang.String) ref; } } /** * string denom = 1; * @return The bytes for denom. */ public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string denom = 1; * @param value The denom to set. * @return This builder for chaining. */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string denom = 1; * @return This builder for chaining. */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string denom = 1; * @param value The bytes for denom to set. * @return This builder for chaining. */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object tobinTax_ = ""; /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The tobinTax. */ public java.lang.String getTobinTax() { java.lang.Object ref = tobinTax_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tobinTax_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return The bytes for tobinTax. */ public com.google.protobuf.ByteString getTobinTaxBytes() { java.lang.Object ref = tobinTax_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tobinTax_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @param value The tobinTax to set. * @return This builder for chaining. */ public Builder setTobinTax( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tobinTax_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @return This builder for chaining. */ public Builder clearTobinTax() { tobinTax_ = getDefaultInstance().getTobinTax(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string tobin_tax = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.cosmos_proto.scalar) = "cosmos.Dec"]; * @param value The bytes for tobinTax to set. * @return This builder for chaining. */ public Builder setTobinTaxBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tobinTax_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.oracle.v1beta1.TobinTax) } // @@protoc_insertion_point(class_scope:terra.oracle.v1beta1.TobinTax) private static final terra.oracle.v1beta1.Genesis.TobinTax DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.oracle.v1beta1.Genesis.TobinTax(); } public static terra.oracle.v1beta1.Genesis.TobinTax getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TobinTax parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.oracle.v1beta1.Genesis.TobinTax getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_oracle_v1beta1_GenesisState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_oracle_v1beta1_GenesisState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_oracle_v1beta1_FeederDelegation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_oracle_v1beta1_MissCounter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_oracle_v1beta1_MissCounter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_oracle_v1beta1_TobinTax_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_oracle_v1beta1_TobinTax_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\"terra/oracle/v1beta1/genesis.proto\022\024te" + "rra.oracle.v1beta1\032\031cosmos_proto/cosmos." + "proto\032\024gogoproto/gogo.proto\032!terra/oracl" + "e/v1beta1/oracle.proto\"\246\004\n\014GenesisState\022" + "2\n\006params\030\001 \001(\0132\034.terra.oracle.v1beta1.P" + "aramsB\004\310\336\037\000\022H\n\022feeder_delegations\030\002 \003(\0132" + "&.terra.oracle.v1beta1.FeederDelegationB" + "\004\310\336\037\000\022[\n\016exchange_rates\030\003 \003(\0132\'.terra.or" + "acle.v1beta1.ExchangeRateTupleB\032\310\336\037\000\252\337\037\022" + "ExchangeRateTuples\022>\n\rmiss_counters\030\004 \003(" + "\0132!.terra.oracle.v1beta1.MissCounterB\004\310\336" + "\037\000\022b\n aggregate_exchange_rate_prevotes\030\005" + " \003(\01322.terra.oracle.v1beta1.AggregateExc" + "hangeRatePrevoteB\004\310\336\037\000\022\\\n\035aggregate_exch" + "ange_rate_votes\030\006 \003(\0132/.terra.oracle.v1b" + "eta1.AggregateExchangeRateVoteB\004\310\336\037\000\0229\n\013" + "tobin_taxes\030\007 \003(\0132\036.terra.oracle.v1beta1" + ".TobinTaxB\004\310\336\037\000\"y\n\020FeederDelegation\0220\n\016f" + "eeder_address\030\001 \001(\tB\030\322\264-\024cosmos.AddressS" + "tring\0223\n\021validator_address\030\002 \001(\tB\030\322\264-\024co" + "smos.AddressString\"X\n\013MissCounter\0223\n\021val" + "idator_address\030\001 \001(\tB\030\322\264-\024cosmos.Address" + "String\022\024\n\014miss_counter\030\002 \001(\004\"j\n\010TobinTax" + "\022\r\n\005denom\030\001 \001(\t\022O\n\ttobin_tax\030\002 \001(\tB<\310\336\037\000" + "\332\336\037&github.com/cosmos/cosmos-sdk/types.D" + "ec\322\264-\ncosmos.DecB1Z/github.com/classic-t" + "erra/core/v3/x/oracle/typesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { cosmos_proto.Cosmos.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), terra.oracle.v1beta1.Oracle.getDescriptor(), }); internal_static_terra_oracle_v1beta1_GenesisState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_terra_oracle_v1beta1_GenesisState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_oracle_v1beta1_GenesisState_descriptor, new java.lang.String[] { "Params", "FeederDelegations", "ExchangeRates", "MissCounters", "AggregateExchangeRatePrevotes", "AggregateExchangeRateVotes", "TobinTaxes", }); internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_terra_oracle_v1beta1_FeederDelegation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_oracle_v1beta1_FeederDelegation_descriptor, new java.lang.String[] { "FeederAddress", "ValidatorAddress", }); internal_static_terra_oracle_v1beta1_MissCounter_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_terra_oracle_v1beta1_MissCounter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_oracle_v1beta1_MissCounter_descriptor, new java.lang.String[] { "ValidatorAddress", "MissCounter", }); internal_static_terra_oracle_v1beta1_TobinTax_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_terra_oracle_v1beta1_TobinTax_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_oracle_v1beta1_TobinTax_descriptor, new java.lang.String[] { "Denom", "TobinTax", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(cosmos_proto.Cosmos.scalar); registry.add(com.google.protobuf.GoGoProtos.castrepeated); registry.add(com.google.protobuf.GoGoProtos.customtype); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); cosmos_proto.Cosmos.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); terra.oracle.v1beta1.Oracle.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy