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.
ibc.applications.transfer.v1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/applications/transfer/v1/genesis.proto
package ibc.applications.transfer.v1;
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:ibc.applications.transfer.v1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
java.lang.String getPortId();
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
com.google.protobuf.ByteString
getPortIdBytes();
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
java.util.List
getDenomTracesList();
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
ibc.applications.transfer.v1.Transfer.DenomTrace getDenomTraces(int index);
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
int getDenomTracesCount();
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
java.util.List extends ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder>
getDenomTracesOrBuilderList();
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder getDenomTracesOrBuilder(
int index);
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
boolean hasParams();
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
ibc.applications.transfer.v1.Transfer.Params getParams();
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
ibc.applications.transfer.v1.Transfer.ParamsOrBuilder getParamsOrBuilder();
}
/**
*
* GenesisState defines the ibc-transfer genesis state
*
*
* Protobuf type {@code ibc.applications.transfer.v1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.applications.transfer.v1.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() {
portId_ = "";
denomTraces_ = 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: {
java.lang.String s = input.readStringRequireUtf8();
portId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
denomTraces_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
denomTraces_.add(
input.readMessage(ibc.applications.transfer.v1.Transfer.DenomTrace.parser(), extensionRegistry));
break;
}
case 26: {
ibc.applications.transfer.v1.Transfer.Params.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(ibc.applications.transfer.v1.Transfer.Params.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.transfer.v1.Genesis.GenesisState.class, ibc.applications.transfer.v1.Genesis.GenesisState.Builder.class);
}
private int bitField0_;
public static final int PORT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object portId_;
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
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();
portId_ = s;
return s;
}
}
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DENOM_TRACES_FIELD_NUMBER = 2;
private java.util.List denomTraces_;
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public java.util.List getDenomTracesList() {
return denomTraces_;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public java.util.List extends ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder>
getDenomTracesOrBuilderList() {
return denomTraces_;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public int getDenomTracesCount() {
return denomTraces_.size();
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTrace getDenomTraces(int index) {
return denomTraces_.get(index);
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder getDenomTracesOrBuilder(
int index) {
return denomTraces_.get(index);
}
public static final int PARAMS_FIELD_NUMBER = 3;
private ibc.applications.transfer.v1.Transfer.Params params_;
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return params_ != null;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public ibc.applications.transfer.v1.Transfer.Params getParams() {
return params_ == null ? ibc.applications.transfer.v1.Transfer.Params.getDefaultInstance() : params_;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public ibc.applications.transfer.v1.Transfer.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
}
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 (!getPortIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_);
}
for (int i = 0; i < denomTraces_.size(); i++) {
output.writeMessage(2, denomTraces_.get(i));
}
if (params_ != null) {
output.writeMessage(3, getParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPortIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_);
}
for (int i = 0; i < denomTraces_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, denomTraces_.get(i));
}
if (params_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getParams());
}
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 ibc.applications.transfer.v1.Genesis.GenesisState)) {
return super.equals(obj);
}
ibc.applications.transfer.v1.Genesis.GenesisState other = (ibc.applications.transfer.v1.Genesis.GenesisState) obj;
boolean result = true;
result = result && getPortId()
.equals(other.getPortId());
result = result && getDenomTracesList()
.equals(other.getDenomTracesList());
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams()
.equals(other.getParams());
}
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) + PORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPortId().hashCode();
if (getDenomTracesCount() > 0) {
hash = (37 * hash) + DENOM_TRACES_FIELD_NUMBER;
hash = (53 * hash) + getDenomTracesList().hashCode();
}
if (hasParams()) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.transfer.v1.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 ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.transfer.v1.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 ibc.applications.transfer.v1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.applications.transfer.v1.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 ibc.applications.transfer.v1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.transfer.v1.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(ibc.applications.transfer.v1.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 defines the ibc-transfer genesis state
*
*
* Protobuf type {@code ibc.applications.transfer.v1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.applications.transfer.v1.GenesisState)
ibc.applications.transfer.v1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.transfer.v1.Genesis.GenesisState.class, ibc.applications.transfer.v1.Genesis.GenesisState.Builder.class);
}
// Construct using ibc.applications.transfer.v1.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) {
getDenomTracesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
portId_ = "";
if (denomTracesBuilder_ == null) {
denomTraces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
denomTracesBuilder_.clear();
}
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.applications.transfer.v1.Genesis.internal_static_ibc_applications_transfer_v1_GenesisState_descriptor;
}
@java.lang.Override
public ibc.applications.transfer.v1.Genesis.GenesisState getDefaultInstanceForType() {
return ibc.applications.transfer.v1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public ibc.applications.transfer.v1.Genesis.GenesisState build() {
ibc.applications.transfer.v1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.applications.transfer.v1.Genesis.GenesisState buildPartial() {
ibc.applications.transfer.v1.Genesis.GenesisState result = new ibc.applications.transfer.v1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.portId_ = portId_;
if (denomTracesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
denomTraces_ = java.util.Collections.unmodifiableList(denomTraces_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.denomTraces_ = denomTraces_;
} else {
result.denomTraces_ = denomTracesBuilder_.build();
}
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.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 ibc.applications.transfer.v1.Genesis.GenesisState) {
return mergeFrom((ibc.applications.transfer.v1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.applications.transfer.v1.Genesis.GenesisState other) {
if (other == ibc.applications.transfer.v1.Genesis.GenesisState.getDefaultInstance()) return this;
if (!other.getPortId().isEmpty()) {
portId_ = other.portId_;
onChanged();
}
if (denomTracesBuilder_ == null) {
if (!other.denomTraces_.isEmpty()) {
if (denomTraces_.isEmpty()) {
denomTraces_ = other.denomTraces_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDenomTracesIsMutable();
denomTraces_.addAll(other.denomTraces_);
}
onChanged();
}
} else {
if (!other.denomTraces_.isEmpty()) {
if (denomTracesBuilder_.isEmpty()) {
denomTracesBuilder_.dispose();
denomTracesBuilder_ = null;
denomTraces_ = other.denomTraces_;
bitField0_ = (bitField0_ & ~0x00000002);
denomTracesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDenomTracesFieldBuilder() : null;
} else {
denomTracesBuilder_.addAllMessages(other.denomTraces_);
}
}
}
if (other.hasParams()) {
mergeParams(other.getParams());
}
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 {
ibc.applications.transfer.v1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.applications.transfer.v1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object portId_ = "";
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public Builder setPortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
portId_ = value;
onChanged();
return this;
}
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public Builder clearPortId() {
portId_ = getDefaultInstance().getPortId();
onChanged();
return this;
}
/**
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
*/
public Builder setPortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
portId_ = value;
onChanged();
return this;
}
private java.util.List denomTraces_ =
java.util.Collections.emptyList();
private void ensureDenomTracesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
denomTraces_ = new java.util.ArrayList(denomTraces_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.DenomTrace, ibc.applications.transfer.v1.Transfer.DenomTrace.Builder, ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder> denomTracesBuilder_;
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public java.util.List getDenomTracesList() {
if (denomTracesBuilder_ == null) {
return java.util.Collections.unmodifiableList(denomTraces_);
} else {
return denomTracesBuilder_.getMessageList();
}
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public int getDenomTracesCount() {
if (denomTracesBuilder_ == null) {
return denomTraces_.size();
} else {
return denomTracesBuilder_.getCount();
}
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTrace getDenomTraces(int index) {
if (denomTracesBuilder_ == null) {
return denomTraces_.get(index);
} else {
return denomTracesBuilder_.getMessage(index);
}
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder setDenomTraces(
int index, ibc.applications.transfer.v1.Transfer.DenomTrace value) {
if (denomTracesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDenomTracesIsMutable();
denomTraces_.set(index, value);
onChanged();
} else {
denomTracesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder setDenomTraces(
int index, ibc.applications.transfer.v1.Transfer.DenomTrace.Builder builderForValue) {
if (denomTracesBuilder_ == null) {
ensureDenomTracesIsMutable();
denomTraces_.set(index, builderForValue.build());
onChanged();
} else {
denomTracesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder addDenomTraces(ibc.applications.transfer.v1.Transfer.DenomTrace value) {
if (denomTracesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDenomTracesIsMutable();
denomTraces_.add(value);
onChanged();
} else {
denomTracesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder addDenomTraces(
int index, ibc.applications.transfer.v1.Transfer.DenomTrace value) {
if (denomTracesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDenomTracesIsMutable();
denomTraces_.add(index, value);
onChanged();
} else {
denomTracesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder addDenomTraces(
ibc.applications.transfer.v1.Transfer.DenomTrace.Builder builderForValue) {
if (denomTracesBuilder_ == null) {
ensureDenomTracesIsMutable();
denomTraces_.add(builderForValue.build());
onChanged();
} else {
denomTracesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder addDenomTraces(
int index, ibc.applications.transfer.v1.Transfer.DenomTrace.Builder builderForValue) {
if (denomTracesBuilder_ == null) {
ensureDenomTracesIsMutable();
denomTraces_.add(index, builderForValue.build());
onChanged();
} else {
denomTracesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder addAllDenomTraces(
java.lang.Iterable extends ibc.applications.transfer.v1.Transfer.DenomTrace> values) {
if (denomTracesBuilder_ == null) {
ensureDenomTracesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, denomTraces_);
onChanged();
} else {
denomTracesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder clearDenomTraces() {
if (denomTracesBuilder_ == null) {
denomTraces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
denomTracesBuilder_.clear();
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public Builder removeDenomTraces(int index) {
if (denomTracesBuilder_ == null) {
ensureDenomTracesIsMutable();
denomTraces_.remove(index);
onChanged();
} else {
denomTracesBuilder_.remove(index);
}
return this;
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTrace.Builder getDenomTracesBuilder(
int index) {
return getDenomTracesFieldBuilder().getBuilder(index);
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder getDenomTracesOrBuilder(
int index) {
if (denomTracesBuilder_ == null) {
return denomTraces_.get(index); } else {
return denomTracesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public java.util.List extends ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder>
getDenomTracesOrBuilderList() {
if (denomTracesBuilder_ != null) {
return denomTracesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(denomTraces_);
}
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTrace.Builder addDenomTracesBuilder() {
return getDenomTracesFieldBuilder().addBuilder(
ibc.applications.transfer.v1.Transfer.DenomTrace.getDefaultInstance());
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public ibc.applications.transfer.v1.Transfer.DenomTrace.Builder addDenomTracesBuilder(
int index) {
return getDenomTracesFieldBuilder().addBuilder(
index, ibc.applications.transfer.v1.Transfer.DenomTrace.getDefaultInstance());
}
/**
* repeated .ibc.applications.transfer.v1.DenomTrace denom_traces = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_traces\"", (.gogoproto.castrepeated) = "Traces"];
*/
public java.util.List
getDenomTracesBuilderList() {
return getDenomTracesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.DenomTrace, ibc.applications.transfer.v1.Transfer.DenomTrace.Builder, ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder>
getDenomTracesFieldBuilder() {
if (denomTracesBuilder_ == null) {
denomTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.DenomTrace, ibc.applications.transfer.v1.Transfer.DenomTrace.Builder, ibc.applications.transfer.v1.Transfer.DenomTraceOrBuilder>(
denomTraces_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
denomTraces_ = null;
}
return denomTracesBuilder_;
}
private ibc.applications.transfer.v1.Transfer.Params params_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.Params, ibc.applications.transfer.v1.Transfer.Params.Builder, ibc.applications.transfer.v1.Transfer.ParamsOrBuilder> paramsBuilder_;
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public ibc.applications.transfer.v1.Transfer.Params getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? ibc.applications.transfer.v1.Transfer.Params.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public Builder setParams(ibc.applications.transfer.v1.Transfer.Params value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
params_ = value;
onChanged();
} else {
paramsBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public Builder setParams(
ibc.applications.transfer.v1.Transfer.Params.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeParams(ibc.applications.transfer.v1.Transfer.Params value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
ibc.applications.transfer.v1.Transfer.Params.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
onChanged();
} else {
paramsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public ibc.applications.transfer.v1.Transfer.Params.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
public ibc.applications.transfer.v1.Transfer.ParamsOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
ibc.applications.transfer.v1.Transfer.Params.getDefaultInstance() : params_;
}
}
/**
* .ibc.applications.transfer.v1.Params params = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.Params, ibc.applications.transfer.v1.Transfer.Params.Builder, ibc.applications.transfer.v1.Transfer.ParamsOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.applications.transfer.v1.Transfer.Params, ibc.applications.transfer.v1.Transfer.Params.Builder, ibc.applications.transfer.v1.Transfer.ParamsOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
@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:ibc.applications.transfer.v1.GenesisState)
}
// @@protoc_insertion_point(class_scope:ibc.applications.transfer.v1.GenesisState)
private static final ibc.applications.transfer.v1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.applications.transfer.v1.Genesis.GenesisState();
}
public static ibc.applications.transfer.v1.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 ibc.applications.transfer.v1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_applications_transfer_v1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_applications_transfer_v1_GenesisState_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*ibc/applications/transfer/v1/genesis.p" +
"roto\022\034ibc.applications.transfer.v1\032\024gogo" +
"proto/gogo.proto\032+ibc/applications/trans" +
"fer/v1/transfer.proto\"\326\001\n\014GenesisState\022#" +
"\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022e\n\014d" +
"enom_traces\030\002 \003(\0132(.ibc.applications.tra" +
"nsfer.v1.DenomTraceB%\252\337\037\006Traces\310\336\037\000\362\336\037\023y" +
"aml:\"denom_traces\"\022:\n\006params\030\003 \001(\0132$.ibc" +
".applications.transfer.v1.ParamsB\004\310\336\037\000B@" +
"Z>github.com/cosmos/cosmos-sdk/x/ibc/app" +
"lications/transfer/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(),
ibc.applications.transfer.v1.Transfer.getDescriptor(),
}, assigner);
internal_static_ibc_applications_transfer_v1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_applications_transfer_v1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_applications_transfer_v1_GenesisState_descriptor,
new java.lang.String[] { "PortId", "DenomTraces", "Params", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
ibc.applications.transfer.v1.Transfer.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}