proto.tibc.core.client.v1.Client Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irita-sdk Show documentation
Show all versions of irita-sdk Show documentation
Irita open alliance chain SDK (java)
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tibc/core/client/v1/client.proto
package proto.tibc.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:tibc.core.client.v1.IdentifiedClientState)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
}
/**
*
* IdentifiedClientState defines a client state with an additional client
* identifier field.
*
*
* Protobuf type {@code tibc.core.client.v1.IdentifiedClientState}
*/
public static final class IdentifiedClientState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.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() {
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdentifiedClientState();
}
@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();
}
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();
chainName_ = 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 (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.IdentifiedClientState.class, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = 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;
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
*/
@java.lang.Override
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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
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 (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
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 proto.tibc.core.client.v1.Client.IdentifiedClientState)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.IdentifiedClientState other = (proto.tibc.core.client.v1.Client.IdentifiedClientState) obj;
if (!getChainName()
.equals(other.getChainName())) return false;
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().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 proto.tibc.core.client.v1.Client.IdentifiedClientState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.IdentifiedClientState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.IdentifiedClientState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.IdentifiedClientState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.IdentifiedClientState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.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 proto.tibc.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(proto.tibc.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 tibc.core.client.v1.IdentifiedClientState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.IdentifiedClientState)
proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.IdentifiedClientState.class, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder.class);
}
// Construct using proto.tibc.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();
chainName_ = "";
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedClientState getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedClientState build() {
proto.tibc.core.client.v1.Client.IdentifiedClientState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedClientState buildPartial() {
proto.tibc.core.client.v1.Client.IdentifiedClientState result = new proto.tibc.core.client.v1.Client.IdentifiedClientState(this);
result.chainName_ = chainName_;
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.IdentifiedClientState) {
return mergeFrom((proto.tibc.core.client.v1.Client.IdentifiedClientState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.IdentifiedClientState other) {
if (other == proto.tibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
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 {
proto.tibc.core.client.v1.Client.IdentifiedClientState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.IdentifiedClientState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any clientState_;
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;
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
* @return The clientState.
*/
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;
*/
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;
*/
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;
*/
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;
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 2;
*/
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;
*/
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.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.IdentifiedClientState)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.IdentifiedClientState)
private static final proto.tibc.core.client.v1.Client.IdentifiedClientState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.IdentifiedClientState();
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.IdentifiedClientState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifiedRelayersOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.IdentifiedRelayers)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return A list containing the relayers.
*/
java.util.List
getRelayersList();
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return The count of relayers.
*/
int getRelayersCount();
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
java.lang.String getRelayers(int index);
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
com.google.protobuf.ByteString
getRelayersBytes(int index);
}
/**
*
* IdentifiedRelayer defines a list of authorized relayers for the specified
* client.
*
*
* Protobuf type {@code tibc.core.client.v1.IdentifiedRelayers}
*/
public static final class IdentifiedRelayers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.IdentifiedRelayers)
IdentifiedRelayersOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedRelayers.newBuilder() to construct.
private IdentifiedRelayers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedRelayers() {
chainName_ = "";
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdentifiedRelayers();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentifiedRelayers(
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();
chainName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
relayers_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
relayers_ = relayers_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedRelayers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.IdentifiedRelayers.class, proto.tibc.core.client.v1.Client.IdentifiedRelayers.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELAYERS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList relayers_;
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_;
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.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 {
if (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
for (int i = 0; i < relayers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, relayers_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
{
int dataSize = 0;
for (int i = 0; i < relayers_.size(); i++) {
dataSize += computeStringSizeNoTag(relayers_.getRaw(i));
}
size += dataSize;
size += 1 * getRelayersList().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 proto.tibc.core.client.v1.Client.IdentifiedRelayers)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.IdentifiedRelayers other = (proto.tibc.core.client.v1.Client.IdentifiedRelayers) obj;
if (!getChainName()
.equals(other.getChainName())) return false;
if (!getRelayersList()
.equals(other.getRelayersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
if (getRelayersCount() > 0) {
hash = (37 * hash) + RELAYERS_FIELD_NUMBER;
hash = (53 * hash) + getRelayersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(proto.tibc.core.client.v1.Client.IdentifiedRelayers 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;
}
/**
*
* IdentifiedRelayer defines a list of authorized relayers for the specified
* client.
*
*
* Protobuf type {@code tibc.core.client.v1.IdentifiedRelayers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.IdentifiedRelayers)
proto.tibc.core.client.v1.Client.IdentifiedRelayersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedRelayers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.IdentifiedRelayers.class, proto.tibc.core.client.v1.Client.IdentifiedRelayers.Builder.class);
}
// Construct using proto.tibc.core.client.v1.Client.IdentifiedRelayers.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();
chainName_ = "";
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedRelayers getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.IdentifiedRelayers.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedRelayers build() {
proto.tibc.core.client.v1.Client.IdentifiedRelayers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedRelayers buildPartial() {
proto.tibc.core.client.v1.Client.IdentifiedRelayers result = new proto.tibc.core.client.v1.Client.IdentifiedRelayers(this);
int from_bitField0_ = bitField0_;
result.chainName_ = chainName_;
if (((bitField0_ & 0x00000001) != 0)) {
relayers_ = relayers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.relayers_ = relayers_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.IdentifiedRelayers) {
return mergeFrom((proto.tibc.core.client.v1.Client.IdentifiedRelayers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.IdentifiedRelayers other) {
if (other == proto.tibc.core.client.v1.Client.IdentifiedRelayers.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (!other.relayers_.isEmpty()) {
if (relayers_.isEmpty()) {
relayers_ = other.relayers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRelayersIsMutable();
relayers_.addAll(other.relayers_);
}
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 {
proto.tibc.core.client.v1.Client.IdentifiedRelayers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.IdentifiedRelayers) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRelayersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList(relayers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_.getUnmodifiableView();
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.getByteString(index);
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param index The index to set the value at.
* @param value The relayers to set.
* @return This builder for chaining.
*/
public Builder setRelayers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.set(index, value);
onChanged();
return this;
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param value The relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param values The relayers to add.
* @return This builder for chaining.
*/
public Builder addAllRelayers(
java.lang.Iterable values) {
ensureRelayersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relayers_);
onChanged();
return this;
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @return This builder for chaining.
*/
public Builder clearRelayers() {
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* authorized relayer list
*
*
* repeated string relayers = 2;
* @param value The bytes of the relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.IdentifiedRelayers)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.IdentifiedRelayers)
private static final proto.tibc.core.client.v1.Client.IdentifiedRelayers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.IdentifiedRelayers();
}
public static proto.tibc.core.client.v1.Client.IdentifiedRelayers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedRelayers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentifiedRelayers(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedRelayers getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsensusStateWithHeightOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.ConsensusStateWithHeight)
com.google.protobuf.MessageOrBuilder {
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
boolean hasHeight();
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return The height.
*/
proto.tibc.core.client.v1.Client.Height getHeight();
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
* @return Whether the consensusState field is set.
*/
boolean hasConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
* @return The consensusState.
*/
com.google.protobuf.Any getConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
*/
com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder();
}
/**
*
* ConsensusStateWithHeight defines a consensus state with an additional height
* field.
*
*
* Protobuf type {@code tibc.core.client.v1.ConsensusStateWithHeight}
*/
public static final class ConsensusStateWithHeight extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new 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();
}
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: {
proto.tibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (height_ != null) {
subBuilder = height_.toBuilder();
}
height_ = input.readMessage(proto.tibc.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 (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.class, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private proto.tibc.core.client.v1.Client.Height height_;
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
@java.lang.Override
public boolean hasHeight() {
return height_ != null;
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return The height.
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height getHeight() {
return height_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.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;
* @return Whether the consensusState field is set.
*/
@java.lang.Override
public boolean hasConsensusState() {
return consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
* @return The consensusState.
*/
@java.lang.Override
public com.google.protobuf.Any getConsensusState() {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
*/
@java.lang.Override
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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight other = (proto.tibc.core.client.v1.Client.ConsensusStateWithHeight) obj;
if (hasHeight() != other.hasHeight()) return false;
if (hasHeight()) {
if (!getHeight()
.equals(other.getHeight())) return false;
}
if (hasConsensusState() != other.hasConsensusState()) return false;
if (hasConsensusState()) {
if (!getConsensusState()
.equals(other.getConsensusState())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.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 proto.tibc.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(proto.tibc.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 tibc.core.client.v1.ConsensusStateWithHeight}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.ConsensusStateWithHeight)
proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.class, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder.class);
}
// Construct using proto.tibc.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 proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight build() {
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight buildPartial() {
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight result = new proto.tibc.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 super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.ConsensusStateWithHeight) {
return mergeFrom((proto.tibc.core.client.v1.Client.ConsensusStateWithHeight)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.ConsensusStateWithHeight other) {
if (other == proto.tibc.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 {
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.ConsensusStateWithHeight) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private proto.tibc.core.client.v1.Client.Height height_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder> heightBuilder_;
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
public boolean hasHeight() {
return heightBuilder_ != null || height_ != null;
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return The height.
*/
public proto.tibc.core.client.v1.Client.Height getHeight() {
if (heightBuilder_ == null) {
return height_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
} else {
return heightBuilder_.getMessage();
}
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeight(proto.tibc.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
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeight(
proto.tibc.core.client.v1.Client.Height.Builder builderForValue) {
if (heightBuilder_ == null) {
height_ = builderForValue.build();
onChanged();
} else {
heightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeHeight(proto.tibc.core.client.v1.Client.Height value) {
if (heightBuilder_ == null) {
if (height_ != null) {
height_ =
proto.tibc.core.client.v1.Client.Height.newBuilder(height_).mergeFrom(value).buildPartial();
} else {
height_ = value;
}
onChanged();
} else {
heightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* consensus state height
*
*
* .tibc.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
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getHeightBuilder() {
onChanged();
return getHeightFieldBuilder().getBuilder();
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder() {
if (heightBuilder_ != null) {
return heightBuilder_.getMessageOrBuilder();
} else {
return height_ == null ?
proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : height_;
}
}
/**
*
* consensus state height
*
*
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>
getHeightFieldBuilder() {
if (heightBuilder_ == null) {
heightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>(
getHeight(),
getParentForChildren(),
isClean());
height_ = null;
}
return heightBuilder_;
}
private com.google.protobuf.Any consensusState_;
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;
* @return Whether the consensusState field is set.
*/
public boolean hasConsensusState() {
return consensusStateBuilder_ != null || consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
* @return The consensusState.
*/
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;
*/
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;
*/
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;
*/
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;
*/
public Builder clearConsensusState() {
if (consensusStateBuilder_ == null) {
consensusState_ = null;
onChanged();
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
*/
public com.google.protobuf.Any.Builder getConsensusStateBuilder() {
onChanged();
return getConsensusStateFieldBuilder().getBuilder();
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 2;
*/
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;
*/
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.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.ConsensusStateWithHeight)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.ConsensusStateWithHeight)
private static final proto.tibc.core.client.v1.Client.ConsensusStateWithHeight DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.ConsensusStateWithHeight();
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientConsensusStatesOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.ClientConsensusStates)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
java.util.List
getConsensusStatesList();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index);
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
int getConsensusStatesCount();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
java.util.List extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList();
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index);
}
/**
*
* ClientConsensusStates defines all the stored consensus states for a given
* client.
*
*
* Protobuf type {@code tibc.core.client.v1.ClientConsensusStates}
*/
public static final class ClientConsensusStates extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.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() {
chainName_ = "";
consensusStates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientConsensusStates();
}
@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();
chainName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
consensusStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
consensusStates_.add(
input.readMessage(proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ClientConsensusStates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.ClientConsensusStates.class, proto.tibc.core.client.v1.Client.ClientConsensusStates.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = 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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getConsensusStatesList() {
return consensusStates_;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList() {
return consensusStates_;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getConsensusStatesCount() {
return consensusStates_.size();
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) {
return consensusStates_.get(index);
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
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 (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
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 proto.tibc.core.client.v1.Client.ClientConsensusStates)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.ClientConsensusStates other = (proto.tibc.core.client.v1.Client.ClientConsensusStates) obj;
if (!getChainName()
.equals(other.getChainName())) return false;
if (!getConsensusStatesList()
.equals(other.getConsensusStatesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().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 proto.tibc.core.client.v1.Client.ClientConsensusStates parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ClientConsensusStates parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ClientConsensusStates parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ClientConsensusStates parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ClientConsensusStates parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.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 proto.tibc.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(proto.tibc.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 tibc.core.client.v1.ClientConsensusStates}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.ClientConsensusStates)
proto.tibc.core.client.v1.Client.ClientConsensusStatesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ClientConsensusStates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.ClientConsensusStates.class, proto.tibc.core.client.v1.Client.ClientConsensusStates.Builder.class);
}
// Construct using proto.tibc.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();
chainName_ = "";
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
consensusStatesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ClientConsensusStates getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ClientConsensusStates build() {
proto.tibc.core.client.v1.Client.ClientConsensusStates result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.ClientConsensusStates buildPartial() {
proto.tibc.core.client.v1.Client.ClientConsensusStates result = new proto.tibc.core.client.v1.Client.ClientConsensusStates(this);
int from_bitField0_ = bitField0_;
result.chainName_ = chainName_;
if (consensusStatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.consensusStates_ = consensusStates_;
} else {
result.consensusStates_ = consensusStatesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.ClientConsensusStates) {
return mergeFrom((proto.tibc.core.client.v1.Client.ClientConsensusStates)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.ClientConsensusStates other) {
if (other == proto.tibc.core.client.v1.Client.ClientConsensusStates.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (consensusStatesBuilder_ == null) {
if (!other.consensusStates_.isEmpty()) {
if (consensusStates_.isEmpty()) {
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConsensusStatesIsMutable();
consensusStates_.addAll(other.consensusStates_);
}
onChanged();
}
} else {
if (!other.consensusStates_.isEmpty()) {
if (consensusStatesBuilder_.isEmpty()) {
consensusStatesBuilder_.dispose();
consensusStatesBuilder_ = null;
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000001);
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 {
proto.tibc.core.client.v1.Client.ClientConsensusStates parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.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 chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private java.util.List consensusStates_ =
java.util.Collections.emptyList();
private void ensureConsensusStatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
consensusStates_ = new java.util.ArrayList(consensusStates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_;
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public int getConsensusStatesCount() {
if (consensusStatesBuilder_ == null) {
return consensusStates_.size();
} else {
return consensusStatesBuilder_.getCount();
}
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder setConsensusStates(
int index, proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder setConsensusStates(
int index, proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
int index, proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
int index, proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder addAllConsensusStates(
java.lang.Iterable extends proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearConsensusStates() {
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
consensusStatesBuilder_.clear();
}
return this;
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder getConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().getBuilder(index);
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List extends proto.tibc.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 .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() {
return getConsensusStatesFieldBuilder().addBuilder(
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().addBuilder(
index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states and their heights associated with the client
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List
getConsensusStatesBuilderList() {
return getConsensusStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesFieldBuilder() {
if (consensusStatesBuilder_ == null) {
consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>(
consensusStates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
consensusStates_ = null;
}
return consensusStatesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.ClientConsensusStates)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.ClientConsensusStates)
private static final proto.tibc.core.client.v1.Client.ClientConsensusStates DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.ClientConsensusStates();
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.ClientConsensusStates getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateClientProposalOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.CreateClientProposal)
com.google.protobuf.MessageOrBuilder {
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return Whether the consensusState field is set.
*/
boolean hasConsensusState();
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
com.google.protobuf.Any getConsensusState();
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder();
}
/**
*
* CreateClientProposal defines a overnance proposal to create an TIBC client
*
*
* Protobuf type {@code tibc.core.client.v1.CreateClientProposal}
*/
public static final class CreateClientProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.CreateClientProposal)
CreateClientProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClientProposal.newBuilder() to construct.
private CreateClientProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateClientProposal() {
title_ = "";
description_ = "";
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClientProposal();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateClientProposal(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
break;
}
case 34: {
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;
}
case 42: {
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 (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_CreateClientProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_CreateClientProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.CreateClientProposal.class, proto.tibc.core.client.v1.Client.CreateClientProposal.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;
* @return The title.
*/
@java.lang.Override
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;
* @return The bytes for title.
*/
@java.lang.Override
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;
* @return The description.
*/
@java.lang.Override
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;
* @return The bytes for description.
*/
@java.lang.Override
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 CHAIN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object chainName_;
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_STATE_FIELD_NUMBER = 4;
private com.google.protobuf.Any clientState_;
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
public static final int CONSENSUS_STATE_FIELD_NUMBER = 5;
private com.google.protobuf.Any consensusState_;
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return Whether the consensusState field is set.
*/
@java.lang.Override
public boolean hasConsensusState() {
return consensusState_ != null;
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
@java.lang.Override
public com.google.protobuf.Any getConsensusState() {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
@java.lang.Override
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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainName_);
}
if (clientState_ != null) {
output.writeMessage(4, getClientState());
}
if (consensusState_ != null) {
output.writeMessage(5, getConsensusState());
}
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 (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainName_);
}
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getClientState());
}
if (consensusState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, 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 proto.tibc.core.client.v1.Client.CreateClientProposal)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.CreateClientProposal other = (proto.tibc.core.client.v1.Client.CreateClientProposal) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getChainName()
.equals(other.getChainName())) return false;
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (hasConsensusState() != other.hasConsensusState()) return false;
if (hasConsensusState()) {
if (!getConsensusState()
.equals(other.getConsensusState())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
if (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().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 proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(proto.tibc.core.client.v1.Client.CreateClientProposal 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;
}
/**
*
* CreateClientProposal defines a overnance proposal to create an TIBC client
*
*
* Protobuf type {@code tibc.core.client.v1.CreateClientProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.CreateClientProposal)
proto.tibc.core.client.v1.Client.CreateClientProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_CreateClientProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_CreateClientProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.CreateClientProposal.class, proto.tibc.core.client.v1.Client.CreateClientProposal.Builder.class);
}
// Construct using proto.tibc.core.client.v1.Client.CreateClientProposal.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_ = "";
chainName_ = "";
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
if (consensusStateBuilder_ == null) {
consensusState_ = null;
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_CreateClientProposal_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.CreateClientProposal getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.CreateClientProposal.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.CreateClientProposal build() {
proto.tibc.core.client.v1.Client.CreateClientProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.CreateClientProposal buildPartial() {
proto.tibc.core.client.v1.Client.CreateClientProposal result = new proto.tibc.core.client.v1.Client.CreateClientProposal(this);
result.title_ = title_;
result.description_ = description_;
result.chainName_ = chainName_;
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
if (consensusStateBuilder_ == null) {
result.consensusState_ = consensusState_;
} else {
result.consensusState_ = consensusStateBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.CreateClientProposal) {
return mergeFrom((proto.tibc.core.client.v1.Client.CreateClientProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.CreateClientProposal other) {
if (other == proto.tibc.core.client.v1.Client.CreateClientProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
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 {
proto.tibc.core.client.v1.Client.CreateClientProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.CreateClientProposal) 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;
* @return The title.
*/
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;
* @return The bytes for title.
*/
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;
* @param value The title to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
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;
* @return The description.
*/
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;
* @return The bytes for description.
*/
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;
* @param value The description to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* the description of the proposal
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
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 chainName_ = "";
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any clientState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_;
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
public com.google.protobuf.Any getClientState() {
if (clientStateBuilder_ == null) {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
} else {
return clientStateBuilder_.getMessage();
}
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
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;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
public Builder setClientState(
com.google.protobuf.Any.Builder builderForValue) {
if (clientStateBuilder_ == null) {
clientState_ = builderForValue.build();
onChanged();
} else {
clientStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
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;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
if (clientStateBuilder_ != null) {
return clientStateBuilder_.getMessageOrBuilder();
} else {
return clientState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
}
/**
*
* light client state
*
*
* .google.protobuf.Any client_state = 4;
*/
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_;
}
private com.google.protobuf.Any consensusState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_;
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return Whether the consensusState field is set.
*/
public boolean hasConsensusState() {
return consensusStateBuilder_ != null || consensusState_ != null;
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
public com.google.protobuf.Any getConsensusState() {
if (consensusStateBuilder_ == null) {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
} else {
return consensusStateBuilder_.getMessage();
}
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
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 associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
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 associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
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 associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
public Builder clearConsensusState() {
if (consensusStateBuilder_ == null) {
consensusState_ = null;
onChanged();
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
public com.google.protobuf.Any.Builder getConsensusStateBuilder() {
onChanged();
return getConsensusStateFieldBuilder().getBuilder();
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() {
if (consensusStateBuilder_ != null) {
return consensusStateBuilder_.getMessageOrBuilder();
} else {
return consensusState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
}
/**
*
* consensus state associated with the client that corresponds to a given
* height.
*
*
* .google.protobuf.Any consensus_state = 5;
*/
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.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.CreateClientProposal)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.CreateClientProposal)
private static final proto.tibc.core.client.v1.Client.CreateClientProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.CreateClientProposal();
}
public static proto.tibc.core.client.v1.Client.CreateClientProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateClientProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateClientProposal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.CreateClientProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpgradeClientProposalOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.UpgradeClientProposal)
com.google.protobuf.MessageOrBuilder {
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
* @return Whether the consensusState field is set.
*/
boolean hasConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
com.google.protobuf.Any getConsensusState();
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
*/
com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder();
}
/**
*
* UpgradeClientProposal defines a overnance proposal to overide an TIBC client
* state
*
*
* Protobuf type {@code tibc.core.client.v1.UpgradeClientProposal}
*/
public static final class UpgradeClientProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.UpgradeClientProposal)
UpgradeClientProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpgradeClientProposal.newBuilder() to construct.
private UpgradeClientProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpgradeClientProposal() {
title_ = "";
description_ = "";
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpgradeClientProposal();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpgradeClientProposal(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
break;
}
case 34: {
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;
}
case 42: {
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 (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_UpgradeClientProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.UpgradeClientProposal.class, proto.tibc.core.client.v1.Client.UpgradeClientProposal.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;
* @return The title.
*/
@java.lang.Override
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;
* @return The bytes for title.
*/
@java.lang.Override
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;
* @return The description.
*/
@java.lang.Override
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;
* @return The bytes for description.
*/
@java.lang.Override
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 CHAIN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object chainName_;
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_STATE_FIELD_NUMBER = 4;
private com.google.protobuf.Any clientState_;
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
public static final int CONSENSUS_STATE_FIELD_NUMBER = 5;
private com.google.protobuf.Any consensusState_;
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
* @return Whether the consensusState field is set.
*/
@java.lang.Override
public boolean hasConsensusState() {
return consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
@java.lang.Override
public com.google.protobuf.Any getConsensusState() {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
*/
@java.lang.Override
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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainName_);
}
if (clientState_ != null) {
output.writeMessage(4, getClientState());
}
if (consensusState_ != null) {
output.writeMessage(5, getConsensusState());
}
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 (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainName_);
}
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getClientState());
}
if (consensusState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, 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 proto.tibc.core.client.v1.Client.UpgradeClientProposal)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.UpgradeClientProposal other = (proto.tibc.core.client.v1.Client.UpgradeClientProposal) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getChainName()
.equals(other.getChainName())) return false;
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (hasConsensusState() != other.hasConsensusState()) return false;
if (hasConsensusState()) {
if (!getConsensusState()
.equals(other.getConsensusState())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
if (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().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 proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(proto.tibc.core.client.v1.Client.UpgradeClientProposal 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;
}
/**
*
* UpgradeClientProposal defines a overnance proposal to overide an TIBC client
* state
*
*
* Protobuf type {@code tibc.core.client.v1.UpgradeClientProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.UpgradeClientProposal)
proto.tibc.core.client.v1.Client.UpgradeClientProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_UpgradeClientProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.UpgradeClientProposal.class, proto.tibc.core.client.v1.Client.UpgradeClientProposal.Builder.class);
}
// Construct using proto.tibc.core.client.v1.Client.UpgradeClientProposal.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_ = "";
chainName_ = "";
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
if (consensusStateBuilder_ == null) {
consensusState_ = null;
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.UpgradeClientProposal getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.UpgradeClientProposal.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.UpgradeClientProposal build() {
proto.tibc.core.client.v1.Client.UpgradeClientProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.UpgradeClientProposal buildPartial() {
proto.tibc.core.client.v1.Client.UpgradeClientProposal result = new proto.tibc.core.client.v1.Client.UpgradeClientProposal(this);
result.title_ = title_;
result.description_ = description_;
result.chainName_ = chainName_;
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
if (consensusStateBuilder_ == null) {
result.consensusState_ = consensusState_;
} else {
result.consensusState_ = consensusStateBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.UpgradeClientProposal) {
return mergeFrom((proto.tibc.core.client.v1.Client.UpgradeClientProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.UpgradeClientProposal other) {
if (other == proto.tibc.core.client.v1.Client.UpgradeClientProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
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 {
proto.tibc.core.client.v1.Client.UpgradeClientProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.UpgradeClientProposal) 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;
* @return The title.
*/
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;
* @return The bytes for title.
*/
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;
* @param value The title to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
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;
* @return The description.
*/
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;
* @return The bytes for description.
*/
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;
* @param value The description to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* the description of the proposal
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
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 chainName_ = "";
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any clientState_;
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 = 4;
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
* @return The clientState.
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
*
* client state
*
*
* .google.protobuf.Any client_state = 4;
*/
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 = 4;
*/
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_;
}
private com.google.protobuf.Any consensusState_;
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 = 5;
* @return Whether the consensusState field is set.
*/
public boolean hasConsensusState() {
return consensusStateBuilder_ != null || consensusState_ != null;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
* @return The consensusState.
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
public Builder clearConsensusState() {
if (consensusStateBuilder_ == null) {
consensusState_ = null;
onChanged();
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
*/
public com.google.protobuf.Any.Builder getConsensusStateBuilder() {
onChanged();
return getConsensusStateFieldBuilder().getBuilder();
}
/**
*
* consensus state
*
*
* .google.protobuf.Any consensus_state = 5;
*/
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 = 5;
*/
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.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.UpgradeClientProposal)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.UpgradeClientProposal)
private static final proto.tibc.core.client.v1.Client.UpgradeClientProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.UpgradeClientProposal();
}
public static proto.tibc.core.client.v1.Client.UpgradeClientProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpgradeClientProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpgradeClientProposal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.UpgradeClientProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterRelayerProposalOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.RegisterRelayerProposal)
com.google.protobuf.MessageOrBuilder {
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* the description of the proposal
*
*
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return A list containing the relayers.
*/
java.util.List
getRelayersList();
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return The count of relayers.
*/
int getRelayersCount();
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
java.lang.String getRelayers(int index);
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
com.google.protobuf.ByteString
getRelayersBytes(int index);
}
/**
*
* RegisterRelayerProposal defines a overnance proposal to register some
* relayers for updating a client state.
*
*
* Protobuf type {@code tibc.core.client.v1.RegisterRelayerProposal}
*/
public static final class RegisterRelayerProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.RegisterRelayerProposal)
RegisterRelayerProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterRelayerProposal.newBuilder() to construct.
private RegisterRelayerProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegisterRelayerProposal() {
title_ = "";
description_ = "";
chainName_ = "";
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegisterRelayerProposal();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterRelayerProposal(
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();
chainName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
relayers_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
relayers_ = relayers_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_RegisterRelayerProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.RegisterRelayerProposal.class, proto.tibc.core.client.v1.Client.RegisterRelayerProposal.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;
* @return The title.
*/
@java.lang.Override
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;
* @return The bytes for title.
*/
@java.lang.Override
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;
* @return The description.
*/
@java.lang.Override
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;
* @return The bytes for description.
*/
@java.lang.Override
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 CHAIN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object chainName_;
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
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();
chainName_ = s;
return s;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELAYERS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList relayers_;
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_;
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.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 {
if (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainName_);
}
for (int i = 0; i < relayers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, relayers_.getRaw(i));
}
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 (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainName_);
}
{
int dataSize = 0;
for (int i = 0; i < relayers_.size(); i++) {
dataSize += computeStringSizeNoTag(relayers_.getRaw(i));
}
size += dataSize;
size += 1 * getRelayersList().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 proto.tibc.core.client.v1.Client.RegisterRelayerProposal)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.RegisterRelayerProposal other = (proto.tibc.core.client.v1.Client.RegisterRelayerProposal) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getChainName()
.equals(other.getChainName())) return false;
if (!getRelayersList()
.equals(other.getRelayersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
if (getRelayersCount() > 0) {
hash = (37 * hash) + RELAYERS_FIELD_NUMBER;
hash = (53 * hash) + getRelayersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(proto.tibc.core.client.v1.Client.RegisterRelayerProposal 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;
}
/**
*
* RegisterRelayerProposal defines a overnance proposal to register some
* relayers for updating a client state.
*
*
* Protobuf type {@code tibc.core.client.v1.RegisterRelayerProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.RegisterRelayerProposal)
proto.tibc.core.client.v1.Client.RegisterRelayerProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_RegisterRelayerProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.RegisterRelayerProposal.class, proto.tibc.core.client.v1.Client.RegisterRelayerProposal.Builder.class);
}
// Construct using proto.tibc.core.client.v1.Client.RegisterRelayerProposal.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_ = "";
chainName_ = "";
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.RegisterRelayerProposal getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.RegisterRelayerProposal.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.RegisterRelayerProposal build() {
proto.tibc.core.client.v1.Client.RegisterRelayerProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.RegisterRelayerProposal buildPartial() {
proto.tibc.core.client.v1.Client.RegisterRelayerProposal result = new proto.tibc.core.client.v1.Client.RegisterRelayerProposal(this);
int from_bitField0_ = bitField0_;
result.title_ = title_;
result.description_ = description_;
result.chainName_ = chainName_;
if (((bitField0_ & 0x00000001) != 0)) {
relayers_ = relayers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.relayers_ = relayers_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.RegisterRelayerProposal) {
return mergeFrom((proto.tibc.core.client.v1.Client.RegisterRelayerProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.RegisterRelayerProposal other) {
if (other == proto.tibc.core.client.v1.Client.RegisterRelayerProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (!other.relayers_.isEmpty()) {
if (relayers_.isEmpty()) {
relayers_ = other.relayers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRelayersIsMutable();
relayers_.addAll(other.relayers_);
}
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 {
proto.tibc.core.client.v1.Client.RegisterRelayerProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.Client.RegisterRelayerProposal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object title_ = "";
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @return The title.
*/
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;
* @return The bytes for title.
*/
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;
* @param value The title to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* the title of the update proposal
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
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;
* @return The description.
*/
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;
* @return The bytes for description.
*/
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;
* @param value The description to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* the description of the proposal
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
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 chainName_ = "";
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* the client identifier for the client to be updated if the proposal passes
*
*
* string chain_name = 3;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRelayersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList(relayers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_.getUnmodifiableView();
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.getByteString(index);
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param index The index to set the value at.
* @param value The relayers to set.
* @return This builder for chaining.
*/
public Builder setRelayers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.set(index, value);
onChanged();
return this;
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param value The relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param values The relayers to add.
* @return This builder for chaining.
*/
public Builder addAllRelayers(
java.lang.Iterable values) {
ensureRelayersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relayers_);
onChanged();
return this;
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @return This builder for chaining.
*/
public Builder clearRelayers() {
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* relayer address list
*
*
* repeated string relayers = 4;
* @param value The bytes of the relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.RegisterRelayerProposal)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.RegisterRelayerProposal)
private static final proto.tibc.core.client.v1.Client.RegisterRelayerProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.RegisterRelayerProposal();
}
public static proto.tibc.core.client.v1.Client.RegisterRelayerProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegisterRelayerProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegisterRelayerProposal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.RegisterRelayerProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HeightOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.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\""];
* @return The revisionNumber.
*/
long getRevisionNumber();
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
* @return The revisionHeight.
*/
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 tibc.core.client.v1.Height}
*/
public static final class Height extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.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() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Height();
}
@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();
}
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 (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_Height_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.Height.class, proto.tibc.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\""];
* @return The revisionNumber.
*/
@java.lang.Override
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\""];
* @return The revisionHeight.
*/
@java.lang.Override
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 proto.tibc.core.client.v1.Client.Height)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.Client.Height other = (proto.tibc.core.client.v1.Client.Height) obj;
if (getRevisionNumber()
!= other.getRevisionNumber()) return false;
if (getRevisionHeight()
!= other.getRevisionHeight()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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 proto.tibc.core.client.v1.Client.Height parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.Height parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.Height parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.Height parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.Height parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.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 proto.tibc.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 proto.tibc.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(proto.tibc.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 tibc.core.client.v1.Height}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.Height)
proto.tibc.core.client.v1.Client.HeightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_Height_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.Client.Height.class, proto.tibc.core.client.v1.Client.Height.Builder.class);
}
// Construct using proto.tibc.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 proto.tibc.core.client.v1.Client.internal_static_tibc_core_client_v1_Height_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height getDefaultInstanceForType() {
return proto.tibc.core.client.v1.Client.Height.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height build() {
proto.tibc.core.client.v1.Client.Height result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height buildPartial() {
proto.tibc.core.client.v1.Client.Height result = new proto.tibc.core.client.v1.Client.Height(this);
result.revisionNumber_ = revisionNumber_;
result.revisionHeight_ = revisionHeight_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof proto.tibc.core.client.v1.Client.Height) {
return mergeFrom((proto.tibc.core.client.v1.Client.Height)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.Client.Height other) {
if (other == proto.tibc.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 {
proto.tibc.core.client.v1.Client.Height parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.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\""];
* @return The revisionNumber.
*/
@java.lang.Override
public long getRevisionNumber() {
return revisionNumber_;
}
/**
*
* the revision that the client is currently on
*
*
* uint64 revision_number = 1 [(.gogoproto.moretags) = "yaml:\"revision_number\""];
* @param value The revisionNumber to set.
* @return This builder for chaining.
*/
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\""];
* @return This builder for chaining.
*/
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\""];
* @return The revisionHeight.
*/
@java.lang.Override
public long getRevisionHeight() {
return revisionHeight_;
}
/**
*
* the height within the given revision
*
*
* uint64 revision_height = 2 [(.gogoproto.moretags) = "yaml:\"revision_height\""];
* @param value The revisionHeight to set.
* @return This builder for chaining.
*/
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\""];
* @return This builder for chaining.
*/
public Builder clearRevisionHeight() {
revisionHeight_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tibc.core.client.v1.Height)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.Height)
private static final proto.tibc.core.client.v1.Client.Height DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.Client.Height();
}
public static proto.tibc.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 proto.tibc.core.client.v1.Client.Height getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_IdentifiedClientState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_IdentifiedRelayers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_ClientConsensusStates_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_CreateClientProposal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_CreateClientProposal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_UpgradeClientProposal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_RegisterRelayerProposal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_Height_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_Height_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 tibc/core/client/v1/client.proto\022\023tibc" +
".core.client.v1\032\024gogoproto/gogo.proto\032\031g" +
"oogle/protobuf/any.proto\"W\n\025IdentifiedCl" +
"ientState\022\022\n\nchain_name\030\001 \001(\t\022*\n\014client_" +
"state\030\002 \001(\0132\024.google.protobuf.Any\":\n\022Ide" +
"ntifiedRelayers\022\022\n\nchain_name\030\001 \001(\t\022\020\n\010r" +
"elayers\030\002 \003(\t\"|\n\030ConsensusStateWithHeigh" +
"t\0221\n\006height\030\001 \001(\0132\033.tibc.core.client.v1." +
"HeightB\004\310\336\037\000\022-\n\017consensus_state\030\002 \001(\0132\024." +
"google.protobuf.Any\"z\n\025ClientConsensusSt" +
"ates\022\022\n\nchain_name\030\001 \001(\t\022M\n\020consensus_st" +
"ates\030\002 \003(\0132-.tibc.core.client.v1.Consens" +
"usStateWithHeightB\004\310\336\037\000\"\257\001\n\024CreateClient" +
"Proposal\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002" +
" \001(\t\022\022\n\nchain_name\030\003 \001(\t\022*\n\014client_state" +
"\030\004 \001(\0132\024.google.protobuf.Any\022-\n\017consensu" +
"s_state\030\005 \001(\0132\024.google.protobuf.Any:\004\210\240\037" +
"\000\"\260\001\n\025UpgradeClientProposal\022\r\n\005title\030\001 \001" +
"(\t\022\023\n\013description\030\002 \001(\t\022\022\n\nchain_name\030\003 " +
"\001(\t\022*\n\014client_state\030\004 \001(\0132\024.google.proto" +
"buf.Any\022-\n\017consensus_state\030\005 \001(\0132\024.googl" +
"e.protobuf.Any:\004\210\240\037\000\"i\n\027RegisterRelayerP" +
"roposal\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 " +
"\001(\t\022\022\n\nchain_name\030\003 \001(\t\022\020\n\010relayers\030\004 \003(" +
"\t:\004\210\240\037\000\"|\n\006Height\0223\n\017revision_number\030\001 \001" +
"(\004B\032\362\336\037\026yaml:\"revision_number\"\0223\n\017revisi" +
"on_height\030\002 \001(\004B\032\362\336\037\026yaml:\"revision_heig" +
"ht\":\010\210\240\037\000\230\240\037\000B\033\n\031proto.tibc.core.client." +
"v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
});
internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tibc_core_client_v1_IdentifiedClientState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_IdentifiedClientState_descriptor,
new java.lang.String[] { "ChainName", "ClientState", });
internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tibc_core_client_v1_IdentifiedRelayers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_IdentifiedRelayers_descriptor,
new java.lang.String[] { "ChainName", "Relayers", });
internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tibc_core_client_v1_ConsensusStateWithHeight_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_ConsensusStateWithHeight_descriptor,
new java.lang.String[] { "Height", "ConsensusState", });
internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tibc_core_client_v1_ClientConsensusStates_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_ClientConsensusStates_descriptor,
new java.lang.String[] { "ChainName", "ConsensusStates", });
internal_static_tibc_core_client_v1_CreateClientProposal_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tibc_core_client_v1_CreateClientProposal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_CreateClientProposal_descriptor,
new java.lang.String[] { "Title", "Description", "ChainName", "ClientState", "ConsensusState", });
internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tibc_core_client_v1_UpgradeClientProposal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_UpgradeClientProposal_descriptor,
new java.lang.String[] { "Title", "Description", "ChainName", "ClientState", "ConsensusState", });
internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tibc_core_client_v1_RegisterRelayerProposal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_RegisterRelayerProposal_descriptor,
new java.lang.String[] { "Title", "Description", "ChainName", "Relayers", });
internal_static_tibc_core_client_v1_Height_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_tibc_core_client_v1_Height_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_Height_descriptor,
new java.lang.String[] { "RevisionNumber", "RevisionHeight", });
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)
}