proto.tibc.lightclients.bsc.v1.Bsc 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/lightclients/bsc/v1/bsc.proto
package proto.tibc.lightclients.bsc.v1;
public final class Bsc {
private Bsc() {}
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 HeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.Header)
com.google.protobuf.MessageOrBuilder {
/**
* bytes parent_hash = 1;
* @return The parentHash.
*/
com.google.protobuf.ByteString getParentHash();
/**
* bytes uncle_hash = 2;
* @return The uncleHash.
*/
com.google.protobuf.ByteString getUncleHash();
/**
* bytes coinbase = 3;
* @return The coinbase.
*/
com.google.protobuf.ByteString getCoinbase();
/**
* bytes root = 4;
* @return The root.
*/
com.google.protobuf.ByteString getRoot();
/**
* bytes tx_hash = 5;
* @return The txHash.
*/
com.google.protobuf.ByteString getTxHash();
/**
* bytes receipt_hash = 6;
* @return The receiptHash.
*/
com.google.protobuf.ByteString getReceiptHash();
/**
* bytes bloom = 7;
* @return The bloom.
*/
com.google.protobuf.ByteString getBloom();
/**
* uint64 difficulty = 8;
* @return The difficulty.
*/
long getDifficulty();
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
boolean hasHeight();
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
* @return The height.
*/
proto.tibc.core.client.v1.Client.Height getHeight();
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder();
/**
* uint64 gas_limit = 10;
* @return The gasLimit.
*/
long getGasLimit();
/**
* uint64 gas_used = 11;
* @return The gasUsed.
*/
long getGasUsed();
/**
* uint64 time = 12;
* @return The time.
*/
long getTime();
/**
* bytes extra = 13;
* @return The extra.
*/
com.google.protobuf.ByteString getExtra();
/**
* bytes mix_digest = 14;
* @return The mixDigest.
*/
com.google.protobuf.ByteString getMixDigest();
/**
* bytes nonce = 15;
* @return The nonce.
*/
com.google.protobuf.ByteString getNonce();
}
/**
*
* Header defines the bsc client consensus Header.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.Header}
*/
public static final class Header extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.Header)
HeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Header.newBuilder() to construct.
private Header(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Header() {
parentHash_ = com.google.protobuf.ByteString.EMPTY;
uncleHash_ = com.google.protobuf.ByteString.EMPTY;
coinbase_ = com.google.protobuf.ByteString.EMPTY;
root_ = com.google.protobuf.ByteString.EMPTY;
txHash_ = com.google.protobuf.ByteString.EMPTY;
receiptHash_ = com.google.protobuf.ByteString.EMPTY;
bloom_ = com.google.protobuf.ByteString.EMPTY;
extra_ = com.google.protobuf.ByteString.EMPTY;
mixDigest_ = com.google.protobuf.ByteString.EMPTY;
nonce_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Header();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Header(
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: {
parentHash_ = input.readBytes();
break;
}
case 18: {
uncleHash_ = input.readBytes();
break;
}
case 26: {
coinbase_ = input.readBytes();
break;
}
case 34: {
root_ = input.readBytes();
break;
}
case 42: {
txHash_ = input.readBytes();
break;
}
case 50: {
receiptHash_ = input.readBytes();
break;
}
case 58: {
bloom_ = input.readBytes();
break;
}
case 64: {
difficulty_ = input.readUInt64();
break;
}
case 74: {
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 80: {
gasLimit_ = input.readUInt64();
break;
}
case 88: {
gasUsed_ = input.readUInt64();
break;
}
case 96: {
time_ = input.readUInt64();
break;
}
case 106: {
extra_ = input.readBytes();
break;
}
case 114: {
mixDigest_ = input.readBytes();
break;
}
case 122: {
nonce_ = input.readBytes();
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.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Header.class, proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder.class);
}
public static final int PARENT_HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString parentHash_;
/**
* bytes parent_hash = 1;
* @return The parentHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentHash() {
return parentHash_;
}
public static final int UNCLE_HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString uncleHash_;
/**
* bytes uncle_hash = 2;
* @return The uncleHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUncleHash() {
return uncleHash_;
}
public static final int COINBASE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString coinbase_;
/**
* bytes coinbase = 3;
* @return The coinbase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCoinbase() {
return coinbase_;
}
public static final int ROOT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString root_;
/**
* bytes root = 4;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
public static final int TX_HASH_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString txHash_;
/**
* bytes tx_hash = 5;
* @return The txHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxHash() {
return txHash_;
}
public static final int RECEIPT_HASH_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString receiptHash_;
/**
* bytes receipt_hash = 6;
* @return The receiptHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReceiptHash() {
return receiptHash_;
}
public static final int BLOOM_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString bloom_;
/**
* bytes bloom = 7;
* @return The bloom.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBloom() {
return bloom_;
}
public static final int DIFFICULTY_FIELD_NUMBER = 8;
private long difficulty_;
/**
* uint64 difficulty = 8;
* @return The difficulty.
*/
@java.lang.Override
public long getDifficulty() {
return difficulty_;
}
public static final int HEIGHT_FIELD_NUMBER = 9;
private proto.tibc.core.client.v1.Client.Height height_;
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
@java.lang.Override
public boolean hasHeight() {
return height_ != null;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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_;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder() {
return getHeight();
}
public static final int GAS_LIMIT_FIELD_NUMBER = 10;
private long gasLimit_;
/**
* uint64 gas_limit = 10;
* @return The gasLimit.
*/
@java.lang.Override
public long getGasLimit() {
return gasLimit_;
}
public static final int GAS_USED_FIELD_NUMBER = 11;
private long gasUsed_;
/**
* uint64 gas_used = 11;
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
public static final int TIME_FIELD_NUMBER = 12;
private long time_;
/**
* uint64 time = 12;
* @return The time.
*/
@java.lang.Override
public long getTime() {
return time_;
}
public static final int EXTRA_FIELD_NUMBER = 13;
private com.google.protobuf.ByteString extra_;
/**
* bytes extra = 13;
* @return The extra.
*/
@java.lang.Override
public com.google.protobuf.ByteString getExtra() {
return extra_;
}
public static final int MIX_DIGEST_FIELD_NUMBER = 14;
private com.google.protobuf.ByteString mixDigest_;
/**
* bytes mix_digest = 14;
* @return The mixDigest.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMixDigest() {
return mixDigest_;
}
public static final int NONCE_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString nonce_;
/**
* bytes nonce = 15;
* @return The nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
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 (!parentHash_.isEmpty()) {
output.writeBytes(1, parentHash_);
}
if (!uncleHash_.isEmpty()) {
output.writeBytes(2, uncleHash_);
}
if (!coinbase_.isEmpty()) {
output.writeBytes(3, coinbase_);
}
if (!root_.isEmpty()) {
output.writeBytes(4, root_);
}
if (!txHash_.isEmpty()) {
output.writeBytes(5, txHash_);
}
if (!receiptHash_.isEmpty()) {
output.writeBytes(6, receiptHash_);
}
if (!bloom_.isEmpty()) {
output.writeBytes(7, bloom_);
}
if (difficulty_ != 0L) {
output.writeUInt64(8, difficulty_);
}
if (height_ != null) {
output.writeMessage(9, getHeight());
}
if (gasLimit_ != 0L) {
output.writeUInt64(10, gasLimit_);
}
if (gasUsed_ != 0L) {
output.writeUInt64(11, gasUsed_);
}
if (time_ != 0L) {
output.writeUInt64(12, time_);
}
if (!extra_.isEmpty()) {
output.writeBytes(13, extra_);
}
if (!mixDigest_.isEmpty()) {
output.writeBytes(14, mixDigest_);
}
if (!nonce_.isEmpty()) {
output.writeBytes(15, nonce_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!parentHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, parentHash_);
}
if (!uncleHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, uncleHash_);
}
if (!coinbase_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, coinbase_);
}
if (!root_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, root_);
}
if (!txHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, txHash_);
}
if (!receiptHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, receiptHash_);
}
if (!bloom_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, bloom_);
}
if (difficulty_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, difficulty_);
}
if (height_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getHeight());
}
if (gasLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, gasLimit_);
}
if (gasUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(11, gasUsed_);
}
if (time_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(12, time_);
}
if (!extra_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, extra_);
}
if (!mixDigest_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, mixDigest_);
}
if (!nonce_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, nonce_);
}
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.lightclients.bsc.v1.Bsc.Header)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.Header other = (proto.tibc.lightclients.bsc.v1.Bsc.Header) obj;
if (!getParentHash()
.equals(other.getParentHash())) return false;
if (!getUncleHash()
.equals(other.getUncleHash())) return false;
if (!getCoinbase()
.equals(other.getCoinbase())) return false;
if (!getRoot()
.equals(other.getRoot())) return false;
if (!getTxHash()
.equals(other.getTxHash())) return false;
if (!getReceiptHash()
.equals(other.getReceiptHash())) return false;
if (!getBloom()
.equals(other.getBloom())) return false;
if (getDifficulty()
!= other.getDifficulty()) return false;
if (hasHeight() != other.hasHeight()) return false;
if (hasHeight()) {
if (!getHeight()
.equals(other.getHeight())) return false;
}
if (getGasLimit()
!= other.getGasLimit()) return false;
if (getGasUsed()
!= other.getGasUsed()) return false;
if (getTime()
!= other.getTime()) return false;
if (!getExtra()
.equals(other.getExtra())) return false;
if (!getMixDigest()
.equals(other.getMixDigest())) return false;
if (!getNonce()
.equals(other.getNonce())) 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) + PARENT_HASH_FIELD_NUMBER;
hash = (53 * hash) + getParentHash().hashCode();
hash = (37 * hash) + UNCLE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getUncleHash().hashCode();
hash = (37 * hash) + COINBASE_FIELD_NUMBER;
hash = (53 * hash) + getCoinbase().hashCode();
hash = (37 * hash) + ROOT_FIELD_NUMBER;
hash = (53 * hash) + getRoot().hashCode();
hash = (37 * hash) + TX_HASH_FIELD_NUMBER;
hash = (53 * hash) + getTxHash().hashCode();
hash = (37 * hash) + RECEIPT_HASH_FIELD_NUMBER;
hash = (53 * hash) + getReceiptHash().hashCode();
hash = (37 * hash) + BLOOM_FIELD_NUMBER;
hash = (53 * hash) + getBloom().hashCode();
hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDifficulty());
if (hasHeight()) {
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight().hashCode();
}
hash = (37 * hash) + GAS_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasLimit());
hash = (37 * hash) + GAS_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasUsed());
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTime());
hash = (37 * hash) + EXTRA_FIELD_NUMBER;
hash = (53 * hash) + getExtra().hashCode();
hash = (37 * hash) + MIX_DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getMixDigest().hashCode();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header 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.lightclients.bsc.v1.Bsc.Header parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header 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.lightclients.bsc.v1.Bsc.Header parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header 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.lightclients.bsc.v1.Bsc.Header parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header 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.lightclients.bsc.v1.Bsc.Header 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;
}
/**
*
* Header defines the bsc client consensus Header.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.Header}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.Header)
proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Header.class, proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.Header.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();
parentHash_ = com.google.protobuf.ByteString.EMPTY;
uncleHash_ = com.google.protobuf.ByteString.EMPTY;
coinbase_ = com.google.protobuf.ByteString.EMPTY;
root_ = com.google.protobuf.ByteString.EMPTY;
txHash_ = com.google.protobuf.ByteString.EMPTY;
receiptHash_ = com.google.protobuf.ByteString.EMPTY;
bloom_ = com.google.protobuf.ByteString.EMPTY;
difficulty_ = 0L;
if (heightBuilder_ == null) {
height_ = null;
} else {
height_ = null;
heightBuilder_ = null;
}
gasLimit_ = 0L;
gasUsed_ = 0L;
time_ = 0L;
extra_ = com.google.protobuf.ByteString.EMPTY;
mixDigest_ = com.google.protobuf.ByteString.EMPTY;
nonce_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Header_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Header getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.Header.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Header build() {
proto.tibc.lightclients.bsc.v1.Bsc.Header result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Header buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.Header result = new proto.tibc.lightclients.bsc.v1.Bsc.Header(this);
result.parentHash_ = parentHash_;
result.uncleHash_ = uncleHash_;
result.coinbase_ = coinbase_;
result.root_ = root_;
result.txHash_ = txHash_;
result.receiptHash_ = receiptHash_;
result.bloom_ = bloom_;
result.difficulty_ = difficulty_;
if (heightBuilder_ == null) {
result.height_ = height_;
} else {
result.height_ = heightBuilder_.build();
}
result.gasLimit_ = gasLimit_;
result.gasUsed_ = gasUsed_;
result.time_ = time_;
result.extra_ = extra_;
result.mixDigest_ = mixDigest_;
result.nonce_ = nonce_;
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.lightclients.bsc.v1.Bsc.Header) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.Header)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.Header other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.Header.getDefaultInstance()) return this;
if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) {
setParentHash(other.getParentHash());
}
if (other.getUncleHash() != com.google.protobuf.ByteString.EMPTY) {
setUncleHash(other.getUncleHash());
}
if (other.getCoinbase() != com.google.protobuf.ByteString.EMPTY) {
setCoinbase(other.getCoinbase());
}
if (other.getRoot() != com.google.protobuf.ByteString.EMPTY) {
setRoot(other.getRoot());
}
if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) {
setTxHash(other.getTxHash());
}
if (other.getReceiptHash() != com.google.protobuf.ByteString.EMPTY) {
setReceiptHash(other.getReceiptHash());
}
if (other.getBloom() != com.google.protobuf.ByteString.EMPTY) {
setBloom(other.getBloom());
}
if (other.getDifficulty() != 0L) {
setDifficulty(other.getDifficulty());
}
if (other.hasHeight()) {
mergeHeight(other.getHeight());
}
if (other.getGasLimit() != 0L) {
setGasLimit(other.getGasLimit());
}
if (other.getGasUsed() != 0L) {
setGasUsed(other.getGasUsed());
}
if (other.getTime() != 0L) {
setTime(other.getTime());
}
if (other.getExtra() != com.google.protobuf.ByteString.EMPTY) {
setExtra(other.getExtra());
}
if (other.getMixDigest() != com.google.protobuf.ByteString.EMPTY) {
setMixDigest(other.getMixDigest());
}
if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) {
setNonce(other.getNonce());
}
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.lightclients.bsc.v1.Bsc.Header parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.Header) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes parent_hash = 1;
* @return The parentHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentHash() {
return parentHash_;
}
/**
* bytes parent_hash = 1;
* @param value The parentHash to set.
* @return This builder for chaining.
*/
public Builder setParentHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
parentHash_ = value;
onChanged();
return this;
}
/**
* bytes parent_hash = 1;
* @return This builder for chaining.
*/
public Builder clearParentHash() {
parentHash_ = getDefaultInstance().getParentHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString uncleHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uncle_hash = 2;
* @return The uncleHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUncleHash() {
return uncleHash_;
}
/**
* bytes uncle_hash = 2;
* @param value The uncleHash to set.
* @return This builder for chaining.
*/
public Builder setUncleHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uncleHash_ = value;
onChanged();
return this;
}
/**
* bytes uncle_hash = 2;
* @return This builder for chaining.
*/
public Builder clearUncleHash() {
uncleHash_ = getDefaultInstance().getUncleHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString coinbase_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes coinbase = 3;
* @return The coinbase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCoinbase() {
return coinbase_;
}
/**
* bytes coinbase = 3;
* @param value The coinbase to set.
* @return This builder for chaining.
*/
public Builder setCoinbase(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
coinbase_ = value;
onChanged();
return this;
}
/**
* bytes coinbase = 3;
* @return This builder for chaining.
*/
public Builder clearCoinbase() {
coinbase_ = getDefaultInstance().getCoinbase();
onChanged();
return this;
}
private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes root = 4;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
/**
* bytes root = 4;
* @param value The root to set.
* @return This builder for chaining.
*/
public Builder setRoot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
root_ = value;
onChanged();
return this;
}
/**
* bytes root = 4;
* @return This builder for chaining.
*/
public Builder clearRoot() {
root_ = getDefaultInstance().getRoot();
onChanged();
return this;
}
private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes tx_hash = 5;
* @return The txHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxHash() {
return txHash_;
}
/**
* bytes tx_hash = 5;
* @param value The txHash to set.
* @return This builder for chaining.
*/
public Builder setTxHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
txHash_ = value;
onChanged();
return this;
}
/**
* bytes tx_hash = 5;
* @return This builder for chaining.
*/
public Builder clearTxHash() {
txHash_ = getDefaultInstance().getTxHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString receiptHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes receipt_hash = 6;
* @return The receiptHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReceiptHash() {
return receiptHash_;
}
/**
* bytes receipt_hash = 6;
* @param value The receiptHash to set.
* @return This builder for chaining.
*/
public Builder setReceiptHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
receiptHash_ = value;
onChanged();
return this;
}
/**
* bytes receipt_hash = 6;
* @return This builder for chaining.
*/
public Builder clearReceiptHash() {
receiptHash_ = getDefaultInstance().getReceiptHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString bloom_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes bloom = 7;
* @return The bloom.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBloom() {
return bloom_;
}
/**
* bytes bloom = 7;
* @param value The bloom to set.
* @return This builder for chaining.
*/
public Builder setBloom(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bloom_ = value;
onChanged();
return this;
}
/**
* bytes bloom = 7;
* @return This builder for chaining.
*/
public Builder clearBloom() {
bloom_ = getDefaultInstance().getBloom();
onChanged();
return this;
}
private long difficulty_ ;
/**
* uint64 difficulty = 8;
* @return The difficulty.
*/
@java.lang.Override
public long getDifficulty() {
return difficulty_;
}
/**
* uint64 difficulty = 8;
* @param value The difficulty to set.
* @return This builder for chaining.
*/
public Builder setDifficulty(long value) {
difficulty_ = value;
onChanged();
return this;
}
/**
* uint64 difficulty = 8;
* @return This builder for chaining.
*/
public Builder clearDifficulty() {
difficulty_ = 0L;
onChanged();
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_;
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
public boolean hasHeight() {
return heightBuilder_ != null || height_ != null;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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();
}
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
*/
public Builder clearHeight() {
if (heightBuilder_ == null) {
height_ = null;
onChanged();
} else {
height_ = null;
heightBuilder_ = null;
}
return this;
}
/**
* .tibc.core.client.v1.Height height = 9 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getHeightBuilder() {
onChanged();
return getHeightFieldBuilder().getBuilder();
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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_;
}
}
/**
* .tibc.core.client.v1.Height height = 9 [(.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 long gasLimit_ ;
/**
* uint64 gas_limit = 10;
* @return The gasLimit.
*/
@java.lang.Override
public long getGasLimit() {
return gasLimit_;
}
/**
* uint64 gas_limit = 10;
* @param value The gasLimit to set.
* @return This builder for chaining.
*/
public Builder setGasLimit(long value) {
gasLimit_ = value;
onChanged();
return this;
}
/**
* uint64 gas_limit = 10;
* @return This builder for chaining.
*/
public Builder clearGasLimit() {
gasLimit_ = 0L;
onChanged();
return this;
}
private long gasUsed_ ;
/**
* uint64 gas_used = 11;
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
/**
* uint64 gas_used = 11;
* @param value The gasUsed to set.
* @return This builder for chaining.
*/
public Builder setGasUsed(long value) {
gasUsed_ = value;
onChanged();
return this;
}
/**
* uint64 gas_used = 11;
* @return This builder for chaining.
*/
public Builder clearGasUsed() {
gasUsed_ = 0L;
onChanged();
return this;
}
private long time_ ;
/**
* uint64 time = 12;
* @return The time.
*/
@java.lang.Override
public long getTime() {
return time_;
}
/**
* uint64 time = 12;
* @param value The time to set.
* @return This builder for chaining.
*/
public Builder setTime(long value) {
time_ = value;
onChanged();
return this;
}
/**
* uint64 time = 12;
* @return This builder for chaining.
*/
public Builder clearTime() {
time_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString extra_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes extra = 13;
* @return The extra.
*/
@java.lang.Override
public com.google.protobuf.ByteString getExtra() {
return extra_;
}
/**
* bytes extra = 13;
* @param value The extra to set.
* @return This builder for chaining.
*/
public Builder setExtra(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
extra_ = value;
onChanged();
return this;
}
/**
* bytes extra = 13;
* @return This builder for chaining.
*/
public Builder clearExtra() {
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
private com.google.protobuf.ByteString mixDigest_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes mix_digest = 14;
* @return The mixDigest.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMixDigest() {
return mixDigest_;
}
/**
* bytes mix_digest = 14;
* @param value The mixDigest to set.
* @return This builder for chaining.
*/
public Builder setMixDigest(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
mixDigest_ = value;
onChanged();
return this;
}
/**
* bytes mix_digest = 14;
* @return This builder for chaining.
*/
public Builder clearMixDigest() {
mixDigest_ = getDefaultInstance().getMixDigest();
onChanged();
return this;
}
private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nonce = 15;
* @return The nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
/**
* bytes nonce = 15;
* @param value The nonce to set.
* @return This builder for chaining.
*/
public Builder setNonce(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nonce_ = value;
onChanged();
return this;
}
/**
* bytes nonce = 15;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
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.lightclients.bsc.v1.Header)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.Header)
private static final proto.tibc.lightclients.bsc.v1.Bsc.Header DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.Header();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Header getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Header parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Header(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.lightclients.bsc.v1.Bsc.Header getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.ClientState)
com.google.protobuf.MessageOrBuilder {
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return The header.
*/
proto.tibc.lightclients.bsc.v1.Bsc.Header getHeader();
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder getHeaderOrBuilder();
/**
* uint64 chain_id = 2;
* @return The chainId.
*/
long getChainId();
/**
* uint64 epoch = 3;
* @return The epoch.
*/
long getEpoch();
/**
* uint64 block_inteval = 4;
* @return The blockInteval.
*/
long getBlockInteval();
/**
* repeated bytes validators = 5;
* @return A list containing the validators.
*/
java.util.List getValidatorsList();
/**
* repeated bytes validators = 5;
* @return The count of validators.
*/
int getValidatorsCount();
/**
* repeated bytes validators = 5;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
com.google.protobuf.ByteString getValidators(int index);
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
java.util.List
getRecentSignersList();
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
proto.tibc.lightclients.bsc.v1.Bsc.Signer getRecentSigners(int index);
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
int getRecentSignersCount();
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getRecentSignersOrBuilderList();
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getRecentSignersOrBuilder(
int index);
/**
* bytes contract_address = 7;
* @return The contractAddress.
*/
com.google.protobuf.ByteString getContractAddress();
/**
* uint64 trusting_period = 8;
* @return The trustingPeriod.
*/
long getTrustingPeriod();
}
/**
*
* ClientState from bsc tracks the current validator set, latest height,
* and a possible frozen height.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.ClientState}
*/
public static final class ClientState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.ClientState)
ClientStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientState.newBuilder() to construct.
private ClientState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientState() {
validators_ = java.util.Collections.emptyList();
recentSigners_ = java.util.Collections.emptyList();
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientState();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientState(
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: {
proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(proto.tibc.lightclients.bsc.v1.Bsc.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 16: {
chainId_ = input.readUInt64();
break;
}
case 24: {
epoch_ = input.readUInt64();
break;
}
case 32: {
blockInteval_ = input.readUInt64();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
validators_.add(input.readBytes());
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
recentSigners_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
recentSigners_.add(
input.readMessage(proto.tibc.lightclients.bsc.v1.Bsc.Signer.parser(), extensionRegistry));
break;
}
case 58: {
contractAddress_ = input.readBytes();
break;
}
case 64: {
trustingPeriod_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
validators_ = java.util.Collections.unmodifiableList(validators_); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
recentSigners_ = java.util.Collections.unmodifiableList(recentSigners_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ClientState.class, proto.tibc.lightclients.bsc.v1.Bsc.ClientState.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private proto.tibc.lightclients.bsc.v1.Bsc.Header header_;
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return The header.
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Header getHeader() {
return header_ == null ? proto.tibc.lightclients.bsc.v1.Bsc.Header.getDefaultInstance() : header_;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int CHAIN_ID_FIELD_NUMBER = 2;
private long chainId_;
/**
* uint64 chain_id = 2;
* @return The chainId.
*/
@java.lang.Override
public long getChainId() {
return chainId_;
}
public static final int EPOCH_FIELD_NUMBER = 3;
private long epoch_;
/**
* uint64 epoch = 3;
* @return The epoch.
*/
@java.lang.Override
public long getEpoch() {
return epoch_;
}
public static final int BLOCK_INTEVAL_FIELD_NUMBER = 4;
private long blockInteval_;
/**
* uint64 block_inteval = 4;
* @return The blockInteval.
*/
@java.lang.Override
public long getBlockInteval() {
return blockInteval_;
}
public static final int VALIDATORS_FIELD_NUMBER = 5;
private java.util.List validators_;
/**
* repeated bytes validators = 5;
* @return A list containing the validators.
*/
@java.lang.Override
public java.util.List
getValidatorsList() {
return validators_;
}
/**
* repeated bytes validators = 5;
* @return The count of validators.
*/
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated bytes validators = 5;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
public com.google.protobuf.ByteString getValidators(int index) {
return validators_.get(index);
}
public static final int RECENT_SIGNERS_FIELD_NUMBER = 6;
private java.util.List recentSigners_;
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getRecentSignersList() {
return recentSigners_;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getRecentSignersOrBuilderList() {
return recentSigners_;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getRecentSignersCount() {
return recentSigners_.size();
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Signer getRecentSigners(int index) {
return recentSigners_.get(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getRecentSignersOrBuilder(
int index) {
return recentSigners_.get(index);
}
public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString contractAddress_;
/**
* bytes contract_address = 7;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
public static final int TRUSTING_PERIOD_FIELD_NUMBER = 8;
private long trustingPeriod_;
/**
* uint64 trusting_period = 8;
* @return The trustingPeriod.
*/
@java.lang.Override
public long getTrustingPeriod() {
return trustingPeriod_;
}
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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (chainId_ != 0L) {
output.writeUInt64(2, chainId_);
}
if (epoch_ != 0L) {
output.writeUInt64(3, epoch_);
}
if (blockInteval_ != 0L) {
output.writeUInt64(4, blockInteval_);
}
for (int i = 0; i < validators_.size(); i++) {
output.writeBytes(5, validators_.get(i));
}
for (int i = 0; i < recentSigners_.size(); i++) {
output.writeMessage(6, recentSigners_.get(i));
}
if (!contractAddress_.isEmpty()) {
output.writeBytes(7, contractAddress_);
}
if (trustingPeriod_ != 0L) {
output.writeUInt64(8, trustingPeriod_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (chainId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, chainId_);
}
if (epoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, epoch_);
}
if (blockInteval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, blockInteval_);
}
{
int dataSize = 0;
for (int i = 0; i < validators_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(validators_.get(i));
}
size += dataSize;
size += 1 * getValidatorsList().size();
}
for (int i = 0; i < recentSigners_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, recentSigners_.get(i));
}
if (!contractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, contractAddress_);
}
if (trustingPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, trustingPeriod_);
}
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.lightclients.bsc.v1.Bsc.ClientState)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.ClientState other = (proto.tibc.lightclients.bsc.v1.Bsc.ClientState) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (getChainId()
!= other.getChainId()) return false;
if (getEpoch()
!= other.getEpoch()) return false;
if (getBlockInteval()
!= other.getBlockInteval()) return false;
if (!getValidatorsList()
.equals(other.getValidatorsList())) return false;
if (!getRecentSignersList()
.equals(other.getRecentSignersList())) return false;
if (!getContractAddress()
.equals(other.getContractAddress())) return false;
if (getTrustingPeriod()
!= other.getTrustingPeriod()) 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 (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getChainId());
hash = (37 * hash) + EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEpoch());
hash = (37 * hash) + BLOCK_INTEVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockInteval());
if (getValidatorsCount() > 0) {
hash = (37 * hash) + VALIDATORS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorsList().hashCode();
}
if (getRecentSignersCount() > 0) {
hash = (37 * hash) + RECENT_SIGNERS_FIELD_NUMBER;
hash = (53 * hash) + getRecentSignersList().hashCode();
}
hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getContractAddress().hashCode();
hash = (37 * hash) + TRUSTING_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTrustingPeriod());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState 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.lightclients.bsc.v1.Bsc.ClientState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState 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.lightclients.bsc.v1.Bsc.ClientState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState 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.lightclients.bsc.v1.Bsc.ClientState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState 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.lightclients.bsc.v1.Bsc.ClientState 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;
}
/**
*
* ClientState from bsc tracks the current validator set, latest height,
* and a possible frozen height.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.ClientState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.ClientState)
proto.tibc.lightclients.bsc.v1.Bsc.ClientStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ClientState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ClientState.class, proto.tibc.lightclients.bsc.v1.Bsc.ClientState.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.ClientState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRecentSignersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
chainId_ = 0L;
epoch_ = 0L;
blockInteval_ = 0L;
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (recentSignersBuilder_ == null) {
recentSigners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
recentSignersBuilder_.clear();
}
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
trustingPeriod_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ClientState getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.ClientState.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ClientState build() {
proto.tibc.lightclients.bsc.v1.Bsc.ClientState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ClientState buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.ClientState result = new proto.tibc.lightclients.bsc.v1.Bsc.ClientState(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.chainId_ = chainId_;
result.epoch_ = epoch_;
result.blockInteval_ = blockInteval_;
if (((bitField0_ & 0x00000001) != 0)) {
validators_ = java.util.Collections.unmodifiableList(validators_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validators_ = validators_;
if (recentSignersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
recentSigners_ = java.util.Collections.unmodifiableList(recentSigners_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.recentSigners_ = recentSigners_;
} else {
result.recentSigners_ = recentSignersBuilder_.build();
}
result.contractAddress_ = contractAddress_;
result.trustingPeriod_ = trustingPeriod_;
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.lightclients.bsc.v1.Bsc.ClientState) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.ClientState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.ClientState other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.ClientState.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.getChainId() != 0L) {
setChainId(other.getChainId());
}
if (other.getEpoch() != 0L) {
setEpoch(other.getEpoch());
}
if (other.getBlockInteval() != 0L) {
setBlockInteval(other.getBlockInteval());
}
if (!other.validators_.isEmpty()) {
if (validators_.isEmpty()) {
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidatorsIsMutable();
validators_.addAll(other.validators_);
}
onChanged();
}
if (recentSignersBuilder_ == null) {
if (!other.recentSigners_.isEmpty()) {
if (recentSigners_.isEmpty()) {
recentSigners_ = other.recentSigners_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRecentSignersIsMutable();
recentSigners_.addAll(other.recentSigners_);
}
onChanged();
}
} else {
if (!other.recentSigners_.isEmpty()) {
if (recentSignersBuilder_.isEmpty()) {
recentSignersBuilder_.dispose();
recentSignersBuilder_ = null;
recentSigners_ = other.recentSigners_;
bitField0_ = (bitField0_ & ~0x00000002);
recentSignersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecentSignersFieldBuilder() : null;
} else {
recentSignersBuilder_.addAllMessages(other.recentSigners_);
}
}
}
if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setContractAddress(other.getContractAddress());
}
if (other.getTrustingPeriod() != 0L) {
setTrustingPeriod(other.getTrustingPeriod());
}
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.lightclients.bsc.v1.Bsc.ClientState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.ClientState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private proto.tibc.lightclients.bsc.v1.Bsc.Header header_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Header, proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder, proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder> headerBuilder_;
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
* @return The header.
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? proto.tibc.lightclients.bsc.v1.Bsc.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(proto.tibc.lightclients.bsc.v1.Bsc.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(
proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeHeader(proto.tibc.lightclients.bsc.v1.Bsc.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
proto.tibc.lightclients.bsc.v1.Bsc.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
proto.tibc.lightclients.bsc.v1.Bsc.Header.getDefaultInstance() : header_;
}
}
/**
* .tibc.lightclients.bsc.v1.Header header = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Header, proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder, proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Header, proto.tibc.lightclients.bsc.v1.Bsc.Header.Builder, proto.tibc.lightclients.bsc.v1.Bsc.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private long chainId_ ;
/**
* uint64 chain_id = 2;
* @return The chainId.
*/
@java.lang.Override
public long getChainId() {
return chainId_;
}
/**
* uint64 chain_id = 2;
* @param value The chainId to set.
* @return This builder for chaining.
*/
public Builder setChainId(long value) {
chainId_ = value;
onChanged();
return this;
}
/**
* uint64 chain_id = 2;
* @return This builder for chaining.
*/
public Builder clearChainId() {
chainId_ = 0L;
onChanged();
return this;
}
private long epoch_ ;
/**
* uint64 epoch = 3;
* @return The epoch.
*/
@java.lang.Override
public long getEpoch() {
return epoch_;
}
/**
* uint64 epoch = 3;
* @param value The epoch to set.
* @return This builder for chaining.
*/
public Builder setEpoch(long value) {
epoch_ = value;
onChanged();
return this;
}
/**
* uint64 epoch = 3;
* @return This builder for chaining.
*/
public Builder clearEpoch() {
epoch_ = 0L;
onChanged();
return this;
}
private long blockInteval_ ;
/**
* uint64 block_inteval = 4;
* @return The blockInteval.
*/
@java.lang.Override
public long getBlockInteval() {
return blockInteval_;
}
/**
* uint64 block_inteval = 4;
* @param value The blockInteval to set.
* @return This builder for chaining.
*/
public Builder setBlockInteval(long value) {
blockInteval_ = value;
onChanged();
return this;
}
/**
* uint64 block_inteval = 4;
* @return This builder for chaining.
*/
public Builder clearBlockInteval() {
blockInteval_ = 0L;
onChanged();
return this;
}
private java.util.List validators_ = java.util.Collections.emptyList();
private void ensureValidatorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList(validators_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes validators = 5;
* @return A list containing the validators.
*/
public java.util.List
getValidatorsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(validators_) : validators_;
}
/**
* repeated bytes validators = 5;
* @return The count of validators.
*/
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated bytes validators = 5;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
public com.google.protobuf.ByteString getValidators(int index) {
return validators_.get(index);
}
/**
* repeated bytes validators = 5;
* @param index The index to set the value at.
* @param value The validators to set.
* @return This builder for chaining.
*/
public Builder setValidators(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes validators = 5;
* @param value The validators to add.
* @return This builder for chaining.
*/
public Builder addValidators(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(value);
onChanged();
return this;
}
/**
* repeated bytes validators = 5;
* @param values The validators to add.
* @return This builder for chaining.
*/
public Builder addAllValidators(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureValidatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validators_);
onChanged();
return this;
}
/**
* repeated bytes validators = 5;
* @return This builder for chaining.
*/
public Builder clearValidators() {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List recentSigners_ =
java.util.Collections.emptyList();
private void ensureRecentSignersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
recentSigners_ = new java.util.ArrayList(recentSigners_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder> recentSignersBuilder_;
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public java.util.List getRecentSignersList() {
if (recentSignersBuilder_ == null) {
return java.util.Collections.unmodifiableList(recentSigners_);
} else {
return recentSignersBuilder_.getMessageList();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public int getRecentSignersCount() {
if (recentSignersBuilder_ == null) {
return recentSigners_.size();
} else {
return recentSignersBuilder_.getCount();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer getRecentSigners(int index) {
if (recentSignersBuilder_ == null) {
return recentSigners_.get(index);
} else {
return recentSignersBuilder_.getMessage(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder setRecentSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (recentSignersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentSignersIsMutable();
recentSigners_.set(index, value);
onChanged();
} else {
recentSignersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder setRecentSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (recentSignersBuilder_ == null) {
ensureRecentSignersIsMutable();
recentSigners_.set(index, builderForValue.build());
onChanged();
} else {
recentSignersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder addRecentSigners(proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (recentSignersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentSignersIsMutable();
recentSigners_.add(value);
onChanged();
} else {
recentSignersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder addRecentSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (recentSignersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentSignersIsMutable();
recentSigners_.add(index, value);
onChanged();
} else {
recentSignersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder addRecentSigners(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (recentSignersBuilder_ == null) {
ensureRecentSignersIsMutable();
recentSigners_.add(builderForValue.build());
onChanged();
} else {
recentSignersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder addRecentSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (recentSignersBuilder_ == null) {
ensureRecentSignersIsMutable();
recentSigners_.add(index, builderForValue.build());
onChanged();
} else {
recentSignersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder addAllRecentSigners(
java.lang.Iterable extends proto.tibc.lightclients.bsc.v1.Bsc.Signer> values) {
if (recentSignersBuilder_ == null) {
ensureRecentSignersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recentSigners_);
onChanged();
} else {
recentSignersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder clearRecentSigners() {
if (recentSignersBuilder_ == null) {
recentSigners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
recentSignersBuilder_.clear();
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public Builder removeRecentSigners(int index) {
if (recentSignersBuilder_ == null) {
ensureRecentSignersIsMutable();
recentSigners_.remove(index);
onChanged();
} else {
recentSignersBuilder_.remove(index);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder getRecentSignersBuilder(
int index) {
return getRecentSignersFieldBuilder().getBuilder(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getRecentSignersOrBuilder(
int index) {
if (recentSignersBuilder_ == null) {
return recentSigners_.get(index); } else {
return recentSignersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getRecentSignersOrBuilderList() {
if (recentSignersBuilder_ != null) {
return recentSignersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recentSigners_);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder addRecentSignersBuilder() {
return getRecentSignersFieldBuilder().addBuilder(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder addRecentSignersBuilder(
int index) {
return getRecentSignersFieldBuilder().addBuilder(
index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer recent_signers = 6 [(.gogoproto.nullable) = false];
*/
public java.util.List
getRecentSignersBuilderList() {
return getRecentSignersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getRecentSignersFieldBuilder() {
if (recentSignersBuilder_ == null) {
recentSignersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>(
recentSigners_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
recentSigners_ = null;
}
return recentSignersBuilder_;
}
private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_address = 7;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
/**
* bytes contract_address = 7;
* @param value The contractAddress to set.
* @return This builder for chaining.
*/
public Builder setContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
contractAddress_ = value;
onChanged();
return this;
}
/**
* bytes contract_address = 7;
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
private long trustingPeriod_ ;
/**
* uint64 trusting_period = 8;
* @return The trustingPeriod.
*/
@java.lang.Override
public long getTrustingPeriod() {
return trustingPeriod_;
}
/**
* uint64 trusting_period = 8;
* @param value The trustingPeriod to set.
* @return This builder for chaining.
*/
public Builder setTrustingPeriod(long value) {
trustingPeriod_ = value;
onChanged();
return this;
}
/**
* uint64 trusting_period = 8;
* @return This builder for chaining.
*/
public Builder clearTrustingPeriod() {
trustingPeriod_ = 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.lightclients.bsc.v1.ClientState)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.ClientState)
private static final proto.tibc.lightclients.bsc.v1.Bsc.ClientState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.ClientState();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ClientState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientState(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.lightclients.bsc.v1.Bsc.ClientState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignerOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.Signer)
com.google.protobuf.MessageOrBuilder {
/**
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return Whether the height field is set.
*/
boolean hasHeight();
/**
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
* @return The height.
*/
proto.tibc.core.client.v1.Client.Height getHeight();
/**
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getHeightOrBuilder();
/**
* bytes validator = 2;
* @return The validator.
*/
com.google.protobuf.ByteString getValidator();
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.Signer}
*/
public static final class Signer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.Signer)
SignerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Signer.newBuilder() to construct.
private Signer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Signer() {
validator_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Signer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Signer(
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: {
validator_ = input.readBytes();
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.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Signer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Signer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.class, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private proto.tibc.core.client.v1.Client.Height 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;
}
/**
* .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_;
}
/**
* .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 VALIDATOR_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString validator_;
/**
* bytes validator = 2;
* @return The validator.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValidator() {
return validator_;
}
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 (!validator_.isEmpty()) {
output.writeBytes(2, validator_);
}
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 (!validator_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, validator_);
}
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.lightclients.bsc.v1.Bsc.Signer)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.Signer other = (proto.tibc.lightclients.bsc.v1.Bsc.Signer) obj;
if (hasHeight() != other.hasHeight()) return false;
if (hasHeight()) {
if (!getHeight()
.equals(other.getHeight())) return false;
}
if (!getValidator()
.equals(other.getValidator())) 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();
}
hash = (37 * hash) + VALIDATOR_FIELD_NUMBER;
hash = (53 * hash) + getValidator().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer 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.lightclients.bsc.v1.Bsc.Signer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer 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.lightclients.bsc.v1.Bsc.Signer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer 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.lightclients.bsc.v1.Bsc.Signer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer 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.lightclients.bsc.v1.Bsc.Signer 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;
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.Signer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.Signer)
proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Signer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Signer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.class, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.Signer.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;
}
validator_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Signer_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Signer getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Signer build() {
proto.tibc.lightclients.bsc.v1.Bsc.Signer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Signer buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.Signer result = new proto.tibc.lightclients.bsc.v1.Bsc.Signer(this);
if (heightBuilder_ == null) {
result.height_ = height_;
} else {
result.height_ = heightBuilder_.build();
}
result.validator_ = validator_;
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.lightclients.bsc.v1.Bsc.Signer) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.Signer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.Signer other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance()) return this;
if (other.hasHeight()) {
mergeHeight(other.getHeight());
}
if (other.getValidator() != com.google.protobuf.ByteString.EMPTY) {
setValidator(other.getValidator());
}
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.lightclients.bsc.v1.Bsc.Signer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.Signer) 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_;
/**
* .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;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .tibc.core.client.v1.Height height = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getHeightBuilder() {
onChanged();
return getHeightFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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.ByteString validator_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes validator = 2;
* @return The validator.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValidator() {
return validator_;
}
/**
* bytes validator = 2;
* @param value The validator to set.
* @return This builder for chaining.
*/
public Builder setValidator(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
validator_ = value;
onChanged();
return this;
}
/**
* bytes validator = 2;
* @return This builder for chaining.
*/
public Builder clearValidator() {
validator_ = getDefaultInstance().getValidator();
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.lightclients.bsc.v1.Signer)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.Signer)
private static final proto.tibc.lightclients.bsc.v1.Bsc.Signer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.Signer();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Signer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Signer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Signer(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.lightclients.bsc.v1.Bsc.Signer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignerSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.SignerSet)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getSignersList();
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.lightclients.bsc.v1.Bsc.Signer getSigners(int index);
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
int getSignersCount();
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getSignersOrBuilderList();
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getSignersOrBuilder(
int index);
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.SignerSet}
*/
public static final class SignerSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.SignerSet)
SignerSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use SignerSet.newBuilder() to construct.
private SignerSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SignerSet() {
signers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SignerSet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignerSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
signers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
signers_.add(
input.readMessage(proto.tibc.lightclients.bsc.v1.Bsc.Signer.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)) {
signers_ = java.util.Collections.unmodifiableList(signers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_SignerSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.class, proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.Builder.class);
}
public static final int SIGNERS_FIELD_NUMBER = 1;
private java.util.List signers_;
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getSignersList() {
return signers_;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getSignersOrBuilderList() {
return signers_;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getSignersCount() {
return signers_.size();
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Signer getSigners(int index) {
return signers_.get(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getSignersOrBuilder(
int index) {
return signers_.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 {
for (int i = 0; i < signers_.size(); i++) {
output.writeMessage(1, signers_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < signers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, signers_.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.lightclients.bsc.v1.Bsc.SignerSet)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.SignerSet other = (proto.tibc.lightclients.bsc.v1.Bsc.SignerSet) obj;
if (!getSignersList()
.equals(other.getSignersList())) 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 (getSignersCount() > 0) {
hash = (37 * hash) + SIGNERS_FIELD_NUMBER;
hash = (53 * hash) + getSignersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet 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.lightclients.bsc.v1.Bsc.SignerSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet 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.lightclients.bsc.v1.Bsc.SignerSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet 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.lightclients.bsc.v1.Bsc.SignerSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet 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.lightclients.bsc.v1.Bsc.SignerSet 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;
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.SignerSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.SignerSet)
proto.tibc.lightclients.bsc.v1.Bsc.SignerSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_SignerSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.class, proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSignersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (signersBuilder_ == null) {
signers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
signersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.SignerSet getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.SignerSet build() {
proto.tibc.lightclients.bsc.v1.Bsc.SignerSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.SignerSet buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.SignerSet result = new proto.tibc.lightclients.bsc.v1.Bsc.SignerSet(this);
int from_bitField0_ = bitField0_;
if (signersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
signers_ = java.util.Collections.unmodifiableList(signers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.signers_ = signers_;
} else {
result.signers_ = signersBuilder_.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.lightclients.bsc.v1.Bsc.SignerSet) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.SignerSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.SignerSet other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.SignerSet.getDefaultInstance()) return this;
if (signersBuilder_ == null) {
if (!other.signers_.isEmpty()) {
if (signers_.isEmpty()) {
signers_ = other.signers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSignersIsMutable();
signers_.addAll(other.signers_);
}
onChanged();
}
} else {
if (!other.signers_.isEmpty()) {
if (signersBuilder_.isEmpty()) {
signersBuilder_.dispose();
signersBuilder_ = null;
signers_ = other.signers_;
bitField0_ = (bitField0_ & ~0x00000001);
signersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignersFieldBuilder() : null;
} else {
signersBuilder_.addAllMessages(other.signers_);
}
}
}
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.lightclients.bsc.v1.Bsc.SignerSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.SignerSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List signers_ =
java.util.Collections.emptyList();
private void ensureSignersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
signers_ = new java.util.ArrayList(signers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder> signersBuilder_;
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getSignersList() {
if (signersBuilder_ == null) {
return java.util.Collections.unmodifiableList(signers_);
} else {
return signersBuilder_.getMessageList();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public int getSignersCount() {
if (signersBuilder_ == null) {
return signers_.size();
} else {
return signersBuilder_.getCount();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer getSigners(int index) {
if (signersBuilder_ == null) {
return signers_.get(index);
} else {
return signersBuilder_.getMessage(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder setSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (signersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignersIsMutable();
signers_.set(index, value);
onChanged();
} else {
signersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder setSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (signersBuilder_ == null) {
ensureSignersIsMutable();
signers_.set(index, builderForValue.build());
onChanged();
} else {
signersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder addSigners(proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (signersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignersIsMutable();
signers_.add(value);
onChanged();
} else {
signersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder addSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer value) {
if (signersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignersIsMutable();
signers_.add(index, value);
onChanged();
} else {
signersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder addSigners(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (signersBuilder_ == null) {
ensureSignersIsMutable();
signers_.add(builderForValue.build());
onChanged();
} else {
signersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder addSigners(
int index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder builderForValue) {
if (signersBuilder_ == null) {
ensureSignersIsMutable();
signers_.add(index, builderForValue.build());
onChanged();
} else {
signersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllSigners(
java.lang.Iterable extends proto.tibc.lightclients.bsc.v1.Bsc.Signer> values) {
if (signersBuilder_ == null) {
ensureSignersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signers_);
onChanged();
} else {
signersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearSigners() {
if (signersBuilder_ == null) {
signers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
signersBuilder_.clear();
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeSigners(int index) {
if (signersBuilder_ == null) {
ensureSignersIsMutable();
signers_.remove(index);
onChanged();
} else {
signersBuilder_.remove(index);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder getSignersBuilder(
int index) {
return getSignersFieldBuilder().getBuilder(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder getSignersOrBuilder(
int index) {
if (signersBuilder_ == null) {
return signers_.get(index); } else {
return signersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getSignersOrBuilderList() {
if (signersBuilder_ != null) {
return signersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(signers_);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder addSignersBuilder() {
return getSignersFieldBuilder().addBuilder(
proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder addSignersBuilder(
int index) {
return getSignersFieldBuilder().addBuilder(
index, proto.tibc.lightclients.bsc.v1.Bsc.Signer.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.Signer signers = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getSignersBuilderList() {
return getSignersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>
getSignersFieldBuilder() {
if (signersBuilder_ == null) {
signersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.Signer, proto.tibc.lightclients.bsc.v1.Bsc.Signer.Builder, proto.tibc.lightclients.bsc.v1.Bsc.SignerOrBuilder>(
signers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
signers_ = null;
}
return signersBuilder_;
}
@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.lightclients.bsc.v1.SignerSet)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.SignerSet)
private static final proto.tibc.lightclients.bsc.v1.Bsc.SignerSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.SignerSet();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.SignerSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SignerSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignerSet(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.lightclients.bsc.v1.Bsc.SignerSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.ValidatorSet)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes validators = 1;
* @return A list containing the validators.
*/
java.util.List getValidatorsList();
/**
* repeated bytes validators = 1;
* @return The count of validators.
*/
int getValidatorsCount();
/**
* repeated bytes validators = 1;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
com.google.protobuf.ByteString getValidators(int index);
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.ValidatorSet}
*/
public static final class ValidatorSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.ValidatorSet)
ValidatorSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorSet.newBuilder() to construct.
private ValidatorSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorSet() {
validators_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValidatorSet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
validators_.add(input.readBytes());
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)) {
validators_ = java.util.Collections.unmodifiableList(validators_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ValidatorSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.class, proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.Builder.class);
}
public static final int VALIDATORS_FIELD_NUMBER = 1;
private java.util.List validators_;
/**
* repeated bytes validators = 1;
* @return A list containing the validators.
*/
@java.lang.Override
public java.util.List
getValidatorsList() {
return validators_;
}
/**
* repeated bytes validators = 1;
* @return The count of validators.
*/
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated bytes validators = 1;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
public com.google.protobuf.ByteString getValidators(int index) {
return validators_.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 {
for (int i = 0; i < validators_.size(); i++) {
output.writeBytes(1, validators_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < validators_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(validators_.get(i));
}
size += dataSize;
size += 1 * getValidatorsList().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.lightclients.bsc.v1.Bsc.ValidatorSet)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet other = (proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet) obj;
if (!getValidatorsList()
.equals(other.getValidatorsList())) 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 (getValidatorsCount() > 0) {
hash = (37 * hash) + VALIDATORS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet 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.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet 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.lightclients.bsc.v1.Bsc.ValidatorSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet 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.lightclients.bsc.v1.Bsc.ValidatorSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet 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.lightclients.bsc.v1.Bsc.ValidatorSet 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;
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.ValidatorSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.ValidatorSet)
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ValidatorSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.class, proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.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();
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet build() {
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet result = new proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
validators_ = java.util.Collections.unmodifiableList(validators_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validators_ = validators_;
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.lightclients.bsc.v1.Bsc.ValidatorSet) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet.getDefaultInstance()) return this;
if (!other.validators_.isEmpty()) {
if (validators_.isEmpty()) {
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidatorsIsMutable();
validators_.addAll(other.validators_);
}
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.lightclients.bsc.v1.Bsc.ValidatorSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List validators_ = java.util.Collections.emptyList();
private void ensureValidatorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList(validators_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes validators = 1;
* @return A list containing the validators.
*/
public java.util.List
getValidatorsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(validators_) : validators_;
}
/**
* repeated bytes validators = 1;
* @return The count of validators.
*/
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated bytes validators = 1;
* @param index The index of the element to return.
* @return The validators at the given index.
*/
public com.google.protobuf.ByteString getValidators(int index) {
return validators_.get(index);
}
/**
* repeated bytes validators = 1;
* @param index The index to set the value at.
* @param value The validators to set.
* @return This builder for chaining.
*/
public Builder setValidators(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes validators = 1;
* @param value The validators to add.
* @return This builder for chaining.
*/
public Builder addValidators(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(value);
onChanged();
return this;
}
/**
* repeated bytes validators = 1;
* @param values The validators to add.
* @return This builder for chaining.
*/
public Builder addAllValidators(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureValidatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validators_);
onChanged();
return this;
}
/**
* repeated bytes validators = 1;
* @return This builder for chaining.
*/
public Builder clearValidators() {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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.lightclients.bsc.v1.ValidatorSet)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.ValidatorSet)
private static final proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ValidatorSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorSet(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.lightclients.bsc.v1.Bsc.ValidatorSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsensusStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.ConsensusState)
com.google.protobuf.MessageOrBuilder {
/**
*
* timestamp that corresponds to the block height in which the ConsensusState
* was stored.
*
*
* uint64 timestamp = 1;
* @return The timestamp.
*/
long getTimestamp();
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return Whether the number field is set.
*/
boolean hasNumber();
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return The number.
*/
proto.tibc.core.client.v1.Client.Height getNumber();
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getNumberOrBuilder();
/**
* bytes root = 3;
* @return The root.
*/
com.google.protobuf.ByteString getRoot();
}
/**
*
* ConsensusState defines the consensus state from bsc.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.ConsensusState}
*/
public static final class ConsensusState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.ConsensusState)
ConsensusStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsensusState.newBuilder() to construct.
private ConsensusState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusState() {
root_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsensusState();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsensusState(
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: {
timestamp_ = input.readUInt64();
break;
}
case 18: {
proto.tibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (number_ != null) {
subBuilder = number_.toBuilder();
}
number_ = input.readMessage(proto.tibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(number_);
number_ = subBuilder.buildPartial();
}
break;
}
case 26: {
root_ = input.readBytes();
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.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ConsensusState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.class, proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.Builder.class);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private long timestamp_;
/**
*
* timestamp that corresponds to the block height in which the ConsensusState
* was stored.
*
*
* uint64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int NUMBER_FIELD_NUMBER = 2;
private proto.tibc.core.client.v1.Client.Height number_;
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return Whether the number field is set.
*/
@java.lang.Override
public boolean hasNumber() {
return number_ != null;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return The number.
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height getNumber() {
return number_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : number_;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.HeightOrBuilder getNumberOrBuilder() {
return getNumber();
}
public static final int ROOT_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString root_;
/**
* bytes root = 3;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
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 (timestamp_ != 0L) {
output.writeUInt64(1, timestamp_);
}
if (number_ != null) {
output.writeMessage(2, getNumber());
}
if (!root_.isEmpty()) {
output.writeBytes(3, root_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, timestamp_);
}
if (number_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNumber());
}
if (!root_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, root_);
}
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.lightclients.bsc.v1.Bsc.ConsensusState)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState other = (proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState) obj;
if (getTimestamp()
!= other.getTimestamp()) return false;
if (hasNumber() != other.hasNumber()) return false;
if (hasNumber()) {
if (!getNumber()
.equals(other.getNumber())) return false;
}
if (!getRoot()
.equals(other.getRoot())) 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) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
if (hasNumber()) {
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber().hashCode();
}
hash = (37 * hash) + ROOT_FIELD_NUMBER;
hash = (53 * hash) + getRoot().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState 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.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState 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.lightclients.bsc.v1.Bsc.ConsensusState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState 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.lightclients.bsc.v1.Bsc.ConsensusState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState 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.lightclients.bsc.v1.Bsc.ConsensusState 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;
}
/**
*
* ConsensusState defines the consensus state from bsc.
*
*
* Protobuf type {@code tibc.lightclients.bsc.v1.ConsensusState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.ConsensusState)
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ConsensusState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.class, proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.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();
timestamp_ = 0L;
if (numberBuilder_ == null) {
number_ = null;
} else {
number_ = null;
numberBuilder_ = null;
}
root_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState build() {
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState result = new proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState(this);
result.timestamp_ = timestamp_;
if (numberBuilder_ == null) {
result.number_ = number_;
} else {
result.number_ = numberBuilder_.build();
}
result.root_ = root_;
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.lightclients.bsc.v1.Bsc.ConsensusState) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState.getDefaultInstance()) return this;
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.hasNumber()) {
mergeNumber(other.getNumber());
}
if (other.getRoot() != com.google.protobuf.ByteString.EMPTY) {
setRoot(other.getRoot());
}
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.lightclients.bsc.v1.Bsc.ConsensusState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long timestamp_ ;
/**
*
* timestamp that corresponds to the block height in which the ConsensusState
* was stored.
*
*
* uint64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* timestamp that corresponds to the block height in which the ConsensusState
* was stored.
*
*
* uint64 timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* timestamp that corresponds to the block height in which the ConsensusState
* was stored.
*
*
* uint64 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private proto.tibc.core.client.v1.Client.Height number_;
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> numberBuilder_;
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return Whether the number field is set.
*/
public boolean hasNumber() {
return numberBuilder_ != null || number_ != null;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
* @return The number.
*/
public proto.tibc.core.client.v1.Client.Height getNumber() {
if (numberBuilder_ == null) {
return number_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : number_;
} else {
return numberBuilder_.getMessage();
}
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public Builder setNumber(proto.tibc.core.client.v1.Client.Height value) {
if (numberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
number_ = value;
onChanged();
} else {
numberBuilder_.setMessage(value);
}
return this;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public Builder setNumber(
proto.tibc.core.client.v1.Client.Height.Builder builderForValue) {
if (numberBuilder_ == null) {
number_ = builderForValue.build();
onChanged();
} else {
numberBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeNumber(proto.tibc.core.client.v1.Client.Height value) {
if (numberBuilder_ == null) {
if (number_ != null) {
number_ =
proto.tibc.core.client.v1.Client.Height.newBuilder(number_).mergeFrom(value).buildPartial();
} else {
number_ = value;
}
onChanged();
} else {
numberBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearNumber() {
if (numberBuilder_ == null) {
number_ = null;
onChanged();
} else {
number_ = null;
numberBuilder_ = null;
}
return this;
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getNumberBuilder() {
onChanged();
return getNumberFieldBuilder().getBuilder();
}
/**
* .tibc.core.client.v1.Height number = 2 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.HeightOrBuilder getNumberOrBuilder() {
if (numberBuilder_ != null) {
return numberBuilder_.getMessageOrBuilder();
} else {
return number_ == null ?
proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : number_;
}
}
/**
* .tibc.core.client.v1.Height number = 2 [(.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>
getNumberFieldBuilder() {
if (numberBuilder_ == null) {
numberBuilder_ = 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>(
getNumber(),
getParentForChildren(),
isClean());
number_ = null;
}
return numberBuilder_;
}
private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes root = 3;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
/**
* bytes root = 3;
* @param value The root to set.
* @return This builder for chaining.
*/
public Builder setRoot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
root_ = value;
onChanged();
return this;
}
/**
* bytes root = 3;
* @return This builder for chaining.
*/
public Builder clearRoot() {
root_ = getDefaultInstance().getRoot();
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.lightclients.bsc.v1.ConsensusState)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.ConsensusState)
private static final proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.ConsensusState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsensusState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsensusState(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.lightclients.bsc.v1.Bsc.ConsensusState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.StorageResult)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
* string value = 2;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* repeated string proof = 3;
* @return A list containing the proof.
*/
java.util.List
getProofList();
/**
* repeated string proof = 3;
* @return The count of proof.
*/
int getProofCount();
/**
* repeated string proof = 3;
* @param index The index of the element to return.
* @return The proof at the given index.
*/
java.lang.String getProof(int index);
/**
* repeated string proof = 3;
* @param index The index of the value to return.
* @return The bytes of the proof at the given index.
*/
com.google.protobuf.ByteString
getProofBytes(int index);
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.StorageResult}
*/
public static final class StorageResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.StorageResult)
StorageResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageResult.newBuilder() to construct.
private StorageResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageResult() {
key_ = "";
value_ = "";
proof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageResult(
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();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
proof_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
proof_.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)) {
proof_ = proof_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_StorageResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.class, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROOF_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList proof_;
/**
* repeated string proof = 3;
* @return A list containing the proof.
*/
public com.google.protobuf.ProtocolStringList
getProofList() {
return proof_;
}
/**
* repeated string proof = 3;
* @return The count of proof.
*/
public int getProofCount() {
return proof_.size();
}
/**
* repeated string proof = 3;
* @param index The index of the element to return.
* @return The proof at the given index.
*/
public java.lang.String getProof(int index) {
return proof_.get(index);
}
/**
* repeated string proof = 3;
* @param index The index of the value to return.
* @return The bytes of the proof at the given index.
*/
public com.google.protobuf.ByteString
getProofBytes(int index) {
return proof_.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 (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
for (int i = 0; i < proof_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proof_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
{
int dataSize = 0;
for (int i = 0; i < proof_.size(); i++) {
dataSize += computeStringSizeNoTag(proof_.getRaw(i));
}
size += dataSize;
size += 1 * getProofList().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.lightclients.bsc.v1.Bsc.StorageResult)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult other = (proto.tibc.lightclients.bsc.v1.Bsc.StorageResult) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getProofList()
.equals(other.getProofList())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
if (getProofCount() > 0) {
hash = (37 * hash) + PROOF_FIELD_NUMBER;
hash = (53 * hash) + getProofList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult 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.lightclients.bsc.v1.Bsc.StorageResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult 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.lightclients.bsc.v1.Bsc.StorageResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult 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.lightclients.bsc.v1.Bsc.StorageResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult 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.lightclients.bsc.v1.Bsc.StorageResult 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;
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.StorageResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.StorageResult)
proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_StorageResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.class, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
value_ = "";
proof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult build() {
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult result = new proto.tibc.lightclients.bsc.v1.Bsc.StorageResult(this);
int from_bitField0_ = bitField0_;
result.key_ = key_;
result.value_ = value_;
if (((bitField0_ & 0x00000001) != 0)) {
proof_ = proof_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.proof_ = proof_;
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.lightclients.bsc.v1.Bsc.StorageResult) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.StorageResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.StorageResult other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
if (!other.proof_.isEmpty()) {
if (proof_.isEmpty()) {
proof_ = other.proof_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProofIsMutable();
proof_.addAll(other.proof_);
}
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.lightclients.bsc.v1.Bsc.StorageResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.StorageResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList proof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProofIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
proof_ = new com.google.protobuf.LazyStringArrayList(proof_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string proof = 3;
* @return A list containing the proof.
*/
public com.google.protobuf.ProtocolStringList
getProofList() {
return proof_.getUnmodifiableView();
}
/**
* repeated string proof = 3;
* @return The count of proof.
*/
public int getProofCount() {
return proof_.size();
}
/**
* repeated string proof = 3;
* @param index The index of the element to return.
* @return The proof at the given index.
*/
public java.lang.String getProof(int index) {
return proof_.get(index);
}
/**
* repeated string proof = 3;
* @param index The index of the value to return.
* @return The bytes of the proof at the given index.
*/
public com.google.protobuf.ByteString
getProofBytes(int index) {
return proof_.getByteString(index);
}
/**
* repeated string proof = 3;
* @param index The index to set the value at.
* @param value The proof to set.
* @return This builder for chaining.
*/
public Builder setProof(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProofIsMutable();
proof_.set(index, value);
onChanged();
return this;
}
/**
* repeated string proof = 3;
* @param value The proof to add.
* @return This builder for chaining.
*/
public Builder addProof(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProofIsMutable();
proof_.add(value);
onChanged();
return this;
}
/**
* repeated string proof = 3;
* @param values The proof to add.
* @return This builder for chaining.
*/
public Builder addAllProof(
java.lang.Iterable values) {
ensureProofIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proof_);
onChanged();
return this;
}
/**
* repeated string proof = 3;
* @return This builder for chaining.
*/
public Builder clearProof() {
proof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string proof = 3;
* @param value The bytes of the proof to add.
* @return This builder for chaining.
*/
public Builder addProofBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureProofIsMutable();
proof_.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.lightclients.bsc.v1.StorageResult)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.StorageResult)
private static final proto.tibc.lightclients.bsc.v1.Bsc.StorageResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.StorageResult();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.StorageResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageResult(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.lightclients.bsc.v1.Bsc.StorageResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProofOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.lightclients.bsc.v1.Proof)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* string balance = 2;
* @return The balance.
*/
java.lang.String getBalance();
/**
* string balance = 2;
* @return The bytes for balance.
*/
com.google.protobuf.ByteString
getBalanceBytes();
/**
* string code_hash = 3;
* @return The codeHash.
*/
java.lang.String getCodeHash();
/**
* string code_hash = 3;
* @return The bytes for codeHash.
*/
com.google.protobuf.ByteString
getCodeHashBytes();
/**
* string nonce = 4;
* @return The nonce.
*/
java.lang.String getNonce();
/**
* string nonce = 4;
* @return The bytes for nonce.
*/
com.google.protobuf.ByteString
getNonceBytes();
/**
* string storage_hash = 5;
* @return The storageHash.
*/
java.lang.String getStorageHash();
/**
* string storage_hash = 5;
* @return The bytes for storageHash.
*/
com.google.protobuf.ByteString
getStorageHashBytes();
/**
* repeated string account_proof = 6;
* @return A list containing the accountProof.
*/
java.util.List
getAccountProofList();
/**
* repeated string account_proof = 6;
* @return The count of accountProof.
*/
int getAccountProofCount();
/**
* repeated string account_proof = 6;
* @param index The index of the element to return.
* @return The accountProof at the given index.
*/
java.lang.String getAccountProof(int index);
/**
* repeated string account_proof = 6;
* @param index The index of the value to return.
* @return The bytes of the accountProof at the given index.
*/
com.google.protobuf.ByteString
getAccountProofBytes(int index);
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
java.util.List
getStorageProofList();
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult getStorageProof(int index);
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
int getStorageProofCount();
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder>
getStorageProofOrBuilderList();
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder getStorageProofOrBuilder(
int index);
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.Proof}
*/
public static final class Proof extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.lightclients.bsc.v1.Proof)
ProofOrBuilder {
private static final long serialVersionUID = 0L;
// Use Proof.newBuilder() to construct.
private Proof(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Proof() {
address_ = "";
balance_ = "";
codeHash_ = "";
nonce_ = "";
storageHash_ = "";
accountProof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
storageProof_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Proof();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Proof(
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();
address_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
balance_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
codeHash_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
nonce_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
storageHash_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
accountProof_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
accountProof_.add(s);
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
storageProof_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
storageProof_.add(
input.readMessage(proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.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)) {
accountProof_ = accountProof_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
storageProof_ = java.util.Collections.unmodifiableList(storageProof_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Proof_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Proof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Proof.class, proto.tibc.lightclients.bsc.v1.Bsc.Proof.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BALANCE_FIELD_NUMBER = 2;
private volatile java.lang.Object balance_;
/**
* string balance = 2;
* @return The balance.
*/
@java.lang.Override
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
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();
balance_ = s;
return s;
}
}
/**
* string balance = 2;
* @return The bytes for balance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CODE_HASH_FIELD_NUMBER = 3;
private volatile java.lang.Object codeHash_;
/**
* string code_hash = 3;
* @return The codeHash.
*/
@java.lang.Override
public java.lang.String getCodeHash() {
java.lang.Object ref = codeHash_;
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();
codeHash_ = s;
return s;
}
}
/**
* string code_hash = 3;
* @return The bytes for codeHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodeHashBytes() {
java.lang.Object ref = codeHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object nonce_;
/**
* string nonce = 4;
* @return The nonce.
*/
@java.lang.Override
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
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();
nonce_ = s;
return s;
}
}
/**
* string nonce = 4;
* @return The bytes for nonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STORAGE_HASH_FIELD_NUMBER = 5;
private volatile java.lang.Object storageHash_;
/**
* string storage_hash = 5;
* @return The storageHash.
*/
@java.lang.Override
public java.lang.String getStorageHash() {
java.lang.Object ref = storageHash_;
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();
storageHash_ = s;
return s;
}
}
/**
* string storage_hash = 5;
* @return The bytes for storageHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStorageHashBytes() {
java.lang.Object ref = storageHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCOUNT_PROOF_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList accountProof_;
/**
* repeated string account_proof = 6;
* @return A list containing the accountProof.
*/
public com.google.protobuf.ProtocolStringList
getAccountProofList() {
return accountProof_;
}
/**
* repeated string account_proof = 6;
* @return The count of accountProof.
*/
public int getAccountProofCount() {
return accountProof_.size();
}
/**
* repeated string account_proof = 6;
* @param index The index of the element to return.
* @return The accountProof at the given index.
*/
public java.lang.String getAccountProof(int index) {
return accountProof_.get(index);
}
/**
* repeated string account_proof = 6;
* @param index The index of the value to return.
* @return The bytes of the accountProof at the given index.
*/
public com.google.protobuf.ByteString
getAccountProofBytes(int index) {
return accountProof_.getByteString(index);
}
public static final int STORAGE_PROOF_FIELD_NUMBER = 7;
private java.util.List storageProof_;
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
@java.lang.Override
public java.util.List getStorageProofList() {
return storageProof_;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
@java.lang.Override
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder>
getStorageProofOrBuilderList() {
return storageProof_;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
@java.lang.Override
public int getStorageProofCount() {
return storageProof_.size();
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult getStorageProof(int index) {
return storageProof_.get(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder getStorageProofOrBuilder(
int index) {
return storageProof_.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 (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!getBalanceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, balance_);
}
if (!getCodeHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, codeHash_);
}
if (!getNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_);
}
if (!getStorageHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, storageHash_);
}
for (int i = 0; i < accountProof_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, accountProof_.getRaw(i));
}
for (int i = 0; i < storageProof_.size(); i++) {
output.writeMessage(7, storageProof_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!getBalanceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, balance_);
}
if (!getCodeHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, codeHash_);
}
if (!getNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_);
}
if (!getStorageHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageHash_);
}
{
int dataSize = 0;
for (int i = 0; i < accountProof_.size(); i++) {
dataSize += computeStringSizeNoTag(accountProof_.getRaw(i));
}
size += dataSize;
size += 1 * getAccountProofList().size();
}
for (int i = 0; i < storageProof_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, storageProof_.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.lightclients.bsc.v1.Bsc.Proof)) {
return super.equals(obj);
}
proto.tibc.lightclients.bsc.v1.Bsc.Proof other = (proto.tibc.lightclients.bsc.v1.Bsc.Proof) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getBalance()
.equals(other.getBalance())) return false;
if (!getCodeHash()
.equals(other.getCodeHash())) return false;
if (!getNonce()
.equals(other.getNonce())) return false;
if (!getStorageHash()
.equals(other.getStorageHash())) return false;
if (!getAccountProofList()
.equals(other.getAccountProofList())) return false;
if (!getStorageProofList()
.equals(other.getStorageProofList())) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + BALANCE_FIELD_NUMBER;
hash = (53 * hash) + getBalance().hashCode();
hash = (37 * hash) + CODE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getCodeHash().hashCode();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (37 * hash) + STORAGE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getStorageHash().hashCode();
if (getAccountProofCount() > 0) {
hash = (37 * hash) + ACCOUNT_PROOF_FIELD_NUMBER;
hash = (53 * hash) + getAccountProofList().hashCode();
}
if (getStorageProofCount() > 0) {
hash = (37 * hash) + STORAGE_PROOF_FIELD_NUMBER;
hash = (53 * hash) + getStorageProofList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof 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.lightclients.bsc.v1.Bsc.Proof parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof 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.lightclients.bsc.v1.Bsc.Proof parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof 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.lightclients.bsc.v1.Bsc.Proof parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof 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.lightclients.bsc.v1.Bsc.Proof 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;
}
/**
* Protobuf type {@code tibc.lightclients.bsc.v1.Proof}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.lightclients.bsc.v1.Proof)
proto.tibc.lightclients.bsc.v1.Bsc.ProofOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Proof_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Proof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.lightclients.bsc.v1.Bsc.Proof.class, proto.tibc.lightclients.bsc.v1.Bsc.Proof.Builder.class);
}
// Construct using proto.tibc.lightclients.bsc.v1.Bsc.Proof.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStorageProofFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = "";
balance_ = "";
codeHash_ = "";
nonce_ = "";
storageHash_ = "";
accountProof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (storageProofBuilder_ == null) {
storageProof_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
storageProofBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.internal_static_tibc_lightclients_bsc_v1_Proof_descriptor;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Proof getDefaultInstanceForType() {
return proto.tibc.lightclients.bsc.v1.Bsc.Proof.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Proof build() {
proto.tibc.lightclients.bsc.v1.Bsc.Proof result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.lightclients.bsc.v1.Bsc.Proof buildPartial() {
proto.tibc.lightclients.bsc.v1.Bsc.Proof result = new proto.tibc.lightclients.bsc.v1.Bsc.Proof(this);
int from_bitField0_ = bitField0_;
result.address_ = address_;
result.balance_ = balance_;
result.codeHash_ = codeHash_;
result.nonce_ = nonce_;
result.storageHash_ = storageHash_;
if (((bitField0_ & 0x00000001) != 0)) {
accountProof_ = accountProof_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.accountProof_ = accountProof_;
if (storageProofBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
storageProof_ = java.util.Collections.unmodifiableList(storageProof_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.storageProof_ = storageProof_;
} else {
result.storageProof_ = storageProofBuilder_.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.lightclients.bsc.v1.Bsc.Proof) {
return mergeFrom((proto.tibc.lightclients.bsc.v1.Bsc.Proof)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.lightclients.bsc.v1.Bsc.Proof other) {
if (other == proto.tibc.lightclients.bsc.v1.Bsc.Proof.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getBalance().isEmpty()) {
balance_ = other.balance_;
onChanged();
}
if (!other.getCodeHash().isEmpty()) {
codeHash_ = other.codeHash_;
onChanged();
}
if (!other.getNonce().isEmpty()) {
nonce_ = other.nonce_;
onChanged();
}
if (!other.getStorageHash().isEmpty()) {
storageHash_ = other.storageHash_;
onChanged();
}
if (!other.accountProof_.isEmpty()) {
if (accountProof_.isEmpty()) {
accountProof_ = other.accountProof_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAccountProofIsMutable();
accountProof_.addAll(other.accountProof_);
}
onChanged();
}
if (storageProofBuilder_ == null) {
if (!other.storageProof_.isEmpty()) {
if (storageProof_.isEmpty()) {
storageProof_ = other.storageProof_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStorageProofIsMutable();
storageProof_.addAll(other.storageProof_);
}
onChanged();
}
} else {
if (!other.storageProof_.isEmpty()) {
if (storageProofBuilder_.isEmpty()) {
storageProofBuilder_.dispose();
storageProofBuilder_ = null;
storageProof_ = other.storageProof_;
bitField0_ = (bitField0_ & ~0x00000002);
storageProofBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStorageProofFieldBuilder() : null;
} else {
storageProofBuilder_.addAllMessages(other.storageProof_);
}
}
}
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.lightclients.bsc.v1.Bsc.Proof parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.lightclients.bsc.v1.Bsc.Proof) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.lang.Object balance_ = "";
/**
* string balance = 2;
* @return The balance.
*/
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
balance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string balance = 2;
* @return The bytes for balance.
*/
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string balance = 2;
* @param value The balance to set.
* @return This builder for chaining.
*/
public Builder setBalance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
return this;
}
/**
* string balance = 2;
* @return This builder for chaining.
*/
public Builder clearBalance() {
balance_ = getDefaultInstance().getBalance();
onChanged();
return this;
}
/**
* string balance = 2;
* @param value The bytes for balance to set.
* @return This builder for chaining.
*/
public Builder setBalanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
balance_ = value;
onChanged();
return this;
}
private java.lang.Object codeHash_ = "";
/**
* string code_hash = 3;
* @return The codeHash.
*/
public java.lang.String getCodeHash() {
java.lang.Object ref = codeHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codeHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string code_hash = 3;
* @return The bytes for codeHash.
*/
public com.google.protobuf.ByteString
getCodeHashBytes() {
java.lang.Object ref = codeHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string code_hash = 3;
* @param value The codeHash to set.
* @return This builder for chaining.
*/
public Builder setCodeHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codeHash_ = value;
onChanged();
return this;
}
/**
* string code_hash = 3;
* @return This builder for chaining.
*/
public Builder clearCodeHash() {
codeHash_ = getDefaultInstance().getCodeHash();
onChanged();
return this;
}
/**
* string code_hash = 3;
* @param value The bytes for codeHash to set.
* @return This builder for chaining.
*/
public Builder setCodeHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codeHash_ = value;
onChanged();
return this;
}
private java.lang.Object nonce_ = "";
/**
* string nonce = 4;
* @return The nonce.
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nonce_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string nonce = 4;
* @return The bytes for nonce.
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string nonce = 4;
* @param value The nonce to set.
* @return This builder for chaining.
*/
public Builder setNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nonce_ = value;
onChanged();
return this;
}
/**
* string nonce = 4;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
/**
* string nonce = 4;
* @param value The bytes for nonce to set.
* @return This builder for chaining.
*/
public Builder setNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nonce_ = value;
onChanged();
return this;
}
private java.lang.Object storageHash_ = "";
/**
* string storage_hash = 5;
* @return The storageHash.
*/
public java.lang.String getStorageHash() {
java.lang.Object ref = storageHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storageHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string storage_hash = 5;
* @return The bytes for storageHash.
*/
public com.google.protobuf.ByteString
getStorageHashBytes() {
java.lang.Object ref = storageHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string storage_hash = 5;
* @param value The storageHash to set.
* @return This builder for chaining.
*/
public Builder setStorageHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storageHash_ = value;
onChanged();
return this;
}
/**
* string storage_hash = 5;
* @return This builder for chaining.
*/
public Builder clearStorageHash() {
storageHash_ = getDefaultInstance().getStorageHash();
onChanged();
return this;
}
/**
* string storage_hash = 5;
* @param value The bytes for storageHash to set.
* @return This builder for chaining.
*/
public Builder setStorageHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storageHash_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList accountProof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAccountProofIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
accountProof_ = new com.google.protobuf.LazyStringArrayList(accountProof_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string account_proof = 6;
* @return A list containing the accountProof.
*/
public com.google.protobuf.ProtocolStringList
getAccountProofList() {
return accountProof_.getUnmodifiableView();
}
/**
* repeated string account_proof = 6;
* @return The count of accountProof.
*/
public int getAccountProofCount() {
return accountProof_.size();
}
/**
* repeated string account_proof = 6;
* @param index The index of the element to return.
* @return The accountProof at the given index.
*/
public java.lang.String getAccountProof(int index) {
return accountProof_.get(index);
}
/**
* repeated string account_proof = 6;
* @param index The index of the value to return.
* @return The bytes of the accountProof at the given index.
*/
public com.google.protobuf.ByteString
getAccountProofBytes(int index) {
return accountProof_.getByteString(index);
}
/**
* repeated string account_proof = 6;
* @param index The index to set the value at.
* @param value The accountProof to set.
* @return This builder for chaining.
*/
public Builder setAccountProof(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAccountProofIsMutable();
accountProof_.set(index, value);
onChanged();
return this;
}
/**
* repeated string account_proof = 6;
* @param value The accountProof to add.
* @return This builder for chaining.
*/
public Builder addAccountProof(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAccountProofIsMutable();
accountProof_.add(value);
onChanged();
return this;
}
/**
* repeated string account_proof = 6;
* @param values The accountProof to add.
* @return This builder for chaining.
*/
public Builder addAllAccountProof(
java.lang.Iterable values) {
ensureAccountProofIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accountProof_);
onChanged();
return this;
}
/**
* repeated string account_proof = 6;
* @return This builder for chaining.
*/
public Builder clearAccountProof() {
accountProof_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string account_proof = 6;
* @param value The bytes of the accountProof to add.
* @return This builder for chaining.
*/
public Builder addAccountProofBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAccountProofIsMutable();
accountProof_.add(value);
onChanged();
return this;
}
private java.util.List storageProof_ =
java.util.Collections.emptyList();
private void ensureStorageProofIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
storageProof_ = new java.util.ArrayList(storageProof_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder, proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder> storageProofBuilder_;
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public java.util.List getStorageProofList() {
if (storageProofBuilder_ == null) {
return java.util.Collections.unmodifiableList(storageProof_);
} else {
return storageProofBuilder_.getMessageList();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public int getStorageProofCount() {
if (storageProofBuilder_ == null) {
return storageProof_.size();
} else {
return storageProofBuilder_.getCount();
}
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult getStorageProof(int index) {
if (storageProofBuilder_ == null) {
return storageProof_.get(index);
} else {
return storageProofBuilder_.getMessage(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder setStorageProof(
int index, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult value) {
if (storageProofBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageProofIsMutable();
storageProof_.set(index, value);
onChanged();
} else {
storageProofBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder setStorageProof(
int index, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder builderForValue) {
if (storageProofBuilder_ == null) {
ensureStorageProofIsMutable();
storageProof_.set(index, builderForValue.build());
onChanged();
} else {
storageProofBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder addStorageProof(proto.tibc.lightclients.bsc.v1.Bsc.StorageResult value) {
if (storageProofBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageProofIsMutable();
storageProof_.add(value);
onChanged();
} else {
storageProofBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder addStorageProof(
int index, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult value) {
if (storageProofBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageProofIsMutable();
storageProof_.add(index, value);
onChanged();
} else {
storageProofBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder addStorageProof(
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder builderForValue) {
if (storageProofBuilder_ == null) {
ensureStorageProofIsMutable();
storageProof_.add(builderForValue.build());
onChanged();
} else {
storageProofBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder addStorageProof(
int index, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder builderForValue) {
if (storageProofBuilder_ == null) {
ensureStorageProofIsMutable();
storageProof_.add(index, builderForValue.build());
onChanged();
} else {
storageProofBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder addAllStorageProof(
java.lang.Iterable extends proto.tibc.lightclients.bsc.v1.Bsc.StorageResult> values) {
if (storageProofBuilder_ == null) {
ensureStorageProofIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageProof_);
onChanged();
} else {
storageProofBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder clearStorageProof() {
if (storageProofBuilder_ == null) {
storageProof_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
storageProofBuilder_.clear();
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public Builder removeStorageProof(int index) {
if (storageProofBuilder_ == null) {
ensureStorageProofIsMutable();
storageProof_.remove(index);
onChanged();
} else {
storageProofBuilder_.remove(index);
}
return this;
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder getStorageProofBuilder(
int index) {
return getStorageProofFieldBuilder().getBuilder(index);
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder getStorageProofOrBuilder(
int index) {
if (storageProofBuilder_ == null) {
return storageProof_.get(index); } else {
return storageProofBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public java.util.List extends proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder>
getStorageProofOrBuilderList() {
if (storageProofBuilder_ != null) {
return storageProofBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storageProof_);
}
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder addStorageProofBuilder() {
return getStorageProofFieldBuilder().addBuilder(
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder addStorageProofBuilder(
int index) {
return getStorageProofFieldBuilder().addBuilder(
index, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.getDefaultInstance());
}
/**
* repeated .tibc.lightclients.bsc.v1.StorageResult storage_proof = 7;
*/
public java.util.List
getStorageProofBuilderList() {
return getStorageProofFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder, proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder>
getStorageProofFieldBuilder() {
if (storageProofBuilder_ == null) {
storageProofBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.lightclients.bsc.v1.Bsc.StorageResult, proto.tibc.lightclients.bsc.v1.Bsc.StorageResult.Builder, proto.tibc.lightclients.bsc.v1.Bsc.StorageResultOrBuilder>(
storageProof_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
storageProof_ = null;
}
return storageProofBuilder_;
}
@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.lightclients.bsc.v1.Proof)
}
// @@protoc_insertion_point(class_scope:tibc.lightclients.bsc.v1.Proof)
private static final proto.tibc.lightclients.bsc.v1.Bsc.Proof DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.lightclients.bsc.v1.Bsc.Proof();
}
public static proto.tibc.lightclients.bsc.v1.Bsc.Proof getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Proof parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Proof(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.lightclients.bsc.v1.Bsc.Proof getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_Header_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_Header_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_ClientState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_Signer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_Signer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_SignerSet_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_ValidatorSet_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_ConsensusState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_StorageResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_lightclients_bsc_v1_Proof_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_lightclients_bsc_v1_Proof_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/lightclients/bsc/v1/bsc.proto\022\030ti" +
"bc.lightclients.bsc.v1\032\024gogoproto/gogo.p" +
"roto\032 tibc/core/client/v1/client.proto\"\271" +
"\002\n\006Header\022\023\n\013parent_hash\030\001 \001(\014\022\022\n\nuncle_" +
"hash\030\002 \001(\014\022\020\n\010coinbase\030\003 \001(\014\022\014\n\004root\030\004 \001" +
"(\014\022\017\n\007tx_hash\030\005 \001(\014\022\024\n\014receipt_hash\030\006 \001(" +
"\014\022\r\n\005bloom\030\007 \001(\014\022\022\n\ndifficulty\030\010 \001(\004\0221\n\006" +
"height\030\t \001(\0132\033.tibc.core.client.v1.Heigh" +
"tB\004\310\336\037\000\022\021\n\tgas_limit\030\n \001(\004\022\020\n\010gas_used\030\013" +
" \001(\004\022\014\n\004time\030\014 \001(\004\022\r\n\005extra\030\r \001(\014\022\022\n\nmix" +
"_digest\030\016 \001(\014\022\r\n\005nonce\030\017 \001(\014:\004\210\240\037\000\"\212\002\n\013C" +
"lientState\0226\n\006header\030\001 \001(\0132 .tibc.lightc" +
"lients.bsc.v1.HeaderB\004\310\336\037\000\022\020\n\010chain_id\030\002" +
" \001(\004\022\r\n\005epoch\030\003 \001(\004\022\025\n\rblock_inteval\030\004 \001" +
"(\004\022\022\n\nvalidators\030\005 \003(\014\022>\n\016recent_signers" +
"\030\006 \003(\0132 .tibc.lightclients.bsc.v1.Signer" +
"B\004\310\336\037\000\022\030\n\020contract_address\030\007 \001(\014\022\027\n\017trus" +
"ting_period\030\010 \001(\004:\004\210\240\037\000\"N\n\006Signer\0221\n\006hei" +
"ght\030\001 \001(\0132\033.tibc.core.client.v1.HeightB\004" +
"\310\336\037\000\022\021\n\tvalidator\030\002 \001(\014\"D\n\tSignerSet\0227\n\007" +
"signers\030\001 \003(\0132 .tibc.lightclients.bsc.v1" +
".SignerB\004\310\336\037\000\"\"\n\014ValidatorSet\022\022\n\nvalidat" +
"ors\030\001 \003(\014\"j\n\016ConsensusState\022\021\n\ttimestamp" +
"\030\001 \001(\004\0221\n\006number\030\002 \001(\0132\033.tibc.core.clien" +
"t.v1.HeightB\004\310\336\037\000\022\014\n\004root\030\003 \001(\014:\004\210\240\037\000\"@\n" +
"\rStorageResult\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
"(\t\022\r\n\005proof\030\003 \003(\t:\004\210\240\037\000\"\276\001\n\005Proof\022\017\n\007add" +
"ress\030\001 \001(\t\022\017\n\007balance\030\002 \001(\t\022\021\n\tcode_hash" +
"\030\003 \001(\t\022\r\n\005nonce\030\004 \001(\t\022\024\n\014storage_hash\030\005 " +
"\001(\t\022\025\n\raccount_proof\030\006 \003(\t\022>\n\rstorage_pr" +
"oof\030\007 \003(\0132\'.tibc.lightclients.bsc.v1.Sto" +
"rageResult:\004\210\240\037\000B \n\036proto.tibc.lightclie" +
"nts.bsc.v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
proto.tibc.core.client.v1.Client.getDescriptor(),
});
internal_static_tibc_lightclients_bsc_v1_Header_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tibc_lightclients_bsc_v1_Header_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_Header_descriptor,
new java.lang.String[] { "ParentHash", "UncleHash", "Coinbase", "Root", "TxHash", "ReceiptHash", "Bloom", "Difficulty", "Height", "GasLimit", "GasUsed", "Time", "Extra", "MixDigest", "Nonce", });
internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tibc_lightclients_bsc_v1_ClientState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_ClientState_descriptor,
new java.lang.String[] { "Header", "ChainId", "Epoch", "BlockInteval", "Validators", "RecentSigners", "ContractAddress", "TrustingPeriod", });
internal_static_tibc_lightclients_bsc_v1_Signer_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tibc_lightclients_bsc_v1_Signer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_Signer_descriptor,
new java.lang.String[] { "Height", "Validator", });
internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tibc_lightclients_bsc_v1_SignerSet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_SignerSet_descriptor,
new java.lang.String[] { "Signers", });
internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tibc_lightclients_bsc_v1_ValidatorSet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_ValidatorSet_descriptor,
new java.lang.String[] { "Validators", });
internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tibc_lightclients_bsc_v1_ConsensusState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_ConsensusState_descriptor,
new java.lang.String[] { "Timestamp", "Number", "Root", });
internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tibc_lightclients_bsc_v1_StorageResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_StorageResult_descriptor,
new java.lang.String[] { "Key", "Value", "Proof", });
internal_static_tibc_lightclients_bsc_v1_Proof_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_tibc_lightclients_bsc_v1_Proof_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_lightclients_bsc_v1_Proof_descriptor,
new java.lang.String[] { "Address", "Balance", "CodeHash", "Nonce", "StorageHash", "AccountProof", "StorageProof", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
proto.tibc.core.client.v1.Client.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}