Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ibc.core.client.v1.Client Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/client/v1/client.proto
package ibc.core.client.v1;
public final class Client {
private Client() {}
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 IdentifiedClientStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.IdentifiedClientState)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
boolean hasClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
com.google.protobuf.Any getClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
}
/**
*
* IdentifiedClientState defines a client state with an additional client
* identifier field.
*
*
* Protobuf type {@code ibc.core.client.v1.IdentifiedClientState}
*/
public static final class IdentifiedClientState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.IdentifiedClientState)
IdentifiedClientStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedClientState.newBuilder() to construct.
private IdentifiedClientState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedClientState() {
clientId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentifiedClientState(
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: {
com.google.protobuf.Any.Builder subBuilder = null;
if (clientState_ != null) {
subBuilder = clientState_.toBuilder();
}
clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientState_);
clientState_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.IdentifiedClientState.class, ibc.core.client.v1.Client.IdentifiedClientState.Builder.class);
}
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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_STATE_FIELD_NUMBER = 2;
private com.google.protobuf.Any clientState_;
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public boolean hasClientState() {
return clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
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_);
}
if (clientState_ != null) {
output.writeMessage(2, getClientState());
}
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_);
}
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getClientState());
}
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.Client.IdentifiedClientState)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.IdentifiedClientState other = (ibc.core.client.v1.Client.IdentifiedClientState) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && (hasClientState() == other.hasClientState());
if (hasClientState()) {
result = result && getClientState()
.equals(other.getClientState());
}
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 (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.IdentifiedClientState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.IdentifiedClientState 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.Client.IdentifiedClientState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.IdentifiedClientState 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.Client.IdentifiedClientState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.IdentifiedClientState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.IdentifiedClientState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.IdentifiedClientState 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.Client.IdentifiedClientState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.IdentifiedClientState 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.Client.IdentifiedClientState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.IdentifiedClientState 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.Client.IdentifiedClientState 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;
}
/**
*
* IdentifiedClientState defines a client state with an additional client
* identifier field.
*
*
* Protobuf type {@code ibc.core.client.v1.IdentifiedClientState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.IdentifiedClientState)
ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.IdentifiedClientState.class, ibc.core.client.v1.Client.IdentifiedClientState.Builder.class);
}
// Construct using ibc.core.client.v1.Client.IdentifiedClientState.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();
clientId_ = "";
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.IdentifiedClientState getDefaultInstanceForType() {
return ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.IdentifiedClientState build() {
ibc.core.client.v1.Client.IdentifiedClientState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.IdentifiedClientState buildPartial() {
ibc.core.client.v1.Client.IdentifiedClientState result = new ibc.core.client.v1.Client.IdentifiedClientState(this);
result.clientId_ = clientId_;
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
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.Client.IdentifiedClientState) {
return mergeFrom((ibc.core.client.v1.Client.IdentifiedClientState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.IdentifiedClientState other) {
if (other == ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
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.Client.IdentifiedClientState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.IdentifiedClientState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clientId_ = "";
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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;
}
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* 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 com.google.protobuf.Any clientState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_;
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.Any getClientState() {
if (clientStateBuilder_ == null) {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
} else {
return clientStateBuilder_.getMessage();
}
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientState_ = value;
onChanged();
} else {
clientStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(
com.google.protobuf.Any.Builder builderForValue) {
if (clientStateBuilder_ == null) {
clientState_ = builderForValue.build();
onChanged();
} else {
clientStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder mergeClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (clientState_ != null) {
clientState_ =
com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial();
} else {
clientState_ = value;
}
onChanged();
} else {
clientStateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
if (clientStateBuilder_ != null) {
return clientStateBuilder_.getMessageOrBuilder();
} else {
return clientState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getClientStateFieldBuilder() {
if (clientStateBuilder_ == null) {
clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getClientState(),
getParentForChildren(),
isClean());
clientState_ = null;
}
return clientStateBuilder_;
}
@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.IdentifiedClientState)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.IdentifiedClientState)
private static final ibc.core.client.v1.Client.IdentifiedClientState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.IdentifiedClientState();
}
public static ibc.core.client.v1.Client.IdentifiedClientState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedClientState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentifiedClientState(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.Client.IdentifiedClientState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsensusStateWithHeightOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ConsensusStateWithHeight)
com.google.protobuf.MessageOrBuilder {
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
boolean hasHeight();
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
ibc.core.client.v1.Client.Height getHeight();
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
ibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
boolean hasConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
com.google.protobuf.Any getConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder();
}
/**
*
* ConsensusStateWithHeight defines a consensus state with an additional height field.
*
*
* Protobuf type {@code ibc.core.client.v1.ConsensusStateWithHeight}
*/
public static final class ConsensusStateWithHeight extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.ConsensusStateWithHeight)
ConsensusStateWithHeightOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsensusStateWithHeight.newBuilder() to construct.
private ConsensusStateWithHeight(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusStateWithHeight() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsensusStateWithHeight(
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: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (height_ != null) {
subBuilder = height_.toBuilder();
}
height_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(height_);
height_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Any.Builder subBuilder = null;
if (consensusState_ != null) {
subBuilder = consensusState_.toBuilder();
}
consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusState_);
consensusState_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ConsensusStateWithHeight.class, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private ibc.core.client.v1.Client.Height height_;
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasHeight() {
return height_ != null;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Height getHeight() {
return height_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder() {
return getHeight();
}
public static final int CONSENSUS_STATE_FIELD_NUMBER = 2;
private com.google.protobuf.Any consensusState_;
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public boolean hasConsensusState() {
return consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public com.google.protobuf.Any getConsensusState() {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() {
return getConsensusState();
}
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 (height_ != null) {
output.writeMessage(1, getHeight());
}
if (consensusState_ != null) {
output.writeMessage(2, getConsensusState());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeight());
}
if (consensusState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConsensusState());
}
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.Client.ConsensusStateWithHeight)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.ConsensusStateWithHeight other = (ibc.core.client.v1.Client.ConsensusStateWithHeight) obj;
boolean result = true;
result = result && (hasHeight() == other.hasHeight());
if (hasHeight()) {
result = result && getHeight()
.equals(other.getHeight());
}
result = result && (hasConsensusState() == other.hasConsensusState());
if (hasConsensusState()) {
result = result && getConsensusState()
.equals(other.getConsensusState());
}
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 (hasHeight()) {
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight().hashCode();
}
if (hasConsensusState()) {
hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER;
hash = (53 * hash) + getConsensusState().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight 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.Client.ConsensusStateWithHeight parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight 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.Client.ConsensusStateWithHeight parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight 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.Client.ConsensusStateWithHeight parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight 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.Client.ConsensusStateWithHeight parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight 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.Client.ConsensusStateWithHeight 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;
}
/**
*
* ConsensusStateWithHeight defines a consensus state with an additional height field.
*
*
* Protobuf type {@code ibc.core.client.v1.ConsensusStateWithHeight}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ConsensusStateWithHeight)
ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ConsensusStateWithHeight.class, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder.class);
}
// Construct using ibc.core.client.v1.Client.ConsensusStateWithHeight.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (heightBuilder_ == null) {
height_ = null;
} else {
height_ = null;
heightBuilder_ = null;
}
if (consensusStateBuilder_ == null) {
consensusState_ = null;
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.ConsensusStateWithHeight getDefaultInstanceForType() {
return ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.ConsensusStateWithHeight build() {
ibc.core.client.v1.Client.ConsensusStateWithHeight result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.ConsensusStateWithHeight buildPartial() {
ibc.core.client.v1.Client.ConsensusStateWithHeight result = new ibc.core.client.v1.Client.ConsensusStateWithHeight(this);
if (heightBuilder_ == null) {
result.height_ = height_;
} else {
result.height_ = heightBuilder_.build();
}
if (consensusStateBuilder_ == null) {
result.consensusState_ = consensusState_;
} else {
result.consensusState_ = consensusStateBuilder_.build();
}
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.Client.ConsensusStateWithHeight) {
return mergeFrom((ibc.core.client.v1.Client.ConsensusStateWithHeight)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.ConsensusStateWithHeight other) {
if (other == ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance()) return this;
if (other.hasHeight()) {
mergeHeight(other.getHeight());
}
if (other.hasConsensusState()) {
mergeConsensusState(other.getConsensusState());
}
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.Client.ConsensusStateWithHeight parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.ConsensusStateWithHeight) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ibc.core.client.v1.Client.Height height_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> heightBuilder_;
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasHeight() {
return heightBuilder_ != null || height_ != null;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Height getHeight() {
if (heightBuilder_ == null) {
return height_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
} else {
return heightBuilder_.getMessage();
}
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeight(ibc.core.client.v1.Client.Height value) {
if (heightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
height_ = value;
onChanged();
} else {
heightBuilder_.setMessage(value);
}
return this;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (heightBuilder_ == null) {
height_ = builderForValue.build();
onChanged();
} else {
heightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeHeight(ibc.core.client.v1.Client.Height value) {
if (heightBuilder_ == null) {
if (height_ != null) {
height_ =
ibc.core.client.v1.Client.Height.newBuilder(height_).mergeFrom(value).buildPartial();
} else {
height_ = value;
}
onChanged();
} else {
heightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearHeight() {
if (heightBuilder_ == null) {
height_ = null;
onChanged();
} else {
height_ = null;
heightBuilder_ = null;
}
return this;
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.Height.Builder getHeightBuilder() {
onChanged();
return getHeightFieldBuilder().getBuilder();
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder() {
if (heightBuilder_ != null) {
return heightBuilder_.getMessageOrBuilder();
} else {
return height_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
}
}
/**
*
* consensus state height
*
*
* .ibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getHeightFieldBuilder() {
if (heightBuilder_ == null) {
heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getHeight(),
getParentForChildren(),
isClean());
height_ = null;
}
return heightBuilder_;
}
private com.google.protobuf.Any consensusState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_;
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public boolean hasConsensusState() {
return consensusStateBuilder_ != null || consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public com.google.protobuf.Any getConsensusState() {
if (consensusStateBuilder_ == null) {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
} else {
return consensusStateBuilder_.getMessage();
}
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public Builder setConsensusState(com.google.protobuf.Any value) {
if (consensusStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusState_ = value;
onChanged();
} else {
consensusStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public Builder setConsensusState(
com.google.protobuf.Any.Builder builderForValue) {
if (consensusStateBuilder_ == null) {
consensusState_ = builderForValue.build();
onChanged();
} else {
consensusStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public Builder mergeConsensusState(com.google.protobuf.Any value) {
if (consensusStateBuilder_ == null) {
if (consensusState_ != null) {
consensusState_ =
com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial();
} else {
consensusState_ = value;
}
onChanged();
} else {
consensusStateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public Builder clearConsensusState() {
if (consensusStateBuilder_ == null) {
consensusState_ = null;
onChanged();
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public com.google.protobuf.Any.Builder getConsensusStateBuilder() {
onChanged();
return getConsensusStateFieldBuilder().getBuilder();
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() {
if (consensusStateBuilder_ != null) {
return consensusStateBuilder_.getMessageOrBuilder();
} else {
return consensusState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2 [(.gogoproto.moretags) = "yaml\"consensus_state\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getConsensusStateFieldBuilder() {
if (consensusStateBuilder_ == null) {
consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getConsensusState(),
getParentForChildren(),
isClean());
consensusState_ = null;
}
return consensusStateBuilder_;
}
@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.ConsensusStateWithHeight)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.ConsensusStateWithHeight)
private static final ibc.core.client.v1.Client.ConsensusStateWithHeight DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.ConsensusStateWithHeight();
}
public static ibc.core.client.v1.Client.ConsensusStateWithHeight getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsensusStateWithHeight parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsensusStateWithHeight(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.Client.ConsensusStateWithHeight getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientConsensusStatesOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ClientConsensusStates)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
java.util.List
getConsensusStatesList();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
ibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index);
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
int getConsensusStatesCount();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
java.util.List extends ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index);
}
/**
*
* ClientConsensusStates defines all the stored consensus states for a given
* client.
*
*
* Protobuf type {@code ibc.core.client.v1.ClientConsensusStates}
*/
public static final class ClientConsensusStates extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.ClientConsensusStates)
ClientConsensusStatesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientConsensusStates.newBuilder() to construct.
private ClientConsensusStates(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientConsensusStates() {
clientId_ = "";
consensusStates_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientConsensusStates(
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)) {
consensusStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
consensusStates_.add(
input.readMessage(ibc.core.client.v1.Client.ConsensusStateWithHeight.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)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ClientConsensusStates.class, ibc.core.client.v1.Client.ClientConsensusStates.Builder.class);
}
private int bitField0_;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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 CONSENSUS_STATES_FIELD_NUMBER = 2;
private java.util.List consensusStates_;
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public java.util.List getConsensusStatesList() {
return consensusStates_;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public java.util.List extends ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList() {
return consensusStates_;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public int getConsensusStatesCount() {
return consensusStates_.size();
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) {
return consensusStates_.get(index);
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index) {
return consensusStates_.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 < consensusStates_.size(); i++) {
output.writeMessage(2, consensusStates_.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 < consensusStates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, consensusStates_.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.Client.ClientConsensusStates)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.ClientConsensusStates other = (ibc.core.client.v1.Client.ClientConsensusStates) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && getConsensusStatesList()
.equals(other.getConsensusStatesList());
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 (getConsensusStatesCount() > 0) {
hash = (37 * hash) + CONSENSUS_STATES_FIELD_NUMBER;
hash = (53 * hash) + getConsensusStatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.ClientConsensusStates parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientConsensusStates 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.Client.ClientConsensusStates parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientConsensusStates 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.Client.ClientConsensusStates parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientConsensusStates parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.ClientConsensusStates parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientConsensusStates 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.Client.ClientConsensusStates parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientConsensusStates 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.Client.ClientConsensusStates parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientConsensusStates 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.Client.ClientConsensusStates 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;
}
/**
*
* ClientConsensusStates defines all the stored consensus states for a given
* client.
*
*
* Protobuf type {@code ibc.core.client.v1.ClientConsensusStates}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ClientConsensusStates)
ibc.core.client.v1.Client.ClientConsensusStatesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ClientConsensusStates.class, ibc.core.client.v1.Client.ClientConsensusStates.Builder.class);
}
// Construct using ibc.core.client.v1.Client.ClientConsensusStates.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConsensusStatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clientId_ = "";
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
consensusStatesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientConsensusStates getDefaultInstanceForType() {
return ibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientConsensusStates build() {
ibc.core.client.v1.Client.ClientConsensusStates result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientConsensusStates buildPartial() {
ibc.core.client.v1.Client.ClientConsensusStates result = new ibc.core.client.v1.Client.ClientConsensusStates(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.clientId_ = clientId_;
if (consensusStatesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.consensusStates_ = consensusStates_;
} else {
result.consensusStates_ = consensusStatesBuilder_.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.Client.ClientConsensusStates) {
return mergeFrom((ibc.core.client.v1.Client.ClientConsensusStates)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.ClientConsensusStates other) {
if (other == ibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (consensusStatesBuilder_ == null) {
if (!other.consensusStates_.isEmpty()) {
if (consensusStates_.isEmpty()) {
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConsensusStatesIsMutable();
consensusStates_.addAll(other.consensusStates_);
}
onChanged();
}
} else {
if (!other.consensusStates_.isEmpty()) {
if (consensusStatesBuilder_.isEmpty()) {
consensusStatesBuilder_.dispose();
consensusStatesBuilder_ = null;
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000002);
consensusStatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConsensusStatesFieldBuilder() : null;
} else {
consensusStatesBuilder_.addAllMessages(other.consensusStates_);
}
}
}
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.Client.ClientConsensusStates parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.ClientConsensusStates) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clientId_ = "";
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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;
}
}
/**
*
* client identifier
*
*
* 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;
}
/**
*
* client identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* 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 consensusStates_ =
java.util.Collections.emptyList();
private void ensureConsensusStatesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
consensusStates_ = new java.util.ArrayList(consensusStates_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_;
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public java.util.List getConsensusStatesList() {
if (consensusStatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(consensusStates_);
} else {
return consensusStatesBuilder_.getMessageList();
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public int getConsensusStatesCount() {
if (consensusStatesBuilder_ == null) {
return consensusStates_.size();
} else {
return consensusStatesBuilder_.getCount();
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) {
if (consensusStatesBuilder_ == null) {
return consensusStates_.get(index);
} else {
return consensusStatesBuilder_.getMessage(index);
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder setConsensusStates(
int index, ibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.set(index, value);
onChanged();
} else {
consensusStatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder setConsensusStates(
int index, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.set(index, builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder addConsensusStates(ibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.add(value);
onChanged();
} else {
consensusStatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder addConsensusStates(
int index, ibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.add(index, value);
onChanged();
} else {
consensusStatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder addConsensusStates(
ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.add(builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder addConsensusStates(
int index, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.add(index, builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder addAllConsensusStates(
java.lang.Iterable extends ibc.core.client.v1.Client.ConsensusStateWithHeight> values) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, consensusStates_);
onChanged();
} else {
consensusStatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder clearConsensusStates() {
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
consensusStatesBuilder_.clear();
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public Builder removeConsensusStates(int index) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.remove(index);
onChanged();
} else {
consensusStatesBuilder_.remove(index);
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder getConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().getBuilder(index);
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index) {
if (consensusStatesBuilder_ == null) {
return consensusStates_.get(index); } else {
return consensusStatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public java.util.List extends ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList() {
if (consensusStatesBuilder_ != null) {
return consensusStatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(consensusStates_);
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() {
return getConsensusStatesFieldBuilder().addBuilder(
ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().addBuilder(
index, ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_states\""];
*/
public java.util.List
getConsensusStatesBuilderList() {
return getConsensusStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesFieldBuilder() {
if (consensusStatesBuilder_ == null) {
consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>(
consensusStates_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
consensusStates_ = null;
}
return consensusStatesBuilder_;
}
@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.ClientConsensusStates)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.ClientConsensusStates)
private static final ibc.core.client.v1.Client.ClientConsensusStates DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.ClientConsensusStates();
}
public static ibc.core.client.v1.Client.ClientConsensusStates getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientConsensusStates parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientConsensusStates(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.Client.ClientConsensusStates getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientUpdateProposalOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.ClientUpdateProposal)
com.google.protobuf.MessageOrBuilder {
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
java.lang.String getTitle();
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
java.lang.String getDescription();
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
boolean hasHeader();
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
com.google.protobuf.Any getHeader();
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
com.google.protobuf.AnyOrBuilder getHeaderOrBuilder();
}
/**
*
* ClientUpdateProposal is a governance proposal. If it passes, the client is
* updated with the provided header. The update may fail if the header is not
* valid given certain conditions specified by the client implementation.
*
*
* Protobuf type {@code ibc.core.client.v1.ClientUpdateProposal}
*/
public static final class ClientUpdateProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.ClientUpdateProposal)
ClientUpdateProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientUpdateProposal.newBuilder() to construct.
private ClientUpdateProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientUpdateProposal() {
title_ = "";
description_ = "";
clientId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientUpdateProposal(
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();
title_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 34: {
com.google.protobuf.Any.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ClientUpdateProposal.class, ibc.core.client.v1.Client.ClientUpdateProposal.Builder.class);
}
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object clientId_;
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.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;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.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 HEADER_FIELD_NUMBER = 4;
private com.google.protobuf.Any header_;
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public boolean hasHeader() {
return header_ != null;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public com.google.protobuf.Any getHeader() {
return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() {
return getHeader();
}
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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientId_);
}
if (header_ != null) {
output.writeMessage(4, getHeader());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientId_);
}
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getHeader());
}
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.Client.ClientUpdateProposal)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.ClientUpdateProposal other = (ibc.core.client.v1.Client.ClientUpdateProposal) obj;
boolean result = true;
result = result && getTitle()
.equals(other.getTitle());
result = result && getDescription()
.equals(other.getDescription());
result = result && getClientId()
.equals(other.getClientId());
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.ClientUpdateProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal 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.Client.ClientUpdateProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal 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.Client.ClientUpdateProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal 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.Client.ClientUpdateProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal 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.Client.ClientUpdateProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.ClientUpdateProposal 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.Client.ClientUpdateProposal 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;
}
/**
*
* ClientUpdateProposal is a governance proposal. If it passes, the client is
* updated with the provided header. The update may fail if the header is not
* valid given certain conditions specified by the client implementation.
*
*
* Protobuf type {@code ibc.core.client.v1.ClientUpdateProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.ClientUpdateProposal)
ibc.core.client.v1.Client.ClientUpdateProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.ClientUpdateProposal.class, ibc.core.client.v1.Client.ClientUpdateProposal.Builder.class);
}
// Construct using ibc.core.client.v1.Client.ClientUpdateProposal.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();
title_ = "";
description_ = "";
clientId_ = "";
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientUpdateProposal getDefaultInstanceForType() {
return ibc.core.client.v1.Client.ClientUpdateProposal.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientUpdateProposal build() {
ibc.core.client.v1.Client.ClientUpdateProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.ClientUpdateProposal buildPartial() {
ibc.core.client.v1.Client.ClientUpdateProposal result = new ibc.core.client.v1.Client.ClientUpdateProposal(this);
result.title_ = title_;
result.description_ = description_;
result.clientId_ = clientId_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
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.Client.ClientUpdateProposal) {
return mergeFrom((ibc.core.client.v1.Client.ClientUpdateProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.ClientUpdateProposal other) {
if (other == ibc.core.client.v1.Client.ClientUpdateProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
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.Client.ClientUpdateProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.ClientUpdateProposal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object title_ = "";
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* the description of the proposal
*
*
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object clientId_ = "";
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.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;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.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;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string client_id = 3 [(.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 com.google.protobuf.Any header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> headerBuilder_;
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public com.google.protobuf.Any getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.google.protobuf.Any.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public Builder setHeader(com.google.protobuf.Any value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public Builder setHeader(
com.google.protobuf.Any.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public Builder mergeHeader(com.google.protobuf.Any value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
com.google.protobuf.Any.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public com.google.protobuf.Any.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
public com.google.protobuf.AnyOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.google.protobuf.Any.getDefaultInstance() : header_;
}
}
/**
*
* the header used to update the client if the proposal passes
*
*
* .google.protobuf.Any header = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
@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.ClientUpdateProposal)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.ClientUpdateProposal)
private static final ibc.core.client.v1.Client.ClientUpdateProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.ClientUpdateProposal();
}
public static ibc.core.client.v1.Client.ClientUpdateProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientUpdateProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientUpdateProposal(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.Client.ClientUpdateProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HeightOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.Height)
com.google.protobuf.MessageOrBuilder {
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
*/
long getRevisionNumber();
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
*/
long getRevisionHeight();
}
/**
*
* Height is a monotonically increasing data type
* that can be compared against another Height for the purposes of updating and
* freezing clients
* Normally the RevisionHeight is incremented at each height while keeping RevisionNumber
* the same. However some consensus algorithms may choose to reset the
* height in certain conditions e.g. hard forks, state-machine breaking changes
* In these cases, the RevisionNumber is incremented so that height continues to
* be monitonically increasing even as the RevisionHeight gets reset
*
*
* Protobuf type {@code ibc.core.client.v1.Height}
*/
public static final class Height extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.Height)
HeightOrBuilder {
private static final long serialVersionUID = 0L;
// Use Height.newBuilder() to construct.
private Height(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Height() {
revisionNumber_ = 0L;
revisionHeight_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Height(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
revisionNumber_ = input.readUInt64();
break;
}
case 16: {
revisionHeight_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.Height.class, ibc.core.client.v1.Client.Height.Builder.class);
}
public static final int REVISION_NUMBER_FIELD_NUMBER = 1;
private long revisionNumber_;
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
*/
public long getRevisionNumber() {
return revisionNumber_;
}
public static final int REVISION_HEIGHT_FIELD_NUMBER = 2;
private long revisionHeight_;
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
*/
public long getRevisionHeight() {
return revisionHeight_;
}
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 (revisionNumber_ != 0L) {
output.writeUInt64(1, revisionNumber_);
}
if (revisionHeight_ != 0L) {
output.writeUInt64(2, revisionHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (revisionNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, revisionNumber_);
}
if (revisionHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, revisionHeight_);
}
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.Client.Height)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.Height other = (ibc.core.client.v1.Client.Height) obj;
boolean result = true;
result = result && (getRevisionNumber()
== other.getRevisionNumber());
result = result && (getRevisionHeight()
== other.getRevisionHeight());
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) + REVISION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRevisionNumber());
hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRevisionHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.Height parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Height 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.Client.Height parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Height 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.Client.Height parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Height parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.Height parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Height 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.Client.Height parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Height 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.Client.Height parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Height 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.Client.Height 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;
}
/**
*
* Height is a monotonically increasing data type
* that can be compared against another Height for the purposes of updating and
* freezing clients
* Normally the RevisionHeight is incremented at each height while keeping RevisionNumber
* the same. However some consensus algorithms may choose to reset the
* height in certain conditions e.g. hard forks, state-machine breaking changes
* In these cases, the RevisionNumber is incremented so that height continues to
* be monitonically increasing even as the RevisionHeight gets reset
*
*
* Protobuf type {@code ibc.core.client.v1.Height}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.Height)
ibc.core.client.v1.Client.HeightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.Height.class, ibc.core.client.v1.Client.Height.Builder.class);
}
// Construct using ibc.core.client.v1.Client.Height.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();
revisionNumber_ = 0L;
revisionHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.Height getDefaultInstanceForType() {
return ibc.core.client.v1.Client.Height.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.Height build() {
ibc.core.client.v1.Client.Height result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.Height buildPartial() {
ibc.core.client.v1.Client.Height result = new ibc.core.client.v1.Client.Height(this);
result.revisionNumber_ = revisionNumber_;
result.revisionHeight_ = revisionHeight_;
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.Client.Height) {
return mergeFrom((ibc.core.client.v1.Client.Height)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.Height other) {
if (other == ibc.core.client.v1.Client.Height.getDefaultInstance()) return this;
if (other.getRevisionNumber() != 0L) {
setRevisionNumber(other.getRevisionNumber());
}
if (other.getRevisionHeight() != 0L) {
setRevisionHeight(other.getRevisionHeight());
}
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.Client.Height parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.Height) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long revisionNumber_ ;
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
*/
public long getRevisionNumber() {
return revisionNumber_;
}
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
*/
public Builder setRevisionNumber(long value) {
revisionNumber_ = value;
onChanged();
return this;
}
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
*/
public Builder clearRevisionNumber() {
revisionNumber_ = 0L;
onChanged();
return this;
}
private long revisionHeight_ ;
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
*/
public long getRevisionHeight() {
return revisionHeight_;
}
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
*/
public Builder setRevisionHeight(long value) {
revisionHeight_ = value;
onChanged();
return this;
}
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
*/
public Builder clearRevisionHeight() {
revisionHeight_ = 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.Height)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.Height)
private static final ibc.core.client.v1.Client.Height DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.Height();
}
public static ibc.core.client.v1.Client.Height getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Height parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Height(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.Client.Height getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.client.v1.Params)
com.google.protobuf.MessageOrBuilder {
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
java.util.List
getAllowedClientsList();
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
int getAllowedClientsCount();
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
java.lang.String getAllowedClients(int index);
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
com.google.protobuf.ByteString
getAllowedClientsBytes(int index);
}
/**
*
* Params defines the set of IBC light client parameters.
*
*
* Protobuf type {@code ibc.core.client.v1.Params}
*/
public static final class Params extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.client.v1.Params)
ParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Params.newBuilder() to construct.
private Params(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Params() {
allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Params(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
allowedClients_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
allowedClients_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
allowedClients_ = allowedClients_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.Params.class, ibc.core.client.v1.Client.Params.Builder.class);
}
public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList allowedClients_;
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public com.google.protobuf.ProtocolStringList
getAllowedClientsList() {
return allowedClients_;
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public int getAllowedClientsCount() {
return allowedClients_.size();
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public java.lang.String getAllowedClients(int index) {
return allowedClients_.get(index);
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public com.google.protobuf.ByteString
getAllowedClientsBytes(int index) {
return allowedClients_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < allowedClients_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedClients_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < allowedClients_.size(); i++) {
dataSize += computeStringSizeNoTag(allowedClients_.getRaw(i));
}
size += dataSize;
size += 1 * getAllowedClientsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.core.client.v1.Client.Params)) {
return super.equals(obj);
}
ibc.core.client.v1.Client.Params other = (ibc.core.client.v1.Client.Params) obj;
boolean result = true;
result = result && getAllowedClientsList()
.equals(other.getAllowedClientsList());
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 (getAllowedClientsCount() > 0) {
hash = (37 * hash) + ALLOWED_CLIENTS_FIELD_NUMBER;
hash = (53 * hash) + getAllowedClientsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.client.v1.Client.Params parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Params 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.Client.Params parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Params 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.Client.Params parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.client.v1.Client.Params parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.client.v1.Client.Params parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Params parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.core.client.v1.Client.Params parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Params parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.core.client.v1.Client.Params parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.client.v1.Client.Params parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ibc.core.client.v1.Client.Params prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Params defines the set of IBC light client parameters.
*
*
* Protobuf type {@code ibc.core.client.v1.Params}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.client.v1.Params)
ibc.core.client.v1.Client.ParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.client.v1.Client.Params.class, ibc.core.client.v1.Client.Params.Builder.class);
}
// Construct using ibc.core.client.v1.Client.Params.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.client.v1.Client.internal_static_ibc_core_client_v1_Params_descriptor;
}
@java.lang.Override
public ibc.core.client.v1.Client.Params getDefaultInstanceForType() {
return ibc.core.client.v1.Client.Params.getDefaultInstance();
}
@java.lang.Override
public ibc.core.client.v1.Client.Params build() {
ibc.core.client.v1.Client.Params result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.client.v1.Client.Params buildPartial() {
ibc.core.client.v1.Client.Params result = new ibc.core.client.v1.Client.Params(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
allowedClients_ = allowedClients_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.allowedClients_ = allowedClients_;
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.Client.Params) {
return mergeFrom((ibc.core.client.v1.Client.Params)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.client.v1.Client.Params other) {
if (other == ibc.core.client.v1.Client.Params.getDefaultInstance()) return this;
if (!other.allowedClients_.isEmpty()) {
if (allowedClients_.isEmpty()) {
allowedClients_ = other.allowedClients_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAllowedClientsIsMutable();
allowedClients_.addAll(other.allowedClients_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.core.client.v1.Client.Params parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.client.v1.Client.Params) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllowedClientsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
allowedClients_ = new com.google.protobuf.LazyStringArrayList(allowedClients_);
bitField0_ |= 0x00000001;
}
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public com.google.protobuf.ProtocolStringList
getAllowedClientsList() {
return allowedClients_.getUnmodifiableView();
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public int getAllowedClientsCount() {
return allowedClients_.size();
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public java.lang.String getAllowedClients(int index) {
return allowedClients_.get(index);
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public com.google.protobuf.ByteString
getAllowedClientsBytes(int index) {
return allowedClients_.getByteString(index);
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public Builder setAllowedClients(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowedClientsIsMutable();
allowedClients_.set(index, value);
onChanged();
return this;
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public Builder addAllowedClients(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowedClientsIsMutable();
allowedClients_.add(value);
onChanged();
return this;
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public Builder addAllAllowedClients(
java.lang.Iterable values) {
ensureAllowedClientsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allowedClients_);
onChanged();
return this;
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public Builder clearAllowedClients() {
allowedClients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* allowed_clients defines the list of allowed client state types.
*
*
* repeated string allowed_clients = 1 [(.gogoproto.moretags) = "yaml:\"allowed_clients\""];
*/
public Builder addAllowedClientsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAllowedClientsIsMutable();
allowedClients_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.core.client.v1.Params)
}
// @@protoc_insertion_point(class_scope:ibc.core.client.v1.Params)
private static final ibc.core.client.v1.Client.Params DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.client.v1.Client.Params();
}
public static ibc.core.client.v1.Client.Params getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Params parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Params(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ibc.core.client.v1.Client.Params getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_Height_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_Height_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_client_v1_Params_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_client_v1_Params_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\037ibc/core/client/v1/client.proto\022\022ibc.c" +
"ore.client.v1\032\024gogoproto/gogo.proto\032\031goo" +
"gle/protobuf/any.proto\"\205\001\n\025IdentifiedCli" +
"entState\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"c" +
"lient_id\"\022C\n\014client_state\030\002 \001(\0132\024.google" +
".protobuf.AnyB\027\362\336\037\023yaml:\"client_state\"\"\226" +
"\001\n\030ConsensusStateWithHeight\0220\n\006height\030\001 " +
"\001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000\022H\n" +
"\017consensus_state\030\002 \001(\0132\024.google.protobuf" +
".AnyB\031\362\336\037\025yaml\"consensus_state\"\"\251\001\n\025Clie" +
"ntConsensusStates\022\'\n\tclient_id\030\001 \001(\tB\024\362\336" +
"\037\020yaml:\"client_id\"\022g\n\020consensus_states\030\002" +
" \003(\0132,.ibc.core.client.v1.ConsensusState" +
"WithHeightB\037\362\336\037\027yaml:\"consensus_states\"\310" +
"\336\037\000\"\217\001\n\024ClientUpdateProposal\022\r\n\005title\030\001 " +
"\001(\t\022\023\n\013description\030\002 \001(\t\022\'\n\tclient_id\030\003 " +
"\001(\tB\024\362\336\037\020yaml:\"client_id\"\022$\n\006header\030\004 \001(" +
"\0132\024.google.protobuf.Any:\004\210\240\037\000\"|\n\006Height\022" +
"3\n\017revision_number\030\001 \001(\004B\032\362\336\037\026yaml:\"revi" +
"sion_number\"\0223\n\017revision_height\030\002 \001(\004B\032\362" +
"\336\037\026yaml:\"revision_height\":\010\210\240\037\000\230\240\037\000\"=\n\006P" +
"arams\0223\n\017allowed_clients\030\001 \003(\tB\032\362\336\037\026yaml" +
":\"allowed_clients\"B9Z7github.com/cosmos/" +
"cosmos-sdk/x/ibc/core/02-client/typesb\006p" +
"roto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
}, assigner);
internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_core_client_v1_IdentifiedClientState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_IdentifiedClientState_descriptor,
new java.lang.String[] { "ClientId", "ClientState", });
internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_ConsensusStateWithHeight_descriptor,
new java.lang.String[] { "Height", "ConsensusState", });
internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ibc_core_client_v1_ClientConsensusStates_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_ClientConsensusStates_descriptor,
new java.lang.String[] { "ClientId", "ConsensusStates", });
internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_ibc_core_client_v1_ClientUpdateProposal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_ClientUpdateProposal_descriptor,
new java.lang.String[] { "Title", "Description", "ClientId", "Header", });
internal_static_ibc_core_client_v1_Height_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_ibc_core_client_v1_Height_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_Height_descriptor,
new java.lang.String[] { "RevisionNumber", "RevisionHeight", });
internal_static_ibc_core_client_v1_Params_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ibc_core_client_v1_Params_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_client_v1_Params_descriptor,
new java.lang.String[] { "AllowedClients", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.goprotoStringer);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}