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

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

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

package cosmos.authz.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 MsgGrantOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgGrant)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string granter = 1;
     * @return The granter.
     */
    java.lang.String getGranter();
    /**
     * string granter = 1;
     * @return The bytes for granter.
     */
    com.google.protobuf.ByteString
        getGranterBytes();

    /**
     * string grantee = 2;
     * @return The grantee.
     */
    java.lang.String getGrantee();
    /**
     * string grantee = 2;
     * @return The bytes for grantee.
     */
    com.google.protobuf.ByteString
        getGranteeBytes();

    /**
     * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false];
     * @return Whether the grant field is set.
     */
    boolean hasGrant();
    /**
     * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false];
     * @return The grant.
     */
    cosmos.authz.v1beta1.Authz.Grant getGrant();
    /**
     * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false];
     */
    cosmos.authz.v1beta1.Authz.GrantOrBuilder getGrantOrBuilder();
  }
  /**
   * 
   * MsgGrant is a request type for Grant method. It declares authorization to the grantee
   * on behalf of the granter with the provided expiration time.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgGrant} */ public static final class MsgGrant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgGrant) MsgGrantOrBuilder { private static final long serialVersionUID = 0L; // Use MsgGrant.newBuilder() to construct. private MsgGrant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgGrant() { granter_ = ""; grantee_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgGrant(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgGrant( 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); granter_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); grantee_ = s; break; } case 26: { cosmos.authz.v1beta1.Authz.Grant.Builder subBuilder = null; if (grant_ != null) { subBuilder = grant_.toBuilder(); } grant_ = input.readMessage(cosmos.authz.v1beta1.Authz.Grant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(grant_); grant_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( 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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrant_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgGrant.class, cosmos.authz.v1beta1.Tx.MsgGrant.Builder.class); } public static final int GRANTER_FIELD_NUMBER = 1; private volatile java.lang.Object granter_; /** * string granter = 1; * @return The granter. */ @java.lang.Override public java.lang.String getGranter() { java.lang.Object ref = granter_; 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(); granter_ = s; return s; } } /** * string granter = 1; * @return The bytes for granter. */ @java.lang.Override public com.google.protobuf.ByteString getGranterBytes() { java.lang.Object ref = granter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GRANTEE_FIELD_NUMBER = 2; private volatile java.lang.Object grantee_; /** * string grantee = 2; * @return The grantee. */ @java.lang.Override public java.lang.String getGrantee() { java.lang.Object ref = grantee_; 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(); grantee_ = s; return s; } } /** * string grantee = 2; * @return The bytes for grantee. */ @java.lang.Override public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GRANT_FIELD_NUMBER = 3; private cosmos.authz.v1beta1.Authz.Grant grant_; /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; * @return Whether the grant field is set. */ @java.lang.Override public boolean hasGrant() { return grant_ != null; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; * @return The grant. */ @java.lang.Override public cosmos.authz.v1beta1.Authz.Grant getGrant() { return grant_ == null ? cosmos.authz.v1beta1.Authz.Grant.getDefaultInstance() : grant_; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ @java.lang.Override public cosmos.authz.v1beta1.Authz.GrantOrBuilder getGrantOrBuilder() { return getGrant(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantee_); } if (grant_ != null) { output.writeMessage(3, getGrant()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, grantee_); } if (grant_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getGrant()); } 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.authz.v1beta1.Tx.MsgGrant)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgGrant other = (cosmos.authz.v1beta1.Tx.MsgGrant) obj; if (!getGranter() .equals(other.getGranter())) return false; if (!getGrantee() .equals(other.getGrantee())) return false; if (hasGrant() != other.hasGrant()) return false; if (hasGrant()) { if (!getGrant() .equals(other.getGrant())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GRANTER_FIELD_NUMBER; hash = (53 * hash) + getGranter().hashCode(); hash = (37 * hash) + GRANTEE_FIELD_NUMBER; hash = (53 * hash) + getGrantee().hashCode(); if (hasGrant()) { hash = (37 * hash) + GRANT_FIELD_NUMBER; hash = (53 * hash) + getGrant().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrant 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.authz.v1beta1.Tx.MsgGrant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrant 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.authz.v1beta1.Tx.MsgGrant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrant 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.authz.v1beta1.Tx.MsgGrant 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; } /** *
     * MsgGrant is a request type for Grant method. It declares authorization to the grantee
     * on behalf of the granter with the provided expiration time.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgGrant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgGrant) cosmos.authz.v1beta1.Tx.MsgGrantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrant_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgGrant.class, cosmos.authz.v1beta1.Tx.MsgGrant.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgGrant.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(); granter_ = ""; grantee_ = ""; if (grantBuilder_ == null) { grant_ = null; } else { grant_ = null; grantBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrant getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgGrant.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrant build() { cosmos.authz.v1beta1.Tx.MsgGrant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrant buildPartial() { cosmos.authz.v1beta1.Tx.MsgGrant result = new cosmos.authz.v1beta1.Tx.MsgGrant(this); result.granter_ = granter_; result.grantee_ = grantee_; if (grantBuilder_ == null) { result.grant_ = grant_; } else { result.grant_ = grantBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgGrant) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgGrant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgGrant other) { if (other == cosmos.authz.v1beta1.Tx.MsgGrant.getDefaultInstance()) return this; if (!other.getGranter().isEmpty()) { granter_ = other.granter_; onChanged(); } if (!other.getGrantee().isEmpty()) { grantee_ = other.grantee_; onChanged(); } if (other.hasGrant()) { mergeGrant(other.getGrant()); } 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.authz.v1beta1.Tx.MsgGrant parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgGrant) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object granter_ = ""; /** * string granter = 1; * @return The granter. */ public java.lang.String getGranter() { java.lang.Object ref = granter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); granter_ = s; return s; } else { return (java.lang.String) ref; } } /** * string granter = 1; * @return The bytes for granter. */ public com.google.protobuf.ByteString getGranterBytes() { java.lang.Object ref = granter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string granter = 1; * @param value The granter to set. * @return This builder for chaining. */ public Builder setGranter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } granter_ = value; onChanged(); return this; } /** * string granter = 1; * @return This builder for chaining. */ public Builder clearGranter() { granter_ = getDefaultInstance().getGranter(); onChanged(); return this; } /** * string granter = 1; * @param value The bytes for granter to set. * @return This builder for chaining. */ public Builder setGranterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); granter_ = value; onChanged(); return this; } private java.lang.Object grantee_ = ""; /** * string grantee = 2; * @return The grantee. */ public java.lang.String getGrantee() { java.lang.Object ref = grantee_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); grantee_ = s; return s; } else { return (java.lang.String) ref; } } /** * string grantee = 2; * @return The bytes for grantee. */ public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string grantee = 2; * @param value The grantee to set. * @return This builder for chaining. */ public Builder setGrantee( java.lang.String value) { if (value == null) { throw new NullPointerException(); } grantee_ = value; onChanged(); return this; } /** * string grantee = 2; * @return This builder for chaining. */ public Builder clearGrantee() { grantee_ = getDefaultInstance().getGrantee(); onChanged(); return this; } /** * string grantee = 2; * @param value The bytes for grantee to set. * @return This builder for chaining. */ public Builder setGranteeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); grantee_ = value; onChanged(); return this; } private cosmos.authz.v1beta1.Authz.Grant grant_; private com.google.protobuf.SingleFieldBuilderV3< cosmos.authz.v1beta1.Authz.Grant, cosmos.authz.v1beta1.Authz.Grant.Builder, cosmos.authz.v1beta1.Authz.GrantOrBuilder> grantBuilder_; /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; * @return Whether the grant field is set. */ public boolean hasGrant() { return grantBuilder_ != null || grant_ != null; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; * @return The grant. */ public cosmos.authz.v1beta1.Authz.Grant getGrant() { if (grantBuilder_ == null) { return grant_ == null ? cosmos.authz.v1beta1.Authz.Grant.getDefaultInstance() : grant_; } else { return grantBuilder_.getMessage(); } } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public Builder setGrant(cosmos.authz.v1beta1.Authz.Grant value) { if (grantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } grant_ = value; onChanged(); } else { grantBuilder_.setMessage(value); } return this; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public Builder setGrant( cosmos.authz.v1beta1.Authz.Grant.Builder builderForValue) { if (grantBuilder_ == null) { grant_ = builderForValue.build(); onChanged(); } else { grantBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeGrant(cosmos.authz.v1beta1.Authz.Grant value) { if (grantBuilder_ == null) { if (grant_ != null) { grant_ = cosmos.authz.v1beta1.Authz.Grant.newBuilder(grant_).mergeFrom(value).buildPartial(); } else { grant_ = value; } onChanged(); } else { grantBuilder_.mergeFrom(value); } return this; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public Builder clearGrant() { if (grantBuilder_ == null) { grant_ = null; onChanged(); } else { grant_ = null; grantBuilder_ = null; } return this; } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public cosmos.authz.v1beta1.Authz.Grant.Builder getGrantBuilder() { onChanged(); return getGrantFieldBuilder().getBuilder(); } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ public cosmos.authz.v1beta1.Authz.GrantOrBuilder getGrantOrBuilder() { if (grantBuilder_ != null) { return grantBuilder_.getMessageOrBuilder(); } else { return grant_ == null ? cosmos.authz.v1beta1.Authz.Grant.getDefaultInstance() : grant_; } } /** * .cosmos.authz.v1beta1.Grant grant = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.authz.v1beta1.Authz.Grant, cosmos.authz.v1beta1.Authz.Grant.Builder, cosmos.authz.v1beta1.Authz.GrantOrBuilder> getGrantFieldBuilder() { if (grantBuilder_ == null) { grantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.authz.v1beta1.Authz.Grant, cosmos.authz.v1beta1.Authz.Grant.Builder, cosmos.authz.v1beta1.Authz.GrantOrBuilder>( getGrant(), getParentForChildren(), isClean()); grant_ = null; } return grantBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgGrant) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgGrant) private static final cosmos.authz.v1beta1.Tx.MsgGrant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgGrant(); } public static cosmos.authz.v1beta1.Tx.MsgGrant getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgGrant parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgGrant(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.authz.v1beta1.Tx.MsgGrant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgExecResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgExecResponse) com.google.protobuf.MessageOrBuilder { /** * repeated bytes results = 1; * @return A list containing the results. */ java.util.List getResultsList(); /** * repeated bytes results = 1; * @return The count of results. */ int getResultsCount(); /** * repeated bytes results = 1; * @param index The index of the element to return. * @return The results at the given index. */ com.google.protobuf.ByteString getResults(int index); } /** *
   * MsgExecResponse defines the Msg/MsgExecResponse response type.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgExecResponse} */ public static final class MsgExecResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgExecResponse) MsgExecResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgExecResponse.newBuilder() to construct. private MsgExecResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgExecResponse() { results_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgExecResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgExecResponse( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExecResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgExecResponse.class, cosmos.authz.v1beta1.Tx.MsgExecResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** * repeated bytes results = 1; * @return A list containing the results. */ @java.lang.Override public java.util.List getResultsList() { return results_; } /** * repeated bytes results = 1; * @return The count of results. */ public int getResultsCount() { return results_.size(); } /** * repeated bytes results = 1; * @param index The index of the element to return. * @return The results at the given index. */ public com.google.protobuf.ByteString getResults(int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeBytes(1, results_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < results_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(results_.get(i)); } size += dataSize; size += 1 * getResultsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.authz.v1beta1.Tx.MsgExecResponse)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgExecResponse other = (cosmos.authz.v1beta1.Tx.MsgExecResponse) obj; if (!getResultsList() .equals(other.getResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse 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.authz.v1beta1.Tx.MsgExecResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse 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.authz.v1beta1.Tx.MsgExecResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse 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.authz.v1beta1.Tx.MsgExecResponse 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; } /** *
     * MsgExecResponse defines the Msg/MsgExecResponse response type.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgExecResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgExecResponse) cosmos.authz.v1beta1.Tx.MsgExecResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExecResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgExecResponse.class, cosmos.authz.v1beta1.Tx.MsgExecResponse.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgExecResponse.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(); results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExecResponse getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgExecResponse.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExecResponse build() { cosmos.authz.v1beta1.Tx.MsgExecResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExecResponse buildPartial() { cosmos.authz.v1beta1.Tx.MsgExecResponse result = new cosmos.authz.v1beta1.Tx.MsgExecResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgExecResponse) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgExecResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgExecResponse other) { if (other == cosmos.authz.v1beta1.Tx.MsgExecResponse.getDefaultInstance()) return this; if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } 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.authz.v1beta1.Tx.MsgExecResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgExecResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } /** * repeated bytes results = 1; * @return A list containing the results. */ public java.util.List getResultsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(results_) : results_; } /** * repeated bytes results = 1; * @return The count of results. */ public int getResultsCount() { return results_.size(); } /** * repeated bytes results = 1; * @param index The index of the element to return. * @return The results at the given index. */ public com.google.protobuf.ByteString getResults(int index) { return results_.get(index); } /** * repeated bytes results = 1; * @param index The index to set the value at. * @param value The results to set. * @return This builder for chaining. */ public Builder setResults( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); return this; } /** * repeated bytes results = 1; * @param value The results to add. * @return This builder for chaining. */ public Builder addResults(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); return this; } /** * repeated bytes results = 1; * @param values The results to add. * @return This builder for chaining. */ public Builder addAllResults( java.lang.Iterable values) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); return this; } /** * repeated bytes results = 1; * @return This builder for chaining. */ public Builder clearResults() { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgExecResponse) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgExecResponse) private static final cosmos.authz.v1beta1.Tx.MsgExecResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgExecResponse(); } public static cosmos.authz.v1beta1.Tx.MsgExecResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgExecResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgExecResponse(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.authz.v1beta1.Tx.MsgExecResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgExecOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgExec) com.google.protobuf.MessageOrBuilder { /** * string grantee = 1; * @return The grantee. */ java.lang.String getGrantee(); /** * string grantee = 1; * @return The bytes for grantee. */ com.google.protobuf.ByteString getGranteeBytes(); /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ java.util.List getMsgsList(); /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ com.google.protobuf.Any getMsgs(int index); /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ int getMsgsCount(); /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ java.util.List getMsgsOrBuilderList(); /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ com.google.protobuf.AnyOrBuilder getMsgsOrBuilder( int index); } /** *
   * MsgExec attempts to execute the provided messages using
   * authorizations granted to the grantee. Each message should have only
   * one signer corresponding to the granter of the authorization.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgExec} */ public static final class MsgExec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgExec) MsgExecOrBuilder { private static final long serialVersionUID = 0L; // Use MsgExec.newBuilder() to construct. private MsgExec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgExec() { grantee_ = ""; msgs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgExec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgExec( 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(); grantee_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { msgs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } msgs_.add( input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { msgs_ = java.util.Collections.unmodifiableList(msgs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExec_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgExec.class, cosmos.authz.v1beta1.Tx.MsgExec.Builder.class); } public static final int GRANTEE_FIELD_NUMBER = 1; private volatile java.lang.Object grantee_; /** * string grantee = 1; * @return The grantee. */ @java.lang.Override public java.lang.String getGrantee() { java.lang.Object ref = grantee_; 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(); grantee_ = s; return s; } } /** * string grantee = 1; * @return The bytes for grantee. */ @java.lang.Override public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MSGS_FIELD_NUMBER = 2; private java.util.List msgs_; /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ @java.lang.Override public java.util.List getMsgsList() { return msgs_; } /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ @java.lang.Override public java.util.List getMsgsOrBuilderList() { return msgs_; } /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ @java.lang.Override public int getMsgsCount() { return msgs_.size(); } /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ @java.lang.Override public com.google.protobuf.Any getMsgs(int index) { return msgs_.get(index); } /** *
     * Authorization Msg requests to execute. Each msg must implement Authorization interface
     * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
     * triple and validate it.
     * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder( int index) { return msgs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, grantee_); } for (int i = 0; i < msgs_.size(); i++) { output.writeMessage(2, msgs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, grantee_); } for (int i = 0; i < msgs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, msgs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.authz.v1beta1.Tx.MsgExec)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgExec other = (cosmos.authz.v1beta1.Tx.MsgExec) obj; if (!getGrantee() .equals(other.getGrantee())) return false; if (!getMsgsList() .equals(other.getMsgsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GRANTEE_FIELD_NUMBER; hash = (53 * hash) + getGrantee().hashCode(); if (getMsgsCount() > 0) { hash = (37 * hash) + MSGS_FIELD_NUMBER; hash = (53 * hash) + getMsgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgExec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExec 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.authz.v1beta1.Tx.MsgExec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExec 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.authz.v1beta1.Tx.MsgExec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgExec 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.authz.v1beta1.Tx.MsgExec 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; } /** *
     * MsgExec attempts to execute the provided messages using
     * authorizations granted to the grantee. Each message should have only
     * one signer corresponding to the granter of the authorization.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgExec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgExec) cosmos.authz.v1beta1.Tx.MsgExecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExec_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgExec.class, cosmos.authz.v1beta1.Tx.MsgExec.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgExec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMsgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); grantee_ = ""; if (msgsBuilder_ == null) { msgs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { msgsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgExec_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExec getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgExec.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExec build() { cosmos.authz.v1beta1.Tx.MsgExec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgExec buildPartial() { cosmos.authz.v1beta1.Tx.MsgExec result = new cosmos.authz.v1beta1.Tx.MsgExec(this); int from_bitField0_ = bitField0_; result.grantee_ = grantee_; if (msgsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { msgs_ = java.util.Collections.unmodifiableList(msgs_); bitField0_ = (bitField0_ & ~0x00000001); } result.msgs_ = msgs_; } else { result.msgs_ = msgsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgExec) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgExec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgExec other) { if (other == cosmos.authz.v1beta1.Tx.MsgExec.getDefaultInstance()) return this; if (!other.getGrantee().isEmpty()) { grantee_ = other.grantee_; onChanged(); } if (msgsBuilder_ == null) { if (!other.msgs_.isEmpty()) { if (msgs_.isEmpty()) { msgs_ = other.msgs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMsgsIsMutable(); msgs_.addAll(other.msgs_); } onChanged(); } } else { if (!other.msgs_.isEmpty()) { if (msgsBuilder_.isEmpty()) { msgsBuilder_.dispose(); msgsBuilder_ = null; msgs_ = other.msgs_; bitField0_ = (bitField0_ & ~0x00000001); msgsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMsgsFieldBuilder() : null; } else { msgsBuilder_.addAllMessages(other.msgs_); } } } 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.authz.v1beta1.Tx.MsgExec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgExec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object grantee_ = ""; /** * string grantee = 1; * @return The grantee. */ public java.lang.String getGrantee() { java.lang.Object ref = grantee_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); grantee_ = s; return s; } else { return (java.lang.String) ref; } } /** * string grantee = 1; * @return The bytes for grantee. */ public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string grantee = 1; * @param value The grantee to set. * @return This builder for chaining. */ public Builder setGrantee( java.lang.String value) { if (value == null) { throw new NullPointerException(); } grantee_ = value; onChanged(); return this; } /** * string grantee = 1; * @return This builder for chaining. */ public Builder clearGrantee() { grantee_ = getDefaultInstance().getGrantee(); onChanged(); return this; } /** * string grantee = 1; * @param value The bytes for grantee to set. * @return This builder for chaining. */ public Builder setGranteeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); grantee_ = value; onChanged(); return this; } private java.util.List msgs_ = java.util.Collections.emptyList(); private void ensureMsgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { msgs_ = new java.util.ArrayList(msgs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> msgsBuilder_; /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public java.util.List getMsgsList() { if (msgsBuilder_ == null) { return java.util.Collections.unmodifiableList(msgs_); } else { return msgsBuilder_.getMessageList(); } } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public int getMsgsCount() { if (msgsBuilder_ == null) { return msgs_.size(); } else { return msgsBuilder_.getCount(); } } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public com.google.protobuf.Any getMsgs(int index) { if (msgsBuilder_ == null) { return msgs_.get(index); } else { return msgsBuilder_.getMessage(index); } } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder setMsgs( int index, com.google.protobuf.Any value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.set(index, value); onChanged(); } else { msgsBuilder_.setMessage(index, value); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder setMsgs( int index, com.google.protobuf.Any.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.set(index, builderForValue.build()); onChanged(); } else { msgsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder addMsgs(com.google.protobuf.Any value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.add(value); onChanged(); } else { msgsBuilder_.addMessage(value); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder addMsgs( int index, com.google.protobuf.Any value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.add(index, value); onChanged(); } else { msgsBuilder_.addMessage(index, value); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder addMsgs( com.google.protobuf.Any.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.add(builderForValue.build()); onChanged(); } else { msgsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder addMsgs( int index, com.google.protobuf.Any.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.add(index, builderForValue.build()); onChanged(); } else { msgsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder addAllMsgs( java.lang.Iterable values) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, msgs_); onChanged(); } else { msgsBuilder_.addAllMessages(values); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder clearMsgs() { if (msgsBuilder_ == null) { msgs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { msgsBuilder_.clear(); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public Builder removeMsgs(int index) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.remove(index); onChanged(); } else { msgsBuilder_.remove(index); } return this; } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public com.google.protobuf.Any.Builder getMsgsBuilder( int index) { return getMsgsFieldBuilder().getBuilder(index); } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder( int index) { if (msgsBuilder_ == null) { return msgs_.get(index); } else { return msgsBuilder_.getMessageOrBuilder(index); } } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public java.util.List getMsgsOrBuilderList() { if (msgsBuilder_ != null) { return msgsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(msgs_); } } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public com.google.protobuf.Any.Builder addMsgsBuilder() { return getMsgsFieldBuilder().addBuilder( com.google.protobuf.Any.getDefaultInstance()); } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public com.google.protobuf.Any.Builder addMsgsBuilder( int index) { return getMsgsFieldBuilder().addBuilder( index, com.google.protobuf.Any.getDefaultInstance()); } /** *
       * Authorization Msg requests to execute. Each msg must implement Authorization interface
       * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
       * triple and validate it.
       * 
* * repeated .google.protobuf.Any msgs = 2 [(.cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; */ public java.util.List getMsgsBuilderList() { return getMsgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getMsgsFieldBuilder() { if (msgsBuilder_ == null) { msgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( msgs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); msgs_ = null; } return msgsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgExec) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgExec) private static final cosmos.authz.v1beta1.Tx.MsgExec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgExec(); } public static cosmos.authz.v1beta1.Tx.MsgExec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgExec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgExec(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.authz.v1beta1.Tx.MsgExec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgGrantResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgGrantResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgGrantResponse defines the Msg/MsgGrant response type.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgGrantResponse} */ public static final class MsgGrantResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgGrantResponse) MsgGrantResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgGrantResponse.newBuilder() to construct. private MsgGrantResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgGrantResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgGrantResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgGrantResponse( 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 (!parseUnknownField( 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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrantResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgGrantResponse.class, cosmos.authz.v1beta1.Tx.MsgGrantResponse.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.authz.v1beta1.Tx.MsgGrantResponse)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgGrantResponse other = (cosmos.authz.v1beta1.Tx.MsgGrantResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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.authz.v1beta1.Tx.MsgGrantResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse 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.authz.v1beta1.Tx.MsgGrantResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse 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.authz.v1beta1.Tx.MsgGrantResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse 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.authz.v1beta1.Tx.MsgGrantResponse 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; } /** *
     * MsgGrantResponse defines the Msg/MsgGrant response type.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgGrantResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgGrantResponse) cosmos.authz.v1beta1.Tx.MsgGrantResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrantResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgGrantResponse.class, cosmos.authz.v1beta1.Tx.MsgGrantResponse.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgGrantResponse.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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrantResponse getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgGrantResponse.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrantResponse build() { cosmos.authz.v1beta1.Tx.MsgGrantResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgGrantResponse buildPartial() { cosmos.authz.v1beta1.Tx.MsgGrantResponse result = new cosmos.authz.v1beta1.Tx.MsgGrantResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgGrantResponse) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgGrantResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgGrantResponse other) { if (other == cosmos.authz.v1beta1.Tx.MsgGrantResponse.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.authz.v1beta1.Tx.MsgGrantResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgGrantResponse) 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.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgGrantResponse) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgGrantResponse) private static final cosmos.authz.v1beta1.Tx.MsgGrantResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgGrantResponse(); } public static cosmos.authz.v1beta1.Tx.MsgGrantResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgGrantResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgGrantResponse(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.authz.v1beta1.Tx.MsgGrantResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgRevokeOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgRevoke) com.google.protobuf.MessageOrBuilder { /** * string granter = 1; * @return The granter. */ java.lang.String getGranter(); /** * string granter = 1; * @return The bytes for granter. */ com.google.protobuf.ByteString getGranterBytes(); /** * string grantee = 2; * @return The grantee. */ java.lang.String getGrantee(); /** * string grantee = 2; * @return The bytes for grantee. */ com.google.protobuf.ByteString getGranteeBytes(); /** * string msg_type_url = 3; * @return The msgTypeUrl. */ java.lang.String getMsgTypeUrl(); /** * string msg_type_url = 3; * @return The bytes for msgTypeUrl. */ com.google.protobuf.ByteString getMsgTypeUrlBytes(); } /** *
   * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
   * granter's account with that has been granted to the grantee.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgRevoke} */ public static final class MsgRevoke extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgRevoke) MsgRevokeOrBuilder { private static final long serialVersionUID = 0L; // Use MsgRevoke.newBuilder() to construct. private MsgRevoke(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgRevoke() { granter_ = ""; grantee_ = ""; msgTypeUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgRevoke(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgRevoke( 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); granter_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); grantee_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); msgTypeUrl_ = s; break; } default: { if (!parseUnknownField( 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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevoke_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgRevoke.class, cosmos.authz.v1beta1.Tx.MsgRevoke.Builder.class); } public static final int GRANTER_FIELD_NUMBER = 1; private volatile java.lang.Object granter_; /** * string granter = 1; * @return The granter. */ @java.lang.Override public java.lang.String getGranter() { java.lang.Object ref = granter_; 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(); granter_ = s; return s; } } /** * string granter = 1; * @return The bytes for granter. */ @java.lang.Override public com.google.protobuf.ByteString getGranterBytes() { java.lang.Object ref = granter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GRANTEE_FIELD_NUMBER = 2; private volatile java.lang.Object grantee_; /** * string grantee = 2; * @return The grantee. */ @java.lang.Override public java.lang.String getGrantee() { java.lang.Object ref = grantee_; 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(); grantee_ = s; return s; } } /** * string grantee = 2; * @return The bytes for grantee. */ @java.lang.Override public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MSG_TYPE_URL_FIELD_NUMBER = 3; private volatile java.lang.Object msgTypeUrl_; /** * string msg_type_url = 3; * @return The msgTypeUrl. */ @java.lang.Override public java.lang.String getMsgTypeUrl() { java.lang.Object ref = msgTypeUrl_; 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(); msgTypeUrl_ = s; return s; } } /** * string msg_type_url = 3; * @return The bytes for msgTypeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getMsgTypeUrlBytes() { java.lang.Object ref = msgTypeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msgTypeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantee_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgTypeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msgTypeUrl_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantee_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, grantee_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgTypeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msgTypeUrl_); } 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.authz.v1beta1.Tx.MsgRevoke)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgRevoke other = (cosmos.authz.v1beta1.Tx.MsgRevoke) obj; if (!getGranter() .equals(other.getGranter())) return false; if (!getGrantee() .equals(other.getGrantee())) return false; if (!getMsgTypeUrl() .equals(other.getMsgTypeUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GRANTER_FIELD_NUMBER; hash = (53 * hash) + getGranter().hashCode(); hash = (37 * hash) + GRANTEE_FIELD_NUMBER; hash = (53 * hash) + getGrantee().hashCode(); hash = (37 * hash) + MSG_TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getMsgTypeUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevoke parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevoke 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.authz.v1beta1.Tx.MsgRevoke parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevoke 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.authz.v1beta1.Tx.MsgRevoke parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevoke 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.authz.v1beta1.Tx.MsgRevoke 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; } /** *
     * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
     * granter's account with that has been granted to the grantee.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgRevoke} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgRevoke) cosmos.authz.v1beta1.Tx.MsgRevokeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevoke_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgRevoke.class, cosmos.authz.v1beta1.Tx.MsgRevoke.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgRevoke.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(); granter_ = ""; grantee_ = ""; msgTypeUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevoke getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgRevoke.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevoke build() { cosmos.authz.v1beta1.Tx.MsgRevoke result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevoke buildPartial() { cosmos.authz.v1beta1.Tx.MsgRevoke result = new cosmos.authz.v1beta1.Tx.MsgRevoke(this); result.granter_ = granter_; result.grantee_ = grantee_; result.msgTypeUrl_ = msgTypeUrl_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgRevoke) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgRevoke)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgRevoke other) { if (other == cosmos.authz.v1beta1.Tx.MsgRevoke.getDefaultInstance()) return this; if (!other.getGranter().isEmpty()) { granter_ = other.granter_; onChanged(); } if (!other.getGrantee().isEmpty()) { grantee_ = other.grantee_; onChanged(); } if (!other.getMsgTypeUrl().isEmpty()) { msgTypeUrl_ = other.msgTypeUrl_; 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.authz.v1beta1.Tx.MsgRevoke parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgRevoke) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object granter_ = ""; /** * string granter = 1; * @return The granter. */ public java.lang.String getGranter() { java.lang.Object ref = granter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); granter_ = s; return s; } else { return (java.lang.String) ref; } } /** * string granter = 1; * @return The bytes for granter. */ public com.google.protobuf.ByteString getGranterBytes() { java.lang.Object ref = granter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); granter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string granter = 1; * @param value The granter to set. * @return This builder for chaining. */ public Builder setGranter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } granter_ = value; onChanged(); return this; } /** * string granter = 1; * @return This builder for chaining. */ public Builder clearGranter() { granter_ = getDefaultInstance().getGranter(); onChanged(); return this; } /** * string granter = 1; * @param value The bytes for granter to set. * @return This builder for chaining. */ public Builder setGranterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); granter_ = value; onChanged(); return this; } private java.lang.Object grantee_ = ""; /** * string grantee = 2; * @return The grantee. */ public java.lang.String getGrantee() { java.lang.Object ref = grantee_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); grantee_ = s; return s; } else { return (java.lang.String) ref; } } /** * string grantee = 2; * @return The bytes for grantee. */ public com.google.protobuf.ByteString getGranteeBytes() { java.lang.Object ref = grantee_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); grantee_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string grantee = 2; * @param value The grantee to set. * @return This builder for chaining. */ public Builder setGrantee( java.lang.String value) { if (value == null) { throw new NullPointerException(); } grantee_ = value; onChanged(); return this; } /** * string grantee = 2; * @return This builder for chaining. */ public Builder clearGrantee() { grantee_ = getDefaultInstance().getGrantee(); onChanged(); return this; } /** * string grantee = 2; * @param value The bytes for grantee to set. * @return This builder for chaining. */ public Builder setGranteeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); grantee_ = value; onChanged(); return this; } private java.lang.Object msgTypeUrl_ = ""; /** * string msg_type_url = 3; * @return The msgTypeUrl. */ public java.lang.String getMsgTypeUrl() { java.lang.Object ref = msgTypeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msgTypeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * string msg_type_url = 3; * @return The bytes for msgTypeUrl. */ public com.google.protobuf.ByteString getMsgTypeUrlBytes() { java.lang.Object ref = msgTypeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msgTypeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string msg_type_url = 3; * @param value The msgTypeUrl to set. * @return This builder for chaining. */ public Builder setMsgTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } msgTypeUrl_ = value; onChanged(); return this; } /** * string msg_type_url = 3; * @return This builder for chaining. */ public Builder clearMsgTypeUrl() { msgTypeUrl_ = getDefaultInstance().getMsgTypeUrl(); onChanged(); return this; } /** * string msg_type_url = 3; * @param value The bytes for msgTypeUrl to set. * @return This builder for chaining. */ public Builder setMsgTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); msgTypeUrl_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgRevoke) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgRevoke) private static final cosmos.authz.v1beta1.Tx.MsgRevoke DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgRevoke(); } public static cosmos.authz.v1beta1.Tx.MsgRevoke getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgRevoke parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgRevoke(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.authz.v1beta1.Tx.MsgRevoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgRevokeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.authz.v1beta1.MsgRevokeResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
   * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgRevokeResponse} */ public static final class MsgRevokeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.authz.v1beta1.MsgRevokeResponse) MsgRevokeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgRevokeResponse.newBuilder() to construct. private MsgRevokeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgRevokeResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgRevokeResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgRevokeResponse( 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 (!parseUnknownField( 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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgRevokeResponse.class, cosmos.authz.v1beta1.Tx.MsgRevokeResponse.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.authz.v1beta1.Tx.MsgRevokeResponse)) { return super.equals(obj); } cosmos.authz.v1beta1.Tx.MsgRevokeResponse other = (cosmos.authz.v1beta1.Tx.MsgRevokeResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse 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.authz.v1beta1.Tx.MsgRevokeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse 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.authz.v1beta1.Tx.MsgRevokeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse 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.authz.v1beta1.Tx.MsgRevokeResponse 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; } /** *
     * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
     * 
* * Protobuf type {@code cosmos.authz.v1beta1.MsgRevokeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.authz.v1beta1.MsgRevokeResponse) cosmos.authz.v1beta1.Tx.MsgRevokeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.authz.v1beta1.Tx.MsgRevokeResponse.class, cosmos.authz.v1beta1.Tx.MsgRevokeResponse.Builder.class); } // Construct using cosmos.authz.v1beta1.Tx.MsgRevokeResponse.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.authz.v1beta1.Tx.internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevokeResponse getDefaultInstanceForType() { return cosmos.authz.v1beta1.Tx.MsgRevokeResponse.getDefaultInstance(); } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevokeResponse build() { cosmos.authz.v1beta1.Tx.MsgRevokeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.authz.v1beta1.Tx.MsgRevokeResponse buildPartial() { cosmos.authz.v1beta1.Tx.MsgRevokeResponse result = new cosmos.authz.v1beta1.Tx.MsgRevokeResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.authz.v1beta1.Tx.MsgRevokeResponse) { return mergeFrom((cosmos.authz.v1beta1.Tx.MsgRevokeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.authz.v1beta1.Tx.MsgRevokeResponse other) { if (other == cosmos.authz.v1beta1.Tx.MsgRevokeResponse.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.authz.v1beta1.Tx.MsgRevokeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.authz.v1beta1.Tx.MsgRevokeResponse) 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.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.authz.v1beta1.MsgRevokeResponse) } // @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgRevokeResponse) private static final cosmos.authz.v1beta1.Tx.MsgRevokeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.authz.v1beta1.Tx.MsgRevokeResponse(); } public static cosmos.authz.v1beta1.Tx.MsgRevokeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgRevokeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgRevokeResponse(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.authz.v1beta1.Tx.MsgRevokeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgGrant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgExecResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgExec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgExec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgGrantResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgRevoke_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_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\035cosmos/authz/v1beta1/tx.proto\022\024cosmos." + "authz.v1beta1\032\031cosmos_proto/cosmos.proto" + "\032\024gogoproto/gogo.proto\032\037google/protobuf/" + "timestamp.proto\032\031google/protobuf/any.pro" + "to\032#cosmos/base/abci/v1beta1/abci.proto\032" + " cosmos/authz/v1beta1/authz.proto\"^\n\010Msg" + "Grant\022\017\n\007granter\030\001 \001(\t\022\017\n\007grantee\030\002 \001(\t\022" + "0\n\005grant\030\003 \001(\0132\033.cosmos.authz.v1beta1.Gr" + "antB\004\310\336\037\000\"\"\n\017MsgExecResponse\022\017\n\007results\030" + "\001 \003(\014\"`\n\007MsgExec\022\017\n\007grantee\030\001 \001(\t\022D\n\004msg" + "s\030\002 \003(\0132\024.google.protobuf.AnyB \312\264-\034sdk.M" + "sg, authz.Authorization\"\022\n\020MsgGrantRespo" + "nse\"C\n\tMsgRevoke\022\017\n\007granter\030\001 \001(\t\022\017\n\007gra" + "ntee\030\002 \001(\t\022\024\n\014msg_type_url\030\003 \001(\t\"\023\n\021MsgR" + "evokeResponse2\370\001\n\003Msg\022O\n\005Grant\022\036.cosmos." + "authz.v1beta1.MsgGrant\032&.cosmos.authz.v1" + "beta1.MsgGrantResponse\022L\n\004Exec\022\035.cosmos." + "authz.v1beta1.MsgExec\032%.cosmos.authz.v1b" + "eta1.MsgExecResponse\022R\n\006Revoke\022\037.cosmos." + "authz.v1beta1.MsgRevoke\032\'.cosmos.authz.v" + "1beta1.MsgRevokeResponseB*Z$github.com/c" + "osmos/cosmos-sdk/x/authz\310\341\036\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { cosmos_proto.Cosmos.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), cosmos.base.abci.v1beta1.Abci.getDescriptor(), cosmos.authz.v1beta1.Authz.getDescriptor(), }); internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_authz_v1beta1_MsgGrant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgGrant_descriptor, new java.lang.String[] { "Granter", "Grantee", "Grant", }); internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_authz_v1beta1_MsgExecResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgExecResponse_descriptor, new java.lang.String[] { "Results", }); internal_static_cosmos_authz_v1beta1_MsgExec_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_authz_v1beta1_MsgExec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgExec_descriptor, new java.lang.String[] { "Grantee", "Msgs", }); internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_authz_v1beta1_MsgGrantResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgGrantResponse_descriptor, new java.lang.String[] { }); internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cosmos_authz_v1beta1_MsgRevoke_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgRevoke_descriptor, new java.lang.String[] { "Granter", "Grantee", "MsgTypeUrl", }); internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_authz_v1beta1_MsgRevokeResponse_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(cosmos_proto.Cosmos.acceptsInterface); registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); cosmos_proto.Cosmos.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); cosmos.base.abci.v1beta1.Abci.getDescriptor(); cosmos.authz.v1beta1.Authz.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy