![JAR search and dependency download from the Maven repository](/logo.png)
ibc.core.client.v1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/client/v1/genesis.proto
package ibc.core.client.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.core.client.v1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
java.util.List
getClientsList();
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
ibc.core.client.v1.Client.IdentifiedClientState getClients(int index);
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
int getClientsCount();
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
java.util.List extends ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientsOrBuilderList();
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientsOrBuilder(
int index);
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
java.util.List
getClientsConsensusList();
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
ibc.core.client.v1.Client.ClientConsensusStates getClientsConsensus(int index);
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
int getClientsConsensusCount();
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
java.util.List extends ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder>
getClientsConsensusOrBuilderList();
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder(
int index);
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
java.util.List
getClientsMetadataList();
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata getClientsMetadata(int index);
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
int getClientsMetadataCount();
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
java.util.List extends ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder>
getClientsMetadataOrBuilderList();
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder(
int index);
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
boolean hasParams();
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
ibc.core.client.v1.Client.Params getParams();
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder();
/**
*
* create localhost on initialization
*
*
* bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""];
*/
boolean getCreateLocalhost();
/**
*
* the sequence for the next generated client identifier
*
*
* uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""];
*/
long getNextClientSequence();
}
/**
*
* GenesisState defines the ibc client submodule's genesis state.
*
*
* Protobuf type {@code ibc.core.client.v1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.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() {
clients_ = java.util.Collections.emptyList();
clientsConsensus_ = java.util.Collections.emptyList();
clientsMetadata_ = java.util.Collections.emptyList();
createLocalhost_ = false;
nextClientSequence_ = 0L;
}
@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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
clients_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clients_.add(
input.readMessage(ibc.core.client.v1.Client.IdentifiedClientState.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
clientsConsensus_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
clientsConsensus_.add(
input.readMessage(ibc.core.client.v1.Client.ClientConsensusStates.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
clientsMetadata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
clientsMetadata_.add(
input.readMessage(ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.parser(), extensionRegistry));
break;
}
case 34: {
ibc.core.client.v1.Client.Params.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(ibc.core.client.v1.Client.Params.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
case 40: {
createLocalhost_ = input.readBool();
break;
}
case 48: {
nextClientSequence_ = 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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
clients_ = java.util.Collections.unmodifiableList(clients_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
clientsConsensus_ = java.util.Collections.unmodifiableList(clientsConsensus_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
clientsMetadata_ = java.util.Collections.unmodifiableList(clientsMetadata_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.GenesisState.class, ibc.core.client.v1.Genesis.GenesisState.Builder.class);
}
private int bitField0_;
public static final int CLIENTS_FIELD_NUMBER = 1;
private java.util.List clients_;
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List getClientsList() {
return clients_;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List extends ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientsOrBuilderList() {
return clients_;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public int getClientsCount() {
return clients_.size();
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientState getClients(int index) {
return clients_.get(index);
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientsOrBuilder(
int index) {
return clients_.get(index);
}
public static final int CLIENTS_CONSENSUS_FIELD_NUMBER = 2;
private java.util.List clientsConsensus_;
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public java.util.List getClientsConsensusList() {
return clientsConsensus_;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public java.util.List extends ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder>
getClientsConsensusOrBuilderList() {
return clientsConsensus_;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public int getClientsConsensusCount() {
return clientsConsensus_.size();
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStates getClientsConsensus(int index) {
return clientsConsensus_.get(index);
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder(
int index) {
return clientsConsensus_.get(index);
}
public static final int CLIENTS_METADATA_FIELD_NUMBER = 3;
private java.util.List clientsMetadata_;
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public java.util.List getClientsMetadataList() {
return clientsMetadata_;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public java.util.List extends ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder>
getClientsMetadataOrBuilderList() {
return clientsMetadata_;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public int getClientsMetadataCount() {
return clientsMetadata_.size();
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata getClientsMetadata(int index) {
return clientsMetadata_.get(index);
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder(
int index) {
return clientsMetadata_.get(index);
}
public static final int PARAMS_FIELD_NUMBER = 4;
private ibc.core.client.v1.Client.Params params_;
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return params_ != null;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Params getParams() {
return params_ == null ? ibc.core.client.v1.Client.Params.getDefaultInstance() : params_;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
}
public static final int CREATE_LOCALHOST_FIELD_NUMBER = 5;
private boolean createLocalhost_;
/**
*
* create localhost on initialization
*
*
* bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""];
*/
public boolean getCreateLocalhost() {
return createLocalhost_;
}
public static final int NEXT_CLIENT_SEQUENCE_FIELD_NUMBER = 6;
private long nextClientSequence_;
/**
*
* the sequence for the next generated client identifier
*
*
* uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""];
*/
public long getNextClientSequence() {
return nextClientSequence_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < clients_.size(); i++) {
output.writeMessage(1, clients_.get(i));
}
for (int i = 0; i < clientsConsensus_.size(); i++) {
output.writeMessage(2, clientsConsensus_.get(i));
}
for (int i = 0; i < clientsMetadata_.size(); i++) {
output.writeMessage(3, clientsMetadata_.get(i));
}
if (params_ != null) {
output.writeMessage(4, getParams());
}
if (createLocalhost_ != false) {
output.writeBool(5, createLocalhost_);
}
if (nextClientSequence_ != 0L) {
output.writeUInt64(6, nextClientSequence_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < clients_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, clients_.get(i));
}
for (int i = 0; i < clientsConsensus_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clientsConsensus_.get(i));
}
for (int i = 0; i < clientsMetadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, clientsMetadata_.get(i));
}
if (params_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getParams());
}
if (createLocalhost_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, createLocalhost_);
}
if (nextClientSequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, nextClientSequence_);
}
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.core.client.v1.Genesis.GenesisState)) {
return super.equals(obj);
}
ibc.core.client.v1.Genesis.GenesisState other = (ibc.core.client.v1.Genesis.GenesisState) obj;
boolean result = true;
result = result && getClientsList()
.equals(other.getClientsList());
result = result && getClientsConsensusList()
.equals(other.getClientsConsensusList());
result = result && getClientsMetadataList()
.equals(other.getClientsMetadataList());
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams()
.equals(other.getParams());
}
result = result && (getCreateLocalhost()
== other.getCreateLocalhost());
result = result && (getNextClientSequence()
== other.getNextClientSequence());
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 (getClientsCount() > 0) {
hash = (37 * hash) + CLIENTS_FIELD_NUMBER;
hash = (53 * hash) + getClientsList().hashCode();
}
if (getClientsConsensusCount() > 0) {
hash = (37 * hash) + CLIENTS_CONSENSUS_FIELD_NUMBER;
hash = (53 * hash) + getClientsConsensusList().hashCode();
}
if (getClientsMetadataCount() > 0) {
hash = (37 * hash) + CLIENTS_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getClientsMetadataList().hashCode();
}
if (hasParams()) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParams().hashCode();
}
hash = (37 * hash) + CREATE_LOCALHOST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCreateLocalhost());
hash = (37 * hash) + NEXT_CLIENT_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNextClientSequence());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.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.core.client.v1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.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.core.client.v1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.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.core.client.v1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.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.core.client.v1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.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.core.client.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 client submodule's genesis state.
*
*
* Protobuf type {@code ibc.core.client.v1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.GenesisState)
ibc.core.client.v1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.GenesisState.class, ibc.core.client.v1.Genesis.GenesisState.Builder.class);
}
// Construct using ibc.core.client.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) {
getClientsFieldBuilder();
getClientsConsensusFieldBuilder();
getClientsMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (clientsBuilder_ == null) {
clients_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clientsBuilder_.clear();
}
if (clientsConsensusBuilder_ == null) {
clientsConsensus_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
clientsConsensusBuilder_.clear();
}
if (clientsMetadataBuilder_ == null) {
clientsMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
clientsMetadataBuilder_.clear();
}
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
createLocalhost_ = false;
nextClientSequence_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisState_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisState getDefaultInstanceForType() {
return ibc.core.client.v1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisState build() {
ibc.core.client.v1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisState buildPartial() {
ibc.core.client.v1.Genesis.GenesisState result = new ibc.core.client.v1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (clientsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
clients_ = java.util.Collections.unmodifiableList(clients_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clients_ = clients_;
} else {
result.clients_ = clientsBuilder_.build();
}
if (clientsConsensusBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
clientsConsensus_ = java.util.Collections.unmodifiableList(clientsConsensus_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.clientsConsensus_ = clientsConsensus_;
} else {
result.clientsConsensus_ = clientsConsensusBuilder_.build();
}
if (clientsMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
clientsMetadata_ = java.util.Collections.unmodifiableList(clientsMetadata_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.clientsMetadata_ = clientsMetadata_;
} else {
result.clientsMetadata_ = clientsMetadataBuilder_.build();
}
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
result.createLocalhost_ = createLocalhost_;
result.nextClientSequence_ = nextClientSequence_;
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.core.client.v1.Genesis.GenesisState) {
return mergeFrom((ibc.core.client.v1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Genesis.GenesisState other) {
if (other == ibc.core.client.v1.Genesis.GenesisState.getDefaultInstance()) return this;
if (clientsBuilder_ == null) {
if (!other.clients_.isEmpty()) {
if (clients_.isEmpty()) {
clients_ = other.clients_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClientsIsMutable();
clients_.addAll(other.clients_);
}
onChanged();
}
} else {
if (!other.clients_.isEmpty()) {
if (clientsBuilder_.isEmpty()) {
clientsBuilder_.dispose();
clientsBuilder_ = null;
clients_ = other.clients_;
bitField0_ = (bitField0_ & ~0x00000001);
clientsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientsFieldBuilder() : null;
} else {
clientsBuilder_.addAllMessages(other.clients_);
}
}
}
if (clientsConsensusBuilder_ == null) {
if (!other.clientsConsensus_.isEmpty()) {
if (clientsConsensus_.isEmpty()) {
clientsConsensus_ = other.clientsConsensus_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureClientsConsensusIsMutable();
clientsConsensus_.addAll(other.clientsConsensus_);
}
onChanged();
}
} else {
if (!other.clientsConsensus_.isEmpty()) {
if (clientsConsensusBuilder_.isEmpty()) {
clientsConsensusBuilder_.dispose();
clientsConsensusBuilder_ = null;
clientsConsensus_ = other.clientsConsensus_;
bitField0_ = (bitField0_ & ~0x00000002);
clientsConsensusBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientsConsensusFieldBuilder() : null;
} else {
clientsConsensusBuilder_.addAllMessages(other.clientsConsensus_);
}
}
}
if (clientsMetadataBuilder_ == null) {
if (!other.clientsMetadata_.isEmpty()) {
if (clientsMetadata_.isEmpty()) {
clientsMetadata_ = other.clientsMetadata_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureClientsMetadataIsMutable();
clientsMetadata_.addAll(other.clientsMetadata_);
}
onChanged();
}
} else {
if (!other.clientsMetadata_.isEmpty()) {
if (clientsMetadataBuilder_.isEmpty()) {
clientsMetadataBuilder_.dispose();
clientsMetadataBuilder_ = null;
clientsMetadata_ = other.clientsMetadata_;
bitField0_ = (bitField0_ & ~0x00000004);
clientsMetadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientsMetadataFieldBuilder() : null;
} else {
clientsMetadataBuilder_.addAllMessages(other.clientsMetadata_);
}
}
}
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (other.getCreateLocalhost() != false) {
setCreateLocalhost(other.getCreateLocalhost());
}
if (other.getNextClientSequence() != 0L) {
setNextClientSequence(other.getNextClientSequence());
}
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.core.client.v1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List clients_ =
java.util.Collections.emptyList();
private void ensureClientsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
clients_ = new java.util.ArrayList(clients_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder> clientsBuilder_;
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List getClientsList() {
if (clientsBuilder_ == null) {
return java.util.Collections.unmodifiableList(clients_);
} else {
return clientsBuilder_.getMessageList();
}
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public int getClientsCount() {
if (clientsBuilder_ == null) {
return clients_.size();
} else {
return clientsBuilder_.getCount();
}
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientState getClients(int index) {
if (clientsBuilder_ == null) {
return clients_.get(index);
} else {
return clientsBuilder_.getMessage(index);
}
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder setClients(
int index, ibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.set(index, value);
onChanged();
} else {
clientsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder setClients(
int index, ibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.set(index, builderForValue.build());
onChanged();
} else {
clientsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClients(ibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.add(value);
onChanged();
} else {
clientsBuilder_.addMessage(value);
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClients(
int index, ibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsIsMutable();
clients_.add(index, value);
onChanged();
} else {
clientsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClients(
ibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.add(builderForValue.build());
onChanged();
} else {
clientsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClients(
int index, ibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.add(index, builderForValue.build());
onChanged();
} else {
clientsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addAllClients(
java.lang.Iterable extends ibc.core.client.v1.Client.IdentifiedClientState> values) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clients_);
onChanged();
} else {
clientsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder clearClients() {
if (clientsBuilder_ == null) {
clients_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clientsBuilder_.clear();
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder removeClients(int index) {
if (clientsBuilder_ == null) {
ensureClientsIsMutable();
clients_.remove(index);
onChanged();
} else {
clientsBuilder_.remove(index);
}
return this;
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientState.Builder getClientsBuilder(
int index) {
return getClientsFieldBuilder().getBuilder(index);
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientsOrBuilder(
int index) {
if (clientsBuilder_ == null) {
return clients_.get(index); } else {
return clientsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List extends ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientsOrBuilderList() {
if (clientsBuilder_ != null) {
return clientsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clients_);
}
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientState.Builder addClientsBuilder() {
return getClientsFieldBuilder().addBuilder(
ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance());
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public ibc.core.client.v1.Client.IdentifiedClientState.Builder addClientsBuilder(
int index) {
return getClientsFieldBuilder().addBuilder(
index, ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance());
}
/**
*
* client states with their corresponding identifiers
*
*
* repeated .ibc.core.client.v1.IdentifiedClientState clients = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List
getClientsBuilderList() {
return getClientsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientsFieldBuilder() {
if (clientsBuilder_ == null) {
clientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>(
clients_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
clients_ = null;
}
return clientsBuilder_;
}
private java.util.List clientsConsensus_ =
java.util.Collections.emptyList();
private void ensureClientsConsensusIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
clientsConsensus_ = new java.util.ArrayList(clientsConsensus_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ClientConsensusStates, ibc.core.client.v1.Client.ClientConsensusStates.Builder, ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder> clientsConsensusBuilder_;
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public java.util.List getClientsConsensusList() {
if (clientsConsensusBuilder_ == null) {
return java.util.Collections.unmodifiableList(clientsConsensus_);
} else {
return clientsConsensusBuilder_.getMessageList();
}
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public int getClientsConsensusCount() {
if (clientsConsensusBuilder_ == null) {
return clientsConsensus_.size();
} else {
return clientsConsensusBuilder_.getCount();
}
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStates getClientsConsensus(int index) {
if (clientsConsensusBuilder_ == null) {
return clientsConsensus_.get(index);
} else {
return clientsConsensusBuilder_.getMessage(index);
}
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder setClientsConsensus(
int index, ibc.core.client.v1.Client.ClientConsensusStates value) {
if (clientsConsensusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsConsensusIsMutable();
clientsConsensus_.set(index, value);
onChanged();
} else {
clientsConsensusBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder setClientsConsensus(
int index, ibc.core.client.v1.Client.ClientConsensusStates.Builder builderForValue) {
if (clientsConsensusBuilder_ == null) {
ensureClientsConsensusIsMutable();
clientsConsensus_.set(index, builderForValue.build());
onChanged();
} else {
clientsConsensusBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder addClientsConsensus(ibc.core.client.v1.Client.ClientConsensusStates value) {
if (clientsConsensusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsConsensusIsMutable();
clientsConsensus_.add(value);
onChanged();
} else {
clientsConsensusBuilder_.addMessage(value);
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder addClientsConsensus(
int index, ibc.core.client.v1.Client.ClientConsensusStates value) {
if (clientsConsensusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsConsensusIsMutable();
clientsConsensus_.add(index, value);
onChanged();
} else {
clientsConsensusBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder addClientsConsensus(
ibc.core.client.v1.Client.ClientConsensusStates.Builder builderForValue) {
if (clientsConsensusBuilder_ == null) {
ensureClientsConsensusIsMutable();
clientsConsensus_.add(builderForValue.build());
onChanged();
} else {
clientsConsensusBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder addClientsConsensus(
int index, ibc.core.client.v1.Client.ClientConsensusStates.Builder builderForValue) {
if (clientsConsensusBuilder_ == null) {
ensureClientsConsensusIsMutable();
clientsConsensus_.add(index, builderForValue.build());
onChanged();
} else {
clientsConsensusBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder addAllClientsConsensus(
java.lang.Iterable extends ibc.core.client.v1.Client.ClientConsensusStates> values) {
if (clientsConsensusBuilder_ == null) {
ensureClientsConsensusIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clientsConsensus_);
onChanged();
} else {
clientsConsensusBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder clearClientsConsensus() {
if (clientsConsensusBuilder_ == null) {
clientsConsensus_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
clientsConsensusBuilder_.clear();
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public Builder removeClientsConsensus(int index) {
if (clientsConsensusBuilder_ == null) {
ensureClientsConsensusIsMutable();
clientsConsensus_.remove(index);
onChanged();
} else {
clientsConsensusBuilder_.remove(index);
}
return this;
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStates.Builder getClientsConsensusBuilder(
int index) {
return getClientsConsensusFieldBuilder().getBuilder(index);
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder getClientsConsensusOrBuilder(
int index) {
if (clientsConsensusBuilder_ == null) {
return clientsConsensus_.get(index); } else {
return clientsConsensusBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public java.util.List extends ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder>
getClientsConsensusOrBuilderList() {
if (clientsConsensusBuilder_ != null) {
return clientsConsensusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clientsConsensus_);
}
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStates.Builder addClientsConsensusBuilder() {
return getClientsConsensusFieldBuilder().addBuilder(
ibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance());
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public ibc.core.client.v1.Client.ClientConsensusStates.Builder addClientsConsensusBuilder(
int index) {
return getClientsConsensusFieldBuilder().addBuilder(
index, ibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance());
}
/**
*
* consensus states from each client
*
*
* repeated .ibc.core.client.v1.ClientConsensusStates clients_consensus = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_consensus\"", (.gogoproto.castrepeated) = "ClientsConsensusStates"];
*/
public java.util.List
getClientsConsensusBuilderList() {
return getClientsConsensusFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ClientConsensusStates, ibc.core.client.v1.Client.ClientConsensusStates.Builder, ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder>
getClientsConsensusFieldBuilder() {
if (clientsConsensusBuilder_ == null) {
clientsConsensusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ClientConsensusStates, ibc.core.client.v1.Client.ClientConsensusStates.Builder, ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder>(
clientsConsensus_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
clientsConsensus_ = null;
}
return clientsConsensusBuilder_;
}
private java.util.List clientsMetadata_ =
java.util.Collections.emptyList();
private void ensureClientsMetadataIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
clientsMetadata_ = new java.util.ArrayList(clientsMetadata_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder> clientsMetadataBuilder_;
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public java.util.List getClientsMetadataList() {
if (clientsMetadataBuilder_ == null) {
return java.util.Collections.unmodifiableList(clientsMetadata_);
} else {
return clientsMetadataBuilder_.getMessageList();
}
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public int getClientsMetadataCount() {
if (clientsMetadataBuilder_ == null) {
return clientsMetadata_.size();
} else {
return clientsMetadataBuilder_.getCount();
}
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata getClientsMetadata(int index) {
if (clientsMetadataBuilder_ == null) {
return clientsMetadata_.get(index);
} else {
return clientsMetadataBuilder_.getMessage(index);
}
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder setClientsMetadata(
int index, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata value) {
if (clientsMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsMetadataIsMutable();
clientsMetadata_.set(index, value);
onChanged();
} else {
clientsMetadataBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder setClientsMetadata(
int index, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder builderForValue) {
if (clientsMetadataBuilder_ == null) {
ensureClientsMetadataIsMutable();
clientsMetadata_.set(index, builderForValue.build());
onChanged();
} else {
clientsMetadataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder addClientsMetadata(ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata value) {
if (clientsMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsMetadataIsMutable();
clientsMetadata_.add(value);
onChanged();
} else {
clientsMetadataBuilder_.addMessage(value);
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder addClientsMetadata(
int index, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata value) {
if (clientsMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientsMetadataIsMutable();
clientsMetadata_.add(index, value);
onChanged();
} else {
clientsMetadataBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder addClientsMetadata(
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder builderForValue) {
if (clientsMetadataBuilder_ == null) {
ensureClientsMetadataIsMutable();
clientsMetadata_.add(builderForValue.build());
onChanged();
} else {
clientsMetadataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder addClientsMetadata(
int index, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder builderForValue) {
if (clientsMetadataBuilder_ == null) {
ensureClientsMetadataIsMutable();
clientsMetadata_.add(index, builderForValue.build());
onChanged();
} else {
clientsMetadataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder addAllClientsMetadata(
java.lang.Iterable extends ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata> values) {
if (clientsMetadataBuilder_ == null) {
ensureClientsMetadataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clientsMetadata_);
onChanged();
} else {
clientsMetadataBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder clearClientsMetadata() {
if (clientsMetadataBuilder_ == null) {
clientsMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
clientsMetadataBuilder_.clear();
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public Builder removeClientsMetadata(int index) {
if (clientsMetadataBuilder_ == null) {
ensureClientsMetadataIsMutable();
clientsMetadata_.remove(index);
onChanged();
} else {
clientsMetadataBuilder_.remove(index);
}
return this;
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder getClientsMetadataBuilder(
int index) {
return getClientsMetadataFieldBuilder().getBuilder(index);
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder getClientsMetadataOrBuilder(
int index) {
if (clientsMetadataBuilder_ == null) {
return clientsMetadata_.get(index); } else {
return clientsMetadataBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public java.util.List extends ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder>
getClientsMetadataOrBuilderList() {
if (clientsMetadataBuilder_ != null) {
return clientsMetadataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clientsMetadata_);
}
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder addClientsMetadataBuilder() {
return getClientsMetadataFieldBuilder().addBuilder(
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.getDefaultInstance());
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder addClientsMetadataBuilder(
int index) {
return getClientsMetadataFieldBuilder().addBuilder(
index, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.getDefaultInstance());
}
/**
*
* metadata from each client
*
*
* repeated .ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"clients_metadata\""];
*/
public java.util.List
getClientsMetadataBuilderList() {
return getClientsMetadataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder>
getClientsMetadataFieldBuilder() {
if (clientsMetadataBuilder_ == null) {
clientsMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder>(
clientsMetadata_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
clientsMetadata_ = null;
}
return clientsMetadataBuilder_;
}
private ibc.core.client.v1.Client.Params params_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder> paramsBuilder_;
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Params getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? ibc.core.client.v1.Client.Params.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public Builder setParams(ibc.core.client.v1.Client.Params value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
params_ = value;
onChanged();
} else {
paramsBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public Builder setParams(
ibc.core.client.v1.Client.Params.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public Builder mergeParams(ibc.core.client.v1.Client.Params value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
ibc.core.client.v1.Client.Params.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
onChanged();
} else {
paramsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Params.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
ibc.core.client.v1.Client.Params.getDefaultInstance() : params_;
}
}
/**
* .ibc.core.client.v1.Params params = 4 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private boolean createLocalhost_ ;
/**
*
* create localhost on initialization
*
*
* bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""];
*/
public boolean getCreateLocalhost() {
return createLocalhost_;
}
/**
*
* create localhost on initialization
*
*
* bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""];
*/
public Builder setCreateLocalhost(boolean value) {
createLocalhost_ = value;
onChanged();
return this;
}
/**
*
* create localhost on initialization
*
*
* bool create_localhost = 5 [(.gogoproto.moretags) = "yaml:\"create_localhost\""];
*/
public Builder clearCreateLocalhost() {
createLocalhost_ = false;
onChanged();
return this;
}
private long nextClientSequence_ ;
/**
*
* the sequence for the next generated client identifier
*
*
* uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""];
*/
public long getNextClientSequence() {
return nextClientSequence_;
}
/**
*
* the sequence for the next generated client identifier
*
*
* uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""];
*/
public Builder setNextClientSequence(long value) {
nextClientSequence_ = value;
onChanged();
return this;
}
/**
*
* the sequence for the next generated client identifier
*
*
* uint64 next_client_sequence = 6 [(.gogoproto.moretags) = "yaml:\"next_client_sequence\""];
*/
public Builder clearNextClientSequence() {
nextClientSequence_ = 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:ibc.core.client.v1.GenesisState)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.GenesisState)
private static final ibc.core.client.v1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Genesis.GenesisState();
}
public static ibc.core.client.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.core.client.v1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GenesisMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.GenesisMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* store key of metadata without clientID-prefix
*
*
* bytes key = 1;
*/
com.google.protobuf.ByteString getKey();
/**
*
* metadata value
*
*
* bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* GenesisMetadata defines the genesis type for metadata that clients may return
* with ExportMetadata
*
*
* Protobuf type {@code ibc.core.client.v1.GenesisMetadata}
*/
public static final class GenesisMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.GenesisMetadata)
GenesisMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenesisMetadata.newBuilder() to construct.
private GenesisMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenesisMetadata() {
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenesisMetadata(
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: {
key_ = input.readBytes();
break;
}
case 18: {
value_ = input.readBytes();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.GenesisMetadata.class, ibc.core.client.v1.Genesis.GenesisMetadata.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_;
/**
*
* store key of metadata without clientID-prefix
*
*
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
*
* metadata value
*
*
* bytes value = 2;
*/
public com.google.protobuf.ByteString 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 (!key_.isEmpty()) {
output.writeBytes(1, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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 ibc.core.client.v1.Genesis.GenesisMetadata)) {
return super.equals(obj);
}
ibc.core.client.v1.Genesis.GenesisMetadata other = (ibc.core.client.v1.Genesis.GenesisMetadata) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata 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.core.client.v1.Genesis.GenesisMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata 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.core.client.v1.Genesis.GenesisMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.GenesisMetadata 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.core.client.v1.Genesis.GenesisMetadata 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;
}
/**
*
* GenesisMetadata defines the genesis type for metadata that clients may return
* with ExportMetadata
*
*
* Protobuf type {@code ibc.core.client.v1.GenesisMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.GenesisMetadata)
ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.GenesisMetadata.class, ibc.core.client.v1.Genesis.GenesisMetadata.Builder.class);
}
// Construct using ibc.core.client.v1.Genesis.GenesisMetadata.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();
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_GenesisMetadata_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisMetadata getDefaultInstanceForType() {
return ibc.core.client.v1.Genesis.GenesisMetadata.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisMetadata build() {
ibc.core.client.v1.Genesis.GenesisMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.GenesisMetadata buildPartial() {
ibc.core.client.v1.Genesis.GenesisMetadata result = new ibc.core.client.v1.Genesis.GenesisMetadata(this);
result.key_ = key_;
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 ibc.core.client.v1.Genesis.GenesisMetadata) {
return mergeFrom((ibc.core.client.v1.Genesis.GenesisMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Genesis.GenesisMetadata other) {
if (other == ibc.core.client.v1.Genesis.GenesisMetadata.getDefaultInstance()) return this;
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
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 {
ibc.core.client.v1.Genesis.GenesisMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Genesis.GenesisMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* store key of metadata without clientID-prefix
*
*
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
*
* store key of metadata without clientID-prefix
*
*
* bytes key = 1;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
*
* store key of metadata without clientID-prefix
*
*
* bytes key = 1;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* metadata value
*
*
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* metadata value
*
*
* bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* metadata value
*
*
* bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:ibc.core.client.v1.GenesisMetadata)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.GenesisMetadata)
private static final ibc.core.client.v1.Genesis.GenesisMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Genesis.GenesisMetadata();
}
public static ibc.core.client.v1.Genesis.GenesisMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenesisMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenesisMetadata(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.core.client.v1.Genesis.GenesisMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifiedGenesisMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.IdentifiedGenesisMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
java.util.List
getClientMetadataList();
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
ibc.core.client.v1.Genesis.GenesisMetadata getClientMetadata(int index);
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
int getClientMetadataCount();
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
java.util.List extends ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder>
getClientMetadataOrBuilderList();
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder getClientMetadataOrBuilder(
int index);
}
/**
*
* IdentifiedGenesisMetadata has the client metadata with the corresponding client id.
*
*
* Protobuf type {@code ibc.core.client.v1.IdentifiedGenesisMetadata}
*/
public static final class IdentifiedGenesisMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.IdentifiedGenesisMetadata)
IdentifiedGenesisMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedGenesisMetadata.newBuilder() to construct.
private IdentifiedGenesisMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedGenesisMetadata() {
clientId_ = "";
clientMetadata_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentifiedGenesisMetadata(
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();
clientId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
clientMetadata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
clientMetadata_.add(
input.readMessage(ibc.core.client.v1.Genesis.GenesisMetadata.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)) {
clientMetadata_ = java.util.Collections.unmodifiableList(clientMetadata_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.class, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder.class);
}
private int bitField0_;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
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();
clientId_ = s;
return s;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_METADATA_FIELD_NUMBER = 2;
private java.util.List clientMetadata_;
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public java.util.List getClientMetadataList() {
return clientMetadata_;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public java.util.List extends ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder>
getClientMetadataOrBuilderList() {
return clientMetadata_;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public int getClientMetadataCount() {
return clientMetadata_.size();
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadata getClientMetadata(int index) {
return clientMetadata_.get(index);
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder getClientMetadataOrBuilder(
int index) {
return clientMetadata_.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 (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
for (int i = 0; i < clientMetadata_.size(); i++) {
output.writeMessage(2, clientMetadata_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
for (int i = 0; i < clientMetadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clientMetadata_.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 ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata)) {
return super.equals(obj);
}
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata other = (ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && getClientMetadataList()
.equals(other.getClientMetadataList());
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) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
if (getClientMetadataCount() > 0) {
hash = (37 * hash) + CLIENT_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getClientMetadataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata 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.core.client.v1.Genesis.IdentifiedGenesisMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata 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.core.client.v1.Genesis.IdentifiedGenesisMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata 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.core.client.v1.Genesis.IdentifiedGenesisMetadata 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;
}
/**
*
* IdentifiedGenesisMetadata has the client metadata with the corresponding client id.
*
*
* Protobuf type {@code ibc.core.client.v1.IdentifiedGenesisMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.IdentifiedGenesisMetadata)
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.class, ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.Builder.class);
}
// Construct using ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClientMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clientId_ = "";
if (clientMetadataBuilder_ == null) {
clientMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
clientMetadataBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Genesis.internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata getDefaultInstanceForType() {
return ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata build() {
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata buildPartial() {
ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata result = new ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.clientId_ = clientId_;
if (clientMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
clientMetadata_ = java.util.Collections.unmodifiableList(clientMetadata_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.clientMetadata_ = clientMetadata_;
} else {
result.clientMetadata_ = clientMetadataBuilder_.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.core.client.v1.Genesis.IdentifiedGenesisMetadata) {
return mergeFrom((ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata other) {
if (other == ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (clientMetadataBuilder_ == null) {
if (!other.clientMetadata_.isEmpty()) {
if (clientMetadata_.isEmpty()) {
clientMetadata_ = other.clientMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureClientMetadataIsMutable();
clientMetadata_.addAll(other.clientMetadata_);
}
onChanged();
}
} else {
if (!other.clientMetadata_.isEmpty()) {
if (clientMetadataBuilder_.isEmpty()) {
clientMetadataBuilder_.dispose();
clientMetadataBuilder_ = null;
clientMetadata_ = other.clientMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
clientMetadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientMetadataFieldBuilder() : null;
} else {
clientMetadataBuilder_.addAllMessages(other.clientMetadata_);
}
}
}
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.core.client.v1.Genesis.IdentifiedGenesisMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clientId_ = "";
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private java.util.List clientMetadata_ =
java.util.Collections.emptyList();
private void ensureClientMetadataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
clientMetadata_ = new java.util.ArrayList(clientMetadata_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.GenesisMetadata, ibc.core.client.v1.Genesis.GenesisMetadata.Builder, ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder> clientMetadataBuilder_;
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public java.util.List getClientMetadataList() {
if (clientMetadataBuilder_ == null) {
return java.util.Collections.unmodifiableList(clientMetadata_);
} else {
return clientMetadataBuilder_.getMessageList();
}
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public int getClientMetadataCount() {
if (clientMetadataBuilder_ == null) {
return clientMetadata_.size();
} else {
return clientMetadataBuilder_.getCount();
}
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadata getClientMetadata(int index) {
if (clientMetadataBuilder_ == null) {
return clientMetadata_.get(index);
} else {
return clientMetadataBuilder_.getMessage(index);
}
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder setClientMetadata(
int index, ibc.core.client.v1.Genesis.GenesisMetadata value) {
if (clientMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientMetadataIsMutable();
clientMetadata_.set(index, value);
onChanged();
} else {
clientMetadataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder setClientMetadata(
int index, ibc.core.client.v1.Genesis.GenesisMetadata.Builder builderForValue) {
if (clientMetadataBuilder_ == null) {
ensureClientMetadataIsMutable();
clientMetadata_.set(index, builderForValue.build());
onChanged();
} else {
clientMetadataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder addClientMetadata(ibc.core.client.v1.Genesis.GenesisMetadata value) {
if (clientMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientMetadataIsMutable();
clientMetadata_.add(value);
onChanged();
} else {
clientMetadataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder addClientMetadata(
int index, ibc.core.client.v1.Genesis.GenesisMetadata value) {
if (clientMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientMetadataIsMutable();
clientMetadata_.add(index, value);
onChanged();
} else {
clientMetadataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder addClientMetadata(
ibc.core.client.v1.Genesis.GenesisMetadata.Builder builderForValue) {
if (clientMetadataBuilder_ == null) {
ensureClientMetadataIsMutable();
clientMetadata_.add(builderForValue.build());
onChanged();
} else {
clientMetadataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder addClientMetadata(
int index, ibc.core.client.v1.Genesis.GenesisMetadata.Builder builderForValue) {
if (clientMetadataBuilder_ == null) {
ensureClientMetadataIsMutable();
clientMetadata_.add(index, builderForValue.build());
onChanged();
} else {
clientMetadataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder addAllClientMetadata(
java.lang.Iterable extends ibc.core.client.v1.Genesis.GenesisMetadata> values) {
if (clientMetadataBuilder_ == null) {
ensureClientMetadataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clientMetadata_);
onChanged();
} else {
clientMetadataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder clearClientMetadata() {
if (clientMetadataBuilder_ == null) {
clientMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
clientMetadataBuilder_.clear();
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public Builder removeClientMetadata(int index) {
if (clientMetadataBuilder_ == null) {
ensureClientMetadataIsMutable();
clientMetadata_.remove(index);
onChanged();
} else {
clientMetadataBuilder_.remove(index);
}
return this;
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadata.Builder getClientMetadataBuilder(
int index) {
return getClientMetadataFieldBuilder().getBuilder(index);
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder getClientMetadataOrBuilder(
int index) {
if (clientMetadataBuilder_ == null) {
return clientMetadata_.get(index); } else {
return clientMetadataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public java.util.List extends ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder>
getClientMetadataOrBuilderList() {
if (clientMetadataBuilder_ != null) {
return clientMetadataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clientMetadata_);
}
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadata.Builder addClientMetadataBuilder() {
return getClientMetadataFieldBuilder().addBuilder(
ibc.core.client.v1.Genesis.GenesisMetadata.getDefaultInstance());
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public ibc.core.client.v1.Genesis.GenesisMetadata.Builder addClientMetadataBuilder(
int index) {
return getClientMetadataFieldBuilder().addBuilder(
index, ibc.core.client.v1.Genesis.GenesisMetadata.getDefaultInstance());
}
/**
* repeated .ibc.core.client.v1.GenesisMetadata client_metadata = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_metadata\""];
*/
public java.util.List
getClientMetadataBuilderList() {
return getClientMetadataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.GenesisMetadata, ibc.core.client.v1.Genesis.GenesisMetadata.Builder, ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder>
getClientMetadataFieldBuilder() {
if (clientMetadataBuilder_ == null) {
clientMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Genesis.GenesisMetadata, ibc.core.client.v1.Genesis.GenesisMetadata.Builder, ibc.core.client.v1.Genesis.GenesisMetadataOrBuilder>(
clientMetadata_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
clientMetadata_ = null;
}
return clientMetadataBuilder_;
}
@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.core.client.v1.IdentifiedGenesisMetadata)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.IdentifiedGenesisMetadata)
private static final ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata();
}
public static ibc.core.client.v1.Genesis.IdentifiedGenesisMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedGenesisMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentifiedGenesisMetadata(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.core.client.v1.Genesis.IdentifiedGenesisMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_GenesisMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_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/core/client/v1/genesis.proto\022\022ibc." +
"core.client.v1\032\037ibc/core/client/v1/clien" +
"t.proto\032\024gogoproto/gogo.proto\"\377\003\n\014Genesi" +
"sState\022Z\n\007clients\030\001 \003(\0132).ibc.core.clien" +
"t.v1.IdentifiedClientStateB\036\310\336\037\000\252\337\037\026Iden" +
"tifiedClientStates\022\200\001\n\021clients_consensus" +
"\030\002 \003(\0132).ibc.core.client.v1.ClientConsen" +
"susStatesB:\310\336\037\000\252\337\037\026ClientsConsensusState" +
"s\362\336\037\030yaml:\"clients_consensus\"\022h\n\020clients" +
"_metadata\030\003 \003(\0132-.ibc.core.client.v1.Ide" +
"ntifiedGenesisMetadataB\037\310\336\037\000\362\336\037\027yaml:\"cl" +
"ients_metadata\"\0220\n\006params\030\004 \001(\0132\032.ibc.co" +
"re.client.v1.ParamsB\004\310\336\037\000\0225\n\020create_loca" +
"lhost\030\005 \001(\010B\033\362\336\037\027yaml:\"create_localhost\"" +
"\022=\n\024next_client_sequence\030\006 \001(\004B\037\362\336\037\033yaml" +
":\"next_client_sequence\"\"3\n\017GenesisMetada" +
"ta\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014:\004\210\240\037\000\"\242\001\n" +
"\031IdentifiedGenesisMetadata\022\'\n\tclient_id\030" +
"\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\022\\\n\017client_me" +
"tadata\030\002 \003(\0132#.ibc.core.client.v1.Genesi" +
"sMetadataB\036\310\336\037\000\362\336\037\026yaml:\"client_metadata" +
"\"B9Z7github.com/cosmos/cosmos-sdk/x/ibc/" +
"core/02-client/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[] {
ibc.core.client.v1.Client.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_ibc_core_client_v1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_core_client_v1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_GenesisState_descriptor,
new java.lang.String[] { "Clients", "ClientsConsensus", "ClientsMetadata", "Params", "CreateLocalhost", "NextClientSequence", });
internal_static_ibc_core_client_v1_GenesisMetadata_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ibc_core_client_v1_GenesisMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_GenesisMetadata_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_IdentifiedGenesisMetadata_descriptor,
new java.lang.String[] { "ClientId", "ClientMetadata", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ibc.core.client.v1.Client.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy