proto.cosmos.bank.v1beta1.Bank Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irita-sdk Show documentation
Show all versions of irita-sdk Show documentation
Irita open alliance chain SDK (java)
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/bank/v1beta1/bank.proto
package proto.cosmos.bank.v1beta1;
public final class Bank {
private Bank() {}
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 ParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Params)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
java.util.List
getSendEnabledList();
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index);
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
int getSendEnabledCount();
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
java.util.List extends proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>
getSendEnabledOrBuilderList();
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder(
int index);
/**
* bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
* @return The defaultSendEnabled.
*/
boolean getDefaultSendEnabled();
/**
* bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
* @return The unrestrictedTokenTransfer.
*/
boolean getUnrestrictedTokenTransfer();
}
/**
*
* Params defines the parameters for the bank module.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Params}
*/
public static final class Params extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Params)
ParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Params.newBuilder() to construct.
private Params(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Params() {
sendEnabled_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Params();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Params(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
sendEnabled_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sendEnabled_.add(
input.readMessage(proto.cosmos.bank.v1beta1.Bank.SendEnabled.parser(), extensionRegistry));
break;
}
case 16: {
defaultSendEnabled_ = input.readBool();
break;
}
case 24: {
unrestrictedTokenTransfer_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Params.class, proto.cosmos.bank.v1beta1.Bank.Params.Builder.class);
}
public static final int SEND_ENABLED_FIELD_NUMBER = 1;
private java.util.List sendEnabled_;
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
@java.lang.Override
public java.util.List getSendEnabledList() {
return sendEnabled_;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
@java.lang.Override
public java.util.List extends proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>
getSendEnabledOrBuilderList() {
return sendEnabled_;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
@java.lang.Override
public int getSendEnabledCount() {
return sendEnabled_.size();
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index) {
return sendEnabled_.get(index);
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder(
int index) {
return sendEnabled_.get(index);
}
public static final int DEFAULT_SEND_ENABLED_FIELD_NUMBER = 2;
private boolean defaultSendEnabled_;
/**
* bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
* @return The defaultSendEnabled.
*/
@java.lang.Override
public boolean getDefaultSendEnabled() {
return defaultSendEnabled_;
}
public static final int UNRESTRICTED_TOKEN_TRANSFER_FIELD_NUMBER = 3;
private boolean unrestrictedTokenTransfer_;
/**
* bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
* @return The unrestrictedTokenTransfer.
*/
@java.lang.Override
public boolean getUnrestrictedTokenTransfer() {
return unrestrictedTokenTransfer_;
}
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 < sendEnabled_.size(); i++) {
output.writeMessage(1, sendEnabled_.get(i));
}
if (defaultSendEnabled_ != false) {
output.writeBool(2, defaultSendEnabled_);
}
if (unrestrictedTokenTransfer_ != false) {
output.writeBool(3, unrestrictedTokenTransfer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < sendEnabled_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sendEnabled_.get(i));
}
if (defaultSendEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, defaultSendEnabled_);
}
if (unrestrictedTokenTransfer_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, unrestrictedTokenTransfer_);
}
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 proto.cosmos.bank.v1beta1.Bank.Params)) {
return super.equals(obj);
}
proto.cosmos.bank.v1beta1.Bank.Params other = (proto.cosmos.bank.v1beta1.Bank.Params) obj;
if (!getSendEnabledList()
.equals(other.getSendEnabledList())) return false;
if (getDefaultSendEnabled()
!= other.getDefaultSendEnabled()) return false;
if (getUnrestrictedTokenTransfer()
!= other.getUnrestrictedTokenTransfer()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSendEnabledCount() > 0) {
hash = (37 * hash) + SEND_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + getSendEnabledList().hashCode();
}
hash = (37 * hash) + DEFAULT_SEND_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefaultSendEnabled());
hash = (37 * hash) + UNRESTRICTED_TOKEN_TRANSFER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUnrestrictedTokenTransfer());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Params 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 proto.cosmos.bank.v1beta1.Bank.Params parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Params 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 proto.cosmos.bank.v1beta1.Bank.Params parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Params 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(proto.cosmos.bank.v1beta1.Bank.Params 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;
}
/**
*
* Params defines the parameters for the bank module.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Params}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Params)
proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Params.class, proto.cosmos.bank.v1beta1.Bank.Params.Builder.class);
}
// Construct using proto.cosmos.bank.v1beta1.Bank.Params.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSendEnabledFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sendEnabledBuilder_ == null) {
sendEnabled_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
sendEnabledBuilder_.clear();
}
defaultSendEnabled_ = false;
unrestrictedTokenTransfer_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Params getDefaultInstanceForType() {
return proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance();
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Params build() {
proto.cosmos.bank.v1beta1.Bank.Params result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Params buildPartial() {
proto.cosmos.bank.v1beta1.Bank.Params result = new proto.cosmos.bank.v1beta1.Bank.Params(this);
int from_bitField0_ = bitField0_;
if (sendEnabledBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sendEnabled_ = sendEnabled_;
} else {
result.sendEnabled_ = sendEnabledBuilder_.build();
}
result.defaultSendEnabled_ = defaultSendEnabled_;
result.unrestrictedTokenTransfer_ = unrestrictedTokenTransfer_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.cosmos.bank.v1beta1.Bank.Params) {
return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Params)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Params other) {
if (other == proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance()) return this;
if (sendEnabledBuilder_ == null) {
if (!other.sendEnabled_.isEmpty()) {
if (sendEnabled_.isEmpty()) {
sendEnabled_ = other.sendEnabled_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSendEnabledIsMutable();
sendEnabled_.addAll(other.sendEnabled_);
}
onChanged();
}
} else {
if (!other.sendEnabled_.isEmpty()) {
if (sendEnabledBuilder_.isEmpty()) {
sendEnabledBuilder_.dispose();
sendEnabledBuilder_ = null;
sendEnabled_ = other.sendEnabled_;
bitField0_ = (bitField0_ & ~0x00000001);
sendEnabledBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSendEnabledFieldBuilder() : null;
} else {
sendEnabledBuilder_.addAllMessages(other.sendEnabled_);
}
}
}
if (other.getDefaultSendEnabled() != false) {
setDefaultSendEnabled(other.getDefaultSendEnabled());
}
if (other.getUnrestrictedTokenTransfer() != false) {
setUnrestrictedTokenTransfer(other.getUnrestrictedTokenTransfer());
}
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 {
proto.cosmos.bank.v1beta1.Bank.Params parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Params) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List sendEnabled_ =
java.util.Collections.emptyList();
private void ensureSendEnabledIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sendEnabled_ = new java.util.ArrayList(sendEnabled_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder> sendEnabledBuilder_;
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public java.util.List getSendEnabledList() {
if (sendEnabledBuilder_ == null) {
return java.util.Collections.unmodifiableList(sendEnabled_);
} else {
return sendEnabledBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public int getSendEnabledCount() {
if (sendEnabledBuilder_ == null) {
return sendEnabled_.size();
} else {
return sendEnabledBuilder_.getCount();
}
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index) {
if (sendEnabledBuilder_ == null) {
return sendEnabled_.get(index);
} else {
return sendEnabledBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder setSendEnabled(
int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled value) {
if (sendEnabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSendEnabledIsMutable();
sendEnabled_.set(index, value);
onChanged();
} else {
sendEnabledBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder setSendEnabled(
int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) {
if (sendEnabledBuilder_ == null) {
ensureSendEnabledIsMutable();
sendEnabled_.set(index, builderForValue.build());
onChanged();
} else {
sendEnabledBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder addSendEnabled(proto.cosmos.bank.v1beta1.Bank.SendEnabled value) {
if (sendEnabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSendEnabledIsMutable();
sendEnabled_.add(value);
onChanged();
} else {
sendEnabledBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder addSendEnabled(
int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled value) {
if (sendEnabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSendEnabledIsMutable();
sendEnabled_.add(index, value);
onChanged();
} else {
sendEnabledBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder addSendEnabled(
proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) {
if (sendEnabledBuilder_ == null) {
ensureSendEnabledIsMutable();
sendEnabled_.add(builderForValue.build());
onChanged();
} else {
sendEnabledBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder addSendEnabled(
int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) {
if (sendEnabledBuilder_ == null) {
ensureSendEnabledIsMutable();
sendEnabled_.add(index, builderForValue.build());
onChanged();
} else {
sendEnabledBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder addAllSendEnabled(
java.lang.Iterable extends proto.cosmos.bank.v1beta1.Bank.SendEnabled> values) {
if (sendEnabledBuilder_ == null) {
ensureSendEnabledIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sendEnabled_);
onChanged();
} else {
sendEnabledBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder clearSendEnabled() {
if (sendEnabledBuilder_ == null) {
sendEnabled_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sendEnabledBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public Builder removeSendEnabled(int index) {
if (sendEnabledBuilder_ == null) {
ensureSendEnabledIsMutable();
sendEnabled_.remove(index);
onChanged();
} else {
sendEnabledBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder getSendEnabledBuilder(
int index) {
return getSendEnabledFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder(
int index) {
if (sendEnabledBuilder_ == null) {
return sendEnabled_.get(index); } else {
return sendEnabledBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public java.util.List extends proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>
getSendEnabledOrBuilderList() {
if (sendEnabledBuilder_ != null) {
return sendEnabledBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sendEnabled_);
}
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder addSendEnabledBuilder() {
return getSendEnabledFieldBuilder().addBuilder(
proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance());
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder addSendEnabledBuilder(
int index) {
return getSendEnabledFieldBuilder().addBuilder(
index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance());
}
/**
* repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
*/
public java.util.List
getSendEnabledBuilderList() {
return getSendEnabledFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>
getSendEnabledFieldBuilder() {
if (sendEnabledBuilder_ == null) {
sendEnabledBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>(
sendEnabled_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
sendEnabled_ = null;
}
return sendEnabledBuilder_;
}
private boolean defaultSendEnabled_ ;
/**
* bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
* @return The defaultSendEnabled.
*/
@java.lang.Override
public boolean getDefaultSendEnabled() {
return defaultSendEnabled_;
}
/**
* bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
* @param value The defaultSendEnabled to set.
* @return This builder for chaining.
*/
public Builder setDefaultSendEnabled(boolean value) {
defaultSendEnabled_ = value;
onChanged();
return this;
}
/**
* bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
* @return This builder for chaining.
*/
public Builder clearDefaultSendEnabled() {
defaultSendEnabled_ = false;
onChanged();
return this;
}
private boolean unrestrictedTokenTransfer_ ;
/**
* bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
* @return The unrestrictedTokenTransfer.
*/
@java.lang.Override
public boolean getUnrestrictedTokenTransfer() {
return unrestrictedTokenTransfer_;
}
/**
* bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
* @param value The unrestrictedTokenTransfer to set.
* @return This builder for chaining.
*/
public Builder setUnrestrictedTokenTransfer(boolean value) {
unrestrictedTokenTransfer_ = value;
onChanged();
return this;
}
/**
* bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
* @return This builder for chaining.
*/
public Builder clearUnrestrictedTokenTransfer() {
unrestrictedTokenTransfer_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Params)
}
// @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Params)
private static final proto.cosmos.bank.v1beta1.Bank.Params DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Params();
}
public static proto.cosmos.bank.v1beta1.Bank.Params getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Params parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Params(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 proto.cosmos.bank.v1beta1.Bank.Params getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendEnabledOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.SendEnabled)
com.google.protobuf.MessageOrBuilder {
/**
* string denom = 1;
* @return The denom.
*/
java.lang.String getDenom();
/**
* string denom = 1;
* @return The bytes for denom.
*/
com.google.protobuf.ByteString
getDenomBytes();
/**
* bool enabled = 2;
* @return The enabled.
*/
boolean getEnabled();
}
/**
*
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
* sendable).
*
*
* Protobuf type {@code cosmos.bank.v1beta1.SendEnabled}
*/
public static final class SendEnabled extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.SendEnabled)
SendEnabledOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendEnabled.newBuilder() to construct.
private SendEnabled(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendEnabled() {
denom_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendEnabled();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendEnabled(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
denom_ = s;
break;
}
case 16: {
enabled_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.SendEnabled.class, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder.class);
}
public static final int DENOM_FIELD_NUMBER = 1;
private volatile java.lang.Object denom_;
/**
* string denom = 1;
* @return The denom.
*/
@java.lang.Override
public java.lang.String getDenom() {
java.lang.Object ref = denom_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
denom_ = s;
return s;
}
}
/**
* string denom = 1;
* @return The bytes for denom.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDenomBytes() {
java.lang.Object ref = denom_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
denom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENABLED_FIELD_NUMBER = 2;
private boolean enabled_;
/**
* bool enabled = 2;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
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 (!getDenomBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_);
}
if (enabled_ != false) {
output.writeBool(2, enabled_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDenomBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, enabled_);
}
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 proto.cosmos.bank.v1beta1.Bank.SendEnabled)) {
return super.equals(obj);
}
proto.cosmos.bank.v1beta1.Bank.SendEnabled other = (proto.cosmos.bank.v1beta1.Bank.SendEnabled) obj;
if (!getDenom()
.equals(other.getDenom())) return false;
if (getEnabled()
!= other.getEnabled()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DENOM_FIELD_NUMBER;
hash = (53 * hash) + getDenom().hashCode();
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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 proto.cosmos.bank.v1beta1.Bank.SendEnabled parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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 proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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(proto.cosmos.bank.v1beta1.Bank.SendEnabled 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;
}
/**
*
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
* sendable).
*
*
* Protobuf type {@code cosmos.bank.v1beta1.SendEnabled}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.SendEnabled)
proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.SendEnabled.class, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder.class);
}
// Construct using proto.cosmos.bank.v1beta1.Bank.SendEnabled.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();
denom_ = "";
enabled_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.SendEnabled getDefaultInstanceForType() {
return proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance();
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.SendEnabled build() {
proto.cosmos.bank.v1beta1.Bank.SendEnabled result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.SendEnabled buildPartial() {
proto.cosmos.bank.v1beta1.Bank.SendEnabled result = new proto.cosmos.bank.v1beta1.Bank.SendEnabled(this);
result.denom_ = denom_;
result.enabled_ = enabled_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.cosmos.bank.v1beta1.Bank.SendEnabled) {
return mergeFrom((proto.cosmos.bank.v1beta1.Bank.SendEnabled)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.SendEnabled other) {
if (other == proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance()) return this;
if (!other.getDenom().isEmpty()) {
denom_ = other.denom_;
onChanged();
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
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 {
proto.cosmos.bank.v1beta1.Bank.SendEnabled parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.cosmos.bank.v1beta1.Bank.SendEnabled) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object denom_ = "";
/**
* string denom = 1;
* @return The denom.
*/
public java.lang.String getDenom() {
java.lang.Object ref = denom_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
denom_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string denom = 1;
* @return The bytes for denom.
*/
public com.google.protobuf.ByteString
getDenomBytes() {
java.lang.Object ref = denom_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
denom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string denom = 1;
* @param value The denom to set.
* @return This builder for chaining.
*/
public Builder setDenom(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
denom_ = value;
onChanged();
return this;
}
/**
* string denom = 1;
* @return This builder for chaining.
*/
public Builder clearDenom() {
denom_ = getDefaultInstance().getDenom();
onChanged();
return this;
}
/**
* string denom = 1;
* @param value The bytes for denom to set.
* @return This builder for chaining.
*/
public Builder setDenomBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
denom_ = value;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 2;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 2;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 2;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.SendEnabled)
}
// @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.SendEnabled)
private static final proto.cosmos.bank.v1beta1.Bank.SendEnabled DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.SendEnabled();
}
public static proto.cosmos.bank.v1beta1.Bank.SendEnabled getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendEnabled parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendEnabled(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 proto.cosmos.bank.v1beta1.Bank.SendEnabled getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InputOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Input)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List
getCoinsList();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index);
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
int getCoinsCount();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index);
}
/**
*
* Input models transaction input.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Input}
*/
public static final class Input extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Input)
InputOrBuilder {
private static final long serialVersionUID = 0L;
// Use Input.newBuilder() to construct.
private Input(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Input() {
address_ = "";
coins_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Input();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Input(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
coins_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
coins_.add(
input.readMessage(proto.cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
coins_ = java.util.Collections.unmodifiableList(coins_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Input.class, proto.cosmos.bank.v1beta1.Bank.Input.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COINS_FIELD_NUMBER = 2;
private java.util.List coins_;
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List getCoinsList() {
return coins_;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList() {
return coins_;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public int getCoinsCount() {
return coins_.size();
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) {
return coins_.get(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index) {
return coins_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
for (int i = 0; i < coins_.size(); i++) {
output.writeMessage(2, coins_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
for (int i = 0; i < coins_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, coins_.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 proto.cosmos.bank.v1beta1.Bank.Input)) {
return super.equals(obj);
}
proto.cosmos.bank.v1beta1.Bank.Input other = (proto.cosmos.bank.v1beta1.Bank.Input) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getCoinsList()
.equals(other.getCoinsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getCoinsCount() > 0) {
hash = (37 * hash) + COINS_FIELD_NUMBER;
hash = (53 * hash) + getCoinsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Input 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 proto.cosmos.bank.v1beta1.Bank.Input parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Input 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 proto.cosmos.bank.v1beta1.Bank.Input parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Input 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(proto.cosmos.bank.v1beta1.Bank.Input 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;
}
/**
*
* Input models transaction input.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Input}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Input)
proto.cosmos.bank.v1beta1.Bank.InputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Input.class, proto.cosmos.bank.v1beta1.Bank.Input.Builder.class);
}
// Construct using proto.cosmos.bank.v1beta1.Bank.Input.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCoinsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = "";
if (coinsBuilder_ == null) {
coins_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
coinsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Input getDefaultInstanceForType() {
return proto.cosmos.bank.v1beta1.Bank.Input.getDefaultInstance();
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Input build() {
proto.cosmos.bank.v1beta1.Bank.Input result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Input buildPartial() {
proto.cosmos.bank.v1beta1.Bank.Input result = new proto.cosmos.bank.v1beta1.Bank.Input(this);
int from_bitField0_ = bitField0_;
result.address_ = address_;
if (coinsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
coins_ = java.util.Collections.unmodifiableList(coins_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.coins_ = coins_;
} else {
result.coins_ = coinsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.cosmos.bank.v1beta1.Bank.Input) {
return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Input)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Input other) {
if (other == proto.cosmos.bank.v1beta1.Bank.Input.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (coinsBuilder_ == null) {
if (!other.coins_.isEmpty()) {
if (coins_.isEmpty()) {
coins_ = other.coins_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCoinsIsMutable();
coins_.addAll(other.coins_);
}
onChanged();
}
} else {
if (!other.coins_.isEmpty()) {
if (coinsBuilder_.isEmpty()) {
coinsBuilder_.dispose();
coinsBuilder_ = null;
coins_ = other.coins_;
bitField0_ = (bitField0_ & ~0x00000001);
coinsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCoinsFieldBuilder() : null;
} else {
coinsBuilder_.addAllMessages(other.coins_);
}
}
}
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 {
proto.cosmos.bank.v1beta1.Bank.Input parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Input) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.util.List coins_ =
java.util.Collections.emptyList();
private void ensureCoinsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
coins_ = new java.util.ArrayList(coins_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> coinsBuilder_;
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getCoinsList() {
if (coinsBuilder_ == null) {
return java.util.Collections.unmodifiableList(coins_);
} else {
return coinsBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getCoinsCount() {
if (coinsBuilder_ == null) {
return coins_.size();
} else {
return coinsBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) {
if (coinsBuilder_ == null) {
return coins_.get(index);
} else {
return coinsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.set(index, value);
onChanged();
} else {
coinsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.set(index, builderForValue.build());
onChanged();
} else {
coinsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.add(value);
onChanged();
} else {
coinsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.add(index, value);
onChanged();
} else {
coinsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.add(builderForValue.build());
onChanged();
} else {
coinsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.add(index, builderForValue.build());
onChanged();
} else {
coinsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllCoins(
java.lang.Iterable extends proto.cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coins_);
onChanged();
} else {
coinsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearCoins() {
if (coinsBuilder_ == null) {
coins_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
coinsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeCoins(int index) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.remove(index);
onChanged();
} else {
coinsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getCoinsBuilder(
int index) {
return getCoinsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index) {
if (coinsBuilder_ == null) {
return coins_.get(index); } else {
return coinsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList() {
if (coinsBuilder_ != null) {
return coinsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coins_);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder() {
return getCoinsFieldBuilder().addBuilder(
proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder(
int index) {
return getCoinsFieldBuilder().addBuilder(
index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getCoinsBuilderList() {
return getCoinsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsFieldBuilder() {
if (coinsBuilder_ == null) {
coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
coins_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
coins_ = null;
}
return coinsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Input)
}
// @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Input)
private static final proto.cosmos.bank.v1beta1.Bank.Input DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Input();
}
public static proto.cosmos.bank.v1beta1.Bank.Input getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Input parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Input(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 proto.cosmos.bank.v1beta1.Bank.Input getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OutputOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Output)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List
getCoinsList();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index);
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
int getCoinsCount();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList();
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index);
}
/**
*
* Output models transaction outputs.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Output}
*/
public static final class Output extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Output)
OutputOrBuilder {
private static final long serialVersionUID = 0L;
// Use Output.newBuilder() to construct.
private Output(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Output() {
address_ = "";
coins_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Output();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Output(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
coins_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
coins_.add(
input.readMessage(proto.cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
coins_ = java.util.Collections.unmodifiableList(coins_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Output.class, proto.cosmos.bank.v1beta1.Bank.Output.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COINS_FIELD_NUMBER = 2;
private java.util.List coins_;
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List getCoinsList() {
return coins_;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList() {
return coins_;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public int getCoinsCount() {
return coins_.size();
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) {
return coins_.get(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index) {
return coins_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
for (int i = 0; i < coins_.size(); i++) {
output.writeMessage(2, coins_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
for (int i = 0; i < coins_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, coins_.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 proto.cosmos.bank.v1beta1.Bank.Output)) {
return super.equals(obj);
}
proto.cosmos.bank.v1beta1.Bank.Output other = (proto.cosmos.bank.v1beta1.Bank.Output) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getCoinsList()
.equals(other.getCoinsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getCoinsCount() > 0) {
hash = (37 * hash) + COINS_FIELD_NUMBER;
hash = (53 * hash) + getCoinsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Output 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 proto.cosmos.bank.v1beta1.Bank.Output parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Output 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 proto.cosmos.bank.v1beta1.Bank.Output parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.cosmos.bank.v1beta1.Bank.Output 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(proto.cosmos.bank.v1beta1.Bank.Output 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;
}
/**
*
* Output models transaction outputs.
*
*
* Protobuf type {@code cosmos.bank.v1beta1.Output}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Output)
proto.cosmos.bank.v1beta1.Bank.OutputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.cosmos.bank.v1beta1.Bank.Output.class, proto.cosmos.bank.v1beta1.Bank.Output.Builder.class);
}
// Construct using proto.cosmos.bank.v1beta1.Bank.Output.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCoinsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = "";
if (coinsBuilder_ == null) {
coins_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
coinsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Output getDefaultInstanceForType() {
return proto.cosmos.bank.v1beta1.Bank.Output.getDefaultInstance();
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Output build() {
proto.cosmos.bank.v1beta1.Bank.Output result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.cosmos.bank.v1beta1.Bank.Output buildPartial() {
proto.cosmos.bank.v1beta1.Bank.Output result = new proto.cosmos.bank.v1beta1.Bank.Output(this);
int from_bitField0_ = bitField0_;
result.address_ = address_;
if (coinsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
coins_ = java.util.Collections.unmodifiableList(coins_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.coins_ = coins_;
} else {
result.coins_ = coinsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.cosmos.bank.v1beta1.Bank.Output) {
return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Output)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Output other) {
if (other == proto.cosmos.bank.v1beta1.Bank.Output.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (coinsBuilder_ == null) {
if (!other.coins_.isEmpty()) {
if (coins_.isEmpty()) {
coins_ = other.coins_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCoinsIsMutable();
coins_.addAll(other.coins_);
}
onChanged();
}
} else {
if (!other.coins_.isEmpty()) {
if (coinsBuilder_.isEmpty()) {
coinsBuilder_.dispose();
coinsBuilder_ = null;
coins_ = other.coins_;
bitField0_ = (bitField0_ & ~0x00000001);
coinsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCoinsFieldBuilder() : null;
} else {
coinsBuilder_.addAllMessages(other.coins_);
}
}
}
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 {
proto.cosmos.bank.v1beta1.Bank.Output parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Output) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.util.List coins_ =
java.util.Collections.emptyList();
private void ensureCoinsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
coins_ = new java.util.ArrayList(coins_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> coinsBuilder_;
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getCoinsList() {
if (coinsBuilder_ == null) {
return java.util.Collections.unmodifiableList(coins_);
} else {
return coinsBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getCoinsCount() {
if (coinsBuilder_ == null) {
return coins_.size();
} else {
return coinsBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) {
if (coinsBuilder_ == null) {
return coins_.get(index);
} else {
return coinsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.set(index, value);
onChanged();
} else {
coinsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.set(index, builderForValue.build());
onChanged();
} else {
coinsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.add(value);
onChanged();
} else {
coinsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (coinsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoinsIsMutable();
coins_.add(index, value);
onChanged();
} else {
coinsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.add(builderForValue.build());
onChanged();
} else {
coinsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addCoins(
int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.add(index, builderForValue.build());
onChanged();
} else {
coinsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllCoins(
java.lang.Iterable extends proto.cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coins_);
onChanged();
} else {
coinsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearCoins() {
if (coinsBuilder_ == null) {
coins_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
coinsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeCoins(int index) {
if (coinsBuilder_ == null) {
ensureCoinsIsMutable();
coins_.remove(index);
onChanged();
} else {
coinsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getCoinsBuilder(
int index) {
return getCoinsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder(
int index) {
if (coinsBuilder_ == null) {
return coins_.get(index); } else {
return coinsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsOrBuilderList() {
if (coinsBuilder_ != null) {
return coinsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coins_);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder() {
return getCoinsFieldBuilder().addBuilder(
proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder(
int index) {
return getCoinsFieldBuilder().addBuilder(
index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getCoinsBuilderList() {
return getCoinsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCoinsFieldBuilder() {
if (coinsBuilder_ == null) {
coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
coins_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
coins_ = null;
}
return coinsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Output)
}
// @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Output)
private static final proto.cosmos.bank.v1beta1.Bank.Output DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Output();
}
public static proto.cosmos.bank.v1beta1.Bank.Output getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser