Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cosmwasm.wasm.v1beta1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: x/wasm/internal/types/genesis.proto
package cosmwasm.wasm.v1beta1;
public final class Genesis {
private Genesis() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface GenesisStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
boolean hasParams();
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.Params getParams();
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder getParamsOrBuilder();
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
java.util.List
getCodesList();
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.Code getCodes(int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
int getCodesCount();
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
java.util.List extends cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder>
getCodesOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder getCodesOrBuilder(
int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
java.util.List
getContractsList();
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.Contract getContracts(int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
int getContractsCount();
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
java.util.List extends cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder>
getContractsOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder getContractsOrBuilder(
int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
java.util.List
getSequencesList();
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.Sequence getSequences(int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
int getSequencesCount();
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
java.util.List extends cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder>
getSequencesOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder getSequencesOrBuilder(
int index);
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
java.util.List
getGenMsgsList();
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getGenMsgs(int index);
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
int getGenMsgsCount();
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
java.util.List extends cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder>
getGenMsgsOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder getGenMsgsOrBuilder(
int index);
}
/**
*
* GenesisState - genesis state of x/wasm
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.GenesisState)
GenesisStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenesisState.newBuilder() to construct.
private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenesisState() {
codes_ = java.util.Collections.emptyList();
contracts_ = java.util.Collections.emptyList();
sequences_ = java.util.Collections.emptyList();
genMsgs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenesisState(
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: {
cosmwasm.wasm.v1beta1.Types.Params.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(cosmwasm.wasm.v1beta1.Types.Params.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
codes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
codes_.add(
input.readMessage(cosmwasm.wasm.v1beta1.Genesis.Code.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contracts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
contracts_.add(
input.readMessage(cosmwasm.wasm.v1beta1.Genesis.Contract.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
sequences_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
sequences_.add(
input.readMessage(cosmwasm.wasm.v1beta1.Genesis.Sequence.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
genMsgs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
genMsgs_.add(
input.readMessage(cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
codes_ = java.util.Collections.unmodifiableList(codes_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contracts_ = java.util.Collections.unmodifiableList(contracts_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
sequences_ = java.util.Collections.unmodifiableList(sequences_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
genMsgs_ = java.util.Collections.unmodifiableList(genMsgs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.class, cosmwasm.wasm.v1beta1.Genesis.GenesisState.Builder.class);
}
public interface GenMsgsOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.GenesisState.GenMsgs)
com.google.protobuf.MessageOrBuilder {
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
boolean hasStoreCode();
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode getStoreCode();
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder getStoreCodeOrBuilder();
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
boolean hasInstantiateContract();
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract getInstantiateContract();
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder getInstantiateContractOrBuilder();
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
boolean hasExecuteContract();
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract getExecuteContract();
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder getExecuteContractOrBuilder();
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.SumCase getSumCase();
}
/**
*
* GenMsgs define the messages that can be executed during genesis phase in order.
* The intention is to have more human readable data that is auditable.
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.GenesisState.GenMsgs}
*/
public static final class GenMsgs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.GenesisState.GenMsgs)
GenMsgsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenMsgs.newBuilder() to construct.
private GenMsgs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenMsgs() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenMsgs(
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: {
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder subBuilder = null;
if (sumCase_ == 1) {
subBuilder = ((cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_).toBuilder();
}
sum_ =
input.readMessage(cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 1;
break;
}
case 18: {
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder subBuilder = null;
if (sumCase_ == 2) {
subBuilder = ((cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_).toBuilder();
}
sum_ =
input.readMessage(cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 2;
break;
}
case 26: {
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder subBuilder = null;
if (sumCase_ == 3) {
subBuilder = ((cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_).toBuilder();
}
sum_ =
input.readMessage(cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 3;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.class, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder.class);
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
STORE_CODE(1),
INSTANTIATE_CONTRACT(2),
EXECUTE_CONTRACT(3),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return STORE_CODE;
case 2: return INSTANTIATE_CONTRACT;
case 3: return EXECUTE_CONTRACT;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int STORE_CODE_FIELD_NUMBER = 1;
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public boolean hasStoreCode() {
return sumCase_ == 1;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgStoreCode getStoreCode() {
if (sumCase_ == 1) {
return (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder getStoreCodeOrBuilder() {
if (sumCase_ == 1) {
return (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
}
public static final int INSTANTIATE_CONTRACT_FIELD_NUMBER = 2;
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public boolean hasInstantiateContract() {
return sumCase_ == 2;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract getInstantiateContract() {
if (sumCase_ == 2) {
return (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder getInstantiateContractOrBuilder() {
if (sumCase_ == 2) {
return (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
}
public static final int EXECUTE_CONTRACT_FIELD_NUMBER = 3;
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public boolean hasExecuteContract() {
return sumCase_ == 3;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract getExecuteContract() {
if (sumCase_ == 3) {
return (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder getExecuteContractOrBuilder() {
if (sumCase_ == 3) {
return (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sumCase_ == 1) {
output.writeMessage(1, (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_);
}
if (sumCase_ == 2) {
output.writeMessage(2, (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_);
}
if (sumCase_ == 3) {
output.writeMessage(3, (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_);
}
if (sumCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_);
}
if (sumCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs)) {
return super.equals(obj);
}
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs other = (cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs) obj;
boolean result = true;
result = result && getSumCase().equals(
other.getSumCase());
if (!result) return false;
switch (sumCase_) {
case 1:
result = result && getStoreCode()
.equals(other.getStoreCode());
break;
case 2:
result = result && getInstantiateContract()
.equals(other.getInstantiateContract());
break;
case 3:
result = result && getExecuteContract()
.equals(other.getExecuteContract());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + STORE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getStoreCode().hashCode();
break;
case 2:
hash = (37 * hash) + INSTANTIATE_CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getInstantiateContract().hashCode();
break;
case 3:
hash = (37 * hash) + EXECUTE_CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getExecuteContract().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs 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 cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs 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 cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs 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(cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs 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;
}
/**
*
* GenMsgs define the messages that can be executed during genesis phase in order.
* The intention is to have more human readable data that is auditable.
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.GenesisState.GenMsgs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.GenesisState.GenMsgs)
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.class, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder.class);
}
// Construct using cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getDefaultInstanceForType() {
return cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs build() {
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs buildPartial() {
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs result = new cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs(this);
if (sumCase_ == 1) {
if (storeCodeBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = storeCodeBuilder_.build();
}
}
if (sumCase_ == 2) {
if (instantiateContractBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = instantiateContractBuilder_.build();
}
}
if (sumCase_ == 3) {
if (executeContractBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = executeContractBuilder_.build();
}
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs) {
return mergeFrom((cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs other) {
if (other == cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case STORE_CODE: {
mergeStoreCode(other.getStoreCode());
break;
}
case INSTANTIATE_CONTRACT: {
mergeInstantiateContract(other.getInstantiateContract());
break;
}
case EXECUTE_CONTRACT: {
mergeExecuteContract(other.getExecuteContract());
break;
}
case SUM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode, cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder, cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder> storeCodeBuilder_;
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public boolean hasStoreCode() {
return sumCase_ == 1;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgStoreCode getStoreCode() {
if (storeCodeBuilder_ == null) {
if (sumCase_ == 1) {
return (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
} else {
if (sumCase_ == 1) {
return storeCodeBuilder_.getMessage();
}
return cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public Builder setStoreCode(cosmwasm.wasm.v1beta1.Tx.MsgStoreCode value) {
if (storeCodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
storeCodeBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public Builder setStoreCode(
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder builderForValue) {
if (storeCodeBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
storeCodeBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 1;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public Builder mergeStoreCode(cosmwasm.wasm.v1beta1.Tx.MsgStoreCode value) {
if (storeCodeBuilder_ == null) {
if (sumCase_ == 1 &&
sum_ != cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance()) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.newBuilder((cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 1) {
storeCodeBuilder_.mergeFrom(value);
}
storeCodeBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public Builder clearStoreCode() {
if (storeCodeBuilder_ == null) {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
}
storeCodeBuilder_.clear();
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder getStoreCodeBuilder() {
return getStoreCodeFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder getStoreCodeOrBuilder() {
if ((sumCase_ == 1) && (storeCodeBuilder_ != null)) {
return storeCodeBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 1) {
return (cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgStoreCode store_code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode, cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder, cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder>
getStoreCodeFieldBuilder() {
if (storeCodeBuilder_ == null) {
if (!(sumCase_ == 1)) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance();
}
storeCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgStoreCode, cosmwasm.wasm.v1beta1.Tx.MsgStoreCode.Builder, cosmwasm.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder>(
(cosmwasm.wasm.v1beta1.Tx.MsgStoreCode) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 1;
onChanged();;
return storeCodeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder> instantiateContractBuilder_;
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public boolean hasInstantiateContract() {
return sumCase_ == 2;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract getInstantiateContract() {
if (instantiateContractBuilder_ == null) {
if (sumCase_ == 2) {
return (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
} else {
if (sumCase_ == 2) {
return instantiateContractBuilder_.getMessage();
}
return cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public Builder setInstantiateContract(cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract value) {
if (instantiateContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
instantiateContractBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public Builder setInstantiateContract(
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder builderForValue) {
if (instantiateContractBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
instantiateContractBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 2;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public Builder mergeInstantiateContract(cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract value) {
if (instantiateContractBuilder_ == null) {
if (sumCase_ == 2 &&
sum_ != cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance()) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.newBuilder((cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 2) {
instantiateContractBuilder_.mergeFrom(value);
}
instantiateContractBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public Builder clearInstantiateContract() {
if (instantiateContractBuilder_ == null) {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
}
instantiateContractBuilder_.clear();
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder getInstantiateContractBuilder() {
return getInstantiateContractFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder getInstantiateContractOrBuilder() {
if ((sumCase_ == 2) && (instantiateContractBuilder_ != null)) {
return instantiateContractBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 2) {
return (cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgInstantiateContract instantiate_contract = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder>
getInstantiateContractFieldBuilder() {
if (instantiateContractBuilder_ == null) {
if (!(sumCase_ == 2)) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance();
}
instantiateContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder>(
(cosmwasm.wasm.v1beta1.Tx.MsgInstantiateContract) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 2;
onChanged();;
return instantiateContractBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder> executeContractBuilder_;
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public boolean hasExecuteContract() {
return sumCase_ == 3;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract getExecuteContract() {
if (executeContractBuilder_ == null) {
if (sumCase_ == 3) {
return (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
} else {
if (sumCase_ == 3) {
return executeContractBuilder_.getMessage();
}
return cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public Builder setExecuteContract(cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract value) {
if (executeContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
executeContractBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public Builder setExecuteContract(
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder builderForValue) {
if (executeContractBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
executeContractBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 3;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public Builder mergeExecuteContract(cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract value) {
if (executeContractBuilder_ == null) {
if (sumCase_ == 3 &&
sum_ != cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance()) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.newBuilder((cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 3) {
executeContractBuilder_.mergeFrom(value);
}
executeContractBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public Builder clearExecuteContract() {
if (executeContractBuilder_ == null) {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
}
executeContractBuilder_.clear();
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder getExecuteContractBuilder() {
return getExecuteContractFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
public cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder getExecuteContractOrBuilder() {
if ((sumCase_ == 3) && (executeContractBuilder_ != null)) {
return executeContractBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 3) {
return (cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_;
}
return cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
}
}
/**
* .cosmwasm.wasm.v1beta1.MsgExecuteContract execute_contract = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder>
getExecuteContractFieldBuilder() {
if (executeContractBuilder_ == null) {
if (!(sumCase_ == 3)) {
sum_ = cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance();
}
executeContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract.Builder, cosmwasm.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder>(
(cosmwasm.wasm.v1beta1.Tx.MsgExecuteContract) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 3;
onChanged();;
return executeContractBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.GenesisState.GenMsgs)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.GenesisState.GenMsgs)
private static final cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs();
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenMsgs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenMsgs(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 cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int PARAMS_FIELD_NUMBER = 1;
private cosmwasm.wasm.v1beta1.Types.Params params_;
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return params_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Params getParams() {
return params_ == null ? cosmwasm.wasm.v1beta1.Types.Params.getDefaultInstance() : params_;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
}
public static final int CODES_FIELD_NUMBER = 2;
private java.util.List codes_;
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public java.util.List getCodesList() {
return codes_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder>
getCodesOrBuilderList() {
return codes_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public int getCodesCount() {
return codes_.size();
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Code getCodes(int index) {
return codes_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder getCodesOrBuilder(
int index) {
return codes_.get(index);
}
public static final int CONTRACTS_FIELD_NUMBER = 3;
private java.util.List contracts_;
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public java.util.List getContractsList() {
return contracts_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder>
getContractsOrBuilderList() {
return contracts_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public int getContractsCount() {
return contracts_.size();
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Contract getContracts(int index) {
return contracts_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder getContractsOrBuilder(
int index) {
return contracts_.get(index);
}
public static final int SEQUENCES_FIELD_NUMBER = 4;
private java.util.List sequences_;
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public java.util.List getSequencesList() {
return sequences_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder>
getSequencesOrBuilderList() {
return sequences_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public int getSequencesCount() {
return sequences_.size();
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Sequence getSequences(int index) {
return sequences_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder getSequencesOrBuilder(
int index) {
return sequences_.get(index);
}
public static final int GEN_MSGS_FIELD_NUMBER = 5;
private java.util.List genMsgs_;
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public java.util.List getGenMsgsList() {
return genMsgs_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder>
getGenMsgsOrBuilderList() {
return genMsgs_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public int getGenMsgsCount() {
return genMsgs_.size();
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getGenMsgs(int index) {
return genMsgs_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder getGenMsgsOrBuilder(
int index) {
return genMsgs_.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 (params_ != null) {
output.writeMessage(1, getParams());
}
for (int i = 0; i < codes_.size(); i++) {
output.writeMessage(2, codes_.get(i));
}
for (int i = 0; i < contracts_.size(); i++) {
output.writeMessage(3, contracts_.get(i));
}
for (int i = 0; i < sequences_.size(); i++) {
output.writeMessage(4, sequences_.get(i));
}
for (int i = 0; i < genMsgs_.size(); i++) {
output.writeMessage(5, genMsgs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (params_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getParams());
}
for (int i = 0; i < codes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, codes_.get(i));
}
for (int i = 0; i < contracts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, contracts_.get(i));
}
for (int i = 0; i < sequences_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, sequences_.get(i));
}
for (int i = 0; i < genMsgs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, genMsgs_.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 cosmwasm.wasm.v1beta1.Genesis.GenesisState)) {
return super.equals(obj);
}
cosmwasm.wasm.v1beta1.Genesis.GenesisState other = (cosmwasm.wasm.v1beta1.Genesis.GenesisState) obj;
boolean result = true;
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams()
.equals(other.getParams());
}
result = result && getCodesList()
.equals(other.getCodesList());
result = result && getContractsList()
.equals(other.getContractsList());
result = result && getSequencesList()
.equals(other.getSequencesList());
result = result && getGenMsgsList()
.equals(other.getGenMsgsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasParams()) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParams().hashCode();
}
if (getCodesCount() > 0) {
hash = (37 * hash) + CODES_FIELD_NUMBER;
hash = (53 * hash) + getCodesList().hashCode();
}
if (getContractsCount() > 0) {
hash = (37 * hash) + CONTRACTS_FIELD_NUMBER;
hash = (53 * hash) + getContractsList().hashCode();
}
if (getSequencesCount() > 0) {
hash = (37 * hash) + SEQUENCES_FIELD_NUMBER;
hash = (53 * hash) + getSequencesList().hashCode();
}
if (getGenMsgsCount() > 0) {
hash = (37 * hash) + GEN_MSGS_FIELD_NUMBER;
hash = (53 * hash) + getGenMsgsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmwasm.wasm.v1beta1.Genesis.GenesisState prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GenesisState - genesis state of x/wasm
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.GenesisState)
cosmwasm.wasm.v1beta1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.class, cosmwasm.wasm.v1beta1.Genesis.GenesisState.Builder.class);
}
// Construct using cosmwasm.wasm.v1beta1.Genesis.GenesisState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCodesFieldBuilder();
getContractsFieldBuilder();
getSequencesFieldBuilder();
getGenMsgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
if (codesBuilder_ == null) {
codes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
codesBuilder_.clear();
}
if (contractsBuilder_ == null) {
contracts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contractsBuilder_.clear();
}
if (sequencesBuilder_ == null) {
sequences_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
sequencesBuilder_.clear();
}
if (genMsgsBuilder_ == null) {
genMsgs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
genMsgsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return cosmwasm.wasm.v1beta1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState build() {
cosmwasm.wasm.v1beta1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.GenesisState buildPartial() {
cosmwasm.wasm.v1beta1.Genesis.GenesisState result = new cosmwasm.wasm.v1beta1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (codesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
codes_ = java.util.Collections.unmodifiableList(codes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.codes_ = codes_;
} else {
result.codes_ = codesBuilder_.build();
}
if (contractsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
contracts_ = java.util.Collections.unmodifiableList(contracts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contracts_ = contracts_;
} else {
result.contracts_ = contractsBuilder_.build();
}
if (sequencesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
sequences_ = java.util.Collections.unmodifiableList(sequences_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.sequences_ = sequences_;
} else {
result.sequences_ = sequencesBuilder_.build();
}
if (genMsgsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
genMsgs_ = java.util.Collections.unmodifiableList(genMsgs_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.genMsgs_ = genMsgs_;
} else {
result.genMsgs_ = genMsgsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1beta1.Genesis.GenesisState) {
return mergeFrom((cosmwasm.wasm.v1beta1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1beta1.Genesis.GenesisState other) {
if (other == cosmwasm.wasm.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this;
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (codesBuilder_ == null) {
if (!other.codes_.isEmpty()) {
if (codes_.isEmpty()) {
codes_ = other.codes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCodesIsMutable();
codes_.addAll(other.codes_);
}
onChanged();
}
} else {
if (!other.codes_.isEmpty()) {
if (codesBuilder_.isEmpty()) {
codesBuilder_.dispose();
codesBuilder_ = null;
codes_ = other.codes_;
bitField0_ = (bitField0_ & ~0x00000002);
codesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCodesFieldBuilder() : null;
} else {
codesBuilder_.addAllMessages(other.codes_);
}
}
}
if (contractsBuilder_ == null) {
if (!other.contracts_.isEmpty()) {
if (contracts_.isEmpty()) {
contracts_ = other.contracts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureContractsIsMutable();
contracts_.addAll(other.contracts_);
}
onChanged();
}
} else {
if (!other.contracts_.isEmpty()) {
if (contractsBuilder_.isEmpty()) {
contractsBuilder_.dispose();
contractsBuilder_ = null;
contracts_ = other.contracts_;
bitField0_ = (bitField0_ & ~0x00000004);
contractsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContractsFieldBuilder() : null;
} else {
contractsBuilder_.addAllMessages(other.contracts_);
}
}
}
if (sequencesBuilder_ == null) {
if (!other.sequences_.isEmpty()) {
if (sequences_.isEmpty()) {
sequences_ = other.sequences_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSequencesIsMutable();
sequences_.addAll(other.sequences_);
}
onChanged();
}
} else {
if (!other.sequences_.isEmpty()) {
if (sequencesBuilder_.isEmpty()) {
sequencesBuilder_.dispose();
sequencesBuilder_ = null;
sequences_ = other.sequences_;
bitField0_ = (bitField0_ & ~0x00000008);
sequencesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSequencesFieldBuilder() : null;
} else {
sequencesBuilder_.addAllMessages(other.sequences_);
}
}
}
if (genMsgsBuilder_ == null) {
if (!other.genMsgs_.isEmpty()) {
if (genMsgs_.isEmpty()) {
genMsgs_ = other.genMsgs_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureGenMsgsIsMutable();
genMsgs_.addAll(other.genMsgs_);
}
onChanged();
}
} else {
if (!other.genMsgs_.isEmpty()) {
if (genMsgsBuilder_.isEmpty()) {
genMsgsBuilder_.dispose();
genMsgsBuilder_ = null;
genMsgs_ = other.genMsgs_;
bitField0_ = (bitField0_ & ~0x00000010);
genMsgsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGenMsgsFieldBuilder() : null;
} else {
genMsgsBuilder_.addAllMessages(other.genMsgs_);
}
}
}
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 {
cosmwasm.wasm.v1beta1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cosmwasm.wasm.v1beta1.Types.Params params_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Params, cosmwasm.wasm.v1beta1.Types.Params.Builder, cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder> paramsBuilder_;
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Params getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? cosmwasm.wasm.v1beta1.Types.Params.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder setParams(cosmwasm.wasm.v1beta1.Types.Params value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
params_ = value;
onChanged();
} else {
paramsBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder setParams(
cosmwasm.wasm.v1beta1.Types.Params.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeParams(cosmwasm.wasm.v1beta1.Types.Params value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
cosmwasm.wasm.v1beta1.Types.Params.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
onChanged();
} else {
paramsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Params.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
cosmwasm.wasm.v1beta1.Types.Params.getDefaultInstance() : params_;
}
}
/**
* .cosmwasm.wasm.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Params, cosmwasm.wasm.v1beta1.Types.Params.Builder, cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Params, cosmwasm.wasm.v1beta1.Types.Params.Builder, cosmwasm.wasm.v1beta1.Types.ParamsOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private java.util.List codes_ =
java.util.Collections.emptyList();
private void ensureCodesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
codes_ = new java.util.ArrayList(codes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Code, cosmwasm.wasm.v1beta1.Genesis.Code.Builder, cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder> codesBuilder_;
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public java.util.List getCodesList() {
if (codesBuilder_ == null) {
return java.util.Collections.unmodifiableList(codes_);
} else {
return codesBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public int getCodesCount() {
if (codesBuilder_ == null) {
return codes_.size();
} else {
return codesBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Code getCodes(int index) {
if (codesBuilder_ == null) {
return codes_.get(index);
} else {
return codesBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder setCodes(
int index, cosmwasm.wasm.v1beta1.Genesis.Code value) {
if (codesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.set(index, value);
onChanged();
} else {
codesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder setCodes(
int index, cosmwasm.wasm.v1beta1.Genesis.Code.Builder builderForValue) {
if (codesBuilder_ == null) {
ensureCodesIsMutable();
codes_.set(index, builderForValue.build());
onChanged();
} else {
codesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder addCodes(cosmwasm.wasm.v1beta1.Genesis.Code value) {
if (codesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(value);
onChanged();
} else {
codesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder addCodes(
int index, cosmwasm.wasm.v1beta1.Genesis.Code value) {
if (codesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(index, value);
onChanged();
} else {
codesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder addCodes(
cosmwasm.wasm.v1beta1.Genesis.Code.Builder builderForValue) {
if (codesBuilder_ == null) {
ensureCodesIsMutable();
codes_.add(builderForValue.build());
onChanged();
} else {
codesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder addCodes(
int index, cosmwasm.wasm.v1beta1.Genesis.Code.Builder builderForValue) {
if (codesBuilder_ == null) {
ensureCodesIsMutable();
codes_.add(index, builderForValue.build());
onChanged();
} else {
codesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder addAllCodes(
java.lang.Iterable extends cosmwasm.wasm.v1beta1.Genesis.Code> values) {
if (codesBuilder_ == null) {
ensureCodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, codes_);
onChanged();
} else {
codesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder clearCodes() {
if (codesBuilder_ == null) {
codes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
codesBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public Builder removeCodes(int index) {
if (codesBuilder_ == null) {
ensureCodesIsMutable();
codes_.remove(index);
onChanged();
} else {
codesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Code.Builder getCodesBuilder(
int index) {
return getCodesFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder getCodesOrBuilder(
int index) {
if (codesBuilder_ == null) {
return codes_.get(index); } else {
return codesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder>
getCodesOrBuilderList() {
if (codesBuilder_ != null) {
return codesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(codes_);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Code.Builder addCodesBuilder() {
return getCodesFieldBuilder().addBuilder(
cosmwasm.wasm.v1beta1.Genesis.Code.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Code.Builder addCodesBuilder(
int index) {
return getCodesFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1beta1.Genesis.Code.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Code codes = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "codes,omitempty"];
*/
public java.util.List
getCodesBuilderList() {
return getCodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Code, cosmwasm.wasm.v1beta1.Genesis.Code.Builder, cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder>
getCodesFieldBuilder() {
if (codesBuilder_ == null) {
codesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Code, cosmwasm.wasm.v1beta1.Genesis.Code.Builder, cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder>(
codes_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
codes_ = null;
}
return codesBuilder_;
}
private java.util.List contracts_ =
java.util.Collections.emptyList();
private void ensureContractsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
contracts_ = new java.util.ArrayList(contracts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Contract, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder, cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder> contractsBuilder_;
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public java.util.List getContractsList() {
if (contractsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contracts_);
} else {
return contractsBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public int getContractsCount() {
if (contractsBuilder_ == null) {
return contracts_.size();
} else {
return contractsBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Contract getContracts(int index) {
if (contractsBuilder_ == null) {
return contracts_.get(index);
} else {
return contractsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder setContracts(
int index, cosmwasm.wasm.v1beta1.Genesis.Contract value) {
if (contractsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractsIsMutable();
contracts_.set(index, value);
onChanged();
} else {
contractsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder setContracts(
int index, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder builderForValue) {
if (contractsBuilder_ == null) {
ensureContractsIsMutable();
contracts_.set(index, builderForValue.build());
onChanged();
} else {
contractsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder addContracts(cosmwasm.wasm.v1beta1.Genesis.Contract value) {
if (contractsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractsIsMutable();
contracts_.add(value);
onChanged();
} else {
contractsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder addContracts(
int index, cosmwasm.wasm.v1beta1.Genesis.Contract value) {
if (contractsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractsIsMutable();
contracts_.add(index, value);
onChanged();
} else {
contractsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder addContracts(
cosmwasm.wasm.v1beta1.Genesis.Contract.Builder builderForValue) {
if (contractsBuilder_ == null) {
ensureContractsIsMutable();
contracts_.add(builderForValue.build());
onChanged();
} else {
contractsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder addContracts(
int index, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder builderForValue) {
if (contractsBuilder_ == null) {
ensureContractsIsMutable();
contracts_.add(index, builderForValue.build());
onChanged();
} else {
contractsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder addAllContracts(
java.lang.Iterable extends cosmwasm.wasm.v1beta1.Genesis.Contract> values) {
if (contractsBuilder_ == null) {
ensureContractsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contracts_);
onChanged();
} else {
contractsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder clearContracts() {
if (contractsBuilder_ == null) {
contracts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
contractsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public Builder removeContracts(int index) {
if (contractsBuilder_ == null) {
ensureContractsIsMutable();
contracts_.remove(index);
onChanged();
} else {
contractsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Contract.Builder getContractsBuilder(
int index) {
return getContractsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder getContractsOrBuilder(
int index) {
if (contractsBuilder_ == null) {
return contracts_.get(index); } else {
return contractsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder>
getContractsOrBuilderList() {
if (contractsBuilder_ != null) {
return contractsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contracts_);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Contract.Builder addContractsBuilder() {
return getContractsFieldBuilder().addBuilder(
cosmwasm.wasm.v1beta1.Genesis.Contract.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Contract.Builder addContractsBuilder(
int index) {
return getContractsFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1beta1.Genesis.Contract.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Contract contracts = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "contracts,omitempty"];
*/
public java.util.List
getContractsBuilderList() {
return getContractsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Contract, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder, cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder>
getContractsFieldBuilder() {
if (contractsBuilder_ == null) {
contractsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Contract, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder, cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder>(
contracts_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
contracts_ = null;
}
return contractsBuilder_;
}
private java.util.List sequences_ =
java.util.Collections.emptyList();
private void ensureSequencesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
sequences_ = new java.util.ArrayList(sequences_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Sequence, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder, cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder> sequencesBuilder_;
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public java.util.List getSequencesList() {
if (sequencesBuilder_ == null) {
return java.util.Collections.unmodifiableList(sequences_);
} else {
return sequencesBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public int getSequencesCount() {
if (sequencesBuilder_ == null) {
return sequences_.size();
} else {
return sequencesBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Sequence getSequences(int index) {
if (sequencesBuilder_ == null) {
return sequences_.get(index);
} else {
return sequencesBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder setSequences(
int index, cosmwasm.wasm.v1beta1.Genesis.Sequence value) {
if (sequencesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSequencesIsMutable();
sequences_.set(index, value);
onChanged();
} else {
sequencesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder setSequences(
int index, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder builderForValue) {
if (sequencesBuilder_ == null) {
ensureSequencesIsMutable();
sequences_.set(index, builderForValue.build());
onChanged();
} else {
sequencesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder addSequences(cosmwasm.wasm.v1beta1.Genesis.Sequence value) {
if (sequencesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSequencesIsMutable();
sequences_.add(value);
onChanged();
} else {
sequencesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder addSequences(
int index, cosmwasm.wasm.v1beta1.Genesis.Sequence value) {
if (sequencesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSequencesIsMutable();
sequences_.add(index, value);
onChanged();
} else {
sequencesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder addSequences(
cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder builderForValue) {
if (sequencesBuilder_ == null) {
ensureSequencesIsMutable();
sequences_.add(builderForValue.build());
onChanged();
} else {
sequencesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder addSequences(
int index, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder builderForValue) {
if (sequencesBuilder_ == null) {
ensureSequencesIsMutable();
sequences_.add(index, builderForValue.build());
onChanged();
} else {
sequencesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder addAllSequences(
java.lang.Iterable extends cosmwasm.wasm.v1beta1.Genesis.Sequence> values) {
if (sequencesBuilder_ == null) {
ensureSequencesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sequences_);
onChanged();
} else {
sequencesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder clearSequences() {
if (sequencesBuilder_ == null) {
sequences_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
sequencesBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public Builder removeSequences(int index) {
if (sequencesBuilder_ == null) {
ensureSequencesIsMutable();
sequences_.remove(index);
onChanged();
} else {
sequencesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder getSequencesBuilder(
int index) {
return getSequencesFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder getSequencesOrBuilder(
int index) {
if (sequencesBuilder_ == null) {
return sequences_.get(index); } else {
return sequencesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder>
getSequencesOrBuilderList() {
if (sequencesBuilder_ != null) {
return sequencesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sequences_);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder addSequencesBuilder() {
return getSequencesFieldBuilder().addBuilder(
cosmwasm.wasm.v1beta1.Genesis.Sequence.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder addSequencesBuilder(
int index) {
return getSequencesFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1beta1.Genesis.Sequence.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Sequence sequences = 4 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "sequences,omitempty"];
*/
public java.util.List
getSequencesBuilderList() {
return getSequencesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Sequence, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder, cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder>
getSequencesFieldBuilder() {
if (sequencesBuilder_ == null) {
sequencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.Sequence, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder, cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder>(
sequences_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
sequences_ = null;
}
return sequencesBuilder_;
}
private java.util.List genMsgs_ =
java.util.Collections.emptyList();
private void ensureGenMsgsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
genMsgs_ = new java.util.ArrayList(genMsgs_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder> genMsgsBuilder_;
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public java.util.List getGenMsgsList() {
if (genMsgsBuilder_ == null) {
return java.util.Collections.unmodifiableList(genMsgs_);
} else {
return genMsgsBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public int getGenMsgsCount() {
if (genMsgsBuilder_ == null) {
return genMsgs_.size();
} else {
return genMsgsBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs getGenMsgs(int index) {
if (genMsgsBuilder_ == null) {
return genMsgs_.get(index);
} else {
return genMsgsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder setGenMsgs(
int index, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs value) {
if (genMsgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenMsgsIsMutable();
genMsgs_.set(index, value);
onChanged();
} else {
genMsgsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder setGenMsgs(
int index, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder builderForValue) {
if (genMsgsBuilder_ == null) {
ensureGenMsgsIsMutable();
genMsgs_.set(index, builderForValue.build());
onChanged();
} else {
genMsgsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder addGenMsgs(cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs value) {
if (genMsgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenMsgsIsMutable();
genMsgs_.add(value);
onChanged();
} else {
genMsgsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder addGenMsgs(
int index, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs value) {
if (genMsgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenMsgsIsMutable();
genMsgs_.add(index, value);
onChanged();
} else {
genMsgsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder addGenMsgs(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder builderForValue) {
if (genMsgsBuilder_ == null) {
ensureGenMsgsIsMutable();
genMsgs_.add(builderForValue.build());
onChanged();
} else {
genMsgsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder addGenMsgs(
int index, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder builderForValue) {
if (genMsgsBuilder_ == null) {
ensureGenMsgsIsMutable();
genMsgs_.add(index, builderForValue.build());
onChanged();
} else {
genMsgsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder addAllGenMsgs(
java.lang.Iterable extends cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs> values) {
if (genMsgsBuilder_ == null) {
ensureGenMsgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, genMsgs_);
onChanged();
} else {
genMsgsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder clearGenMsgs() {
if (genMsgsBuilder_ == null) {
genMsgs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
genMsgsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public Builder removeGenMsgs(int index) {
if (genMsgsBuilder_ == null) {
ensureGenMsgsIsMutable();
genMsgs_.remove(index);
onChanged();
} else {
genMsgsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder getGenMsgsBuilder(
int index) {
return getGenMsgsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder getGenMsgsOrBuilder(
int index) {
if (genMsgsBuilder_ == null) {
return genMsgs_.get(index); } else {
return genMsgsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder>
getGenMsgsOrBuilderList() {
if (genMsgsBuilder_ != null) {
return genMsgsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(genMsgs_);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder addGenMsgsBuilder() {
return getGenMsgsFieldBuilder().addBuilder(
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder addGenMsgsBuilder(
int index) {
return getGenMsgsFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.GenesisState.GenMsgs gen_msgs = 5 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "gen_msgs,omitempty"];
*/
public java.util.List
getGenMsgsBuilderList() {
return getGenMsgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder>
getGenMsgsFieldBuilder() {
if (genMsgsBuilder_ == null) {
genMsgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgs.Builder, cosmwasm.wasm.v1beta1.Genesis.GenesisState.GenMsgsOrBuilder>(
genMsgs_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
genMsgs_ = null;
}
return genMsgsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.GenesisState)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.GenesisState)
private static final cosmwasm.wasm.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Genesis.GenesisState();
}
public static cosmwasm.wasm.v1beta1.Genesis.GenesisState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenesisState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenesisState(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 cosmwasm.wasm.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.Code)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID"];
*/
long getCodeId();
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
boolean hasCodeInfo();
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.CodeInfo getCodeInfo();
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder getCodeInfoOrBuilder();
/**
* bytes code_bytes = 3;
*/
com.google.protobuf.ByteString getCodeBytes();
/**
*
* Pinned to wasmvm cache
*
*
* bool pinned = 4;
*/
boolean getPinned();
}
/**
*
* Code struct encompasses CodeInfo and CodeBytes
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Code}
*/
public static final class Code extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.Code)
CodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Code.newBuilder() to construct.
private Code(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Code() {
codeId_ = 0L;
codeBytes_ = com.google.protobuf.ByteString.EMPTY;
pinned_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Code(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
codeId_ = input.readUInt64();
break;
}
case 18: {
cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder subBuilder = null;
if (codeInfo_ != null) {
subBuilder = codeInfo_.toBuilder();
}
codeInfo_ = input.readMessage(cosmwasm.wasm.v1beta1.Types.CodeInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(codeInfo_);
codeInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
codeBytes_ = input.readBytes();
break;
}
case 32: {
pinned_ = input.readBool();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Code_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Code_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Code.class, cosmwasm.wasm.v1beta1.Genesis.Code.Builder.class);
}
public static final int CODE_ID_FIELD_NUMBER = 1;
private long codeId_;
/**
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID"];
*/
public long getCodeId() {
return codeId_;
}
public static final int CODE_INFO_FIELD_NUMBER = 2;
private cosmwasm.wasm.v1beta1.Types.CodeInfo codeInfo_;
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasCodeInfo() {
return codeInfo_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.CodeInfo getCodeInfo() {
return codeInfo_ == null ? cosmwasm.wasm.v1beta1.Types.CodeInfo.getDefaultInstance() : codeInfo_;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder getCodeInfoOrBuilder() {
return getCodeInfo();
}
public static final int CODE_BYTES_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString codeBytes_;
/**
* bytes code_bytes = 3;
*/
public com.google.protobuf.ByteString getCodeBytes() {
return codeBytes_;
}
public static final int PINNED_FIELD_NUMBER = 4;
private boolean pinned_;
/**
*
* Pinned to wasmvm cache
*
*
* bool pinned = 4;
*/
public boolean getPinned() {
return pinned_;
}
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 (codeId_ != 0L) {
output.writeUInt64(1, codeId_);
}
if (codeInfo_ != null) {
output.writeMessage(2, getCodeInfo());
}
if (!codeBytes_.isEmpty()) {
output.writeBytes(3, codeBytes_);
}
if (pinned_ != false) {
output.writeBool(4, pinned_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (codeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, codeId_);
}
if (codeInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCodeInfo());
}
if (!codeBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, codeBytes_);
}
if (pinned_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, pinned_);
}
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 cosmwasm.wasm.v1beta1.Genesis.Code)) {
return super.equals(obj);
}
cosmwasm.wasm.v1beta1.Genesis.Code other = (cosmwasm.wasm.v1beta1.Genesis.Code) obj;
boolean result = true;
result = result && (getCodeId()
== other.getCodeId());
result = result && (hasCodeInfo() == other.hasCodeInfo());
if (hasCodeInfo()) {
result = result && getCodeInfo()
.equals(other.getCodeInfo());
}
result = result && getCodeBytes()
.equals(other.getCodeBytes());
result = result && (getPinned()
== other.getPinned());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCodeId());
if (hasCodeInfo()) {
hash = (37 * hash) + CODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCodeInfo().hashCode();
}
hash = (37 * hash) + CODE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getCodeBytes().hashCode();
hash = (37 * hash) + PINNED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPinned());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code 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 cosmwasm.wasm.v1beta1.Genesis.Code parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code 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 cosmwasm.wasm.v1beta1.Genesis.Code parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Code 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(cosmwasm.wasm.v1beta1.Genesis.Code 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;
}
/**
*
* Code struct encompasses CodeInfo and CodeBytes
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Code}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.Code)
cosmwasm.wasm.v1beta1.Genesis.CodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Code_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Code_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Code.class, cosmwasm.wasm.v1beta1.Genesis.Code.Builder.class);
}
// Construct using cosmwasm.wasm.v1beta1.Genesis.Code.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();
codeId_ = 0L;
if (codeInfoBuilder_ == null) {
codeInfo_ = null;
} else {
codeInfo_ = null;
codeInfoBuilder_ = null;
}
codeBytes_ = com.google.protobuf.ByteString.EMPTY;
pinned_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Code_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Code getDefaultInstanceForType() {
return cosmwasm.wasm.v1beta1.Genesis.Code.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Code build() {
cosmwasm.wasm.v1beta1.Genesis.Code result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Code buildPartial() {
cosmwasm.wasm.v1beta1.Genesis.Code result = new cosmwasm.wasm.v1beta1.Genesis.Code(this);
result.codeId_ = codeId_;
if (codeInfoBuilder_ == null) {
result.codeInfo_ = codeInfo_;
} else {
result.codeInfo_ = codeInfoBuilder_.build();
}
result.codeBytes_ = codeBytes_;
result.pinned_ = pinned_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1beta1.Genesis.Code) {
return mergeFrom((cosmwasm.wasm.v1beta1.Genesis.Code)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1beta1.Genesis.Code other) {
if (other == cosmwasm.wasm.v1beta1.Genesis.Code.getDefaultInstance()) return this;
if (other.getCodeId() != 0L) {
setCodeId(other.getCodeId());
}
if (other.hasCodeInfo()) {
mergeCodeInfo(other.getCodeInfo());
}
if (other.getCodeBytes() != com.google.protobuf.ByteString.EMPTY) {
setCodeBytes(other.getCodeBytes());
}
if (other.getPinned() != false) {
setPinned(other.getPinned());
}
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 {
cosmwasm.wasm.v1beta1.Genesis.Code parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1beta1.Genesis.Code) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long codeId_ ;
/**
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID"];
*/
public long getCodeId() {
return codeId_;
}
/**
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID"];
*/
public Builder setCodeId(long value) {
codeId_ = value;
onChanged();
return this;
}
/**
* uint64 code_id = 1 [(.gogoproto.customname) = "CodeID"];
*/
public Builder clearCodeId() {
codeId_ = 0L;
onChanged();
return this;
}
private cosmwasm.wasm.v1beta1.Types.CodeInfo codeInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.CodeInfo, cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder, cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder> codeInfoBuilder_;
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasCodeInfo() {
return codeInfoBuilder_ != null || codeInfo_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.CodeInfo getCodeInfo() {
if (codeInfoBuilder_ == null) {
return codeInfo_ == null ? cosmwasm.wasm.v1beta1.Types.CodeInfo.getDefaultInstance() : codeInfo_;
} else {
return codeInfoBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder setCodeInfo(cosmwasm.wasm.v1beta1.Types.CodeInfo value) {
if (codeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
codeInfo_ = value;
onChanged();
} else {
codeInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder setCodeInfo(
cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder builderForValue) {
if (codeInfoBuilder_ == null) {
codeInfo_ = builderForValue.build();
onChanged();
} else {
codeInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeCodeInfo(cosmwasm.wasm.v1beta1.Types.CodeInfo value) {
if (codeInfoBuilder_ == null) {
if (codeInfo_ != null) {
codeInfo_ =
cosmwasm.wasm.v1beta1.Types.CodeInfo.newBuilder(codeInfo_).mergeFrom(value).buildPartial();
} else {
codeInfo_ = value;
}
onChanged();
} else {
codeInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearCodeInfo() {
if (codeInfoBuilder_ == null) {
codeInfo_ = null;
onChanged();
} else {
codeInfo_ = null;
codeInfoBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder getCodeInfoBuilder() {
onChanged();
return getCodeInfoFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder getCodeInfoOrBuilder() {
if (codeInfoBuilder_ != null) {
return codeInfoBuilder_.getMessageOrBuilder();
} else {
return codeInfo_ == null ?
cosmwasm.wasm.v1beta1.Types.CodeInfo.getDefaultInstance() : codeInfo_;
}
}
/**
* .cosmwasm.wasm.v1beta1.CodeInfo code_info = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.CodeInfo, cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder, cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder>
getCodeInfoFieldBuilder() {
if (codeInfoBuilder_ == null) {
codeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.CodeInfo, cosmwasm.wasm.v1beta1.Types.CodeInfo.Builder, cosmwasm.wasm.v1beta1.Types.CodeInfoOrBuilder>(
getCodeInfo(),
getParentForChildren(),
isClean());
codeInfo_ = null;
}
return codeInfoBuilder_;
}
private com.google.protobuf.ByteString codeBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes code_bytes = 3;
*/
public com.google.protobuf.ByteString getCodeBytes() {
return codeBytes_;
}
/**
* bytes code_bytes = 3;
*/
public Builder setCodeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
codeBytes_ = value;
onChanged();
return this;
}
/**
* bytes code_bytes = 3;
*/
public Builder clearCodeBytes() {
codeBytes_ = getDefaultInstance().getCodeBytes();
onChanged();
return this;
}
private boolean pinned_ ;
/**
*
* Pinned to wasmvm cache
*
*
* bool pinned = 4;
*/
public boolean getPinned() {
return pinned_;
}
/**
*
* Pinned to wasmvm cache
*
*
* bool pinned = 4;
*/
public Builder setPinned(boolean value) {
pinned_ = value;
onChanged();
return this;
}
/**
*
* Pinned to wasmvm cache
*
*
* bool pinned = 4;
*/
public Builder clearPinned() {
pinned_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.Code)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.Code)
private static final cosmwasm.wasm.v1beta1.Genesis.Code DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Genesis.Code();
}
public static cosmwasm.wasm.v1beta1.Genesis.Code getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Code parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Code(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 cosmwasm.wasm.v1beta1.Genesis.Code getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContractOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.Contract)
com.google.protobuf.MessageOrBuilder {
/**
* string contract_address = 1;
*/
java.lang.String getContractAddress();
/**
* string contract_address = 1;
*/
com.google.protobuf.ByteString
getContractAddressBytes();
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
boolean hasContractInfo();
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.ContractInfo getContractInfo();
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder getContractInfoOrBuilder();
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
java.util.List
getContractStateList();
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.Model getContractState(int index);
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
int getContractStateCount();
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmwasm.wasm.v1beta1.Types.ModelOrBuilder>
getContractStateOrBuilderList();
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
cosmwasm.wasm.v1beta1.Types.ModelOrBuilder getContractStateOrBuilder(
int index);
}
/**
*
* Contract struct encompasses ContractAddress, ContractInfo, and ContractState
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Contract}
*/
public static final class Contract extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.Contract)
ContractOrBuilder {
private static final long serialVersionUID = 0L;
// Use Contract.newBuilder() to construct.
private Contract(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Contract() {
contractAddress_ = "";
contractState_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Contract(
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();
contractAddress_ = s;
break;
}
case 18: {
cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder subBuilder = null;
if (contractInfo_ != null) {
subBuilder = contractInfo_.toBuilder();
}
contractInfo_ = input.readMessage(cosmwasm.wasm.v1beta1.Types.ContractInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractInfo_);
contractInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contractState_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
contractState_.add(
input.readMessage(cosmwasm.wasm.v1beta1.Types.Model.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
contractState_ = java.util.Collections.unmodifiableList(contractState_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Contract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Contract.class, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder.class);
}
private int bitField0_;
public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object contractAddress_;
/**
* string contract_address = 1;
*/
public java.lang.String getContractAddress() {
java.lang.Object ref = contractAddress_;
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();
contractAddress_ = s;
return s;
}
}
/**
* string contract_address = 1;
*/
public com.google.protobuf.ByteString
getContractAddressBytes() {
java.lang.Object ref = contractAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTRACT_INFO_FIELD_NUMBER = 2;
private cosmwasm.wasm.v1beta1.Types.ContractInfo contractInfo_;
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasContractInfo() {
return contractInfo_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ContractInfo getContractInfo() {
return contractInfo_ == null ? cosmwasm.wasm.v1beta1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder getContractInfoOrBuilder() {
return getContractInfo();
}
public static final int CONTRACT_STATE_FIELD_NUMBER = 3;
private java.util.List contractState_;
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getContractStateList() {
return contractState_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Types.ModelOrBuilder>
getContractStateOrBuilderList() {
return contractState_;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public int getContractStateCount() {
return contractState_.size();
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Model getContractState(int index) {
return contractState_.get(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ModelOrBuilder getContractStateOrBuilder(
int index) {
return contractState_.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 (!getContractAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractAddress_);
}
if (contractInfo_ != null) {
output.writeMessage(2, getContractInfo());
}
for (int i = 0; i < contractState_.size(); i++) {
output.writeMessage(3, contractState_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getContractAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractAddress_);
}
if (contractInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContractInfo());
}
for (int i = 0; i < contractState_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, contractState_.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 cosmwasm.wasm.v1beta1.Genesis.Contract)) {
return super.equals(obj);
}
cosmwasm.wasm.v1beta1.Genesis.Contract other = (cosmwasm.wasm.v1beta1.Genesis.Contract) obj;
boolean result = true;
result = result && getContractAddress()
.equals(other.getContractAddress());
result = result && (hasContractInfo() == other.hasContractInfo());
if (hasContractInfo()) {
result = result && getContractInfo()
.equals(other.getContractInfo());
}
result = result && getContractStateList()
.equals(other.getContractStateList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getContractAddress().hashCode();
if (hasContractInfo()) {
hash = (37 * hash) + CONTRACT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getContractInfo().hashCode();
}
if (getContractStateCount() > 0) {
hash = (37 * hash) + CONTRACT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getContractStateList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract 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 cosmwasm.wasm.v1beta1.Genesis.Contract parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract 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 cosmwasm.wasm.v1beta1.Genesis.Contract parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract 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(cosmwasm.wasm.v1beta1.Genesis.Contract 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;
}
/**
*
* Contract struct encompasses ContractAddress, ContractInfo, and ContractState
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Contract}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.Contract)
cosmwasm.wasm.v1beta1.Genesis.ContractOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Contract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Contract.class, cosmwasm.wasm.v1beta1.Genesis.Contract.Builder.class);
}
// Construct using cosmwasm.wasm.v1beta1.Genesis.Contract.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContractStateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contractAddress_ = "";
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
if (contractStateBuilder_ == null) {
contractState_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contractStateBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Contract getDefaultInstanceForType() {
return cosmwasm.wasm.v1beta1.Genesis.Contract.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Contract build() {
cosmwasm.wasm.v1beta1.Genesis.Contract result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Contract buildPartial() {
cosmwasm.wasm.v1beta1.Genesis.Contract result = new cosmwasm.wasm.v1beta1.Genesis.Contract(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.contractAddress_ = contractAddress_;
if (contractInfoBuilder_ == null) {
result.contractInfo_ = contractInfo_;
} else {
result.contractInfo_ = contractInfoBuilder_.build();
}
if (contractStateBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
contractState_ = java.util.Collections.unmodifiableList(contractState_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contractState_ = contractState_;
} else {
result.contractState_ = contractStateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1beta1.Genesis.Contract) {
return mergeFrom((cosmwasm.wasm.v1beta1.Genesis.Contract)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1beta1.Genesis.Contract other) {
if (other == cosmwasm.wasm.v1beta1.Genesis.Contract.getDefaultInstance()) return this;
if (!other.getContractAddress().isEmpty()) {
contractAddress_ = other.contractAddress_;
onChanged();
}
if (other.hasContractInfo()) {
mergeContractInfo(other.getContractInfo());
}
if (contractStateBuilder_ == null) {
if (!other.contractState_.isEmpty()) {
if (contractState_.isEmpty()) {
contractState_ = other.contractState_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureContractStateIsMutable();
contractState_.addAll(other.contractState_);
}
onChanged();
}
} else {
if (!other.contractState_.isEmpty()) {
if (contractStateBuilder_.isEmpty()) {
contractStateBuilder_.dispose();
contractStateBuilder_ = null;
contractState_ = other.contractState_;
bitField0_ = (bitField0_ & ~0x00000004);
contractStateBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContractStateFieldBuilder() : null;
} else {
contractStateBuilder_.addAllMessages(other.contractState_);
}
}
}
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 {
cosmwasm.wasm.v1beta1.Genesis.Contract parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1beta1.Genesis.Contract) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object contractAddress_ = "";
/**
* string contract_address = 1;
*/
public java.lang.String getContractAddress() {
java.lang.Object ref = contractAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string contract_address = 1;
*/
public com.google.protobuf.ByteString
getContractAddressBytes() {
java.lang.Object ref = contractAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string contract_address = 1;
*/
public Builder setContractAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contractAddress_ = value;
onChanged();
return this;
}
/**
* string contract_address = 1;
*/
public Builder clearContractAddress() {
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
/**
* string contract_address = 1;
*/
public Builder setContractAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contractAddress_ = value;
onChanged();
return this;
}
private cosmwasm.wasm.v1beta1.Types.ContractInfo contractInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.ContractInfo, cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder, cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder> contractInfoBuilder_;
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasContractInfo() {
return contractInfoBuilder_ != null || contractInfo_ != null;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ContractInfo getContractInfo() {
if (contractInfoBuilder_ == null) {
return contractInfo_ == null ? cosmwasm.wasm.v1beta1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
} else {
return contractInfoBuilder_.getMessage();
}
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder setContractInfo(cosmwasm.wasm.v1beta1.Types.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractInfo_ = value;
onChanged();
} else {
contractInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder setContractInfo(
cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder builderForValue) {
if (contractInfoBuilder_ == null) {
contractInfo_ = builderForValue.build();
onChanged();
} else {
contractInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeContractInfo(cosmwasm.wasm.v1beta1.Types.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (contractInfo_ != null) {
contractInfo_ =
cosmwasm.wasm.v1beta1.Types.ContractInfo.newBuilder(contractInfo_).mergeFrom(value).buildPartial();
} else {
contractInfo_ = value;
}
onChanged();
} else {
contractInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearContractInfo() {
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
onChanged();
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
return this;
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder getContractInfoBuilder() {
onChanged();
return getContractInfoFieldBuilder().getBuilder();
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder getContractInfoOrBuilder() {
if (contractInfoBuilder_ != null) {
return contractInfoBuilder_.getMessageOrBuilder();
} else {
return contractInfo_ == null ?
cosmwasm.wasm.v1beta1.Types.ContractInfo.getDefaultInstance() : contractInfo_;
}
}
/**
* .cosmwasm.wasm.v1beta1.ContractInfo contract_info = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.ContractInfo, cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder, cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder>
getContractInfoFieldBuilder() {
if (contractInfoBuilder_ == null) {
contractInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.ContractInfo, cosmwasm.wasm.v1beta1.Types.ContractInfo.Builder, cosmwasm.wasm.v1beta1.Types.ContractInfoOrBuilder>(
getContractInfo(),
getParentForChildren(),
isClean());
contractInfo_ = null;
}
return contractInfoBuilder_;
}
private java.util.List contractState_ =
java.util.Collections.emptyList();
private void ensureContractStateIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
contractState_ = new java.util.ArrayList(contractState_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Model, cosmwasm.wasm.v1beta1.Types.Model.Builder, cosmwasm.wasm.v1beta1.Types.ModelOrBuilder> contractStateBuilder_;
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getContractStateList() {
if (contractStateBuilder_ == null) {
return java.util.Collections.unmodifiableList(contractState_);
} else {
return contractStateBuilder_.getMessageList();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public int getContractStateCount() {
if (contractStateBuilder_ == null) {
return contractState_.size();
} else {
return contractStateBuilder_.getCount();
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Model getContractState(int index) {
if (contractStateBuilder_ == null) {
return contractState_.get(index);
} else {
return contractStateBuilder_.getMessage(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder setContractState(
int index, cosmwasm.wasm.v1beta1.Types.Model value) {
if (contractStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractStateIsMutable();
contractState_.set(index, value);
onChanged();
} else {
contractStateBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder setContractState(
int index, cosmwasm.wasm.v1beta1.Types.Model.Builder builderForValue) {
if (contractStateBuilder_ == null) {
ensureContractStateIsMutable();
contractState_.set(index, builderForValue.build());
onChanged();
} else {
contractStateBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder addContractState(cosmwasm.wasm.v1beta1.Types.Model value) {
if (contractStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractStateIsMutable();
contractState_.add(value);
onChanged();
} else {
contractStateBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder addContractState(
int index, cosmwasm.wasm.v1beta1.Types.Model value) {
if (contractStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractStateIsMutable();
contractState_.add(index, value);
onChanged();
} else {
contractStateBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder addContractState(
cosmwasm.wasm.v1beta1.Types.Model.Builder builderForValue) {
if (contractStateBuilder_ == null) {
ensureContractStateIsMutable();
contractState_.add(builderForValue.build());
onChanged();
} else {
contractStateBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder addContractState(
int index, cosmwasm.wasm.v1beta1.Types.Model.Builder builderForValue) {
if (contractStateBuilder_ == null) {
ensureContractStateIsMutable();
contractState_.add(index, builderForValue.build());
onChanged();
} else {
contractStateBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder addAllContractState(
java.lang.Iterable extends cosmwasm.wasm.v1beta1.Types.Model> values) {
if (contractStateBuilder_ == null) {
ensureContractStateIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contractState_);
onChanged();
} else {
contractStateBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearContractState() {
if (contractStateBuilder_ == null) {
contractState_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
contractStateBuilder_.clear();
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public Builder removeContractState(int index) {
if (contractStateBuilder_ == null) {
ensureContractStateIsMutable();
contractState_.remove(index);
onChanged();
} else {
contractStateBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Model.Builder getContractStateBuilder(
int index) {
return getContractStateFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.ModelOrBuilder getContractStateOrBuilder(
int index) {
if (contractStateBuilder_ == null) {
return contractState_.get(index); } else {
return contractStateBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmwasm.wasm.v1beta1.Types.ModelOrBuilder>
getContractStateOrBuilderList() {
if (contractStateBuilder_ != null) {
return contractStateBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contractState_);
}
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Model.Builder addContractStateBuilder() {
return getContractStateFieldBuilder().addBuilder(
cosmwasm.wasm.v1beta1.Types.Model.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public cosmwasm.wasm.v1beta1.Types.Model.Builder addContractStateBuilder(
int index) {
return getContractStateFieldBuilder().addBuilder(
index, cosmwasm.wasm.v1beta1.Types.Model.getDefaultInstance());
}
/**
* repeated .cosmwasm.wasm.v1beta1.Model contract_state = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List
getContractStateBuilderList() {
return getContractStateFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Model, cosmwasm.wasm.v1beta1.Types.Model.Builder, cosmwasm.wasm.v1beta1.Types.ModelOrBuilder>
getContractStateFieldBuilder() {
if (contractStateBuilder_ == null) {
contractStateBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmwasm.wasm.v1beta1.Types.Model, cosmwasm.wasm.v1beta1.Types.Model.Builder, cosmwasm.wasm.v1beta1.Types.ModelOrBuilder>(
contractState_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
contractState_ = null;
}
return contractStateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.Contract)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.Contract)
private static final cosmwasm.wasm.v1beta1.Genesis.Contract DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Genesis.Contract();
}
public static cosmwasm.wasm.v1beta1.Genesis.Contract getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Contract parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Contract(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 cosmwasm.wasm.v1beta1.Genesis.Contract getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SequenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.Sequence)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id_key = 1 [(.gogoproto.customname) = "IDKey"];
*/
com.google.protobuf.ByteString getIdKey();
/**
* uint64 value = 2;
*/
long getValue();
}
/**
*
* Sequence key and value of an id generation counter
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Sequence}
*/
public static final class Sequence extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.Sequence)
SequenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Sequence.newBuilder() to construct.
private Sequence(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Sequence() {
idKey_ = com.google.protobuf.ByteString.EMPTY;
value_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Sequence(
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: {
idKey_ = input.readBytes();
break;
}
case 16: {
value_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Sequence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Sequence.class, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder.class);
}
public static final int ID_KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString idKey_;
/**
* bytes id_key = 1 [(.gogoproto.customname) = "IDKey"];
*/
public com.google.protobuf.ByteString getIdKey() {
return idKey_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private long value_;
/**
* uint64 value = 2;
*/
public long getValue() {
return value_;
}
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 (!idKey_.isEmpty()) {
output.writeBytes(1, idKey_);
}
if (value_ != 0L) {
output.writeUInt64(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!idKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, idKey_);
}
if (value_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, value_);
}
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 cosmwasm.wasm.v1beta1.Genesis.Sequence)) {
return super.equals(obj);
}
cosmwasm.wasm.v1beta1.Genesis.Sequence other = (cosmwasm.wasm.v1beta1.Genesis.Sequence) obj;
boolean result = true;
result = result && getIdKey()
.equals(other.getIdKey());
result = result && (getValue()
== other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_KEY_FIELD_NUMBER;
hash = (53 * hash) + getIdKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getValue());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence 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 cosmwasm.wasm.v1beta1.Genesis.Sequence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence 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 cosmwasm.wasm.v1beta1.Genesis.Sequence parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence 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(cosmwasm.wasm.v1beta1.Genesis.Sequence 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;
}
/**
*
* Sequence key and value of an id generation counter
*
*
* Protobuf type {@code cosmwasm.wasm.v1beta1.Sequence}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.Sequence)
cosmwasm.wasm.v1beta1.Genesis.SequenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Sequence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmwasm.wasm.v1beta1.Genesis.Sequence.class, cosmwasm.wasm.v1beta1.Genesis.Sequence.Builder.class);
}
// Construct using cosmwasm.wasm.v1beta1.Genesis.Sequence.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();
idKey_ = com.google.protobuf.ByteString.EMPTY;
value_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmwasm.wasm.v1beta1.Genesis.internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Sequence getDefaultInstanceForType() {
return cosmwasm.wasm.v1beta1.Genesis.Sequence.getDefaultInstance();
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Sequence build() {
cosmwasm.wasm.v1beta1.Genesis.Sequence result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmwasm.wasm.v1beta1.Genesis.Sequence buildPartial() {
cosmwasm.wasm.v1beta1.Genesis.Sequence result = new cosmwasm.wasm.v1beta1.Genesis.Sequence(this);
result.idKey_ = idKey_;
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmwasm.wasm.v1beta1.Genesis.Sequence) {
return mergeFrom((cosmwasm.wasm.v1beta1.Genesis.Sequence)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmwasm.wasm.v1beta1.Genesis.Sequence other) {
if (other == cosmwasm.wasm.v1beta1.Genesis.Sequence.getDefaultInstance()) return this;
if (other.getIdKey() != com.google.protobuf.ByteString.EMPTY) {
setIdKey(other.getIdKey());
}
if (other.getValue() != 0L) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmwasm.wasm.v1beta1.Genesis.Sequence parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmwasm.wasm.v1beta1.Genesis.Sequence) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString idKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id_key = 1 [(.gogoproto.customname) = "IDKey"];
*/
public com.google.protobuf.ByteString getIdKey() {
return idKey_;
}
/**
* bytes id_key = 1 [(.gogoproto.customname) = "IDKey"];
*/
public Builder setIdKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
idKey_ = value;
onChanged();
return this;
}
/**
* bytes id_key = 1 [(.gogoproto.customname) = "IDKey"];
*/
public Builder clearIdKey() {
idKey_ = getDefaultInstance().getIdKey();
onChanged();
return this;
}
private long value_ ;
/**
* uint64 value = 2;
*/
public long getValue() {
return value_;
}
/**
* uint64 value = 2;
*/
public Builder setValue(long value) {
value_ = value;
onChanged();
return this;
}
/**
* uint64 value = 2;
*/
public Builder clearValue() {
value_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.Sequence)
}
// @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.Sequence)
private static final cosmwasm.wasm.v1beta1.Genesis.Sequence DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Genesis.Sequence();
}
public static cosmwasm.wasm.v1beta1.Genesis.Sequence getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Sequence parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Sequence(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 cosmwasm.wasm.v1beta1.Genesis.Sequence getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1beta1_GenesisState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1beta1_Code_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1beta1_Code_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1beta1_Contract_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmwasm_wasm_v1beta1_Sequence_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n#x/wasm/internal/types/genesis.proto\022\025c" +
"osmwasm.wasm.v1beta1\032\024gogoproto/gogo.pro" +
"to\032!x/wasm/internal/types/types.proto\032\036x" +
"/wasm/internal/types/tx.proto\"\351\004\n\014Genesi" +
"sState\0223\n\006params\030\001 \001(\0132\035.cosmwasm.wasm.v" +
"1beta1.ParamsB\004\310\336\037\000\022C\n\005codes\030\002 \003(\0132\033.cos" +
"mwasm.wasm.v1beta1.CodeB\027\310\336\037\000\352\336\037\017codes,o" +
"mitempty\022O\n\tcontracts\030\003 \003(\0132\037.cosmwasm.w" +
"asm.v1beta1.ContractB\033\310\336\037\000\352\336\037\023contracts," +
"omitempty\022O\n\tsequences\030\004 \003(\0132\037.cosmwasm." +
"wasm.v1beta1.SequenceB\033\310\336\037\000\352\336\037\023sequences" +
",omitempty\022Y\n\010gen_msgs\030\005 \003(\0132+.cosmwasm." +
"wasm.v1beta1.GenesisState.GenMsgsB\032\310\336\037\000\352" +
"\336\037\022gen_msgs,omitempty\032\341\001\n\007GenMsgs\0229\n\nsto" +
"re_code\030\001 \001(\0132#.cosmwasm.wasm.v1beta1.Ms" +
"gStoreCodeH\000\022M\n\024instantiate_contract\030\002 \001" +
"(\0132-.cosmwasm.wasm.v1beta1.MsgInstantiat" +
"eContractH\000\022E\n\020execute_contract\030\003 \001(\0132)." +
"cosmwasm.wasm.v1beta1.MsgExecuteContract" +
"H\000B\005\n\003sum\"\201\001\n\004Code\022\033\n\007code_id\030\001 \001(\004B\n\342\336\037" +
"\006CodeID\0228\n\tcode_info\030\002 \001(\0132\037.cosmwasm.wa" +
"sm.v1beta1.CodeInfoB\004\310\336\037\000\022\022\n\ncode_bytes\030" +
"\003 \001(\014\022\016\n\006pinned\030\004 \001(\010\"\242\001\n\010Contract\022\030\n\020co" +
"ntract_address\030\001 \001(\t\022@\n\rcontract_info\030\002 " +
"\001(\0132#.cosmwasm.wasm.v1beta1.ContractInfo" +
"B\004\310\336\037\000\022:\n\016contract_state\030\003 \003(\0132\034.cosmwas" +
"m.wasm.v1beta1.ModelB\004\310\336\037\000\"4\n\010Sequence\022\031" +
"\n\006id_key\030\001 \001(\014B\t\342\336\037\005IDKey\022\r\n\005value\030\002 \001(\004" +
"B2Z0github.com/CosmWasm/wasmd/x/wasmd/in" +
"ternal/typesb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmwasm.wasm.v1beta1.Types.getDescriptor(),
cosmwasm.wasm.v1beta1.Tx.getDescriptor(),
}, assigner);
internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmwasm_wasm_v1beta1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor,
new java.lang.String[] { "Params", "Codes", "Contracts", "Sequences", "GenMsgs", });
internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor =
internal_static_cosmwasm_wasm_v1beta1_GenesisState_descriptor.getNestedTypes().get(0);
internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1beta1_GenesisState_GenMsgs_descriptor,
new java.lang.String[] { "StoreCode", "InstantiateContract", "ExecuteContract", "Sum", });
internal_static_cosmwasm_wasm_v1beta1_Code_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmwasm_wasm_v1beta1_Code_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1beta1_Code_descriptor,
new java.lang.String[] { "CodeId", "CodeInfo", "CodeBytes", "Pinned", });
internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmwasm_wasm_v1beta1_Contract_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1beta1_Contract_descriptor,
new java.lang.String[] { "ContractAddress", "ContractInfo", "ContractState", });
internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmwasm_wasm_v1beta1_Sequence_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmwasm_wasm_v1beta1_Sequence_descriptor,
new java.lang.String[] { "IdKey", "Value", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.customname);
registry.add(com.google.protobuf.GoGoProtos.jsontag);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
cosmwasm.wasm.v1beta1.Types.getDescriptor();
cosmwasm.wasm.v1beta1.Tx.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}