
cosmos.tx.v1beta1.TxOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/tx/v1beta1/tx.proto
package cosmos.tx.v1beta1;
public final class TxOuterClass {
private TxOuterClass() {}
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 TxOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.Tx)
com.google.protobuf.MessageOrBuilder {
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
boolean hasBody();
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.TxBody getBody();
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder getBodyOrBuilder();
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
boolean hasAuthInfo();
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.AuthInfo getAuthInfo();
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder getAuthInfoOrBuilder();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
java.util.List getSignaturesList();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
int getSignaturesCount();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
com.google.protobuf.ByteString getSignatures(int index);
}
/**
*
* Tx is the standard type used for broadcasting transactions.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.Tx}
*/
public static final class Tx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.Tx)
TxOrBuilder {
private static final long serialVersionUID = 0L;
// Use Tx.newBuilder() to construct.
private Tx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tx() {
signatures_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Tx(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(cosmos.tx.v1beta1.TxOuterClass.TxBody.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
case 18: {
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder subBuilder = null;
if (authInfo_ != null) {
subBuilder = authInfo_.toBuilder();
}
authInfo_ = input.readMessage(cosmos.tx.v1beta1.TxOuterClass.AuthInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(authInfo_);
authInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
signatures_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.Tx.class, cosmos.tx.v1beta1.TxOuterClass.Tx.Builder.class);
}
private int bitField0_;
public static final int BODY_FIELD_NUMBER = 1;
private cosmos.tx.v1beta1.TxOuterClass.TxBody body_;
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public boolean hasBody() {
return body_ != null;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.TxBody getBody() {
return body_ == null ? cosmos.tx.v1beta1.TxOuterClass.TxBody.getDefaultInstance() : body_;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder getBodyOrBuilder() {
return getBody();
}
public static final int AUTH_INFO_FIELD_NUMBER = 2;
private cosmos.tx.v1beta1.TxOuterClass.AuthInfo authInfo_;
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public boolean hasAuthInfo() {
return authInfo_ != null;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo getAuthInfo() {
return authInfo_ == null ? cosmos.tx.v1beta1.TxOuterClass.AuthInfo.getDefaultInstance() : authInfo_;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder getAuthInfoOrBuilder() {
return getAuthInfo();
}
public static final int SIGNATURES_FIELD_NUMBER = 3;
private java.util.List signatures_;
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public java.util.List
getSignaturesList() {
return signatures_;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public int getSignaturesCount() {
return signatures_.size();
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public com.google.protobuf.ByteString getSignatures(int index) {
return signatures_.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 (body_ != null) {
output.writeMessage(1, getBody());
}
if (authInfo_ != null) {
output.writeMessage(2, getAuthInfo());
}
for (int i = 0; i < signatures_.size(); i++) {
output.writeBytes(3, signatures_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBody());
}
if (authInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAuthInfo());
}
{
int dataSize = 0;
for (int i = 0; i < signatures_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(signatures_.get(i));
}
size += dataSize;
size += 1 * getSignaturesList().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.tx.v1beta1.TxOuterClass.Tx)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.Tx other = (cosmos.tx.v1beta1.TxOuterClass.Tx) obj;
boolean result = true;
result = result && (hasBody() == other.hasBody());
if (hasBody()) {
result = result && getBody()
.equals(other.getBody());
}
result = result && (hasAuthInfo() == other.hasAuthInfo());
if (hasAuthInfo()) {
result = result && getAuthInfo()
.equals(other.getAuthInfo());
}
result = result && getSignaturesList()
.equals(other.getSignaturesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
if (hasAuthInfo()) {
hash = (37 * hash) + AUTH_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAuthInfo().hashCode();
}
if (getSignaturesCount() > 0) {
hash = (37 * hash) + SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getSignaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx 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.tx.v1beta1.TxOuterClass.Tx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx 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.tx.v1beta1.TxOuterClass.Tx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx 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.tx.v1beta1.TxOuterClass.Tx 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;
}
/**
*
* Tx is the standard type used for broadcasting transactions.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.Tx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.Tx)
cosmos.tx.v1beta1.TxOuterClass.TxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.Tx.class, cosmos.tx.v1beta1.TxOuterClass.Tx.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.Tx.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
if (authInfoBuilder_ == null) {
authInfo_ = null;
} else {
authInfo_ = null;
authInfoBuilder_ = null;
}
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Tx_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Tx getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.Tx.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Tx build() {
cosmos.tx.v1beta1.TxOuterClass.Tx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Tx buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.Tx result = new cosmos.tx.v1beta1.TxOuterClass.Tx(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
if (authInfoBuilder_ == null) {
result.authInfo_ = authInfo_;
} else {
result.authInfo_ = authInfoBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.signatures_ = signatures_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.Tx) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.Tx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.Tx other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.Tx.getDefaultInstance()) return this;
if (other.hasBody()) {
mergeBody(other.getBody());
}
if (other.hasAuthInfo()) {
mergeAuthInfo(other.getAuthInfo());
}
if (!other.signatures_.isEmpty()) {
if (signatures_.isEmpty()) {
signatures_ = other.signatures_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSignaturesIsMutable();
signatures_.addAll(other.signatures_);
}
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.tx.v1beta1.TxOuterClass.Tx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.Tx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cosmos.tx.v1beta1.TxOuterClass.TxBody body_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.TxBody, cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder, cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder> bodyBuilder_;
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.TxBody getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? cosmos.tx.v1beta1.TxOuterClass.TxBody.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public Builder setBody(cosmos.tx.v1beta1.TxOuterClass.TxBody value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public Builder setBody(
cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public Builder mergeBody(cosmos.tx.v1beta1.TxOuterClass.TxBody value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
cosmos.tx.v1beta1.TxOuterClass.TxBody.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
cosmos.tx.v1beta1.TxOuterClass.TxBody.getDefaultInstance() : body_;
}
}
/**
*
* body is the processable content of the transaction
*
*
* .cosmos.tx.v1beta1.TxBody body = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.TxBody, cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder, cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.TxBody, cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder, cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
private cosmos.tx.v1beta1.TxOuterClass.AuthInfo authInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.AuthInfo, cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder> authInfoBuilder_;
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public boolean hasAuthInfo() {
return authInfoBuilder_ != null || authInfo_ != null;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo getAuthInfo() {
if (authInfoBuilder_ == null) {
return authInfo_ == null ? cosmos.tx.v1beta1.TxOuterClass.AuthInfo.getDefaultInstance() : authInfo_;
} else {
return authInfoBuilder_.getMessage();
}
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public Builder setAuthInfo(cosmos.tx.v1beta1.TxOuterClass.AuthInfo value) {
if (authInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
authInfo_ = value;
onChanged();
} else {
authInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public Builder setAuthInfo(
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder builderForValue) {
if (authInfoBuilder_ == null) {
authInfo_ = builderForValue.build();
onChanged();
} else {
authInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public Builder mergeAuthInfo(cosmos.tx.v1beta1.TxOuterClass.AuthInfo value) {
if (authInfoBuilder_ == null) {
if (authInfo_ != null) {
authInfo_ =
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.newBuilder(authInfo_).mergeFrom(value).buildPartial();
} else {
authInfo_ = value;
}
onChanged();
} else {
authInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public Builder clearAuthInfo() {
if (authInfoBuilder_ == null) {
authInfo_ = null;
onChanged();
} else {
authInfo_ = null;
authInfoBuilder_ = null;
}
return this;
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder getAuthInfoBuilder() {
onChanged();
return getAuthInfoFieldBuilder().getBuilder();
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder getAuthInfoOrBuilder() {
if (authInfoBuilder_ != null) {
return authInfoBuilder_.getMessageOrBuilder();
} else {
return authInfo_ == null ?
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.getDefaultInstance() : authInfo_;
}
}
/**
*
* auth_info is the authorization related content of the transaction,
* specifically signers, signer modes and fee
*
*
* .cosmos.tx.v1beta1.AuthInfo auth_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.AuthInfo, cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder>
getAuthInfoFieldBuilder() {
if (authInfoBuilder_ == null) {
authInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.AuthInfo, cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder>(
getAuthInfo(),
getParentForChildren(),
isClean());
authInfo_ = null;
}
return authInfoBuilder_;
}
private java.util.List signatures_ = java.util.Collections.emptyList();
private void ensureSignaturesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = new java.util.ArrayList(signatures_);
bitField0_ |= 0x00000004;
}
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public java.util.List
getSignaturesList() {
return java.util.Collections.unmodifiableList(signatures_);
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public int getSignaturesCount() {
return signatures_.size();
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public com.google.protobuf.ByteString getSignatures(int index) {
return signatures_.get(index);
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder setSignatures(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.set(index, value);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder addSignatures(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.add(value);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder addAllSignatures(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatures_);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder clearSignatures() {
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.Tx)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.Tx)
private static final cosmos.tx.v1beta1.TxOuterClass.Tx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.Tx();
}
public static cosmos.tx.v1beta1.TxOuterClass.Tx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Tx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Tx(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.tx.v1beta1.TxOuterClass.Tx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TxRawOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.TxRaw)
com.google.protobuf.MessageOrBuilder {
/**
*
* body_bytes is a protobuf serialization of a TxBody that matches the
* representation in SignDoc.
*
*
* bytes body_bytes = 1;
*/
com.google.protobuf.ByteString getBodyBytes();
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in SignDoc.
*
*
* bytes auth_info_bytes = 2;
*/
com.google.protobuf.ByteString getAuthInfoBytes();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
java.util.List getSignaturesList();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
int getSignaturesCount();
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
com.google.protobuf.ByteString getSignatures(int index);
}
/**
*
* TxRaw is a variant of Tx that pins the signer's exact binary representation
* of body and auth_info. This is used for signing, broadcasting and
* verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
* the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
* as the transaction ID.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.TxRaw}
*/
public static final class TxRaw extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.TxRaw)
TxRawOrBuilder {
private static final long serialVersionUID = 0L;
// Use TxRaw.newBuilder() to construct.
private TxRaw(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TxRaw() {
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
signatures_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TxRaw(
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: {
bodyBytes_ = input.readBytes();
break;
}
case 18: {
authInfoBytes_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
signatures_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.TxRaw.class, cosmos.tx.v1beta1.TxOuterClass.TxRaw.Builder.class);
}
private int bitField0_;
public static final int BODY_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bodyBytes_;
/**
*
* body_bytes is a protobuf serialization of a TxBody that matches the
* representation in SignDoc.
*
*
* bytes body_bytes = 1;
*/
public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
public static final int AUTH_INFO_BYTES_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString authInfoBytes_;
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in SignDoc.
*
*
* bytes auth_info_bytes = 2;
*/
public com.google.protobuf.ByteString getAuthInfoBytes() {
return authInfoBytes_;
}
public static final int SIGNATURES_FIELD_NUMBER = 3;
private java.util.List signatures_;
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public java.util.List
getSignaturesList() {
return signatures_;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public int getSignaturesCount() {
return signatures_.size();
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public com.google.protobuf.ByteString getSignatures(int index) {
return signatures_.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 (!bodyBytes_.isEmpty()) {
output.writeBytes(1, bodyBytes_);
}
if (!authInfoBytes_.isEmpty()) {
output.writeBytes(2, authInfoBytes_);
}
for (int i = 0; i < signatures_.size(); i++) {
output.writeBytes(3, signatures_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!bodyBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, bodyBytes_);
}
if (!authInfoBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, authInfoBytes_);
}
{
int dataSize = 0;
for (int i = 0; i < signatures_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(signatures_.get(i));
}
size += dataSize;
size += 1 * getSignaturesList().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.tx.v1beta1.TxOuterClass.TxRaw)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.TxRaw other = (cosmos.tx.v1beta1.TxOuterClass.TxRaw) obj;
boolean result = true;
result = result && getBodyBytes()
.equals(other.getBodyBytes());
result = result && getAuthInfoBytes()
.equals(other.getAuthInfoBytes());
result = result && getSignaturesList()
.equals(other.getSignaturesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BODY_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBodyBytes().hashCode();
hash = (37 * hash) + AUTH_INFO_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getAuthInfoBytes().hashCode();
if (getSignaturesCount() > 0) {
hash = (37 * hash) + SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getSignaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw 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.tx.v1beta1.TxOuterClass.TxRaw parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw 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.tx.v1beta1.TxOuterClass.TxRaw parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw 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.tx.v1beta1.TxOuterClass.TxRaw 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;
}
/**
*
* TxRaw is a variant of Tx that pins the signer's exact binary representation
* of body and auth_info. This is used for signing, broadcasting and
* verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
* the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
* as the transaction ID.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.TxRaw}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.TxRaw)
cosmos.tx.v1beta1.TxOuterClass.TxRawOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.TxRaw.class, cosmos.tx.v1beta1.TxOuterClass.TxRaw.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.TxRaw.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();
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxRaw_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxRaw getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.TxRaw.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxRaw build() {
cosmos.tx.v1beta1.TxOuterClass.TxRaw result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxRaw buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.TxRaw result = new cosmos.tx.v1beta1.TxOuterClass.TxRaw(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.bodyBytes_ = bodyBytes_;
result.authInfoBytes_ = authInfoBytes_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.signatures_ = signatures_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.TxRaw) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.TxRaw)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.TxRaw other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.TxRaw.getDefaultInstance()) return this;
if (other.getBodyBytes() != com.google.protobuf.ByteString.EMPTY) {
setBodyBytes(other.getBodyBytes());
}
if (other.getAuthInfoBytes() != com.google.protobuf.ByteString.EMPTY) {
setAuthInfoBytes(other.getAuthInfoBytes());
}
if (!other.signatures_.isEmpty()) {
if (signatures_.isEmpty()) {
signatures_ = other.signatures_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSignaturesIsMutable();
signatures_.addAll(other.signatures_);
}
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.tx.v1beta1.TxOuterClass.TxRaw parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.TxRaw) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* body_bytes is a protobuf serialization of a TxBody that matches the
* representation in SignDoc.
*
*
* bytes body_bytes = 1;
*/
public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
/**
*
* body_bytes is a protobuf serialization of a TxBody that matches the
* representation in SignDoc.
*
*
* bytes body_bytes = 1;
*/
public Builder setBodyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bodyBytes_ = value;
onChanged();
return this;
}
/**
*
* body_bytes is a protobuf serialization of a TxBody that matches the
* representation in SignDoc.
*
*
* bytes body_bytes = 1;
*/
public Builder clearBodyBytes() {
bodyBytes_ = getDefaultInstance().getBodyBytes();
onChanged();
return this;
}
private com.google.protobuf.ByteString authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in SignDoc.
*
*
* bytes auth_info_bytes = 2;
*/
public com.google.protobuf.ByteString getAuthInfoBytes() {
return authInfoBytes_;
}
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in SignDoc.
*
*
* bytes auth_info_bytes = 2;
*/
public Builder setAuthInfoBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
authInfoBytes_ = value;
onChanged();
return this;
}
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in SignDoc.
*
*
* bytes auth_info_bytes = 2;
*/
public Builder clearAuthInfoBytes() {
authInfoBytes_ = getDefaultInstance().getAuthInfoBytes();
onChanged();
return this;
}
private java.util.List signatures_ = java.util.Collections.emptyList();
private void ensureSignaturesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
signatures_ = new java.util.ArrayList(signatures_);
bitField0_ |= 0x00000004;
}
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public java.util.List
getSignaturesList() {
return java.util.Collections.unmodifiableList(signatures_);
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public int getSignaturesCount() {
return signatures_.size();
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public com.google.protobuf.ByteString getSignatures(int index) {
return signatures_.get(index);
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder setSignatures(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.set(index, value);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder addSignatures(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignaturesIsMutable();
signatures_.add(value);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder addAllSignatures(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatures_);
onChanged();
return this;
}
/**
*
* signatures is a list of signatures that matches the length and order of
* AuthInfo's signer_infos to allow connecting signature meta information like
* public key and signing mode by position.
*
*
* repeated bytes signatures = 3;
*/
public Builder clearSignatures() {
signatures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.TxRaw)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.TxRaw)
private static final cosmos.tx.v1beta1.TxOuterClass.TxRaw DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.TxRaw();
}
public static cosmos.tx.v1beta1.TxOuterClass.TxRaw getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TxRaw parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TxRaw(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.tx.v1beta1.TxOuterClass.TxRaw getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignDocOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SignDoc)
com.google.protobuf.MessageOrBuilder {
/**
*
* body_bytes is protobuf serialization of a TxBody that matches the
* representation in TxRaw.
*
*
* bytes body_bytes = 1;
*/
com.google.protobuf.ByteString getBodyBytes();
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in TxRaw.
*
*
* bytes auth_info_bytes = 2;
*/
com.google.protobuf.ByteString getAuthInfoBytes();
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
java.lang.String getChainId();
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
com.google.protobuf.ByteString
getChainIdBytes();
/**
*
* account_number is the account number of the account in state
*
*
* uint64 account_number = 4;
*/
long getAccountNumber();
}
/**
*
* SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.SignDoc}
*/
public static final class SignDoc extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SignDoc)
SignDocOrBuilder {
private static final long serialVersionUID = 0L;
// Use SignDoc.newBuilder() to construct.
private SignDoc(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SignDoc() {
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
chainId_ = "";
accountNumber_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignDoc(
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: {
bodyBytes_ = input.readBytes();
break;
}
case 18: {
authInfoBytes_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
chainId_ = s;
break;
}
case 32: {
accountNumber_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.SignDoc.class, cosmos.tx.v1beta1.TxOuterClass.SignDoc.Builder.class);
}
public static final int BODY_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bodyBytes_;
/**
*
* body_bytes is protobuf serialization of a TxBody that matches the
* representation in TxRaw.
*
*
* bytes body_bytes = 1;
*/
public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
public static final int AUTH_INFO_BYTES_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString authInfoBytes_;
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in TxRaw.
*
*
* bytes auth_info_bytes = 2;
*/
public com.google.protobuf.ByteString getAuthInfoBytes() {
return authInfoBytes_;
}
public static final int CHAIN_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object chainId_;
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainId_ = s;
return s;
}
}
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCOUNT_NUMBER_FIELD_NUMBER = 4;
private long accountNumber_;
/**
*
* account_number is the account number of the account in state
*
*
* uint64 account_number = 4;
*/
public long getAccountNumber() {
return accountNumber_;
}
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 (!bodyBytes_.isEmpty()) {
output.writeBytes(1, bodyBytes_);
}
if (!authInfoBytes_.isEmpty()) {
output.writeBytes(2, authInfoBytes_);
}
if (!getChainIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainId_);
}
if (accountNumber_ != 0L) {
output.writeUInt64(4, accountNumber_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!bodyBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, bodyBytes_);
}
if (!authInfoBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, authInfoBytes_);
}
if (!getChainIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainId_);
}
if (accountNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, accountNumber_);
}
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.tx.v1beta1.TxOuterClass.SignDoc)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.SignDoc other = (cosmos.tx.v1beta1.TxOuterClass.SignDoc) obj;
boolean result = true;
result = result && getBodyBytes()
.equals(other.getBodyBytes());
result = result && getAuthInfoBytes()
.equals(other.getAuthInfoBytes());
result = result && getChainId()
.equals(other.getChainId());
result = result && (getAccountNumber()
== other.getAccountNumber());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BODY_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBodyBytes().hashCode();
hash = (37 * hash) + AUTH_INFO_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getAuthInfoBytes().hashCode();
hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId().hashCode();
hash = (37 * hash) + ACCOUNT_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountNumber());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc 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.tx.v1beta1.TxOuterClass.SignDoc parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc 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.tx.v1beta1.TxOuterClass.SignDoc parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc 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.tx.v1beta1.TxOuterClass.SignDoc 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;
}
/**
*
* SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.SignDoc}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SignDoc)
cosmos.tx.v1beta1.TxOuterClass.SignDocOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.SignDoc.class, cosmos.tx.v1beta1.TxOuterClass.SignDoc.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.SignDoc.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();
bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
chainId_ = "";
accountNumber_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignDoc_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignDoc getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.SignDoc.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignDoc build() {
cosmos.tx.v1beta1.TxOuterClass.SignDoc result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignDoc buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.SignDoc result = new cosmos.tx.v1beta1.TxOuterClass.SignDoc(this);
result.bodyBytes_ = bodyBytes_;
result.authInfoBytes_ = authInfoBytes_;
result.chainId_ = chainId_;
result.accountNumber_ = accountNumber_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.SignDoc) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.SignDoc)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.SignDoc other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.SignDoc.getDefaultInstance()) return this;
if (other.getBodyBytes() != com.google.protobuf.ByteString.EMPTY) {
setBodyBytes(other.getBodyBytes());
}
if (other.getAuthInfoBytes() != com.google.protobuf.ByteString.EMPTY) {
setAuthInfoBytes(other.getAuthInfoBytes());
}
if (!other.getChainId().isEmpty()) {
chainId_ = other.chainId_;
onChanged();
}
if (other.getAccountNumber() != 0L) {
setAccountNumber(other.getAccountNumber());
}
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.tx.v1beta1.TxOuterClass.SignDoc parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.SignDoc) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString bodyBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* body_bytes is protobuf serialization of a TxBody that matches the
* representation in TxRaw.
*
*
* bytes body_bytes = 1;
*/
public com.google.protobuf.ByteString getBodyBytes() {
return bodyBytes_;
}
/**
*
* body_bytes is protobuf serialization of a TxBody that matches the
* representation in TxRaw.
*
*
* bytes body_bytes = 1;
*/
public Builder setBodyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bodyBytes_ = value;
onChanged();
return this;
}
/**
*
* body_bytes is protobuf serialization of a TxBody that matches the
* representation in TxRaw.
*
*
* bytes body_bytes = 1;
*/
public Builder clearBodyBytes() {
bodyBytes_ = getDefaultInstance().getBodyBytes();
onChanged();
return this;
}
private com.google.protobuf.ByteString authInfoBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in TxRaw.
*
*
* bytes auth_info_bytes = 2;
*/
public com.google.protobuf.ByteString getAuthInfoBytes() {
return authInfoBytes_;
}
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in TxRaw.
*
*
* bytes auth_info_bytes = 2;
*/
public Builder setAuthInfoBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
authInfoBytes_ = value;
onChanged();
return this;
}
/**
*
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
* representation in TxRaw.
*
*
* bytes auth_info_bytes = 2;
*/
public Builder clearAuthInfoBytes() {
authInfoBytes_ = getDefaultInstance().getAuthInfoBytes();
onChanged();
return this;
}
private java.lang.Object chainId_ = "";
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public Builder setChainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainId_ = value;
onChanged();
return this;
}
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public Builder clearChainId() {
chainId_ = getDefaultInstance().getChainId();
onChanged();
return this;
}
/**
*
* chain_id is the unique identifier of the chain this transaction targets.
* It prevents signed transactions from being used on another chain by an
* attacker
*
*
* string chain_id = 3;
*/
public Builder setChainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainId_ = value;
onChanged();
return this;
}
private long accountNumber_ ;
/**
*
* account_number is the account number of the account in state
*
*
* uint64 account_number = 4;
*/
public long getAccountNumber() {
return accountNumber_;
}
/**
*
* account_number is the account number of the account in state
*
*
* uint64 account_number = 4;
*/
public Builder setAccountNumber(long value) {
accountNumber_ = value;
onChanged();
return this;
}
/**
*
* account_number is the account number of the account in state
*
*
* uint64 account_number = 4;
*/
public Builder clearAccountNumber() {
accountNumber_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SignDoc)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SignDoc)
private static final cosmos.tx.v1beta1.TxOuterClass.SignDoc DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.SignDoc();
}
public static cosmos.tx.v1beta1.TxOuterClass.SignDoc getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SignDoc parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignDoc(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.tx.v1beta1.TxOuterClass.SignDoc getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TxBodyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.TxBody)
com.google.protobuf.MessageOrBuilder {
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
java.util.List
getMessagesList();
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
com.google.protobuf.Any getMessages(int index);
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
int getMessagesCount();
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList();
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index);
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
java.lang.String getMemo();
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
com.google.protobuf.ByteString
getMemoBytes();
/**
*
* timeout is the block height after which this transaction will not
* be processed by the chain
*
*
* uint64 timeout_height = 3;
*/
long getTimeoutHeight();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
java.util.List
getExtensionOptionsList();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
com.google.protobuf.Any getExtensionOptions(int index);
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
int getExtensionOptionsCount();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getExtensionOptionsOrBuilderList();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder(
int index);
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
java.util.List
getNonCriticalExtensionOptionsList();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
com.google.protobuf.Any getNonCriticalExtensionOptions(int index);
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
int getNonCriticalExtensionOptionsCount();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getNonCriticalExtensionOptionsOrBuilderList();
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder(
int index);
}
/**
*
* TxBody is the body of a transaction that all signers sign over.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.TxBody}
*/
public static final class TxBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.TxBody)
TxBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use TxBody.newBuilder() to construct.
private TxBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TxBody() {
messages_ = java.util.Collections.emptyList();
memo_ = "";
timeoutHeight_ = 0L;
extensionOptions_ = java.util.Collections.emptyList();
nonCriticalExtensionOptions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TxBody(
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) == 0x00000001)) {
messages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
messages_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
case 24: {
timeoutHeight_ = input.readUInt64();
break;
}
case 8186: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
extensionOptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
extensionOptions_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 16378: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
nonCriticalExtensionOptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
nonCriticalExtensionOptions_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
extensionOptions_ = java.util.Collections.unmodifiableList(extensionOptions_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
nonCriticalExtensionOptions_ = java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.TxBody.class, cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder.class);
}
private int bitField0_;
public static final int MESSAGES_FIELD_NUMBER = 1;
private java.util.List messages_;
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List getMessagesList() {
return messages_;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList() {
return messages_;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public int getMessagesCount() {
return messages_.size();
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any getMessages(int index) {
return messages_.get(index);
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index) {
return messages_.get(index);
}
public static final int MEMO_FIELD_NUMBER = 2;
private volatile java.lang.Object memo_;
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
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();
memo_ = s;
return s;
}
}
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 3;
private long timeoutHeight_;
/**
*
* timeout is the block height after which this transaction will not
* be processed by the chain
*
*
* uint64 timeout_height = 3;
*/
public long getTimeoutHeight() {
return timeoutHeight_;
}
public static final int EXTENSION_OPTIONS_FIELD_NUMBER = 1023;
private java.util.List extensionOptions_;
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public java.util.List getExtensionOptionsList() {
return extensionOptions_;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getExtensionOptionsOrBuilderList() {
return extensionOptions_;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public int getExtensionOptionsCount() {
return extensionOptions_.size();
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.Any getExtensionOptions(int index) {
return extensionOptions_.get(index);
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder(
int index) {
return extensionOptions_.get(index);
}
public static final int NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER = 2047;
private java.util.List nonCriticalExtensionOptions_;
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public java.util.List getNonCriticalExtensionOptionsList() {
return nonCriticalExtensionOptions_;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getNonCriticalExtensionOptionsOrBuilderList() {
return nonCriticalExtensionOptions_;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public int getNonCriticalExtensionOptionsCount() {
return nonCriticalExtensionOptions_.size();
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.Any getNonCriticalExtensionOptions(int index) {
return nonCriticalExtensionOptions_.get(index);
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder(
int index) {
return nonCriticalExtensionOptions_.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 < messages_.size(); i++) {
output.writeMessage(1, messages_.get(i));
}
if (!getMemoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, memo_);
}
if (timeoutHeight_ != 0L) {
output.writeUInt64(3, timeoutHeight_);
}
for (int i = 0; i < extensionOptions_.size(); i++) {
output.writeMessage(1023, extensionOptions_.get(i));
}
for (int i = 0; i < nonCriticalExtensionOptions_.size(); i++) {
output.writeMessage(2047, nonCriticalExtensionOptions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < messages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, messages_.get(i));
}
if (!getMemoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, memo_);
}
if (timeoutHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timeoutHeight_);
}
for (int i = 0; i < extensionOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1023, extensionOptions_.get(i));
}
for (int i = 0; i < nonCriticalExtensionOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2047, nonCriticalExtensionOptions_.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.tx.v1beta1.TxOuterClass.TxBody)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.TxBody other = (cosmos.tx.v1beta1.TxOuterClass.TxBody) obj;
boolean result = true;
result = result && getMessagesList()
.equals(other.getMessagesList());
result = result && getMemo()
.equals(other.getMemo());
result = result && (getTimeoutHeight()
== other.getTimeoutHeight());
result = result && getExtensionOptionsList()
.equals(other.getExtensionOptionsList());
result = result && getNonCriticalExtensionOptionsList()
.equals(other.getNonCriticalExtensionOptionsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMessagesCount() > 0) {
hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getMessagesList().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeoutHeight());
if (getExtensionOptionsCount() > 0) {
hash = (37 * hash) + EXTENSION_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getExtensionOptionsList().hashCode();
}
if (getNonCriticalExtensionOptionsCount() > 0) {
hash = (37 * hash) + NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getNonCriticalExtensionOptionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody 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.tx.v1beta1.TxOuterClass.TxBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody 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.tx.v1beta1.TxOuterClass.TxBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody 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.tx.v1beta1.TxOuterClass.TxBody 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;
}
/**
*
* TxBody is the body of a transaction that all signers sign over.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.TxBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.TxBody)
cosmos.tx.v1beta1.TxOuterClass.TxBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.TxBody.class, cosmos.tx.v1beta1.TxOuterClass.TxBody.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.TxBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessagesFieldBuilder();
getExtensionOptionsFieldBuilder();
getNonCriticalExtensionOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
messagesBuilder_.clear();
}
memo_ = "";
timeoutHeight_ = 0L;
if (extensionOptionsBuilder_ == null) {
extensionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
extensionOptionsBuilder_.clear();
}
if (nonCriticalExtensionOptionsBuilder_ == null) {
nonCriticalExtensionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
nonCriticalExtensionOptionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_TxBody_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxBody getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.TxBody.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxBody build() {
cosmos.tx.v1beta1.TxOuterClass.TxBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.TxBody buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.TxBody result = new cosmos.tx.v1beta1.TxOuterClass.TxBody(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (messagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.messages_ = messages_;
} else {
result.messages_ = messagesBuilder_.build();
}
result.memo_ = memo_;
result.timeoutHeight_ = timeoutHeight_;
if (extensionOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
extensionOptions_ = java.util.Collections.unmodifiableList(extensionOptions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.extensionOptions_ = extensionOptions_;
} else {
result.extensionOptions_ = extensionOptionsBuilder_.build();
}
if (nonCriticalExtensionOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
nonCriticalExtensionOptions_ = java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.nonCriticalExtensionOptions_ = nonCriticalExtensionOptions_;
} else {
result.nonCriticalExtensionOptions_ = nonCriticalExtensionOptionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.TxBody) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.TxBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.TxBody other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.TxBody.getDefaultInstance()) return this;
if (messagesBuilder_ == null) {
if (!other.messages_.isEmpty()) {
if (messages_.isEmpty()) {
messages_ = other.messages_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMessagesIsMutable();
messages_.addAll(other.messages_);
}
onChanged();
}
} else {
if (!other.messages_.isEmpty()) {
if (messagesBuilder_.isEmpty()) {
messagesBuilder_.dispose();
messagesBuilder_ = null;
messages_ = other.messages_;
bitField0_ = (bitField0_ & ~0x00000001);
messagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessagesFieldBuilder() : null;
} else {
messagesBuilder_.addAllMessages(other.messages_);
}
}
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
if (other.getTimeoutHeight() != 0L) {
setTimeoutHeight(other.getTimeoutHeight());
}
if (extensionOptionsBuilder_ == null) {
if (!other.extensionOptions_.isEmpty()) {
if (extensionOptions_.isEmpty()) {
extensionOptions_ = other.extensionOptions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureExtensionOptionsIsMutable();
extensionOptions_.addAll(other.extensionOptions_);
}
onChanged();
}
} else {
if (!other.extensionOptions_.isEmpty()) {
if (extensionOptionsBuilder_.isEmpty()) {
extensionOptionsBuilder_.dispose();
extensionOptionsBuilder_ = null;
extensionOptions_ = other.extensionOptions_;
bitField0_ = (bitField0_ & ~0x00000008);
extensionOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtensionOptionsFieldBuilder() : null;
} else {
extensionOptionsBuilder_.addAllMessages(other.extensionOptions_);
}
}
}
if (nonCriticalExtensionOptionsBuilder_ == null) {
if (!other.nonCriticalExtensionOptions_.isEmpty()) {
if (nonCriticalExtensionOptions_.isEmpty()) {
nonCriticalExtensionOptions_ = other.nonCriticalExtensionOptions_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.addAll(other.nonCriticalExtensionOptions_);
}
onChanged();
}
} else {
if (!other.nonCriticalExtensionOptions_.isEmpty()) {
if (nonCriticalExtensionOptionsBuilder_.isEmpty()) {
nonCriticalExtensionOptionsBuilder_.dispose();
nonCriticalExtensionOptionsBuilder_ = null;
nonCriticalExtensionOptions_ = other.nonCriticalExtensionOptions_;
bitField0_ = (bitField0_ & ~0x00000010);
nonCriticalExtensionOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNonCriticalExtensionOptionsFieldBuilder() : null;
} else {
nonCriticalExtensionOptionsBuilder_.addAllMessages(other.nonCriticalExtensionOptions_);
}
}
}
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.tx.v1beta1.TxOuterClass.TxBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.TxBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List messages_ =
java.util.Collections.emptyList();
private void ensureMessagesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
messages_ = new java.util.ArrayList(messages_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> messagesBuilder_;
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List getMessagesList() {
if (messagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(messages_);
} else {
return messagesBuilder_.getMessageList();
}
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public int getMessagesCount() {
if (messagesBuilder_ == null) {
return messages_.size();
} else {
return messagesBuilder_.getCount();
}
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any getMessages(int index) {
if (messagesBuilder_ == null) {
return messages_.get(index);
} else {
return messagesBuilder_.getMessage(index);
}
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder setMessages(
int index, com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.set(index, value);
onChanged();
} else {
messagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder setMessages(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.set(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(value);
onChanged();
} else {
messagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
int index, com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(index, value);
onChanged();
} else {
messagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addAllMessages(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messages_);
onChanged();
} else {
messagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder clearMessages() {
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
messagesBuilder_.clear();
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public Builder removeMessages(int index) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.remove(index);
onChanged();
} else {
messagesBuilder_.remove(index);
}
return this;
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder getMessagesBuilder(
int index) {
return getMessagesFieldBuilder().getBuilder(index);
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index) {
if (messagesBuilder_ == null) {
return messages_.get(index); } else {
return messagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList() {
if (messagesBuilder_ != null) {
return messagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(messages_);
}
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder addMessagesBuilder() {
return getMessagesFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder addMessagesBuilder(
int index) {
return getMessagesFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* messages is a list of messages to be executed. The required signers of
* those messages define the number and order of elements in AuthInfo's
* signer_infos and Tx's signatures. Each required signer address is added to
* the list only the first time it occurs.
* By convention, the first required signer (usually from the first message)
* is referred to as the primary signer and pays the fee for the whole
* transaction.
*
*
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List
getMessagesBuilderList() {
return getMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getMessagesFieldBuilder() {
if (messagesBuilder_ == null) {
messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
messages_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
messages_ = null;
}
return messagesBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
* memo is any arbitrary memo to be added to the transaction
*
*
* string memo = 2;
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
private long timeoutHeight_ ;
/**
*
* timeout is the block height after which this transaction will not
* be processed by the chain
*
*
* uint64 timeout_height = 3;
*/
public long getTimeoutHeight() {
return timeoutHeight_;
}
/**
*
* timeout is the block height after which this transaction will not
* be processed by the chain
*
*
* uint64 timeout_height = 3;
*/
public Builder setTimeoutHeight(long value) {
timeoutHeight_ = value;
onChanged();
return this;
}
/**
*
* timeout is the block height after which this transaction will not
* be processed by the chain
*
*
* uint64 timeout_height = 3;
*/
public Builder clearTimeoutHeight() {
timeoutHeight_ = 0L;
onChanged();
return this;
}
private java.util.List extensionOptions_ =
java.util.Collections.emptyList();
private void ensureExtensionOptionsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
extensionOptions_ = new java.util.ArrayList(extensionOptions_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionOptionsBuilder_;
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public java.util.List getExtensionOptionsList() {
if (extensionOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(extensionOptions_);
} else {
return extensionOptionsBuilder_.getMessageList();
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public int getExtensionOptionsCount() {
if (extensionOptionsBuilder_ == null) {
return extensionOptions_.size();
} else {
return extensionOptionsBuilder_.getCount();
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.Any getExtensionOptions(int index) {
if (extensionOptionsBuilder_ == null) {
return extensionOptions_.get(index);
} else {
return extensionOptionsBuilder_.getMessage(index);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder setExtensionOptions(
int index, com.google.protobuf.Any value) {
if (extensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionOptionsIsMutable();
extensionOptions_.set(index, value);
onChanged();
} else {
extensionOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder setExtensionOptions(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (extensionOptionsBuilder_ == null) {
ensureExtensionOptionsIsMutable();
extensionOptions_.set(index, builderForValue.build());
onChanged();
} else {
extensionOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder addExtensionOptions(com.google.protobuf.Any value) {
if (extensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionOptionsIsMutable();
extensionOptions_.add(value);
onChanged();
} else {
extensionOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder addExtensionOptions(
int index, com.google.protobuf.Any value) {
if (extensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionOptionsIsMutable();
extensionOptions_.add(index, value);
onChanged();
} else {
extensionOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder addExtensionOptions(
com.google.protobuf.Any.Builder builderForValue) {
if (extensionOptionsBuilder_ == null) {
ensureExtensionOptionsIsMutable();
extensionOptions_.add(builderForValue.build());
onChanged();
} else {
extensionOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder addExtensionOptions(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (extensionOptionsBuilder_ == null) {
ensureExtensionOptionsIsMutable();
extensionOptions_.add(index, builderForValue.build());
onChanged();
} else {
extensionOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder addAllExtensionOptions(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (extensionOptionsBuilder_ == null) {
ensureExtensionOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extensionOptions_);
onChanged();
} else {
extensionOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder clearExtensionOptions() {
if (extensionOptionsBuilder_ == null) {
extensionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
extensionOptionsBuilder_.clear();
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public Builder removeExtensionOptions(int index) {
if (extensionOptionsBuilder_ == null) {
ensureExtensionOptionsIsMutable();
extensionOptions_.remove(index);
onChanged();
} else {
extensionOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.Any.Builder getExtensionOptionsBuilder(
int index) {
return getExtensionOptionsFieldBuilder().getBuilder(index);
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.AnyOrBuilder getExtensionOptionsOrBuilder(
int index) {
if (extensionOptionsBuilder_ == null) {
return extensionOptions_.get(index); } else {
return extensionOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getExtensionOptionsOrBuilderList() {
if (extensionOptionsBuilder_ != null) {
return extensionOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(extensionOptions_);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.Any.Builder addExtensionOptionsBuilder() {
return getExtensionOptionsFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public com.google.protobuf.Any.Builder addExtensionOptionsBuilder(
int index) {
return getExtensionOptionsFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, the transaction will be rejected
*
*
* repeated .google.protobuf.Any extension_options = 1023;
*/
public java.util.List
getExtensionOptionsBuilderList() {
return getExtensionOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getExtensionOptionsFieldBuilder() {
if (extensionOptionsBuilder_ == null) {
extensionOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
extensionOptions_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
extensionOptions_ = null;
}
return extensionOptionsBuilder_;
}
private java.util.List nonCriticalExtensionOptions_ =
java.util.Collections.emptyList();
private void ensureNonCriticalExtensionOptionsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
nonCriticalExtensionOptions_ = new java.util.ArrayList(nonCriticalExtensionOptions_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> nonCriticalExtensionOptionsBuilder_;
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public java.util.List getNonCriticalExtensionOptionsList() {
if (nonCriticalExtensionOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_);
} else {
return nonCriticalExtensionOptionsBuilder_.getMessageList();
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public int getNonCriticalExtensionOptionsCount() {
if (nonCriticalExtensionOptionsBuilder_ == null) {
return nonCriticalExtensionOptions_.size();
} else {
return nonCriticalExtensionOptionsBuilder_.getCount();
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.Any getNonCriticalExtensionOptions(int index) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
return nonCriticalExtensionOptions_.get(index);
} else {
return nonCriticalExtensionOptionsBuilder_.getMessage(index);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder setNonCriticalExtensionOptions(
int index, com.google.protobuf.Any value) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.set(index, value);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder setNonCriticalExtensionOptions(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.set(index, builderForValue.build());
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder addNonCriticalExtensionOptions(com.google.protobuf.Any value) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.add(value);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder addNonCriticalExtensionOptions(
int index, com.google.protobuf.Any value) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.add(index, value);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder addNonCriticalExtensionOptions(
com.google.protobuf.Any.Builder builderForValue) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.add(builderForValue.build());
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder addNonCriticalExtensionOptions(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.add(index, builderForValue.build());
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder addAllNonCriticalExtensionOptions(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
ensureNonCriticalExtensionOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nonCriticalExtensionOptions_);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder clearNonCriticalExtensionOptions() {
if (nonCriticalExtensionOptionsBuilder_ == null) {
nonCriticalExtensionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.clear();
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public Builder removeNonCriticalExtensionOptions(int index) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
ensureNonCriticalExtensionOptionsIsMutable();
nonCriticalExtensionOptions_.remove(index);
onChanged();
} else {
nonCriticalExtensionOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.Any.Builder getNonCriticalExtensionOptionsBuilder(
int index) {
return getNonCriticalExtensionOptionsFieldBuilder().getBuilder(index);
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.AnyOrBuilder getNonCriticalExtensionOptionsOrBuilder(
int index) {
if (nonCriticalExtensionOptionsBuilder_ == null) {
return nonCriticalExtensionOptions_.get(index); } else {
return nonCriticalExtensionOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getNonCriticalExtensionOptionsOrBuilderList() {
if (nonCriticalExtensionOptionsBuilder_ != null) {
return nonCriticalExtensionOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nonCriticalExtensionOptions_);
}
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.Any.Builder addNonCriticalExtensionOptionsBuilder() {
return getNonCriticalExtensionOptionsFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public com.google.protobuf.Any.Builder addNonCriticalExtensionOptionsBuilder(
int index) {
return getNonCriticalExtensionOptionsFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* extension_options are arbitrary options that can be added by chains
* when the default options are not sufficient. If any of these are present
* and can't be handled, they will be ignored
*
*
* repeated .google.protobuf.Any non_critical_extension_options = 2047;
*/
public java.util.List
getNonCriticalExtensionOptionsBuilderList() {
return getNonCriticalExtensionOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getNonCriticalExtensionOptionsFieldBuilder() {
if (nonCriticalExtensionOptionsBuilder_ == null) {
nonCriticalExtensionOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
nonCriticalExtensionOptions_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
nonCriticalExtensionOptions_ = null;
}
return nonCriticalExtensionOptionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.TxBody)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.TxBody)
private static final cosmos.tx.v1beta1.TxOuterClass.TxBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.TxBody();
}
public static cosmos.tx.v1beta1.TxOuterClass.TxBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TxBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TxBody(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.tx.v1beta1.TxOuterClass.TxBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuthInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.AuthInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
java.util.List
getSignerInfosList();
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.SignerInfo getSignerInfos(int index);
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
int getSignerInfosCount();
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
java.util.List extends cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder>
getSignerInfosOrBuilderList();
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder getSignerInfosOrBuilder(
int index);
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
boolean hasFee();
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.Fee getFee();
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder getFeeOrBuilder();
}
/**
*
* AuthInfo describes the fee and signer modes that are used to sign a
* transaction.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.AuthInfo}
*/
public static final class AuthInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.AuthInfo)
AuthInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuthInfo.newBuilder() to construct.
private AuthInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AuthInfo() {
signerInfos_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AuthInfo(
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) == 0x00000001)) {
signerInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
signerInfos_.add(
input.readMessage(cosmos.tx.v1beta1.TxOuterClass.SignerInfo.parser(), extensionRegistry));
break;
}
case 18: {
cosmos.tx.v1beta1.TxOuterClass.Fee.Builder subBuilder = null;
if (fee_ != null) {
subBuilder = fee_.toBuilder();
}
fee_ = input.readMessage(cosmos.tx.v1beta1.TxOuterClass.Fee.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fee_);
fee_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
signerInfos_ = java.util.Collections.unmodifiableList(signerInfos_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.class, cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder.class);
}
private int bitField0_;
public static final int SIGNER_INFOS_FIELD_NUMBER = 1;
private java.util.List signerInfos_;
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public java.util.List getSignerInfosList() {
return signerInfos_;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public java.util.List extends cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder>
getSignerInfosOrBuilderList() {
return signerInfos_;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public int getSignerInfosCount() {
return signerInfos_.size();
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo getSignerInfos(int index) {
return signerInfos_.get(index);
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder getSignerInfosOrBuilder(
int index) {
return signerInfos_.get(index);
}
public static final int FEE_FIELD_NUMBER = 2;
private cosmos.tx.v1beta1.TxOuterClass.Fee fee_;
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public boolean hasFee() {
return fee_ != null;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.Fee getFee() {
return fee_ == null ? cosmos.tx.v1beta1.TxOuterClass.Fee.getDefaultInstance() : fee_;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder getFeeOrBuilder() {
return getFee();
}
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 < signerInfos_.size(); i++) {
output.writeMessage(1, signerInfos_.get(i));
}
if (fee_ != null) {
output.writeMessage(2, getFee());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < signerInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, signerInfos_.get(i));
}
if (fee_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFee());
}
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.tx.v1beta1.TxOuterClass.AuthInfo)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.AuthInfo other = (cosmos.tx.v1beta1.TxOuterClass.AuthInfo) obj;
boolean result = true;
result = result && getSignerInfosList()
.equals(other.getSignerInfosList());
result = result && (hasFee() == other.hasFee());
if (hasFee()) {
result = result && getFee()
.equals(other.getFee());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSignerInfosCount() > 0) {
hash = (37 * hash) + SIGNER_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getSignerInfosList().hashCode();
}
if (hasFee()) {
hash = (37 * hash) + FEE_FIELD_NUMBER;
hash = (53 * hash) + getFee().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo 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.tx.v1beta1.TxOuterClass.AuthInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo 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.tx.v1beta1.TxOuterClass.AuthInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo 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.tx.v1beta1.TxOuterClass.AuthInfo 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;
}
/**
*
* AuthInfo describes the fee and signer modes that are used to sign a
* transaction.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.AuthInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.AuthInfo)
cosmos.tx.v1beta1.TxOuterClass.AuthInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.AuthInfo.class, cosmos.tx.v1beta1.TxOuterClass.AuthInfo.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.AuthInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSignerInfosFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (signerInfosBuilder_ == null) {
signerInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
signerInfosBuilder_.clear();
}
if (feeBuilder_ == null) {
fee_ = null;
} else {
fee_ = null;
feeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.AuthInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo build() {
cosmos.tx.v1beta1.TxOuterClass.AuthInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.AuthInfo buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.AuthInfo result = new cosmos.tx.v1beta1.TxOuterClass.AuthInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (signerInfosBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
signerInfos_ = java.util.Collections.unmodifiableList(signerInfos_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.signerInfos_ = signerInfos_;
} else {
result.signerInfos_ = signerInfosBuilder_.build();
}
if (feeBuilder_ == null) {
result.fee_ = fee_;
} else {
result.fee_ = feeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.AuthInfo) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.AuthInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.AuthInfo other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.AuthInfo.getDefaultInstance()) return this;
if (signerInfosBuilder_ == null) {
if (!other.signerInfos_.isEmpty()) {
if (signerInfos_.isEmpty()) {
signerInfos_ = other.signerInfos_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSignerInfosIsMutable();
signerInfos_.addAll(other.signerInfos_);
}
onChanged();
}
} else {
if (!other.signerInfos_.isEmpty()) {
if (signerInfosBuilder_.isEmpty()) {
signerInfosBuilder_.dispose();
signerInfosBuilder_ = null;
signerInfos_ = other.signerInfos_;
bitField0_ = (bitField0_ & ~0x00000001);
signerInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignerInfosFieldBuilder() : null;
} else {
signerInfosBuilder_.addAllMessages(other.signerInfos_);
}
}
}
if (other.hasFee()) {
mergeFee(other.getFee());
}
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.tx.v1beta1.TxOuterClass.AuthInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.AuthInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List signerInfos_ =
java.util.Collections.emptyList();
private void ensureSignerInfosIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
signerInfos_ = new java.util.ArrayList(signerInfos_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.SignerInfo, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder> signerInfosBuilder_;
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public java.util.List getSignerInfosList() {
if (signerInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(signerInfos_);
} else {
return signerInfosBuilder_.getMessageList();
}
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public int getSignerInfosCount() {
if (signerInfosBuilder_ == null) {
return signerInfos_.size();
} else {
return signerInfosBuilder_.getCount();
}
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo getSignerInfos(int index) {
if (signerInfosBuilder_ == null) {
return signerInfos_.get(index);
} else {
return signerInfosBuilder_.getMessage(index);
}
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder setSignerInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.SignerInfo value) {
if (signerInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignerInfosIsMutable();
signerInfos_.set(index, value);
onChanged();
} else {
signerInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder setSignerInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder builderForValue) {
if (signerInfosBuilder_ == null) {
ensureSignerInfosIsMutable();
signerInfos_.set(index, builderForValue.build());
onChanged();
} else {
signerInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder addSignerInfos(cosmos.tx.v1beta1.TxOuterClass.SignerInfo value) {
if (signerInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignerInfosIsMutable();
signerInfos_.add(value);
onChanged();
} else {
signerInfosBuilder_.addMessage(value);
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder addSignerInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.SignerInfo value) {
if (signerInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignerInfosIsMutable();
signerInfos_.add(index, value);
onChanged();
} else {
signerInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder addSignerInfos(
cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder builderForValue) {
if (signerInfosBuilder_ == null) {
ensureSignerInfosIsMutable();
signerInfos_.add(builderForValue.build());
onChanged();
} else {
signerInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder addSignerInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder builderForValue) {
if (signerInfosBuilder_ == null) {
ensureSignerInfosIsMutable();
signerInfos_.add(index, builderForValue.build());
onChanged();
} else {
signerInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder addAllSignerInfos(
java.lang.Iterable extends cosmos.tx.v1beta1.TxOuterClass.SignerInfo> values) {
if (signerInfosBuilder_ == null) {
ensureSignerInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signerInfos_);
onChanged();
} else {
signerInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder clearSignerInfos() {
if (signerInfosBuilder_ == null) {
signerInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
signerInfosBuilder_.clear();
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public Builder removeSignerInfos(int index) {
if (signerInfosBuilder_ == null) {
ensureSignerInfosIsMutable();
signerInfos_.remove(index);
onChanged();
} else {
signerInfosBuilder_.remove(index);
}
return this;
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder getSignerInfosBuilder(
int index) {
return getSignerInfosFieldBuilder().getBuilder(index);
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder getSignerInfosOrBuilder(
int index) {
if (signerInfosBuilder_ == null) {
return signerInfos_.get(index); } else {
return signerInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public java.util.List extends cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder>
getSignerInfosOrBuilderList() {
if (signerInfosBuilder_ != null) {
return signerInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(signerInfos_);
}
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder addSignerInfosBuilder() {
return getSignerInfosFieldBuilder().addBuilder(
cosmos.tx.v1beta1.TxOuterClass.SignerInfo.getDefaultInstance());
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder addSignerInfosBuilder(
int index) {
return getSignerInfosFieldBuilder().addBuilder(
index, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.getDefaultInstance());
}
/**
*
* signer_infos defines the signing modes for the required signers. The number
* and order of elements must match the required signers from TxBody's
* messages. The first element is the primary signer and the one which pays
* the fee.
*
*
* repeated .cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
*/
public java.util.List
getSignerInfosBuilderList() {
return getSignerInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.SignerInfo, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder>
getSignerInfosFieldBuilder() {
if (signerInfosBuilder_ == null) {
signerInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.SignerInfo, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder>(
signerInfos_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
signerInfos_ = null;
}
return signerInfosBuilder_;
}
private cosmos.tx.v1beta1.TxOuterClass.Fee fee_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.Fee, cosmos.tx.v1beta1.TxOuterClass.Fee.Builder, cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder> feeBuilder_;
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public boolean hasFee() {
return feeBuilder_ != null || fee_ != null;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.Fee getFee() {
if (feeBuilder_ == null) {
return fee_ == null ? cosmos.tx.v1beta1.TxOuterClass.Fee.getDefaultInstance() : fee_;
} else {
return feeBuilder_.getMessage();
}
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public Builder setFee(cosmos.tx.v1beta1.TxOuterClass.Fee value) {
if (feeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fee_ = value;
onChanged();
} else {
feeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public Builder setFee(
cosmos.tx.v1beta1.TxOuterClass.Fee.Builder builderForValue) {
if (feeBuilder_ == null) {
fee_ = builderForValue.build();
onChanged();
} else {
feeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public Builder mergeFee(cosmos.tx.v1beta1.TxOuterClass.Fee value) {
if (feeBuilder_ == null) {
if (fee_ != null) {
fee_ =
cosmos.tx.v1beta1.TxOuterClass.Fee.newBuilder(fee_).mergeFrom(value).buildPartial();
} else {
fee_ = value;
}
onChanged();
} else {
feeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public Builder clearFee() {
if (feeBuilder_ == null) {
fee_ = null;
onChanged();
} else {
fee_ = null;
feeBuilder_ = null;
}
return this;
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.Fee.Builder getFeeBuilder() {
onChanged();
return getFeeFieldBuilder().getBuilder();
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder getFeeOrBuilder() {
if (feeBuilder_ != null) {
return feeBuilder_.getMessageOrBuilder();
} else {
return fee_ == null ?
cosmos.tx.v1beta1.TxOuterClass.Fee.getDefaultInstance() : fee_;
}
}
/**
*
* Fee is the fee and gas limit for the transaction. The first signer is the
* primary signer and the one which pays the fee. The fee can be calculated
* based on the cost of evaluating the body and doing signature verification
* of the signers. This can be estimated via simulation.
*
*
* .cosmos.tx.v1beta1.Fee fee = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.Fee, cosmos.tx.v1beta1.TxOuterClass.Fee.Builder, cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder>
getFeeFieldBuilder() {
if (feeBuilder_ == null) {
feeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.Fee, cosmos.tx.v1beta1.TxOuterClass.Fee.Builder, cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder>(
getFee(),
getParentForChildren(),
isClean());
fee_ = null;
}
return feeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.AuthInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.AuthInfo)
private static final cosmos.tx.v1beta1.TxOuterClass.AuthInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.AuthInfo();
}
public static cosmos.tx.v1beta1.TxOuterClass.AuthInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuthInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AuthInfo(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.tx.v1beta1.TxOuterClass.AuthInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignerInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.SignerInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
boolean hasPublicKey();
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
com.google.protobuf.Any getPublicKey();
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder();
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
boolean hasModeInfo();
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfo();
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfoOrBuilder();
/**
*
* sequence is the sequence of the account, which describes the
* number of committed transactions signed by a given address. It is used to
* prevent replay attacks.
*
*
* uint64 sequence = 3;
*/
long getSequence();
}
/**
*
* SignerInfo describes the public key and signing mode of a single top-level
* signer.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.SignerInfo}
*/
public static final class SignerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.SignerInfo)
SignerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SignerInfo.newBuilder() to construct.
private SignerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SignerInfo() {
sequence_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignerInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Any.Builder subBuilder = null;
if (publicKey_ != null) {
subBuilder = publicKey_.toBuilder();
}
publicKey_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(publicKey_);
publicKey_ = subBuilder.buildPartial();
}
break;
}
case 18: {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder subBuilder = null;
if (modeInfo_ != null) {
subBuilder = modeInfo_.toBuilder();
}
modeInfo_ = input.readMessage(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(modeInfo_);
modeInfo_ = subBuilder.buildPartial();
}
break;
}
case 24: {
sequence_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.SignerInfo.class, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder.class);
}
public static final int PUBLIC_KEY_FIELD_NUMBER = 1;
private com.google.protobuf.Any publicKey_;
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public boolean hasPublicKey() {
return publicKey_ != null;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public com.google.protobuf.Any getPublicKey() {
return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() {
return getPublicKey();
}
public static final int MODE_INFO_FIELD_NUMBER = 2;
private cosmos.tx.v1beta1.TxOuterClass.ModeInfo modeInfo_;
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public boolean hasModeInfo() {
return modeInfo_ != null;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfo() {
return modeInfo_ == null ? cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance() : modeInfo_;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfoOrBuilder() {
return getModeInfo();
}
public static final int SEQUENCE_FIELD_NUMBER = 3;
private long sequence_;
/**
*
* sequence is the sequence of the account, which describes the
* number of committed transactions signed by a given address. It is used to
* prevent replay attacks.
*
*
* uint64 sequence = 3;
*/
public long getSequence() {
return sequence_;
}
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 (publicKey_ != null) {
output.writeMessage(1, getPublicKey());
}
if (modeInfo_ != null) {
output.writeMessage(2, getModeInfo());
}
if (sequence_ != 0L) {
output.writeUInt64(3, sequence_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (publicKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPublicKey());
}
if (modeInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getModeInfo());
}
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, sequence_);
}
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.tx.v1beta1.TxOuterClass.SignerInfo)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.SignerInfo other = (cosmos.tx.v1beta1.TxOuterClass.SignerInfo) obj;
boolean result = true;
result = result && (hasPublicKey() == other.hasPublicKey());
if (hasPublicKey()) {
result = result && getPublicKey()
.equals(other.getPublicKey());
}
result = result && (hasModeInfo() == other.hasModeInfo());
if (hasModeInfo()) {
result = result && getModeInfo()
.equals(other.getModeInfo());
}
result = result && (getSequence()
== other.getSequence());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPublicKey()) {
hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPublicKey().hashCode();
}
if (hasModeInfo()) {
hash = (37 * hash) + MODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getModeInfo().hashCode();
}
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo 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.tx.v1beta1.TxOuterClass.SignerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo 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.tx.v1beta1.TxOuterClass.SignerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo 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.tx.v1beta1.TxOuterClass.SignerInfo 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;
}
/**
*
* SignerInfo describes the public key and signing mode of a single top-level
* signer.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.SignerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.SignerInfo)
cosmos.tx.v1beta1.TxOuterClass.SignerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.SignerInfo.class, cosmos.tx.v1beta1.TxOuterClass.SignerInfo.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.SignerInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (publicKeyBuilder_ == null) {
publicKey_ = null;
} else {
publicKey_ = null;
publicKeyBuilder_ = null;
}
if (modeInfoBuilder_ == null) {
modeInfo_ = null;
} else {
modeInfo_ = null;
modeInfoBuilder_ = null;
}
sequence_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.SignerInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo build() {
cosmos.tx.v1beta1.TxOuterClass.SignerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.SignerInfo buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.SignerInfo result = new cosmos.tx.v1beta1.TxOuterClass.SignerInfo(this);
if (publicKeyBuilder_ == null) {
result.publicKey_ = publicKey_;
} else {
result.publicKey_ = publicKeyBuilder_.build();
}
if (modeInfoBuilder_ == null) {
result.modeInfo_ = modeInfo_;
} else {
result.modeInfo_ = modeInfoBuilder_.build();
}
result.sequence_ = sequence_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.SignerInfo) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.SignerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.SignerInfo other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.SignerInfo.getDefaultInstance()) return this;
if (other.hasPublicKey()) {
mergePublicKey(other.getPublicKey());
}
if (other.hasModeInfo()) {
mergeModeInfo(other.getModeInfo());
}
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
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.tx.v1beta1.TxOuterClass.SignerInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.SignerInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any publicKey_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeyBuilder_;
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public boolean hasPublicKey() {
return publicKeyBuilder_ != null || publicKey_ != null;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public com.google.protobuf.Any getPublicKey() {
if (publicKeyBuilder_ == null) {
return publicKey_ == null ? com.google.protobuf.Any.getDefaultInstance() : publicKey_;
} else {
return publicKeyBuilder_.getMessage();
}
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public Builder setPublicKey(com.google.protobuf.Any value) {
if (publicKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
publicKey_ = value;
onChanged();
} else {
publicKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public Builder setPublicKey(
com.google.protobuf.Any.Builder builderForValue) {
if (publicKeyBuilder_ == null) {
publicKey_ = builderForValue.build();
onChanged();
} else {
publicKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public Builder mergePublicKey(com.google.protobuf.Any value) {
if (publicKeyBuilder_ == null) {
if (publicKey_ != null) {
publicKey_ =
com.google.protobuf.Any.newBuilder(publicKey_).mergeFrom(value).buildPartial();
} else {
publicKey_ = value;
}
onChanged();
} else {
publicKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public Builder clearPublicKey() {
if (publicKeyBuilder_ == null) {
publicKey_ = null;
onChanged();
} else {
publicKey_ = null;
publicKeyBuilder_ = null;
}
return this;
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public com.google.protobuf.Any.Builder getPublicKeyBuilder() {
onChanged();
return getPublicKeyFieldBuilder().getBuilder();
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
public com.google.protobuf.AnyOrBuilder getPublicKeyOrBuilder() {
if (publicKeyBuilder_ != null) {
return publicKeyBuilder_.getMessageOrBuilder();
} else {
return publicKey_ == null ?
com.google.protobuf.Any.getDefaultInstance() : publicKey_;
}
}
/**
*
* public_key is the public key of the signer. It is optional for accounts
* that already exist in state. If unset, the verifier can use the required \
* signer address for this position and lookup the public key.
*
*
* .google.protobuf.Any public_key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getPublicKeyFieldBuilder() {
if (publicKeyBuilder_ == null) {
publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getPublicKey(),
getParentForChildren(),
isClean());
publicKey_ = null;
}
return publicKeyBuilder_;
}
private cosmos.tx.v1beta1.TxOuterClass.ModeInfo modeInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder> modeInfoBuilder_;
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public boolean hasModeInfo() {
return modeInfoBuilder_ != null || modeInfo_ != null;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfo() {
if (modeInfoBuilder_ == null) {
return modeInfo_ == null ? cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance() : modeInfo_;
} else {
return modeInfoBuilder_.getMessage();
}
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public Builder setModeInfo(cosmos.tx.v1beta1.TxOuterClass.ModeInfo value) {
if (modeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modeInfo_ = value;
onChanged();
} else {
modeInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public Builder setModeInfo(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder builderForValue) {
if (modeInfoBuilder_ == null) {
modeInfo_ = builderForValue.build();
onChanged();
} else {
modeInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public Builder mergeModeInfo(cosmos.tx.v1beta1.TxOuterClass.ModeInfo value) {
if (modeInfoBuilder_ == null) {
if (modeInfo_ != null) {
modeInfo_ =
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.newBuilder(modeInfo_).mergeFrom(value).buildPartial();
} else {
modeInfo_ = value;
}
onChanged();
} else {
modeInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public Builder clearModeInfo() {
if (modeInfoBuilder_ == null) {
modeInfo_ = null;
onChanged();
} else {
modeInfo_ = null;
modeInfoBuilder_ = null;
}
return this;
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder getModeInfoBuilder() {
onChanged();
return getModeInfoFieldBuilder().getBuilder();
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfoOrBuilder() {
if (modeInfoBuilder_ != null) {
return modeInfoBuilder_.getMessageOrBuilder();
} else {
return modeInfo_ == null ?
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance() : modeInfo_;
}
}
/**
*
* mode_info describes the signing mode of the signer and is a nested
* structure to support nested multisig pubkey's
*
*
* .cosmos.tx.v1beta1.ModeInfo mode_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>
getModeInfoFieldBuilder() {
if (modeInfoBuilder_ == null) {
modeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>(
getModeInfo(),
getParentForChildren(),
isClean());
modeInfo_ = null;
}
return modeInfoBuilder_;
}
private long sequence_ ;
/**
*
* sequence is the sequence of the account, which describes the
* number of committed transactions signed by a given address. It is used to
* prevent replay attacks.
*
*
* uint64 sequence = 3;
*/
public long getSequence() {
return sequence_;
}
/**
*
* sequence is the sequence of the account, which describes the
* number of committed transactions signed by a given address. It is used to
* prevent replay attacks.
*
*
* uint64 sequence = 3;
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* sequence is the sequence of the account, which describes the
* number of committed transactions signed by a given address. It is used to
* prevent replay attacks.
*
*
* uint64 sequence = 3;
*/
public Builder clearSequence() {
sequence_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.SignerInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.SignerInfo)
private static final cosmos.tx.v1beta1.TxOuterClass.SignerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.SignerInfo();
}
public static cosmos.tx.v1beta1.TxOuterClass.SignerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SignerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignerInfo(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.tx.v1beta1.TxOuterClass.SignerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ModeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
boolean hasSingle();
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single getSingle();
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder getSingleOrBuilder();
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
boolean hasMulti();
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi getMulti();
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder getMultiOrBuilder();
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SumCase getSumCase();
}
/**
*
* ModeInfo describes the signing mode of a single or nested multisig signer.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo}
*/
public static final class ModeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo)
ModeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModeInfo.newBuilder() to construct.
private ModeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ModeInfo() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModeInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder subBuilder = null;
if (sumCase_ == 1) {
subBuilder = ((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_).toBuilder();
}
sum_ =
input.readMessage(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 1;
break;
}
case 18: {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder subBuilder = null;
if (sumCase_ == 2) {
subBuilder = ((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_).toBuilder();
}
sum_ =
input.readMessage(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 2;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder.class);
}
public interface SingleOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo.Single)
com.google.protobuf.MessageOrBuilder {
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
int getModeValue();
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
cosmos.tx.signing.v1beta1.Signing.SignMode getMode();
}
/**
*
* Single is the mode info for a single signer. It is structured as a message
* to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
* future
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Single}
*/
public static final class Single extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo.Single)
SingleOrBuilder {
private static final long serialVersionUID = 0L;
// Use Single.newBuilder() to construct.
private Single(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Single() {
mode_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Single(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder.class);
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public cosmos.tx.signing.v1beta1.Signing.SignMode getMode() {
@SuppressWarnings("deprecation")
cosmos.tx.signing.v1beta1.Signing.SignMode result = cosmos.tx.signing.v1beta1.Signing.SignMode.valueOf(mode_);
return result == null ? cosmos.tx.signing.v1beta1.Signing.SignMode.UNRECOGNIZED : result;
}
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 (mode_ != cosmos.tx.signing.v1beta1.Signing.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, mode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != cosmos.tx.signing.v1beta1.Signing.SignMode.SIGN_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
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.tx.v1beta1.TxOuterClass.ModeInfo.Single)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single other = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) obj;
boolean result = true;
result = result && mode_ == other.mode_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single 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.tx.v1beta1.TxOuterClass.ModeInfo.Single parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single 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.tx.v1beta1.TxOuterClass.ModeInfo.Single parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single 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.tx.v1beta1.TxOuterClass.ModeInfo.Single 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;
}
/**
*
* Single is the mode info for a single signer. It is structured as a message
* to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
* future
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Single}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo.Single)
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.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();
mode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single build() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single result = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single(this);
result.mode_ = mode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
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.tx.v1beta1.TxOuterClass.ModeInfo.Single parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public cosmos.tx.signing.v1beta1.Signing.SignMode getMode() {
@SuppressWarnings("deprecation")
cosmos.tx.signing.v1beta1.Signing.SignMode result = cosmos.tx.signing.v1beta1.Signing.SignMode.valueOf(mode_);
return result == null ? cosmos.tx.signing.v1beta1.Signing.SignMode.UNRECOGNIZED : result;
}
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public Builder setMode(cosmos.tx.signing.v1beta1.Signing.SignMode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* mode is the signing mode of the single signer
*
*
* .cosmos.tx.signing.v1beta1.SignMode mode = 1;
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo.Single)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo.Single)
private static final cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single();
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Single parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Single(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.tx.v1beta1.TxOuterClass.ModeInfo.Single getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MultiOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.ModeInfo.Multi)
com.google.protobuf.MessageOrBuilder {
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
boolean hasBitarray();
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray getBitarray();
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder getBitarrayOrBuilder();
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
java.util.List
getModeInfosList();
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfos(int index);
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
int getModeInfosCount();
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
java.util.List extends cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>
getModeInfosOrBuilderList();
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfosOrBuilder(
int index);
}
/**
*
* Multi is the mode info for a multisig public key
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Multi}
*/
public static final class Multi extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.ModeInfo.Multi)
MultiOrBuilder {
private static final long serialVersionUID = 0L;
// Use Multi.newBuilder() to construct.
private Multi(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Multi() {
modeInfos_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Multi(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder subBuilder = null;
if (bitarray_ != null) {
subBuilder = bitarray_.toBuilder();
}
bitarray_ = input.readMessage(cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bitarray_);
bitarray_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
modeInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
modeInfos_.add(
input.readMessage(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
modeInfos_ = java.util.Collections.unmodifiableList(modeInfos_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder.class);
}
private int bitField0_;
public static final int BITARRAY_FIELD_NUMBER = 1;
private cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray bitarray_;
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public boolean hasBitarray() {
return bitarray_ != null;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray getBitarray() {
return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.getDefaultInstance() : bitarray_;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder getBitarrayOrBuilder() {
return getBitarray();
}
public static final int MODE_INFOS_FIELD_NUMBER = 2;
private java.util.List modeInfos_;
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public java.util.List getModeInfosList() {
return modeInfos_;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public java.util.List extends cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>
getModeInfosOrBuilderList() {
return modeInfos_;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public int getModeInfosCount() {
return modeInfos_.size();
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfos(int index) {
return modeInfos_.get(index);
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfosOrBuilder(
int index) {
return modeInfos_.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 (bitarray_ != null) {
output.writeMessage(1, getBitarray());
}
for (int i = 0; i < modeInfos_.size(); i++) {
output.writeMessage(2, modeInfos_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (bitarray_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBitarray());
}
for (int i = 0; i < modeInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, modeInfos_.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.tx.v1beta1.TxOuterClass.ModeInfo.Multi)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi other = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) obj;
boolean result = true;
result = result && (hasBitarray() == other.hasBitarray());
if (hasBitarray()) {
result = result && getBitarray()
.equals(other.getBitarray());
}
result = result && getModeInfosList()
.equals(other.getModeInfosList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBitarray()) {
hash = (37 * hash) + BITARRAY_FIELD_NUMBER;
hash = (53 * hash) + getBitarray().hashCode();
}
if (getModeInfosCount() > 0) {
hash = (37 * hash) + MODE_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getModeInfosList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi 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.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi 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.tx.v1beta1.TxOuterClass.ModeInfo.Multi parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi 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.tx.v1beta1.TxOuterClass.ModeInfo.Multi 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;
}
/**
*
* Multi is the mode info for a multisig public key
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo.Multi}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo.Multi)
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getModeInfosFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (bitarrayBuilder_ == null) {
bitarray_ = null;
} else {
bitarray_ = null;
bitarrayBuilder_ = null;
}
if (modeInfosBuilder_ == null) {
modeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
modeInfosBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi build() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi result = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (bitarrayBuilder_ == null) {
result.bitarray_ = bitarray_;
} else {
result.bitarray_ = bitarrayBuilder_.build();
}
if (modeInfosBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
modeInfos_ = java.util.Collections.unmodifiableList(modeInfos_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.modeInfos_ = modeInfos_;
} else {
result.modeInfos_ = modeInfosBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance()) return this;
if (other.hasBitarray()) {
mergeBitarray(other.getBitarray());
}
if (modeInfosBuilder_ == null) {
if (!other.modeInfos_.isEmpty()) {
if (modeInfos_.isEmpty()) {
modeInfos_ = other.modeInfos_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureModeInfosIsMutable();
modeInfos_.addAll(other.modeInfos_);
}
onChanged();
}
} else {
if (!other.modeInfos_.isEmpty()) {
if (modeInfosBuilder_.isEmpty()) {
modeInfosBuilder_.dispose();
modeInfosBuilder_ = null;
modeInfos_ = other.modeInfos_;
bitField0_ = (bitField0_ & ~0x00000002);
modeInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getModeInfosFieldBuilder() : null;
} else {
modeInfosBuilder_.addAllMessages(other.modeInfos_);
}
}
}
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.tx.v1beta1.TxOuterClass.ModeInfo.Multi parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray bitarray_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder> bitarrayBuilder_;
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public boolean hasBitarray() {
return bitarrayBuilder_ != null || bitarray_ != null;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray getBitarray() {
if (bitarrayBuilder_ == null) {
return bitarray_ == null ? cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.getDefaultInstance() : bitarray_;
} else {
return bitarrayBuilder_.getMessage();
}
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public Builder setBitarray(cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray value) {
if (bitarrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bitarray_ = value;
onChanged();
} else {
bitarrayBuilder_.setMessage(value);
}
return this;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public Builder setBitarray(
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder builderForValue) {
if (bitarrayBuilder_ == null) {
bitarray_ = builderForValue.build();
onChanged();
} else {
bitarrayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public Builder mergeBitarray(cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray value) {
if (bitarrayBuilder_ == null) {
if (bitarray_ != null) {
bitarray_ =
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.newBuilder(bitarray_).mergeFrom(value).buildPartial();
} else {
bitarray_ = value;
}
onChanged();
} else {
bitarrayBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public Builder clearBitarray() {
if (bitarrayBuilder_ == null) {
bitarray_ = null;
onChanged();
} else {
bitarray_ = null;
bitarrayBuilder_ = null;
}
return this;
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder getBitarrayBuilder() {
onChanged();
return getBitarrayFieldBuilder().getBuilder();
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
public cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder getBitarrayOrBuilder() {
if (bitarrayBuilder_ != null) {
return bitarrayBuilder_.getMessageOrBuilder();
} else {
return bitarray_ == null ?
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.getDefaultInstance() : bitarray_;
}
}
/**
*
* bitarray specifies which keys within the multisig are signing
*
*
* .cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder>
getBitarrayFieldBuilder() {
if (bitarrayBuilder_ == null) {
bitarrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArray.Builder, cosmos.crypto.multisig.v1beta1.Multisig.CompactBitArrayOrBuilder>(
getBitarray(),
getParentForChildren(),
isClean());
bitarray_ = null;
}
return bitarrayBuilder_;
}
private java.util.List modeInfos_ =
java.util.Collections.emptyList();
private void ensureModeInfosIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
modeInfos_ = new java.util.ArrayList(modeInfos_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder> modeInfosBuilder_;
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public java.util.List getModeInfosList() {
if (modeInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(modeInfos_);
} else {
return modeInfosBuilder_.getMessageList();
}
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public int getModeInfosCount() {
if (modeInfosBuilder_ == null) {
return modeInfos_.size();
} else {
return modeInfosBuilder_.getCount();
}
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfos(int index) {
if (modeInfosBuilder_ == null) {
return modeInfos_.get(index);
} else {
return modeInfosBuilder_.getMessage(index);
}
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder setModeInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.ModeInfo value) {
if (modeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModeInfosIsMutable();
modeInfos_.set(index, value);
onChanged();
} else {
modeInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder setModeInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder builderForValue) {
if (modeInfosBuilder_ == null) {
ensureModeInfosIsMutable();
modeInfos_.set(index, builderForValue.build());
onChanged();
} else {
modeInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder addModeInfos(cosmos.tx.v1beta1.TxOuterClass.ModeInfo value) {
if (modeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModeInfosIsMutable();
modeInfos_.add(value);
onChanged();
} else {
modeInfosBuilder_.addMessage(value);
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder addModeInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.ModeInfo value) {
if (modeInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModeInfosIsMutable();
modeInfos_.add(index, value);
onChanged();
} else {
modeInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder addModeInfos(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder builderForValue) {
if (modeInfosBuilder_ == null) {
ensureModeInfosIsMutable();
modeInfos_.add(builderForValue.build());
onChanged();
} else {
modeInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder addModeInfos(
int index, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder builderForValue) {
if (modeInfosBuilder_ == null) {
ensureModeInfosIsMutable();
modeInfos_.add(index, builderForValue.build());
onChanged();
} else {
modeInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder addAllModeInfos(
java.lang.Iterable extends cosmos.tx.v1beta1.TxOuterClass.ModeInfo> values) {
if (modeInfosBuilder_ == null) {
ensureModeInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modeInfos_);
onChanged();
} else {
modeInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder clearModeInfos() {
if (modeInfosBuilder_ == null) {
modeInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
modeInfosBuilder_.clear();
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public Builder removeModeInfos(int index) {
if (modeInfosBuilder_ == null) {
ensureModeInfosIsMutable();
modeInfos_.remove(index);
onChanged();
} else {
modeInfosBuilder_.remove(index);
}
return this;
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder getModeInfosBuilder(
int index) {
return getModeInfosFieldBuilder().getBuilder(index);
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfosOrBuilder(
int index) {
if (modeInfosBuilder_ == null) {
return modeInfos_.get(index); } else {
return modeInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public java.util.List extends cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>
getModeInfosOrBuilderList() {
if (modeInfosBuilder_ != null) {
return modeInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modeInfos_);
}
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder addModeInfosBuilder() {
return getModeInfosFieldBuilder().addBuilder(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance());
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder addModeInfosBuilder(
int index) {
return getModeInfosFieldBuilder().addBuilder(
index, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance());
}
/**
*
* mode_infos is the corresponding modes of the signers of the multisig
* which could include nested multisig public keys
*
*
* repeated .cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
*/
public java.util.List
getModeInfosBuilderList() {
return getModeInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>
getModeInfosFieldBuilder() {
if (modeInfosBuilder_ == null) {
modeInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder>(
modeInfos_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
modeInfos_ = null;
}
return modeInfosBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo.Multi)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo.Multi)
private static final cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi();
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Multi parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Multi(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.tx.v1beta1.TxOuterClass.ModeInfo.Multi getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
SINGLE(1),
MULTI(2),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return SINGLE;
case 2: return MULTI;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int SINGLE_FIELD_NUMBER = 1;
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public boolean hasSingle() {
return sumCase_ == 1;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single getSingle() {
if (sumCase_ == 1) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder getSingleOrBuilder() {
if (sumCase_ == 1) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
public static final int MULTI_FIELD_NUMBER = 2;
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public boolean hasMulti() {
return sumCase_ == 2;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi getMulti() {
if (sumCase_ == 2) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder getMultiOrBuilder() {
if (sumCase_ == 2) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
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 (sumCase_ == 1) {
output.writeMessage(1, (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_);
}
if (sumCase_ == 2) {
output.writeMessage(2, (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_);
}
if (sumCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_);
}
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.tx.v1beta1.TxOuterClass.ModeInfo)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.ModeInfo other = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo) obj;
boolean result = true;
result = result && getSumCase().equals(
other.getSumCase());
if (!result) return false;
switch (sumCase_) {
case 1:
result = result && getSingle()
.equals(other.getSingle());
break;
case 2:
result = result && getMulti()
.equals(other.getMulti());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + SINGLE_FIELD_NUMBER;
hash = (53 * hash) + getSingle().hashCode();
break;
case 2:
hash = (37 * hash) + MULTI_FIELD_NUMBER;
hash = (53 * hash) + getMulti().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo 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.tx.v1beta1.TxOuterClass.ModeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo 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.tx.v1beta1.TxOuterClass.ModeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo 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.tx.v1beta1.TxOuterClass.ModeInfo 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;
}
/**
*
* ModeInfo describes the signing mode of a single or nested multisig signer.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.ModeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.ModeInfo)
cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.class, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.ModeInfo.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();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo build() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.ModeInfo result = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo(this);
if (sumCase_ == 1) {
if (singleBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = singleBuilder_.build();
}
}
if (sumCase_ == 2) {
if (multiBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = multiBuilder_.build();
}
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.ModeInfo) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.ModeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.ModeInfo other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.ModeInfo.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case SINGLE: {
mergeSingle(other.getSingle());
break;
}
case MULTI: {
mergeMulti(other.getMulti());
break;
}
case SUM_NOT_SET: {
break;
}
}
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.tx.v1beta1.TxOuterClass.ModeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.ModeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder> singleBuilder_;
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public boolean hasSingle() {
return sumCase_ == 1;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single getSingle() {
if (singleBuilder_ == null) {
if (sumCase_ == 1) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
} else {
if (sumCase_ == 1) {
return singleBuilder_.getMessage();
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public Builder setSingle(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single value) {
if (singleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
singleBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public Builder setSingle(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder builderForValue) {
if (singleBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
singleBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 1;
return this;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public Builder mergeSingle(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single value) {
if (singleBuilder_ == null) {
if (sumCase_ == 1 &&
sum_ != cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance()) {
sum_ = cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.newBuilder((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 1) {
singleBuilder_.mergeFrom(value);
}
singleBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public Builder clearSingle() {
if (singleBuilder_ == null) {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
}
singleBuilder_.clear();
}
return this;
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder getSingleBuilder() {
return getSingleFieldBuilder().getBuilder();
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder getSingleOrBuilder() {
if ((sumCase_ == 1) && (singleBuilder_ != null)) {
return singleBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 1) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
}
/**
*
* single represents a single signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Single single = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder>
getSingleFieldBuilder() {
if (singleBuilder_ == null) {
if (!(sumCase_ == 1)) {
sum_ = cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.getDefaultInstance();
}
singleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.SingleOrBuilder>(
(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Single) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 1;
onChanged();;
return singleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder> multiBuilder_;
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public boolean hasMulti() {
return sumCase_ == 2;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi getMulti() {
if (multiBuilder_ == null) {
if (sumCase_ == 2) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
} else {
if (sumCase_ == 2) {
return multiBuilder_.getMessage();
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public Builder setMulti(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi value) {
if (multiBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
multiBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public Builder setMulti(
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder builderForValue) {
if (multiBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
multiBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 2;
return this;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public Builder mergeMulti(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi value) {
if (multiBuilder_ == null) {
if (sumCase_ == 2 &&
sum_ != cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance()) {
sum_ = cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.newBuilder((cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 2) {
multiBuilder_.mergeFrom(value);
}
multiBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public Builder clearMulti() {
if (multiBuilder_ == null) {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
}
multiBuilder_.clear();
}
return this;
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder getMultiBuilder() {
return getMultiFieldBuilder().getBuilder();
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
public cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder getMultiOrBuilder() {
if ((sumCase_ == 2) && (multiBuilder_ != null)) {
return multiBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 2) {
return (cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_;
}
return cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
}
/**
*
* multi represents a nested multisig signer
*
*
* .cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder>
getMultiFieldBuilder() {
if (multiBuilder_ == null) {
if (!(sumCase_ == 2)) {
sum_ = cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.getDefaultInstance();
}
multiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi.Builder, cosmos.tx.v1beta1.TxOuterClass.ModeInfo.MultiOrBuilder>(
(cosmos.tx.v1beta1.TxOuterClass.ModeInfo.Multi) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 2;
onChanged();;
return multiBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.ModeInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.ModeInfo)
private static final cosmos.tx.v1beta1.TxOuterClass.ModeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.ModeInfo();
}
public static cosmos.tx.v1beta1.TxOuterClass.ModeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModeInfo(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.tx.v1beta1.TxOuterClass.ModeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.tx.v1beta1.Fee)
com.google.protobuf.MessageOrBuilder {
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List
getAmountList();
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(int index);
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
int getAmountCount();
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountOrBuilderList();
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(
int index);
/**
*
* gas_limit is the maximum gas that can be used in transaction processing
* before an out of gas error occurs
*
*
* uint64 gas_limit = 2;
*/
long getGasLimit();
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
java.lang.String getPayer();
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
com.google.protobuf.ByteString
getPayerBytes();
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
java.lang.String getGranter();
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
com.google.protobuf.ByteString
getGranterBytes();
}
/**
*
* Fee includes the amount of coins paid in fees and the maximum
* gas to be used by the transaction. The ratio yields an effective "gasprice",
* which must be above some miminum to be accepted into the mempool.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.Fee}
*/
public static final class Fee extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.tx.v1beta1.Fee)
FeeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Fee.newBuilder() to construct.
private Fee(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fee() {
amount_ = java.util.Collections.emptyList();
gasLimit_ = 0L;
payer_ = "";
granter_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Fee(
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) == 0x00000001)) {
amount_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
amount_.add(
input.readMessage(cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry));
break;
}
case 16: {
gasLimit_ = input.readUInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
payer_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
granter_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
amount_ = java.util.Collections.unmodifiableList(amount_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.Fee.class, cosmos.tx.v1beta1.TxOuterClass.Fee.Builder.class);
}
private int bitField0_;
public static final int AMOUNT_FIELD_NUMBER = 1;
private java.util.List amount_;
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getAmountList() {
return amount_;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountOrBuilderList() {
return amount_;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getAmountCount() {
return amount_.size();
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(int index) {
return amount_.get(index);
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(
int index) {
return amount_.get(index);
}
public static final int GAS_LIMIT_FIELD_NUMBER = 2;
private long gasLimit_;
/**
*
* gas_limit is the maximum gas that can be used in transaction processing
* before an out of gas error occurs
*
*
* uint64 gas_limit = 2;
*/
public long getGasLimit() {
return gasLimit_;
}
public static final int PAYER_FIELD_NUMBER = 3;
private volatile java.lang.Object payer_;
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public java.lang.String getPayer() {
java.lang.Object ref = payer_;
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();
payer_ = s;
return s;
}
}
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public com.google.protobuf.ByteString
getPayerBytes() {
java.lang.Object ref = payer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTER_FIELD_NUMBER = 4;
private volatile java.lang.Object granter_;
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
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;
}
}
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
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;
}
}
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 < amount_.size(); i++) {
output.writeMessage(1, amount_.get(i));
}
if (gasLimit_ != 0L) {
output.writeUInt64(2, gasLimit_);
}
if (!getPayerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, payer_);
}
if (!getGranterBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, granter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < amount_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, amount_.get(i));
}
if (gasLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, gasLimit_);
}
if (!getPayerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payer_);
}
if (!getGranterBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, granter_);
}
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.tx.v1beta1.TxOuterClass.Fee)) {
return super.equals(obj);
}
cosmos.tx.v1beta1.TxOuterClass.Fee other = (cosmos.tx.v1beta1.TxOuterClass.Fee) obj;
boolean result = true;
result = result && getAmountList()
.equals(other.getAmountList());
result = result && (getGasLimit()
== other.getGasLimit());
result = result && getPayer()
.equals(other.getPayer());
result = result && getGranter()
.equals(other.getGranter());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAmountCount() > 0) {
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAmountList().hashCode();
}
hash = (37 * hash) + GAS_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasLimit());
hash = (37 * hash) + PAYER_FIELD_NUMBER;
hash = (53 * hash) + getPayer().hashCode();
hash = (37 * hash) + GRANTER_FIELD_NUMBER;
hash = (53 * hash) + getGranter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee 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.tx.v1beta1.TxOuterClass.Fee parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee 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.tx.v1beta1.TxOuterClass.Fee parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee 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.tx.v1beta1.TxOuterClass.Fee 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;
}
/**
*
* Fee includes the amount of coins paid in fees and the maximum
* gas to be used by the transaction. The ratio yields an effective "gasprice",
* which must be above some miminum to be accepted into the mempool.
*
*
* Protobuf type {@code cosmos.tx.v1beta1.Fee}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.tx.v1beta1.Fee)
cosmos.tx.v1beta1.TxOuterClass.FeeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.tx.v1beta1.TxOuterClass.Fee.class, cosmos.tx.v1beta1.TxOuterClass.Fee.Builder.class);
}
// Construct using cosmos.tx.v1beta1.TxOuterClass.Fee.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAmountFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (amountBuilder_ == null) {
amount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
amountBuilder_.clear();
}
gasLimit_ = 0L;
payer_ = "";
granter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.tx.v1beta1.TxOuterClass.internal_static_cosmos_tx_v1beta1_Fee_descriptor;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Fee getDefaultInstanceForType() {
return cosmos.tx.v1beta1.TxOuterClass.Fee.getDefaultInstance();
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Fee build() {
cosmos.tx.v1beta1.TxOuterClass.Fee result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.tx.v1beta1.TxOuterClass.Fee buildPartial() {
cosmos.tx.v1beta1.TxOuterClass.Fee result = new cosmos.tx.v1beta1.TxOuterClass.Fee(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (amountBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
amount_ = java.util.Collections.unmodifiableList(amount_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.amount_ = amount_;
} else {
result.amount_ = amountBuilder_.build();
}
result.gasLimit_ = gasLimit_;
result.payer_ = payer_;
result.granter_ = granter_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.tx.v1beta1.TxOuterClass.Fee) {
return mergeFrom((cosmos.tx.v1beta1.TxOuterClass.Fee)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.tx.v1beta1.TxOuterClass.Fee other) {
if (other == cosmos.tx.v1beta1.TxOuterClass.Fee.getDefaultInstance()) return this;
if (amountBuilder_ == null) {
if (!other.amount_.isEmpty()) {
if (amount_.isEmpty()) {
amount_ = other.amount_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAmountIsMutable();
amount_.addAll(other.amount_);
}
onChanged();
}
} else {
if (!other.amount_.isEmpty()) {
if (amountBuilder_.isEmpty()) {
amountBuilder_.dispose();
amountBuilder_ = null;
amount_ = other.amount_;
bitField0_ = (bitField0_ & ~0x00000001);
amountBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAmountFieldBuilder() : null;
} else {
amountBuilder_.addAllMessages(other.amount_);
}
}
}
if (other.getGasLimit() != 0L) {
setGasLimit(other.getGasLimit());
}
if (!other.getPayer().isEmpty()) {
payer_ = other.payer_;
onChanged();
}
if (!other.getGranter().isEmpty()) {
granter_ = other.granter_;
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.tx.v1beta1.TxOuterClass.Fee parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.tx.v1beta1.TxOuterClass.Fee) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List amount_ =
java.util.Collections.emptyList();
private void ensureAmountIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
amount_ = new java.util.ArrayList(amount_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> amountBuilder_;
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getAmountList() {
if (amountBuilder_ == null) {
return java.util.Collections.unmodifiableList(amount_);
} else {
return amountBuilder_.getMessageList();
}
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getAmountCount() {
if (amountBuilder_ == null) {
return amount_.size();
} else {
return amountBuilder_.getCount();
}
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getAmount(int index) {
if (amountBuilder_ == null) {
return amount_.get(index);
} else {
return amountBuilder_.getMessage(index);
}
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.set(index, value);
onChanged();
} else {
amountBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.set(index, builderForValue.build());
onChanged();
} else {
amountBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.add(value);
onChanged();
} else {
amountBuilder_.addMessage(value);
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (amountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAmountIsMutable();
amount_.add(index, value);
onChanged();
} else {
amountBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.add(builderForValue.build());
onChanged();
} else {
amountBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAmount(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.add(index, builderForValue.build());
onChanged();
} else {
amountBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllAmount(
java.lang.Iterable extends cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, amount_);
onChanged();
} else {
amountBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearAmount() {
if (amountBuilder_ == null) {
amount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
amountBuilder_.clear();
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeAmount(int index) {
if (amountBuilder_ == null) {
ensureAmountIsMutable();
amount_.remove(index);
onChanged();
} else {
amountBuilder_.remove(index);
}
return this;
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getAmountBuilder(
int index) {
return getAmountFieldBuilder().getBuilder(index);
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getAmountOrBuilder(
int index) {
if (amountBuilder_ == null) {
return amount_.get(index); } else {
return amountBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountOrBuilderList() {
if (amountBuilder_ != null) {
return amountBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(amount_);
}
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addAmountBuilder() {
return getAmountFieldBuilder().addBuilder(
cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addAmountBuilder(
int index) {
return getAmountFieldBuilder().addBuilder(
index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
*
* amount is the amount of coins to be paid as a fee
*
*
* repeated .cosmos.base.v1beta1.Coin amount = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getAmountBuilderList() {
return getAmountFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getAmountFieldBuilder() {
if (amountBuilder_ == null) {
amountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
amount_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
amount_ = null;
}
return amountBuilder_;
}
private long gasLimit_ ;
/**
*
* gas_limit is the maximum gas that can be used in transaction processing
* before an out of gas error occurs
*
*
* uint64 gas_limit = 2;
*/
public long getGasLimit() {
return gasLimit_;
}
/**
*
* gas_limit is the maximum gas that can be used in transaction processing
* before an out of gas error occurs
*
*
* uint64 gas_limit = 2;
*/
public Builder setGasLimit(long value) {
gasLimit_ = value;
onChanged();
return this;
}
/**
*
* gas_limit is the maximum gas that can be used in transaction processing
* before an out of gas error occurs
*
*
* uint64 gas_limit = 2;
*/
public Builder clearGasLimit() {
gasLimit_ = 0L;
onChanged();
return this;
}
private java.lang.Object payer_ = "";
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public java.lang.String getPayer() {
java.lang.Object ref = payer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
payer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public com.google.protobuf.ByteString
getPayerBytes() {
java.lang.Object ref = payer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public Builder setPayer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
payer_ = value;
onChanged();
return this;
}
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public Builder clearPayer() {
payer_ = getDefaultInstance().getPayer();
onChanged();
return this;
}
/**
*
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
* setting this field does *not* change the ordering of required signers for the transaction.
*
*
* string payer = 3;
*/
public Builder setPayerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
payer_ = value;
onChanged();
return this;
}
private java.lang.Object granter_ = "";
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
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;
}
}
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
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;
}
}
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
public Builder setGranter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
granter_ = value;
onChanged();
return this;
}
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
public Builder clearGranter() {
granter_ = getDefaultInstance().getGranter();
onChanged();
return this;
}
/**
*
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
* not support fee grants, this will fail
*
*
* string granter = 4;
*/
public Builder setGranterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
granter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.tx.v1beta1.Fee)
}
// @@protoc_insertion_point(class_scope:cosmos.tx.v1beta1.Fee)
private static final cosmos.tx.v1beta1.TxOuterClass.Fee DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.tx.v1beta1.TxOuterClass.Fee();
}
public static cosmos.tx.v1beta1.TxOuterClass.Fee getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fee parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fee(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.tx.v1beta1.TxOuterClass.Fee getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_Tx_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_TxRaw_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_SignDoc_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_TxBody_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_tx_v1beta1_Fee_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_tx_v1beta1_Fee_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\032cosmos/tx/v1beta1/tx.proto\022\021cosmos.tx." +
"v1beta1\032\024gogoproto/gogo.proto\032-cosmos/cr" +
"ypto/multisig/v1beta1/multisig.proto\032\036co" +
"smos/base/v1beta1/coin.proto\032\'cosmos/tx/" +
"signing/v1beta1/signing.proto\032\031google/pr" +
"otobuf/any.proto\"q\n\002Tx\022\'\n\004body\030\001 \001(\0132\031.c" +
"osmos.tx.v1beta1.TxBody\022.\n\tauth_info\030\002 \001" +
"(\0132\033.cosmos.tx.v1beta1.AuthInfo\022\022\n\nsigna" +
"tures\030\003 \003(\014\"H\n\005TxRaw\022\022\n\nbody_bytes\030\001 \001(\014" +
"\022\027\n\017auth_info_bytes\030\002 \001(\014\022\022\n\nsignatures\030" +
"\003 \003(\014\"`\n\007SignDoc\022\022\n\nbody_bytes\030\001 \001(\014\022\027\n\017" +
"auth_info_bytes\030\002 \001(\014\022\020\n\010chain_id\030\003 \001(\t\022" +
"\026\n\016account_number\030\004 \001(\004\"\307\001\n\006TxBody\022&\n\010me" +
"ssages\030\001 \003(\0132\024.google.protobuf.Any\022\014\n\004me" +
"mo\030\002 \001(\t\022\026\n\016timeout_height\030\003 \001(\004\0220\n\021exte" +
"nsion_options\030\377\007 \003(\0132\024.google.protobuf.A" +
"ny\022=\n\036non_critical_extension_options\030\377\017 " +
"\003(\0132\024.google.protobuf.Any\"d\n\010AuthInfo\0223\n" +
"\014signer_infos\030\001 \003(\0132\035.cosmos.tx.v1beta1." +
"SignerInfo\022#\n\003fee\030\002 \001(\0132\026.cosmos.tx.v1be" +
"ta1.Fee\"x\n\nSignerInfo\022(\n\npublic_key\030\001 \001(" +
"\0132\024.google.protobuf.Any\022.\n\tmode_info\030\002 \001" +
"(\0132\033.cosmos.tx.v1beta1.ModeInfo\022\020\n\010seque" +
"nce\030\003 \001(\004\"\265\002\n\010ModeInfo\0224\n\006single\030\001 \001(\0132\"" +
".cosmos.tx.v1beta1.ModeInfo.SingleH\000\0222\n\005" +
"multi\030\002 \001(\0132!.cosmos.tx.v1beta1.ModeInfo" +
".MultiH\000\032;\n\006Single\0221\n\004mode\030\001 \001(\0162#.cosmo" +
"s.tx.signing.v1beta1.SignMode\032{\n\005Multi\022A" +
"\n\010bitarray\030\001 \001(\0132/.cosmos.crypto.multisi" +
"g.v1beta1.CompactBitArray\022/\n\nmode_infos\030" +
"\002 \003(\0132\033.cosmos.tx.v1beta1.ModeInfoB\005\n\003su" +
"m\"\225\001\n\003Fee\022[\n\006amount\030\001 \003(\0132\031.cosmos.base." +
"v1beta1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/" +
"cosmos-sdk/types.Coins\022\021\n\tgas_limit\030\002 \001(" +
"\004\022\r\n\005payer\030\003 \001(\t\022\017\n\007granter\030\004 \001(\tB\'Z%git" +
"hub.com/cosmos/cosmos-sdk/types/txb\006prot" +
"o3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor(),
cosmos.base.v1beta1.CoinOuterClass.getDescriptor(),
cosmos.tx.signing.v1beta1.Signing.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
}, assigner);
internal_static_cosmos_tx_v1beta1_Tx_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_tx_v1beta1_Tx_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_Tx_descriptor,
new java.lang.String[] { "Body", "AuthInfo", "Signatures", });
internal_static_cosmos_tx_v1beta1_TxRaw_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_tx_v1beta1_TxRaw_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_TxRaw_descriptor,
new java.lang.String[] { "BodyBytes", "AuthInfoBytes", "Signatures", });
internal_static_cosmos_tx_v1beta1_SignDoc_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_tx_v1beta1_SignDoc_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_SignDoc_descriptor,
new java.lang.String[] { "BodyBytes", "AuthInfoBytes", "ChainId", "AccountNumber", });
internal_static_cosmos_tx_v1beta1_TxBody_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmos_tx_v1beta1_TxBody_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_TxBody_descriptor,
new java.lang.String[] { "Messages", "Memo", "TimeoutHeight", "ExtensionOptions", "NonCriticalExtensionOptions", });
internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cosmos_tx_v1beta1_AuthInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_AuthInfo_descriptor,
new java.lang.String[] { "SignerInfos", "Fee", });
internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cosmos_tx_v1beta1_SignerInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_SignerInfo_descriptor,
new java.lang.String[] { "PublicKey", "ModeInfo", "Sequence", });
internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_cosmos_tx_v1beta1_ModeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor,
new java.lang.String[] { "Single", "Multi", "Sum", });
internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor =
internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor.getNestedTypes().get(0);
internal_static_cosmos_tx_v1beta1_ModeInfo_Single_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_ModeInfo_Single_descriptor,
new java.lang.String[] { "Mode", });
internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor =
internal_static_cosmos_tx_v1beta1_ModeInfo_descriptor.getNestedTypes().get(1);
internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_ModeInfo_Multi_descriptor,
new java.lang.String[] { "Bitarray", "ModeInfos", });
internal_static_cosmos_tx_v1beta1_Fee_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_cosmos_tx_v1beta1_Fee_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_tx_v1beta1_Fee_descriptor,
new java.lang.String[] { "Amount", "GasLimit", "Payer", "Granter", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
cosmos.crypto.multisig.v1beta1.Multisig.getDescriptor();
cosmos.base.v1beta1.CoinOuterClass.getDescriptor();
cosmos.tx.signing.v1beta1.Signing.getDescriptor();
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy