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

cosmos.staking.v1beta1.Tx Maven / Gradle / Ivy

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

package cosmos.staking.v1beta1;

public final class Tx {
  private Tx() {}
  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 MsgCreateValidatorOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgCreateValidator)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false];
     */
    boolean hasDescription();
    /**
     * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false];
     */
    cosmos.staking.v1beta1.Staking.Description getDescription();
    /**
     * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false];
     */
    cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder();

    /**
     * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false];
     */
    boolean hasCommission();
    /**
     * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false];
     */
    cosmos.staking.v1beta1.Staking.CommissionRates getCommission();
    /**
     * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false];
     */
    cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder getCommissionOrBuilder();

    /**
     * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""];
     */
    java.lang.String getMinSelfDelegation();
    /**
     * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""];
     */
    com.google.protobuf.ByteString
        getMinSelfDelegationBytes();

    /**
     * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
     */
    java.lang.String getDelegatorAddress();
    /**
     * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
     */
    com.google.protobuf.ByteString
        getDelegatorAddressBytes();

    /**
     * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
     */
    java.lang.String getValidatorAddress();
    /**
     * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
     */
    com.google.protobuf.ByteString
        getValidatorAddressBytes();

    /**
     * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
     */
    boolean hasPubkey();
    /**
     * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
     */
    com.google.protobuf.Any getPubkey();
    /**
     * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
     */
    com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder();

    /**
     * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false];
     */
    boolean hasValue();
    /**
     * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false];
     */
    cosmos.base.v1beta1.CoinOuterClass.Coin getValue();
    /**
     * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false];
     */
    cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getValueOrBuilder();
  }
  /**
   * 
   * MsgCreateValidator defines a SDK message for creating a new validator.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidator} */ public static final class MsgCreateValidator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgCreateValidator) MsgCreateValidatorOrBuilder { private static final long serialVersionUID = 0L; // Use MsgCreateValidator.newBuilder() to construct. private MsgCreateValidator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgCreateValidator() { minSelfDelegation_ = ""; delegatorAddress_ = ""; validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgCreateValidator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cosmos.staking.v1beta1.Staking.Description.Builder subBuilder = null; if (description_ != null) { subBuilder = description_.toBuilder(); } description_ = input.readMessage(cosmos.staking.v1beta1.Staking.Description.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(description_); description_ = subBuilder.buildPartial(); } break; } case 18: { cosmos.staking.v1beta1.Staking.CommissionRates.Builder subBuilder = null; if (commission_ != null) { subBuilder = commission_.toBuilder(); } commission_ = input.readMessage(cosmos.staking.v1beta1.Staking.CommissionRates.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commission_); commission_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); minSelfDelegation_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); delegatorAddress_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); validatorAddress_ = s; break; } case 50: { com.google.protobuf.Any.Builder subBuilder = null; if (pubkey_ != null) { subBuilder = pubkey_.toBuilder(); } pubkey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pubkey_); pubkey_ = subBuilder.buildPartial(); } break; } case 58: { cosmos.base.v1beta1.CoinOuterClass.Coin.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgCreateValidator.class, cosmos.staking.v1beta1.Tx.MsgCreateValidator.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Description description_; /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public boolean hasDescription() { return description_ != null; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description getDescription() { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder() { return getDescription(); } public static final int COMMISSION_FIELD_NUMBER = 2; private cosmos.staking.v1beta1.Staking.CommissionRates commission_; /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public boolean hasCommission() { return commission_ != null; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.CommissionRates getCommission() { return commission_ == null ? cosmos.staking.v1beta1.Staking.CommissionRates.getDefaultInstance() : commission_; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder getCommissionOrBuilder() { return getCommission(); } public static final int MIN_SELF_DELEGATION_FIELD_NUMBER = 3; private volatile java.lang.Object minSelfDelegation_; /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public java.lang.String getMinSelfDelegation() { java.lang.Object ref = minSelfDelegation_; 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(); minSelfDelegation_ = s; return s; } } /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public com.google.protobuf.ByteString getMinSelfDelegationBytes() { java.lang.Object ref = minSelfDelegation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minSelfDelegation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 4; private volatile java.lang.Object delegatorAddress_; /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 5; private volatile java.lang.Object validatorAddress_; /** * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 PUBKEY_FIELD_NUMBER = 6; private com.google.protobuf.Any pubkey_; /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public boolean hasPubkey() { return pubkey_ != null; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public com.google.protobuf.Any getPubkey() { return pubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubkey_; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder() { return getPubkey(); } public static final int VALUE_FIELD_NUMBER = 7; private cosmos.base.v1beta1.CoinOuterClass.Coin value_; /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public boolean hasValue() { return value_ != null; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getValue() { return value_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : value_; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getValueOrBuilder() { return getValue(); } 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 (description_ != null) { output.writeMessage(1, getDescription()); } if (commission_ != null) { output.writeMessage(2, getCommission()); } if (!getMinSelfDelegationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, minSelfDelegation_); } if (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validatorAddress_); } if (pubkey_ != null) { output.writeMessage(6, getPubkey()); } if (value_ != null) { output.writeMessage(7, getValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (description_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDescription()); } if (commission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCommission()); } if (!getMinSelfDelegationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, minSelfDelegation_); } if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validatorAddress_); } if (pubkey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPubkey()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgCreateValidator)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgCreateValidator other = (cosmos.staking.v1beta1.Tx.MsgCreateValidator) obj; boolean result = true; result = result && (hasDescription() == other.hasDescription()); if (hasDescription()) { result = result && getDescription() .equals(other.getDescription()); } result = result && (hasCommission() == other.hasCommission()); if (hasCommission()) { result = result && getCommission() .equals(other.getCommission()); } result = result && getMinSelfDelegation() .equals(other.getMinSelfDelegation()); result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); result = result && getValidatorAddress() .equals(other.getValidatorAddress()); result = result && (hasPubkey() == other.hasPubkey()); if (hasPubkey()) { result = result && getPubkey() .equals(other.getPubkey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasCommission()) { hash = (37 * hash) + COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getCommission().hashCode(); } hash = (37 * hash) + MIN_SELF_DELEGATION_FIELD_NUMBER; hash = (53 * hash) + getMinSelfDelegation().hashCode(); hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); if (hasPubkey()) { hash = (37 * hash) + PUBKEY_FIELD_NUMBER; hash = (53 * hash) + getPubkey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgCreateValidator 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; } /** *
     * MsgCreateValidator defines a SDK message for creating a new validator.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgCreateValidator) cosmos.staking.v1beta1.Tx.MsgCreateValidatorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgCreateValidator.class, cosmos.staking.v1beta1.Tx.MsgCreateValidator.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgCreateValidator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (descriptionBuilder_ == null) { description_ = null; } else { description_ = null; descriptionBuilder_ = null; } if (commissionBuilder_ == null) { commission_ = null; } else { commission_ = null; commissionBuilder_ = null; } minSelfDelegation_ = ""; delegatorAddress_ = ""; validatorAddress_ = ""; if (pubkeyBuilder_ == null) { pubkey_ = null; } else { pubkey_ = null; pubkeyBuilder_ = null; } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidator getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgCreateValidator.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidator build() { cosmos.staking.v1beta1.Tx.MsgCreateValidator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidator buildPartial() { cosmos.staking.v1beta1.Tx.MsgCreateValidator result = new cosmos.staking.v1beta1.Tx.MsgCreateValidator(this); if (descriptionBuilder_ == null) { result.description_ = description_; } else { result.description_ = descriptionBuilder_.build(); } if (commissionBuilder_ == null) { result.commission_ = commission_; } else { result.commission_ = commissionBuilder_.build(); } result.minSelfDelegation_ = minSelfDelegation_; result.delegatorAddress_ = delegatorAddress_; result.validatorAddress_ = validatorAddress_; if (pubkeyBuilder_ == null) { result.pubkey_ = pubkey_; } else { result.pubkey_ = pubkeyBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgCreateValidator) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgCreateValidator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgCreateValidator other) { if (other == cosmos.staking.v1beta1.Tx.MsgCreateValidator.getDefaultInstance()) return this; if (other.hasDescription()) { mergeDescription(other.getDescription()); } if (other.hasCommission()) { mergeCommission(other.getCommission()); } if (!other.getMinSelfDelegation().isEmpty()) { minSelfDelegation_ = other.minSelfDelegation_; onChanged(); } if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; onChanged(); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; onChanged(); } if (other.hasPubkey()) { mergePubkey(other.getPubkey()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgCreateValidator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgCreateValidator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Description description_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder> descriptionBuilder_; /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public boolean hasDescription() { return descriptionBuilder_ != null || description_ != null; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description getDescription() { if (descriptionBuilder_ == null) { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } else { return descriptionBuilder_.getMessage(); } } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder setDescription(cosmos.staking.v1beta1.Staking.Description value) { if (descriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); } else { descriptionBuilder_.setMessage(value); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder setDescription( cosmos.staking.v1beta1.Staking.Description.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeDescription(cosmos.staking.v1beta1.Staking.Description value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = cosmos.staking.v1beta1.Staking.Description.newBuilder(description_).mergeFrom(value).buildPartial(); } else { description_ = value; } onChanged(); } else { descriptionBuilder_.mergeFrom(value); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder clearDescription() { if (descriptionBuilder_ == null) { description_ = null; onChanged(); } else { description_ = null; descriptionBuilder_ = null; } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description.Builder getDescriptionBuilder() { onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder() { if (descriptionBuilder_ != null) { return descriptionBuilder_.getMessageOrBuilder(); } else { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder> getDescriptionFieldBuilder() { if (descriptionBuilder_ == null) { descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder>( getDescription(), getParentForChildren(), isClean()); description_ = null; } return descriptionBuilder_; } private cosmos.staking.v1beta1.Staking.CommissionRates commission_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.CommissionRates, cosmos.staking.v1beta1.Staking.CommissionRates.Builder, cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder> commissionBuilder_; /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public boolean hasCommission() { return commissionBuilder_ != null || commission_ != null; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.CommissionRates getCommission() { if (commissionBuilder_ == null) { return commission_ == null ? cosmos.staking.v1beta1.Staking.CommissionRates.getDefaultInstance() : commission_; } else { return commissionBuilder_.getMessage(); } } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public Builder setCommission(cosmos.staking.v1beta1.Staking.CommissionRates value) { if (commissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commission_ = value; onChanged(); } else { commissionBuilder_.setMessage(value); } return this; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public Builder setCommission( cosmos.staking.v1beta1.Staking.CommissionRates.Builder builderForValue) { if (commissionBuilder_ == null) { commission_ = builderForValue.build(); onChanged(); } else { commissionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public Builder mergeCommission(cosmos.staking.v1beta1.Staking.CommissionRates value) { if (commissionBuilder_ == null) { if (commission_ != null) { commission_ = cosmos.staking.v1beta1.Staking.CommissionRates.newBuilder(commission_).mergeFrom(value).buildPartial(); } else { commission_ = value; } onChanged(); } else { commissionBuilder_.mergeFrom(value); } return this; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public Builder clearCommission() { if (commissionBuilder_ == null) { commission_ = null; onChanged(); } else { commission_ = null; commissionBuilder_ = null; } return this; } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.CommissionRates.Builder getCommissionBuilder() { onChanged(); return getCommissionFieldBuilder().getBuilder(); } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder getCommissionOrBuilder() { if (commissionBuilder_ != null) { return commissionBuilder_.getMessageOrBuilder(); } else { return commission_ == null ? cosmos.staking.v1beta1.Staking.CommissionRates.getDefaultInstance() : commission_; } } /** * .cosmos.staking.v1beta1.CommissionRates commission = 2 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.CommissionRates, cosmos.staking.v1beta1.Staking.CommissionRates.Builder, cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder> getCommissionFieldBuilder() { if (commissionBuilder_ == null) { commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.CommissionRates, cosmos.staking.v1beta1.Staking.CommissionRates.Builder, cosmos.staking.v1beta1.Staking.CommissionRatesOrBuilder>( getCommission(), getParentForChildren(), isClean()); commission_ = null; } return commissionBuilder_; } private java.lang.Object minSelfDelegation_ = ""; /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public java.lang.String getMinSelfDelegation() { java.lang.Object ref = minSelfDelegation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minSelfDelegation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public com.google.protobuf.ByteString getMinSelfDelegationBytes() { java.lang.Object ref = minSelfDelegation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minSelfDelegation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder setMinSelfDelegation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } minSelfDelegation_ = value; onChanged(); return this; } /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder clearMinSelfDelegation() { minSelfDelegation_ = getDefaultInstance().getMinSelfDelegation(); onChanged(); return this; } /** * string min_self_delegation = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder setMinSelfDelegationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); minSelfDelegation_ = value; onChanged(); return this; } private java.lang.Object delegatorAddress_ = ""; /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** * string delegator_address = 4 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = value; onChanged(); return this; } private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** * string validator_address = 5 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; onChanged(); return this; } private com.google.protobuf.Any pubkey_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> pubkeyBuilder_; /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public boolean hasPubkey() { return pubkeyBuilder_ != null || pubkey_ != null; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public com.google.protobuf.Any getPubkey() { if (pubkeyBuilder_ == null) { return pubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubkey_; } else { return pubkeyBuilder_.getMessage(); } } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public Builder setPubkey(com.google.protobuf.Any value) { if (pubkeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pubkey_ = value; onChanged(); } else { pubkeyBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public Builder setPubkey( com.google.protobuf.Any.Builder builderForValue) { if (pubkeyBuilder_ == null) { pubkey_ = builderForValue.build(); onChanged(); } else { pubkeyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public Builder mergePubkey(com.google.protobuf.Any value) { if (pubkeyBuilder_ == null) { if (pubkey_ != null) { pubkey_ = com.google.protobuf.Any.newBuilder(pubkey_).mergeFrom(value).buildPartial(); } else { pubkey_ = value; } onChanged(); } else { pubkeyBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public Builder clearPubkey() { if (pubkeyBuilder_ == null) { pubkey_ = null; onChanged(); } else { pubkey_ = null; pubkeyBuilder_ = null; } return this; } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public com.google.protobuf.Any.Builder getPubkeyBuilder() { onChanged(); return getPubkeyFieldBuilder().getBuilder(); } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ public com.google.protobuf.AnyOrBuilder getPubkeyOrBuilder() { if (pubkeyBuilder_ != null) { return pubkeyBuilder_.getMessageOrBuilder(); } else { return pubkey_ == null ? com.google.protobuf.Any.getDefaultInstance() : pubkey_; } } /** * .google.protobuf.Any pubkey = 6 [(.cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getPubkeyFieldBuilder() { if (pubkeyBuilder_ == null) { pubkeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getPubkey(), getParentForChildren(), isClean()); pubkey_ = null; } return pubkeyBuilder_; } private cosmos.base.v1beta1.CoinOuterClass.Coin value_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> valueBuilder_; /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getValue() { if (valueBuilder_ == null) { return value_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public Builder setValue(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public Builder setValue( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public Builder mergeValue(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = cosmos.base.v1beta1.CoinOuterClass.Coin.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : value_; } } /** * .cosmos.base.v1beta1.Coin value = 7 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgCreateValidator) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgCreateValidator) private static final cosmos.staking.v1beta1.Tx.MsgCreateValidator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgCreateValidator(); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidator getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgCreateValidator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgCreateValidator(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgCreateValidatorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgCreateValidatorResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidatorResponse} */ public static final class MsgCreateValidatorResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgCreateValidatorResponse) MsgCreateValidatorResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgCreateValidatorResponse.newBuilder() to construct. private MsgCreateValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgCreateValidatorResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgCreateValidatorResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.class, cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse other = (cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse 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; } /** *
     * MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgCreateValidatorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgCreateValidatorResponse) cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.class, cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse build() { cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse buildPartial() { cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse result = new cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse other) { if (other == cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgCreateValidatorResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgCreateValidatorResponse) private static final cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse(); } public static cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgCreateValidatorResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgCreateValidatorResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgEditValidatorOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgEditValidator) com.google.protobuf.MessageOrBuilder { /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ boolean hasDescription(); /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Description getDescription(); /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ java.lang.String getValidatorAddress(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ com.google.protobuf.ByteString getValidatorAddressBytes(); /** *
     * We pass a reference to the new commission rate and min self delegation as
     * it's not mandatory to update. If not updated, the deserialized rate will be
     * zero with no way to distinguish if an update was intended.
     * REF: #2373
     * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ java.lang.String getCommissionRate(); /** *
     * We pass a reference to the new commission rate and min self delegation as
     * it's not mandatory to update. If not updated, the deserialized rate will be
     * zero with no way to distinguish if an update was intended.
     * REF: #2373
     * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ com.google.protobuf.ByteString getCommissionRateBytes(); /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ java.lang.String getMinSelfDelegation(); /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ com.google.protobuf.ByteString getMinSelfDelegationBytes(); } /** *
   * MsgEditValidator defines a SDK message for editing an existing validator.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidator} */ public static final class MsgEditValidator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgEditValidator) MsgEditValidatorOrBuilder { private static final long serialVersionUID = 0L; // Use MsgEditValidator.newBuilder() to construct. private MsgEditValidator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgEditValidator() { validatorAddress_ = ""; commissionRate_ = ""; minSelfDelegation_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgEditValidator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cosmos.staking.v1beta1.Staking.Description.Builder subBuilder = null; if (description_ != null) { subBuilder = description_.toBuilder(); } description_ = input.readMessage(cosmos.staking.v1beta1.Staking.Description.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(description_); description_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddress_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); commissionRate_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); minSelfDelegation_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgEditValidator.class, cosmos.staking.v1beta1.Tx.MsgEditValidator.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Description description_; /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public boolean hasDescription() { return description_ != null; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description getDescription() { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder() { return getDescription(); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddress_; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"address\""]; */ 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 COMMISSION_RATE_FIELD_NUMBER = 3; private volatile java.lang.Object commissionRate_; /** *
     * We pass a reference to the new commission rate and min self delegation as
     * it's not mandatory to update. If not updated, the deserialized rate will be
     * zero with no way to distinguish if an update was intended.
     * REF: #2373
     * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public java.lang.String getCommissionRate() { java.lang.Object ref = commissionRate_; 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(); commissionRate_ = s; return s; } } /** *
     * We pass a reference to the new commission rate and min self delegation as
     * it's not mandatory to update. If not updated, the deserialized rate will be
     * zero with no way to distinguish if an update was intended.
     * REF: #2373
     * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public com.google.protobuf.ByteString getCommissionRateBytes() { java.lang.Object ref = commissionRate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commissionRate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIN_SELF_DELEGATION_FIELD_NUMBER = 4; private volatile java.lang.Object minSelfDelegation_; /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public java.lang.String getMinSelfDelegation() { java.lang.Object ref = minSelfDelegation_; 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(); minSelfDelegation_ = s; return s; } } /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public com.google.protobuf.ByteString getMinSelfDelegationBytes() { java.lang.Object ref = minSelfDelegation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minSelfDelegation_ = 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 (description_ != null) { output.writeMessage(1, getDescription()); } if (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); } if (!getCommissionRateBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commissionRate_); } if (!getMinSelfDelegationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, minSelfDelegation_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (description_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDescription()); } if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); } if (!getCommissionRateBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commissionRate_); } if (!getMinSelfDelegationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, minSelfDelegation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgEditValidator)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgEditValidator other = (cosmos.staking.v1beta1.Tx.MsgEditValidator) obj; boolean result = true; result = result && (hasDescription() == other.hasDescription()); if (hasDescription()) { result = result && getDescription() .equals(other.getDescription()); } result = result && getValidatorAddress() .equals(other.getValidatorAddress()); result = result && getCommissionRate() .equals(other.getCommissionRate()); result = result && getMinSelfDelegation() .equals(other.getMinSelfDelegation()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (37 * hash) + COMMISSION_RATE_FIELD_NUMBER; hash = (53 * hash) + getCommissionRate().hashCode(); hash = (37 * hash) + MIN_SELF_DELEGATION_FIELD_NUMBER; hash = (53 * hash) + getMinSelfDelegation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgEditValidator 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; } /** *
     * MsgEditValidator defines a SDK message for editing an existing validator.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgEditValidator) cosmos.staking.v1beta1.Tx.MsgEditValidatorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgEditValidator.class, cosmos.staking.v1beta1.Tx.MsgEditValidator.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgEditValidator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (descriptionBuilder_ == null) { description_ = null; } else { description_ = null; descriptionBuilder_ = null; } validatorAddress_ = ""; commissionRate_ = ""; minSelfDelegation_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidator getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgEditValidator.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidator build() { cosmos.staking.v1beta1.Tx.MsgEditValidator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidator buildPartial() { cosmos.staking.v1beta1.Tx.MsgEditValidator result = new cosmos.staking.v1beta1.Tx.MsgEditValidator(this); if (descriptionBuilder_ == null) { result.description_ = description_; } else { result.description_ = descriptionBuilder_.build(); } result.validatorAddress_ = validatorAddress_; result.commissionRate_ = commissionRate_; result.minSelfDelegation_ = minSelfDelegation_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgEditValidator) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgEditValidator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgEditValidator other) { if (other == cosmos.staking.v1beta1.Tx.MsgEditValidator.getDefaultInstance()) return this; if (other.hasDescription()) { mergeDescription(other.getDescription()); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; onChanged(); } if (!other.getCommissionRate().isEmpty()) { commissionRate_ = other.commissionRate_; onChanged(); } if (!other.getMinSelfDelegation().isEmpty()) { minSelfDelegation_ = other.minSelfDelegation_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgEditValidator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgEditValidator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Description description_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder> descriptionBuilder_; /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public boolean hasDescription() { return descriptionBuilder_ != null || description_ != null; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description getDescription() { if (descriptionBuilder_ == null) { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } else { return descriptionBuilder_.getMessage(); } } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder setDescription(cosmos.staking.v1beta1.Staking.Description value) { if (descriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); } else { descriptionBuilder_.setMessage(value); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder setDescription( cosmos.staking.v1beta1.Staking.Description.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeDescription(cosmos.staking.v1beta1.Staking.Description value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = cosmos.staking.v1beta1.Staking.Description.newBuilder(description_).mergeFrom(value).buildPartial(); } else { description_ = value; } onChanged(); } else { descriptionBuilder_.mergeFrom(value); } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public Builder clearDescription() { if (descriptionBuilder_ == null) { description_ = null; onChanged(); } else { description_ = null; descriptionBuilder_ = null; } return this; } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Description.Builder getDescriptionBuilder() { onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DescriptionOrBuilder getDescriptionOrBuilder() { if (descriptionBuilder_ != null) { return descriptionBuilder_.getMessageOrBuilder(); } else { return description_ == null ? cosmos.staking.v1beta1.Staking.Description.getDefaultInstance() : description_; } } /** * .cosmos.staking.v1beta1.Description description = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder> getDescriptionFieldBuilder() { if (descriptionBuilder_ == null) { descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Description, cosmos.staking.v1beta1.Staking.Description.Builder, cosmos.staking.v1beta1.Staking.DescriptionOrBuilder>( getDescription(), getParentForChildren(), isClean()); description_ = null; } return descriptionBuilder_; } private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"address\""]; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"address\""]; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; onChanged(); return this; } private java.lang.Object commissionRate_ = ""; /** *
       * We pass a reference to the new commission rate and min self delegation as
       * it's not mandatory to update. If not updated, the deserialized rate will be
       * zero with no way to distinguish if an update was intended.
       * REF: #2373
       * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public java.lang.String getCommissionRate() { java.lang.Object ref = commissionRate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commissionRate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * We pass a reference to the new commission rate and min self delegation as
       * it's not mandatory to update. If not updated, the deserialized rate will be
       * zero with no way to distinguish if an update was intended.
       * REF: #2373
       * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public com.google.protobuf.ByteString getCommissionRateBytes() { java.lang.Object ref = commissionRate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commissionRate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * We pass a reference to the new commission rate and min self delegation as
       * it's not mandatory to update. If not updated, the deserialized rate will be
       * zero with no way to distinguish if an update was intended.
       * REF: #2373
       * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public Builder setCommissionRate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } commissionRate_ = value; onChanged(); return this; } /** *
       * We pass a reference to the new commission rate and min self delegation as
       * it's not mandatory to update. If not updated, the deserialized rate will be
       * zero with no way to distinguish if an update was intended.
       * REF: #2373
       * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public Builder clearCommissionRate() { commissionRate_ = getDefaultInstance().getCommissionRate(); onChanged(); return this; } /** *
       * We pass a reference to the new commission rate and min self delegation as
       * it's not mandatory to update. If not updated, the deserialized rate will be
       * zero with no way to distinguish if an update was intended.
       * REF: #2373
       * 
* * string commission_rate = 3 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"commission_rate\""]; */ public Builder setCommissionRateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); commissionRate_ = value; onChanged(); return this; } private java.lang.Object minSelfDelegation_ = ""; /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public java.lang.String getMinSelfDelegation() { java.lang.Object ref = minSelfDelegation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minSelfDelegation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public com.google.protobuf.ByteString getMinSelfDelegationBytes() { java.lang.Object ref = minSelfDelegation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minSelfDelegation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder setMinSelfDelegation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } minSelfDelegation_ = value; onChanged(); return this; } /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder clearMinSelfDelegation() { minSelfDelegation_ = getDefaultInstance().getMinSelfDelegation(); onChanged(); return this; } /** * string min_self_delegation = 4 [(.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (.gogoproto.moretags) = "yaml:\"min_self_delegation\""]; */ public Builder setMinSelfDelegationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); minSelfDelegation_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgEditValidator) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgEditValidator) private static final cosmos.staking.v1beta1.Tx.MsgEditValidator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgEditValidator(); } public static cosmos.staking.v1beta1.Tx.MsgEditValidator getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgEditValidator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgEditValidator(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgEditValidatorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgEditValidatorResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgEditValidatorResponse defines the Msg/EditValidator response type.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidatorResponse} */ public static final class MsgEditValidatorResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgEditValidatorResponse) MsgEditValidatorResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgEditValidatorResponse.newBuilder() to construct. private MsgEditValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgEditValidatorResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgEditValidatorResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.class, cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse other = (cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse 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; } /** *
     * MsgEditValidatorResponse defines the Msg/EditValidator response type.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgEditValidatorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgEditValidatorResponse) cosmos.staking.v1beta1.Tx.MsgEditValidatorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.class, cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse build() { cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse buildPartial() { cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse result = new cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse other) { if (other == cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgEditValidatorResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgEditValidatorResponse) private static final cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse(); } public static cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgEditValidatorResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgEditValidatorResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgDelegateOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgDelegate) com.google.protobuf.MessageOrBuilder { /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ java.lang.String getDelegatorAddress(); /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ java.lang.String getValidatorAddress(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ com.google.protobuf.ByteString getValidatorAddressBytes(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ boolean hasAmount(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(); } /** *
   * MsgDelegate defines a SDK message for performing a delegation of coins
   * from a delegator to a validator.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegate} */ public static final class MsgDelegate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgDelegate) MsgDelegateOrBuilder { private static final long serialVersionUID = 0L; // Use MsgDelegate.newBuilder() to construct. private MsgDelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgDelegate() { delegatorAddress_ = ""; validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgDelegate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); delegatorAddress_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddress_ = s; break; } case 26: { cosmos.base.v1beta1.CoinOuterClass.Coin.Builder subBuilder = null; if (amount_ != null) { subBuilder = amount_.toBuilder(); } amount_ = input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(amount_); amount_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgDelegate.class, cosmos.staking.v1beta1.Tx.MsgDelegate.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddress_; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 AMOUNT_FIELD_NUMBER = 3; private cosmos.base.v1beta1.CoinOuterClass.Coin amount_; /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { return getAmount(); } 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); } if (amount_ != null) { output.writeMessage(3, getAmount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); } if (amount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAmount()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgDelegate)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgDelegate other = (cosmos.staking.v1beta1.Tx.MsgDelegate) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); result = result && getValidatorAddress() .equals(other.getValidatorAddress()); result = result && (hasAmount() == other.hasAmount()); if (hasAmount()) { result = result && getAmount() .equals(other.getAmount()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); if (hasAmount()) { hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgDelegate 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; } /** *
     * MsgDelegate defines a SDK message for performing a delegation of coins
     * from a delegator to a validator.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgDelegate) cosmos.staking.v1beta1.Tx.MsgDelegateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgDelegate.class, cosmos.staking.v1beta1.Tx.MsgDelegate.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgDelegate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); delegatorAddress_ = ""; validatorAddress_ = ""; if (amountBuilder_ == null) { amount_ = null; } else { amount_ = null; amountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegate getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgDelegate.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegate build() { cosmos.staking.v1beta1.Tx.MsgDelegate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegate buildPartial() { cosmos.staking.v1beta1.Tx.MsgDelegate result = new cosmos.staking.v1beta1.Tx.MsgDelegate(this); result.delegatorAddress_ = delegatorAddress_; result.validatorAddress_ = validatorAddress_; if (amountBuilder_ == null) { result.amount_ = amount_; } else { result.amount_ = amountBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgDelegate) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgDelegate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgDelegate other) { if (other == cosmos.staking.v1beta1.Tx.MsgDelegate.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; onChanged(); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; onChanged(); } if (other.hasAmount()) { mergeAmount(other.getAmount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgDelegate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgDelegate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = value; onChanged(); return this; } private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; onChanged(); return this; } private cosmos.base.v1beta1.CoinOuterClass.Coin amount_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> amountBuilder_; /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amountBuilder_ != null || amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { if (amountBuilder_ == null) { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder setAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); } else { amountBuilder_.setMessage(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder setAmount( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (amountBuilder_ == null) { amount_ = builderForValue.build(); onChanged(); } else { amountBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (amount_ != null) { amount_ = cosmos.base.v1beta1.CoinOuterClass.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); } else { amount_ = value; } onChanged(); } else { amountBuilder_.mergeFrom(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder clearAmount() { if (amountBuilder_ == null) { amount_ = null; onChanged(); } else { amount_ = null; amountBuilder_ = null; } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getAmountBuilder() { onChanged(); return getAmountFieldBuilder().getBuilder(); } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgDelegate) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgDelegate) private static final cosmos.staking.v1beta1.Tx.MsgDelegate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgDelegate(); } public static cosmos.staking.v1beta1.Tx.MsgDelegate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgDelegate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgDelegate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgDelegateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgDelegateResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgDelegateResponse defines the Msg/Delegate response type.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegateResponse} */ public static final class MsgDelegateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgDelegateResponse) MsgDelegateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgDelegateResponse.newBuilder() to construct. private MsgDelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgDelegateResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgDelegateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgDelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgDelegateResponse.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgDelegateResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgDelegateResponse other = (cosmos.staking.v1beta1.Tx.MsgDelegateResponse) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgDelegateResponse 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; } /** *
     * MsgDelegateResponse defines the Msg/Delegate response type.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgDelegateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgDelegateResponse) cosmos.staking.v1beta1.Tx.MsgDelegateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgDelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgDelegateResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgDelegateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegateResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgDelegateResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegateResponse build() { cosmos.staking.v1beta1.Tx.MsgDelegateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegateResponse buildPartial() { cosmos.staking.v1beta1.Tx.MsgDelegateResponse result = new cosmos.staking.v1beta1.Tx.MsgDelegateResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgDelegateResponse) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgDelegateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgDelegateResponse other) { if (other == cosmos.staking.v1beta1.Tx.MsgDelegateResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgDelegateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgDelegateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgDelegateResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgDelegateResponse) private static final cosmos.staking.v1beta1.Tx.MsgDelegateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgDelegateResponse(); } public static cosmos.staking.v1beta1.Tx.MsgDelegateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgDelegateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgDelegateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgDelegateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgBeginRedelegateOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgBeginRedelegate) com.google.protobuf.MessageOrBuilder { /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ java.lang.String getDelegatorAddress(); /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ java.lang.String getValidatorSrcAddress(); /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ com.google.protobuf.ByteString getValidatorSrcAddressBytes(); /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ java.lang.String getValidatorDstAddress(); /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ com.google.protobuf.ByteString getValidatorDstAddressBytes(); /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ boolean hasAmount(); /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(); /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(); } /** *
   * MsgBeginRedelegate defines a SDK message for performing a redelegation
   * of coins from a delegator and source validator to a destination validator.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegate} */ public static final class MsgBeginRedelegate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgBeginRedelegate) MsgBeginRedelegateOrBuilder { private static final long serialVersionUID = 0L; // Use MsgBeginRedelegate.newBuilder() to construct. private MsgBeginRedelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgBeginRedelegate() { delegatorAddress_ = ""; validatorSrcAddress_ = ""; validatorDstAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgBeginRedelegate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); delegatorAddress_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorSrcAddress_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); validatorDstAddress_ = s; break; } case 34: { cosmos.base.v1beta1.CoinOuterClass.Coin.Builder subBuilder = null; if (amount_ != null) { subBuilder = amount_.toBuilder(); } amount_ = input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(amount_); amount_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.class, cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_SRC_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object validatorSrcAddress_; /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public java.lang.String getValidatorSrcAddress() { java.lang.Object ref = validatorSrcAddress_; 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(); validatorSrcAddress_ = s; return s; } } /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public com.google.protobuf.ByteString getValidatorSrcAddressBytes() { java.lang.Object ref = validatorSrcAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorSrcAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_DST_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object validatorDstAddress_; /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public java.lang.String getValidatorDstAddress() { java.lang.Object ref = validatorDstAddress_; 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(); validatorDstAddress_ = s; return s; } } /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public com.google.protobuf.ByteString getValidatorDstAddressBytes() { java.lang.Object ref = validatorDstAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorDstAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMOUNT_FIELD_NUMBER = 4; private cosmos.base.v1beta1.CoinOuterClass.Coin amount_; /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { return getAmount(); } 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } if (!getValidatorSrcAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorSrcAddress_); } if (!getValidatorDstAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorDstAddress_); } if (amount_ != null) { output.writeMessage(4, getAmount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } if (!getValidatorSrcAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorSrcAddress_); } if (!getValidatorDstAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorDstAddress_); } if (amount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAmount()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgBeginRedelegate)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgBeginRedelegate other = (cosmos.staking.v1beta1.Tx.MsgBeginRedelegate) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); result = result && getValidatorSrcAddress() .equals(other.getValidatorSrcAddress()); result = result && getValidatorDstAddress() .equals(other.getValidatorDstAddress()); result = result && (hasAmount() == other.hasAmount()); if (hasAmount()) { result = result && getAmount() .equals(other.getAmount()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorSrcAddress().hashCode(); hash = (37 * hash) + VALIDATOR_DST_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorDstAddress().hashCode(); if (hasAmount()) { hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgBeginRedelegate 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; } /** *
     * MsgBeginRedelegate defines a SDK message for performing a redelegation
     * of coins from a delegator and source validator to a destination validator.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgBeginRedelegate) cosmos.staking.v1beta1.Tx.MsgBeginRedelegateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.class, cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); delegatorAddress_ = ""; validatorSrcAddress_ = ""; validatorDstAddress_ = ""; if (amountBuilder_ == null) { amount_ = null; } else { amount_ = null; amountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegate getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegate build() { cosmos.staking.v1beta1.Tx.MsgBeginRedelegate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegate buildPartial() { cosmos.staking.v1beta1.Tx.MsgBeginRedelegate result = new cosmos.staking.v1beta1.Tx.MsgBeginRedelegate(this); result.delegatorAddress_ = delegatorAddress_; result.validatorSrcAddress_ = validatorSrcAddress_; result.validatorDstAddress_ = validatorDstAddress_; if (amountBuilder_ == null) { result.amount_ = amount_; } else { result.amount_ = amountBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgBeginRedelegate) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgBeginRedelegate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgBeginRedelegate other) { if (other == cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; onChanged(); } if (!other.getValidatorSrcAddress().isEmpty()) { validatorSrcAddress_ = other.validatorSrcAddress_; onChanged(); } if (!other.getValidatorDstAddress().isEmpty()) { validatorDstAddress_ = other.validatorDstAddress_; onChanged(); } if (other.hasAmount()) { mergeAmount(other.getAmount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgBeginRedelegate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgBeginRedelegate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = value; onChanged(); return this; } private java.lang.Object validatorSrcAddress_ = ""; /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public java.lang.String getValidatorSrcAddress() { java.lang.Object ref = validatorSrcAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorSrcAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public com.google.protobuf.ByteString getValidatorSrcAddressBytes() { java.lang.Object ref = validatorSrcAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorSrcAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public Builder setValidatorSrcAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorSrcAddress_ = value; onChanged(); return this; } /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public Builder clearValidatorSrcAddress() { validatorSrcAddress_ = getDefaultInstance().getValidatorSrcAddress(); onChanged(); return this; } /** * string validator_src_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_src_address\""]; */ public Builder setValidatorSrcAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorSrcAddress_ = value; onChanged(); return this; } private java.lang.Object validatorDstAddress_ = ""; /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public java.lang.String getValidatorDstAddress() { java.lang.Object ref = validatorDstAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorDstAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public com.google.protobuf.ByteString getValidatorDstAddressBytes() { java.lang.Object ref = validatorDstAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorDstAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public Builder setValidatorDstAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorDstAddress_ = value; onChanged(); return this; } /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public Builder clearValidatorDstAddress() { validatorDstAddress_ = getDefaultInstance().getValidatorDstAddress(); onChanged(); return this; } /** * string validator_dst_address = 3 [(.gogoproto.moretags) = "yaml:\"validator_dst_address\""]; */ public Builder setValidatorDstAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorDstAddress_ = value; onChanged(); return this; } private cosmos.base.v1beta1.CoinOuterClass.Coin amount_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> amountBuilder_; /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amountBuilder_ != null || amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { if (amountBuilder_ == null) { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public Builder setAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); } else { amountBuilder_.setMessage(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public Builder setAmount( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (amountBuilder_ == null) { amount_ = builderForValue.build(); onChanged(); } else { amountBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public Builder mergeAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (amount_ != null) { amount_ = cosmos.base.v1beta1.CoinOuterClass.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); } else { amount_ = value; } onChanged(); } else { amountBuilder_.mergeFrom(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public Builder clearAmount() { if (amountBuilder_ == null) { amount_ = null; onChanged(); } else { amount_ = null; amountBuilder_ = null; } return this; } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getAmountBuilder() { onChanged(); return getAmountFieldBuilder().getBuilder(); } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } } /** * .cosmos.base.v1beta1.Coin amount = 4 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgBeginRedelegate) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgBeginRedelegate) private static final cosmos.staking.v1beta1.Tx.MsgBeginRedelegate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgBeginRedelegate(); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgBeginRedelegate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgBeginRedelegate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgBeginRedelegateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ boolean hasCompletionTime(); /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.Timestamp getCompletionTime(); /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); } /** *
   * MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegateResponse} */ public static final class MsgBeginRedelegateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) MsgBeginRedelegateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgBeginRedelegateResponse.newBuilder() to construct. private MsgBeginRedelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgBeginRedelegateResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgBeginRedelegateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (completionTime_ != null) { subBuilder = completionTime_.toBuilder(); } completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(completionTime_); completionTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.Builder.class); } public static final int COMPLETION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp completionTime_; /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasCompletionTime() { return completionTime_ != null; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getCompletionTime() { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { return getCompletionTime(); } 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 (completionTime_ != null) { output.writeMessage(1, getCompletionTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (completionTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCompletionTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse other = (cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse) obj; boolean result = true; result = result && (hasCompletionTime() == other.hasCompletionTime()); if (hasCompletionTime()) { result = result && getCompletionTime() .equals(other.getCompletionTime()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCompletionTime()) { hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompletionTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse 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; } /** *
     * MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgBeginRedelegateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (completionTimeBuilder_ == null) { completionTime_ = null; } else { completionTime_ = null; completionTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse build() { cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse buildPartial() { cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse result = new cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse(this); if (completionTimeBuilder_ == null) { result.completionTime_ = completionTime_; } else { result.completionTime_ = completionTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse other) { if (other == cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.getDefaultInstance()) return this; if (other.hasCompletionTime()) { mergeCompletionTime(other.getCompletionTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp completionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasCompletionTime() { return completionTimeBuilder_ != null || completionTime_ != null; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getCompletionTime() { if (completionTimeBuilder_ == null) { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } else { return completionTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } completionTime_ = value; onChanged(); } else { completionTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setCompletionTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (completionTimeBuilder_ == null) { completionTime_ = builderForValue.build(); onChanged(); } else { completionTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (completionTime_ != null) { completionTime_ = com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); } else { completionTime_ = value; } onChanged(); } else { completionTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearCompletionTime() { if (completionTimeBuilder_ == null) { completionTime_ = null; onChanged(); } else { completionTime_ = null; completionTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { onChanged(); return getCompletionTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { if (completionTimeBuilder_ != null) { return completionTimeBuilder_.getMessageOrBuilder(); } else { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCompletionTimeFieldBuilder() { if (completionTimeBuilder_ == null) { completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCompletionTime(), getParentForChildren(), isClean()); completionTime_ = null; } return completionTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgBeginRedelegateResponse) private static final cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse(); } public static cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgBeginRedelegateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgBeginRedelegateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgUndelegateOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgUndelegate) com.google.protobuf.MessageOrBuilder { /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ java.lang.String getDelegatorAddress(); /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ java.lang.String getValidatorAddress(); /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ com.google.protobuf.ByteString getValidatorAddressBytes(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ boolean hasAmount(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(); /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(); } /** *
   * MsgUndelegate defines a SDK message for performing an undelegation from a
   * delegate and a validator.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegate} */ public static final class MsgUndelegate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgUndelegate) MsgUndelegateOrBuilder { private static final long serialVersionUID = 0L; // Use MsgUndelegate.newBuilder() to construct. private MsgUndelegate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgUndelegate() { delegatorAddress_ = ""; validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgUndelegate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); delegatorAddress_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddress_ = s; break; } case 26: { cosmos.base.v1beta1.CoinOuterClass.Coin.Builder subBuilder = null; if (amount_ != null) { subBuilder = amount_.toBuilder(); } amount_ = input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(amount_); amount_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgUndelegate.class, cosmos.staking.v1beta1.Tx.MsgUndelegate.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddress_; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 AMOUNT_FIELD_NUMBER = 3; private cosmos.base.v1beta1.CoinOuterClass.Coin amount_; /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { return getAmount(); } 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); } if (amount_ != null) { output.writeMessage(3, getAmount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); } if (amount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAmount()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgUndelegate)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgUndelegate other = (cosmos.staking.v1beta1.Tx.MsgUndelegate) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); result = result && getValidatorAddress() .equals(other.getValidatorAddress()); result = result && (hasAmount() == other.hasAmount()); if (hasAmount()) { result = result && getAmount() .equals(other.getAmount()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); if (hasAmount()) { hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgUndelegate 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; } /** *
     * MsgUndelegate defines a SDK message for performing an undelegation from a
     * delegate and a validator.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgUndelegate) cosmos.staking.v1beta1.Tx.MsgUndelegateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgUndelegate.class, cosmos.staking.v1beta1.Tx.MsgUndelegate.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgUndelegate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); delegatorAddress_ = ""; validatorAddress_ = ""; if (amountBuilder_ == null) { amount_ = null; } else { amount_ = null; amountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegate getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgUndelegate.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegate build() { cosmos.staking.v1beta1.Tx.MsgUndelegate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegate buildPartial() { cosmos.staking.v1beta1.Tx.MsgUndelegate result = new cosmos.staking.v1beta1.Tx.MsgUndelegate(this); result.delegatorAddress_ = delegatorAddress_; result.validatorAddress_ = validatorAddress_; if (amountBuilder_ == null) { result.amount_ = amount_; } else { result.amount_ = amountBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgUndelegate) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgUndelegate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgUndelegate other) { if (other == cosmos.staking.v1beta1.Tx.MsgUndelegate.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; onChanged(); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; onChanged(); } if (other.hasAmount()) { mergeAmount(other.getAmount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgUndelegate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgUndelegate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** * string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""]; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = value; onChanged(); return this; } private java.lang.Object validatorAddress_ = ""; /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ 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 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** * string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""]; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; onChanged(); return this; } private cosmos.base.v1beta1.CoinOuterClass.Coin amount_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> amountBuilder_; /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAmount() { return amountBuilder_ != null || amount_ != null; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount() { if (amountBuilder_ == null) { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder setAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); } else { amountBuilder_.setMessage(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder setAmount( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (amountBuilder_ == null) { amount_ = builderForValue.build(); onChanged(); } else { amountBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (amountBuilder_ == null) { if (amount_ != null) { amount_ = cosmos.base.v1beta1.CoinOuterClass.Coin.newBuilder(amount_).mergeFrom(value).buildPartial(); } else { amount_ = value; } onChanged(); } else { amountBuilder_.mergeFrom(value); } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public Builder clearAmount() { if (amountBuilder_ == null) { amount_ = null; onChanged(); } else { amount_ = null; amountBuilder_ = null; } return this; } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getAmountBuilder() { onChanged(); return getAmountFieldBuilder().getBuilder(); } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { return amount_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : amount_; } } /** * .cosmos.base.v1beta1.Coin amount = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgUndelegate) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgUndelegate) private static final cosmos.staking.v1beta1.Tx.MsgUndelegate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgUndelegate(); } public static cosmos.staking.v1beta1.Tx.MsgUndelegate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgUndelegate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgUndelegate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgUndelegateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.MsgUndelegateResponse) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ boolean hasCompletionTime(); /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.Timestamp getCompletionTime(); /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); } /** *
   * MsgUndelegateResponse defines the Msg/Undelegate response type.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegateResponse} */ public static final class MsgUndelegateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.MsgUndelegateResponse) MsgUndelegateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgUndelegateResponse.newBuilder() to construct. private MsgUndelegateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgUndelegateResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgUndelegateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (completionTime_ != null) { subBuilder = completionTime_.toBuilder(); } completionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(completionTime_); completionTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.Builder.class); } public static final int COMPLETION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp completionTime_; /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasCompletionTime() { return completionTime_ != null; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getCompletionTime() { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { return getCompletionTime(); } 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 (completionTime_ != null) { output.writeMessage(1, getCompletionTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (completionTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCompletionTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.staking.v1beta1.Tx.MsgUndelegateResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.Tx.MsgUndelegateResponse other = (cosmos.staking.v1beta1.Tx.MsgUndelegateResponse) obj; boolean result = true; result = result && (hasCompletionTime() == other.hasCompletionTime()); if (hasCompletionTime()) { result = result && getCompletionTime() .equals(other.getCompletionTime()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCompletionTime()) { hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompletionTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.staking.v1beta1.Tx.MsgUndelegateResponse 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; } /** *
     * MsgUndelegateResponse defines the Msg/Undelegate response type.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.MsgUndelegateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.MsgUndelegateResponse) cosmos.staking.v1beta1.Tx.MsgUndelegateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.class, cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (completionTimeBuilder_ == null) { completionTime_ = null; } else { completionTime_ = null; completionTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.Tx.internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegateResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegateResponse build() { cosmos.staking.v1beta1.Tx.MsgUndelegateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegateResponse buildPartial() { cosmos.staking.v1beta1.Tx.MsgUndelegateResponse result = new cosmos.staking.v1beta1.Tx.MsgUndelegateResponse(this); if (completionTimeBuilder_ == null) { result.completionTime_ = completionTime_; } else { result.completionTime_ = completionTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.staking.v1beta1.Tx.MsgUndelegateResponse) { return mergeFrom((cosmos.staking.v1beta1.Tx.MsgUndelegateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.Tx.MsgUndelegateResponse other) { if (other == cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.getDefaultInstance()) return this; if (other.hasCompletionTime()) { mergeCompletionTime(other.getCompletionTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.staking.v1beta1.Tx.MsgUndelegateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.Tx.MsgUndelegateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp completionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public boolean hasCompletionTime() { return completionTimeBuilder_ != null || completionTime_ != null; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getCompletionTime() { if (completionTimeBuilder_ == null) { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } else { return completionTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } completionTime_ = value; onChanged(); } else { completionTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setCompletionTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (completionTimeBuilder_ == null) { completionTime_ = builderForValue.build(); onChanged(); } else { completionTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (completionTime_ != null) { completionTime_ = com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); } else { completionTime_ = value; } onChanged(); } else { completionTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearCompletionTime() { if (completionTimeBuilder_ == null) { completionTime_ = null; onChanged(); } else { completionTime_ = null; completionTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { onChanged(); return getCompletionTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { if (completionTimeBuilder_ != null) { return completionTimeBuilder_.getMessageOrBuilder(); } else { return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; } } /** * .google.protobuf.Timestamp completion_time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCompletionTimeFieldBuilder() { if (completionTimeBuilder_ == null) { completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCompletionTime(), getParentForChildren(), isClean()); completionTime_ = null; } return completionTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.staking.v1beta1.MsgUndelegateResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.MsgUndelegateResponse) private static final cosmos.staking.v1beta1.Tx.MsgUndelegateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.Tx.MsgUndelegateResponse(); } public static cosmos.staking.v1beta1.Tx.MsgUndelegateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgUndelegateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgUndelegateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.staking.v1beta1.Tx.MsgUndelegateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_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\037cosmos/staking/v1beta1/tx.proto\022\026cosmo" + "s.staking.v1beta1\032\031google/protobuf/any.p" + "roto\032\037google/protobuf/timestamp.proto\032\024g" + "ogoproto/gogo.proto\032\031cosmos_proto/cosmos" + ".proto\032\036cosmos/base/v1beta1/coin.proto\032$" + "cosmos/staking/v1beta1/staking.proto\"\356\003\n" + "\022MsgCreateValidator\022>\n\013description\030\001 \001(\013" + "2#.cosmos.staking.v1beta1.DescriptionB\004\310" + "\336\037\000\022A\n\ncommission\030\002 \001(\0132\'.cosmos.staking" + ".v1beta1.CommissionRatesB\004\310\336\037\000\022i\n\023min_se" + "lf_delegation\030\003 \001(\tBL\332\336\037&github.com/cosm" + "os/cosmos-sdk/types.Int\362\336\037\032yaml:\"min_sel" + "f_delegation\"\310\336\037\000\0227\n\021delegator_address\030\004" + " \001(\tB\034\362\336\037\030yaml:\"delegator_address\"\0227\n\021va" + "lidator_address\030\005 \001(\tB\034\362\336\037\030yaml:\"validat" + "or_address\"\022>\n\006pubkey\030\006 \001(\0132\024.google.pro" + "tobuf.AnyB\030\312\264-\024cosmos.crypto.PubKey\022.\n\005v" + "alue\030\007 \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310" + "\336\037\000:\010\350\240\037\000\210\240\037\000\"\034\n\032MsgCreateValidatorRespo" + "nse\"\321\002\n\020MsgEditValidator\022>\n\013description\030" + "\001 \001(\0132#.cosmos.staking.v1beta1.Descripti" + "onB\004\310\336\037\000\022-\n\021validator_address\030\002 \001(\tB\022\362\336\037" + "\016yaml:\"address\"\022]\n\017commission_rate\030\003 \001(\t" + "BD\332\336\037&github.com/cosmos/cosmos-sdk/types" + ".Dec\362\336\037\026yaml:\"commission_rate\"\022e\n\023min_se" + "lf_delegation\030\004 \001(\tBH\332\336\037&github.com/cosm" + "os/cosmos-sdk/types.Int\362\336\037\032yaml:\"min_sel" + "f_delegation\":\010\350\240\037\000\210\240\037\000\"\032\n\030MsgEditValida" + "torResponse\"\272\001\n\013MsgDelegate\0227\n\021delegator" + "_address\030\001 \001(\tB\034\362\336\037\030yaml:\"delegator_addr" + "ess\"\0227\n\021validator_address\030\002 \001(\tB\034\362\336\037\030yam" + "l:\"validator_address\"\022/\n\006amount\030\003 \001(\0132\031." + "cosmos.base.v1beta1.CoinB\004\310\336\037\000:\010\350\240\037\000\210\240\037\000" + "\"\025\n\023MsgDelegateResponse\"\212\002\n\022MsgBeginRede" + "legate\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030y" + "aml:\"delegator_address\"\022?\n\025validator_src" + "_address\030\002 \001(\tB \362\336\037\034yaml:\"validator_src_" + "address\"\022?\n\025validator_dst_address\030\003 \001(\tB" + " \362\336\037\034yaml:\"validator_dst_address\"\022/\n\006amo" + "unt\030\004 \001(\0132\031.cosmos.base.v1beta1.CoinB\004\310\336" + "\037\000:\010\350\240\037\000\210\240\037\000\"[\n\032MsgBeginRedelegateRespon" + "se\022=\n\017completion_time\030\001 \001(\0132\032.google.pro" + "tobuf.TimestampB\010\310\336\037\000\220\337\037\001\"\274\001\n\rMsgUndeleg" + "ate\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030yaml" + ":\"delegator_address\"\0227\n\021validator_addres" + "s\030\002 \001(\tB\034\362\336\037\030yaml:\"validator_address\"\022/\n" + "\006amount\030\003 \001(\0132\031.cosmos.base.v1beta1.Coin" + "B\004\310\336\037\000:\010\350\240\037\000\210\240\037\000\"V\n\025MsgUndelegateRespons" + "e\022=\n\017completion_time\030\001 \001(\0132\032.google.prot" + "obuf.TimestampB\010\310\336\037\000\220\337\037\0012\232\004\n\003Msg\022q\n\017Crea" + "teValidator\022*.cosmos.staking.v1beta1.Msg" + "CreateValidator\0322.cosmos.staking.v1beta1" + ".MsgCreateValidatorResponse\022k\n\rEditValid" + "ator\022(.cosmos.staking.v1beta1.MsgEditVal" + "idator\0320.cosmos.staking.v1beta1.MsgEditV" + "alidatorResponse\022\\\n\010Delegate\022#.cosmos.st" + "aking.v1beta1.MsgDelegate\032+.cosmos.staki" + "ng.v1beta1.MsgDelegateResponse\022q\n\017BeginR" + "edelegate\022*.cosmos.staking.v1beta1.MsgBe" + "ginRedelegate\0322.cosmos.staking.v1beta1.M" + "sgBeginRedelegateResponse\022b\n\nUndelegate\022" + "%.cosmos.staking.v1beta1.MsgUndelegate\032-" + ".cosmos.staking.v1beta1.MsgUndelegateRes" + "ponseB.Z,github.com/cosmos/cosmos-sdk/x/" + "staking/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), cosmos_proto.Cosmos.getDescriptor(), cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), cosmos.staking.v1beta1.Staking.getDescriptor(), }, assigner); internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_staking_v1beta1_MsgCreateValidator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgCreateValidator_descriptor, new java.lang.String[] { "Description", "Commission", "MinSelfDelegation", "DelegatorAddress", "ValidatorAddress", "Pubkey", "Value", }); internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgCreateValidatorResponse_descriptor, new java.lang.String[] { }); internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_staking_v1beta1_MsgEditValidator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgEditValidator_descriptor, new java.lang.String[] { "Description", "ValidatorAddress", "CommissionRate", "MinSelfDelegation", }); internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgEditValidatorResponse_descriptor, new java.lang.String[] { }); internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cosmos_staking_v1beta1_MsgDelegate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgDelegate_descriptor, new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Amount", }); internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgDelegateResponse_descriptor, new java.lang.String[] { }); internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgBeginRedelegate_descriptor, new java.lang.String[] { "DelegatorAddress", "ValidatorSrcAddress", "ValidatorDstAddress", "Amount", }); internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgBeginRedelegateResponse_descriptor, new java.lang.String[] { "CompletionTime", }); internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_cosmos_staking_v1beta1_MsgUndelegate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgUndelegate_descriptor, new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "Amount", }); internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_MsgUndelegateResponse_descriptor, new java.lang.String[] { "CompletionTime", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(cosmos_proto.Cosmos.acceptsInterface); registry.add(com.google.protobuf.GoGoProtos.customtype); registry.add(com.google.protobuf.GoGoProtos.equal); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.stdtime); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); cosmos_proto.Cosmos.getDescriptor(); cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); cosmos.staking.v1beta1.Staking.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy