Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
tendermint.abci.Types Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/tendermint/tendermint/abci/types.proto
package tendermint.abci;
public final class Types {
private Types() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code tendermint.abci.CheckTxType}
*/
public enum CheckTxType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NEW = 0 [(.gogoproto.enumvalue_customname) = "New"];
*/
NEW(0),
/**
* RECHECK = 1 [(.gogoproto.enumvalue_customname) = "Recheck"];
*/
RECHECK(1),
UNRECOGNIZED(-1),
;
/**
* NEW = 0 [(.gogoproto.enumvalue_customname) = "New"];
*/
public static final int NEW_VALUE = 0;
/**
* RECHECK = 1 [(.gogoproto.enumvalue_customname) = "Recheck"];
*/
public static final int RECHECK_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CheckTxType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CheckTxType forNumber(int value) {
switch (value) {
case 0: return NEW;
case 1: return RECHECK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CheckTxType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CheckTxType findValueByNumber(int number) {
return CheckTxType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tendermint.abci.Types.getDescriptor().getEnumTypes().get(0);
}
private static final CheckTxType[] VALUES = values();
public static CheckTxType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CheckTxType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tendermint.abci.CheckTxType)
}
/**
* Protobuf enum {@code tendermint.abci.EvidenceType}
*/
public enum EvidenceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* DUPLICATE_VOTE = 1;
*/
DUPLICATE_VOTE(1),
/**
* LIGHT_CLIENT_ATTACK = 2;
*/
LIGHT_CLIENT_ATTACK(2),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* DUPLICATE_VOTE = 1;
*/
public static final int DUPLICATE_VOTE_VALUE = 1;
/**
* LIGHT_CLIENT_ATTACK = 2;
*/
public static final int LIGHT_CLIENT_ATTACK_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EvidenceType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EvidenceType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return DUPLICATE_VOTE;
case 2: return LIGHT_CLIENT_ATTACK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EvidenceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EvidenceType findValueByNumber(int number) {
return EvidenceType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tendermint.abci.Types.getDescriptor().getEnumTypes().get(1);
}
private static final EvidenceType[] VALUES = values();
public static EvidenceType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EvidenceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tendermint.abci.EvidenceType)
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.Request)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return Whether the echo field is set.
*/
boolean hasEcho();
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return The echo.
*/
tendermint.abci.Types.RequestEcho getEcho();
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
tendermint.abci.Types.RequestEchoOrBuilder getEchoOrBuilder();
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return Whether the flush field is set.
*/
boolean hasFlush();
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return The flush.
*/
tendermint.abci.Types.RequestFlush getFlush();
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
tendermint.abci.Types.RequestFlushOrBuilder getFlushOrBuilder();
/**
* .tendermint.abci.RequestInfo info = 3;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .tendermint.abci.RequestInfo info = 3;
* @return The info.
*/
tendermint.abci.Types.RequestInfo getInfo();
/**
* .tendermint.abci.RequestInfo info = 3;
*/
tendermint.abci.Types.RequestInfoOrBuilder getInfoOrBuilder();
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return Whether the setOption field is set.
*/
boolean hasSetOption();
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return The setOption.
*/
tendermint.abci.Types.RequestSetOption getSetOption();
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
tendermint.abci.Types.RequestSetOptionOrBuilder getSetOptionOrBuilder();
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return Whether the initChain field is set.
*/
boolean hasInitChain();
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return The initChain.
*/
tendermint.abci.Types.RequestInitChain getInitChain();
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
tendermint.abci.Types.RequestInitChainOrBuilder getInitChainOrBuilder();
/**
* .tendermint.abci.RequestQuery query = 6;
* @return Whether the query field is set.
*/
boolean hasQuery();
/**
* .tendermint.abci.RequestQuery query = 6;
* @return The query.
*/
tendermint.abci.Types.RequestQuery getQuery();
/**
* .tendermint.abci.RequestQuery query = 6;
*/
tendermint.abci.Types.RequestQueryOrBuilder getQueryOrBuilder();
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return Whether the beginBlock field is set.
*/
boolean hasBeginBlock();
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return The beginBlock.
*/
tendermint.abci.Types.RequestBeginBlock getBeginBlock();
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
tendermint.abci.Types.RequestBeginBlockOrBuilder getBeginBlockOrBuilder();
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return Whether the checkTx field is set.
*/
boolean hasCheckTx();
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return The checkTx.
*/
tendermint.abci.Types.RequestCheckTx getCheckTx();
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
tendermint.abci.Types.RequestCheckTxOrBuilder getCheckTxOrBuilder();
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return Whether the deliverTx field is set.
*/
boolean hasDeliverTx();
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return The deliverTx.
*/
tendermint.abci.Types.RequestDeliverTx getDeliverTx();
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
tendermint.abci.Types.RequestDeliverTxOrBuilder getDeliverTxOrBuilder();
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return Whether the endBlock field is set.
*/
boolean hasEndBlock();
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return The endBlock.
*/
tendermint.abci.Types.RequestEndBlock getEndBlock();
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
tendermint.abci.Types.RequestEndBlockOrBuilder getEndBlockOrBuilder();
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return Whether the commit field is set.
*/
boolean hasCommit();
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return The commit.
*/
tendermint.abci.Types.RequestCommit getCommit();
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
tendermint.abci.Types.RequestCommitOrBuilder getCommitOrBuilder();
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return Whether the listSnapshots field is set.
*/
boolean hasListSnapshots();
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return The listSnapshots.
*/
tendermint.abci.Types.RequestListSnapshots getListSnapshots();
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
tendermint.abci.Types.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder();
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return Whether the offerSnapshot field is set.
*/
boolean hasOfferSnapshot();
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return The offerSnapshot.
*/
tendermint.abci.Types.RequestOfferSnapshot getOfferSnapshot();
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
tendermint.abci.Types.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder();
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return Whether the loadSnapshotChunk field is set.
*/
boolean hasLoadSnapshotChunk();
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return The loadSnapshotChunk.
*/
tendermint.abci.Types.RequestLoadSnapshotChunk getLoadSnapshotChunk();
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder();
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return Whether the applySnapshotChunk field is set.
*/
boolean hasApplySnapshotChunk();
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return The applySnapshotChunk.
*/
tendermint.abci.Types.RequestApplySnapshotChunk getApplySnapshotChunk();
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder();
public tendermint.abci.Types.Request.ValueCase getValueCase();
}
/**
* Protobuf type {@code tendermint.abci.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
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: {
tendermint.abci.Types.RequestEcho.Builder subBuilder = null;
if (valueCase_ == 1) {
subBuilder = ((tendermint.abci.Types.RequestEcho) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestEcho.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestEcho) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 1;
break;
}
case 18: {
tendermint.abci.Types.RequestFlush.Builder subBuilder = null;
if (valueCase_ == 2) {
subBuilder = ((tendermint.abci.Types.RequestFlush) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestFlush.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestFlush) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 2;
break;
}
case 26: {
tendermint.abci.Types.RequestInfo.Builder subBuilder = null;
if (valueCase_ == 3) {
subBuilder = ((tendermint.abci.Types.RequestInfo) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestInfo) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 3;
break;
}
case 34: {
tendermint.abci.Types.RequestSetOption.Builder subBuilder = null;
if (valueCase_ == 4) {
subBuilder = ((tendermint.abci.Types.RequestSetOption) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestSetOption.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestSetOption) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 4;
break;
}
case 42: {
tendermint.abci.Types.RequestInitChain.Builder subBuilder = null;
if (valueCase_ == 5) {
subBuilder = ((tendermint.abci.Types.RequestInitChain) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestInitChain.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestInitChain) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 5;
break;
}
case 50: {
tendermint.abci.Types.RequestQuery.Builder subBuilder = null;
if (valueCase_ == 6) {
subBuilder = ((tendermint.abci.Types.RequestQuery) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestQuery) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 6;
break;
}
case 58: {
tendermint.abci.Types.RequestBeginBlock.Builder subBuilder = null;
if (valueCase_ == 7) {
subBuilder = ((tendermint.abci.Types.RequestBeginBlock) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestBeginBlock.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestBeginBlock) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 7;
break;
}
case 66: {
tendermint.abci.Types.RequestCheckTx.Builder subBuilder = null;
if (valueCase_ == 8) {
subBuilder = ((tendermint.abci.Types.RequestCheckTx) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestCheckTx.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestCheckTx) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 8;
break;
}
case 74: {
tendermint.abci.Types.RequestDeliverTx.Builder subBuilder = null;
if (valueCase_ == 9) {
subBuilder = ((tendermint.abci.Types.RequestDeliverTx) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestDeliverTx.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestDeliverTx) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 9;
break;
}
case 82: {
tendermint.abci.Types.RequestEndBlock.Builder subBuilder = null;
if (valueCase_ == 10) {
subBuilder = ((tendermint.abci.Types.RequestEndBlock) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestEndBlock.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestEndBlock) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 10;
break;
}
case 90: {
tendermint.abci.Types.RequestCommit.Builder subBuilder = null;
if (valueCase_ == 11) {
subBuilder = ((tendermint.abci.Types.RequestCommit) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestCommit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestCommit) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 11;
break;
}
case 98: {
tendermint.abci.Types.RequestListSnapshots.Builder subBuilder = null;
if (valueCase_ == 12) {
subBuilder = ((tendermint.abci.Types.RequestListSnapshots) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestListSnapshots.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestListSnapshots) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 12;
break;
}
case 106: {
tendermint.abci.Types.RequestOfferSnapshot.Builder subBuilder = null;
if (valueCase_ == 13) {
subBuilder = ((tendermint.abci.Types.RequestOfferSnapshot) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestOfferSnapshot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestOfferSnapshot) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 13;
break;
}
case 114: {
tendermint.abci.Types.RequestLoadSnapshotChunk.Builder subBuilder = null;
if (valueCase_ == 14) {
subBuilder = ((tendermint.abci.Types.RequestLoadSnapshotChunk) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestLoadSnapshotChunk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestLoadSnapshotChunk) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 14;
break;
}
case 122: {
tendermint.abci.Types.RequestApplySnapshotChunk.Builder subBuilder = null;
if (valueCase_ == 15) {
subBuilder = ((tendermint.abci.Types.RequestApplySnapshotChunk) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.RequestApplySnapshotChunk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.RequestApplySnapshotChunk) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 15;
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 tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.Request.class, tendermint.abci.Types.Request.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ECHO(1),
FLUSH(2),
INFO(3),
SET_OPTION(4),
INIT_CHAIN(5),
QUERY(6),
BEGIN_BLOCK(7),
CHECK_TX(8),
DELIVER_TX(9),
END_BLOCK(10),
COMMIT(11),
LIST_SNAPSHOTS(12),
OFFER_SNAPSHOT(13),
LOAD_SNAPSHOT_CHUNK(14),
APPLY_SNAPSHOT_CHUNK(15),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return ECHO;
case 2: return FLUSH;
case 3: return INFO;
case 4: return SET_OPTION;
case 5: return INIT_CHAIN;
case 6: return QUERY;
case 7: return BEGIN_BLOCK;
case 8: return CHECK_TX;
case 9: return DELIVER_TX;
case 10: return END_BLOCK;
case 11: return COMMIT;
case 12: return LIST_SNAPSHOTS;
case 13: return OFFER_SNAPSHOT;
case 14: return LOAD_SNAPSHOT_CHUNK;
case 15: return APPLY_SNAPSHOT_CHUNK;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int ECHO_FIELD_NUMBER = 1;
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return Whether the echo field is set.
*/
@java.lang.Override
public boolean hasEcho() {
return valueCase_ == 1;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return The echo.
*/
@java.lang.Override
public tendermint.abci.Types.RequestEcho getEcho() {
if (valueCase_ == 1) {
return (tendermint.abci.Types.RequestEcho) value_;
}
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
@java.lang.Override
public tendermint.abci.Types.RequestEchoOrBuilder getEchoOrBuilder() {
if (valueCase_ == 1) {
return (tendermint.abci.Types.RequestEcho) value_;
}
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
public static final int FLUSH_FIELD_NUMBER = 2;
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return Whether the flush field is set.
*/
@java.lang.Override
public boolean hasFlush() {
return valueCase_ == 2;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return The flush.
*/
@java.lang.Override
public tendermint.abci.Types.RequestFlush getFlush() {
if (valueCase_ == 2) {
return (tendermint.abci.Types.RequestFlush) value_;
}
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
@java.lang.Override
public tendermint.abci.Types.RequestFlushOrBuilder getFlushOrBuilder() {
if (valueCase_ == 2) {
return (tendermint.abci.Types.RequestFlush) value_;
}
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
public static final int INFO_FIELD_NUMBER = 3;
/**
* .tendermint.abci.RequestInfo info = 3;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return valueCase_ == 3;
}
/**
* .tendermint.abci.RequestInfo info = 3;
* @return The info.
*/
@java.lang.Override
public tendermint.abci.Types.RequestInfo getInfo() {
if (valueCase_ == 3) {
return (tendermint.abci.Types.RequestInfo) value_;
}
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
@java.lang.Override
public tendermint.abci.Types.RequestInfoOrBuilder getInfoOrBuilder() {
if (valueCase_ == 3) {
return (tendermint.abci.Types.RequestInfo) value_;
}
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
public static final int SET_OPTION_FIELD_NUMBER = 4;
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return Whether the setOption field is set.
*/
@java.lang.Override
public boolean hasSetOption() {
return valueCase_ == 4;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return The setOption.
*/
@java.lang.Override
public tendermint.abci.Types.RequestSetOption getSetOption() {
if (valueCase_ == 4) {
return (tendermint.abci.Types.RequestSetOption) value_;
}
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
@java.lang.Override
public tendermint.abci.Types.RequestSetOptionOrBuilder getSetOptionOrBuilder() {
if (valueCase_ == 4) {
return (tendermint.abci.Types.RequestSetOption) value_;
}
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
public static final int INIT_CHAIN_FIELD_NUMBER = 5;
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return Whether the initChain field is set.
*/
@java.lang.Override
public boolean hasInitChain() {
return valueCase_ == 5;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return The initChain.
*/
@java.lang.Override
public tendermint.abci.Types.RequestInitChain getInitChain() {
if (valueCase_ == 5) {
return (tendermint.abci.Types.RequestInitChain) value_;
}
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
@java.lang.Override
public tendermint.abci.Types.RequestInitChainOrBuilder getInitChainOrBuilder() {
if (valueCase_ == 5) {
return (tendermint.abci.Types.RequestInitChain) value_;
}
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
public static final int QUERY_FIELD_NUMBER = 6;
/**
* .tendermint.abci.RequestQuery query = 6;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return valueCase_ == 6;
}
/**
* .tendermint.abci.RequestQuery query = 6;
* @return The query.
*/
@java.lang.Override
public tendermint.abci.Types.RequestQuery getQuery() {
if (valueCase_ == 6) {
return (tendermint.abci.Types.RequestQuery) value_;
}
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
@java.lang.Override
public tendermint.abci.Types.RequestQueryOrBuilder getQueryOrBuilder() {
if (valueCase_ == 6) {
return (tendermint.abci.Types.RequestQuery) value_;
}
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
public static final int BEGIN_BLOCK_FIELD_NUMBER = 7;
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return Whether the beginBlock field is set.
*/
@java.lang.Override
public boolean hasBeginBlock() {
return valueCase_ == 7;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return The beginBlock.
*/
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlock getBeginBlock() {
if (valueCase_ == 7) {
return (tendermint.abci.Types.RequestBeginBlock) value_;
}
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlockOrBuilder getBeginBlockOrBuilder() {
if (valueCase_ == 7) {
return (tendermint.abci.Types.RequestBeginBlock) value_;
}
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
public static final int CHECK_TX_FIELD_NUMBER = 8;
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return Whether the checkTx field is set.
*/
@java.lang.Override
public boolean hasCheckTx() {
return valueCase_ == 8;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return The checkTx.
*/
@java.lang.Override
public tendermint.abci.Types.RequestCheckTx getCheckTx() {
if (valueCase_ == 8) {
return (tendermint.abci.Types.RequestCheckTx) value_;
}
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
@java.lang.Override
public tendermint.abci.Types.RequestCheckTxOrBuilder getCheckTxOrBuilder() {
if (valueCase_ == 8) {
return (tendermint.abci.Types.RequestCheckTx) value_;
}
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
public static final int DELIVER_TX_FIELD_NUMBER = 9;
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return Whether the deliverTx field is set.
*/
@java.lang.Override
public boolean hasDeliverTx() {
return valueCase_ == 9;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return The deliverTx.
*/
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTx getDeliverTx() {
if (valueCase_ == 9) {
return (tendermint.abci.Types.RequestDeliverTx) value_;
}
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTxOrBuilder getDeliverTxOrBuilder() {
if (valueCase_ == 9) {
return (tendermint.abci.Types.RequestDeliverTx) value_;
}
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
public static final int END_BLOCK_FIELD_NUMBER = 10;
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return Whether the endBlock field is set.
*/
@java.lang.Override
public boolean hasEndBlock() {
return valueCase_ == 10;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return The endBlock.
*/
@java.lang.Override
public tendermint.abci.Types.RequestEndBlock getEndBlock() {
if (valueCase_ == 10) {
return (tendermint.abci.Types.RequestEndBlock) value_;
}
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
@java.lang.Override
public tendermint.abci.Types.RequestEndBlockOrBuilder getEndBlockOrBuilder() {
if (valueCase_ == 10) {
return (tendermint.abci.Types.RequestEndBlock) value_;
}
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
public static final int COMMIT_FIELD_NUMBER = 11;
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return Whether the commit field is set.
*/
@java.lang.Override
public boolean hasCommit() {
return valueCase_ == 11;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return The commit.
*/
@java.lang.Override
public tendermint.abci.Types.RequestCommit getCommit() {
if (valueCase_ == 11) {
return (tendermint.abci.Types.RequestCommit) value_;
}
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
@java.lang.Override
public tendermint.abci.Types.RequestCommitOrBuilder getCommitOrBuilder() {
if (valueCase_ == 11) {
return (tendermint.abci.Types.RequestCommit) value_;
}
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
public static final int LIST_SNAPSHOTS_FIELD_NUMBER = 12;
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return Whether the listSnapshots field is set.
*/
@java.lang.Override
public boolean hasListSnapshots() {
return valueCase_ == 12;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return The listSnapshots.
*/
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshots getListSnapshots() {
if (valueCase_ == 12) {
return (tendermint.abci.Types.RequestListSnapshots) value_;
}
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder() {
if (valueCase_ == 12) {
return (tendermint.abci.Types.RequestListSnapshots) value_;
}
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
public static final int OFFER_SNAPSHOT_FIELD_NUMBER = 13;
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return Whether the offerSnapshot field is set.
*/
@java.lang.Override
public boolean hasOfferSnapshot() {
return valueCase_ == 13;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return The offerSnapshot.
*/
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshot getOfferSnapshot() {
if (valueCase_ == 13) {
return (tendermint.abci.Types.RequestOfferSnapshot) value_;
}
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() {
if (valueCase_ == 13) {
return (tendermint.abci.Types.RequestOfferSnapshot) value_;
}
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
public static final int LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER = 14;
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return Whether the loadSnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasLoadSnapshotChunk() {
return valueCase_ == 14;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return The loadSnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunk getLoadSnapshotChunk() {
if (valueCase_ == 14) {
return (tendermint.abci.Types.RequestLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() {
if (valueCase_ == 14) {
return (tendermint.abci.Types.RequestLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
public static final int APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER = 15;
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return Whether the applySnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasApplySnapshotChunk() {
return valueCase_ == 15;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return The applySnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunk getApplySnapshotChunk() {
if (valueCase_ == 15) {
return (tendermint.abci.Types.RequestApplySnapshotChunk) value_;
}
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() {
if (valueCase_ == 15) {
return (tendermint.abci.Types.RequestApplySnapshotChunk) value_;
}
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
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 (valueCase_ == 1) {
output.writeMessage(1, (tendermint.abci.Types.RequestEcho) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (tendermint.abci.Types.RequestFlush) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (tendermint.abci.Types.RequestInfo) value_);
}
if (valueCase_ == 4) {
output.writeMessage(4, (tendermint.abci.Types.RequestSetOption) value_);
}
if (valueCase_ == 5) {
output.writeMessage(5, (tendermint.abci.Types.RequestInitChain) value_);
}
if (valueCase_ == 6) {
output.writeMessage(6, (tendermint.abci.Types.RequestQuery) value_);
}
if (valueCase_ == 7) {
output.writeMessage(7, (tendermint.abci.Types.RequestBeginBlock) value_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (tendermint.abci.Types.RequestCheckTx) value_);
}
if (valueCase_ == 9) {
output.writeMessage(9, (tendermint.abci.Types.RequestDeliverTx) value_);
}
if (valueCase_ == 10) {
output.writeMessage(10, (tendermint.abci.Types.RequestEndBlock) value_);
}
if (valueCase_ == 11) {
output.writeMessage(11, (tendermint.abci.Types.RequestCommit) value_);
}
if (valueCase_ == 12) {
output.writeMessage(12, (tendermint.abci.Types.RequestListSnapshots) value_);
}
if (valueCase_ == 13) {
output.writeMessage(13, (tendermint.abci.Types.RequestOfferSnapshot) value_);
}
if (valueCase_ == 14) {
output.writeMessage(14, (tendermint.abci.Types.RequestLoadSnapshotChunk) value_);
}
if (valueCase_ == 15) {
output.writeMessage(15, (tendermint.abci.Types.RequestApplySnapshotChunk) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tendermint.abci.Types.RequestEcho) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tendermint.abci.Types.RequestFlush) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tendermint.abci.Types.RequestInfo) value_);
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tendermint.abci.Types.RequestSetOption) value_);
}
if (valueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (tendermint.abci.Types.RequestInitChain) value_);
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (tendermint.abci.Types.RequestQuery) value_);
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (tendermint.abci.Types.RequestBeginBlock) value_);
}
if (valueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (tendermint.abci.Types.RequestCheckTx) value_);
}
if (valueCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (tendermint.abci.Types.RequestDeliverTx) value_);
}
if (valueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (tendermint.abci.Types.RequestEndBlock) value_);
}
if (valueCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (tendermint.abci.Types.RequestCommit) value_);
}
if (valueCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (tendermint.abci.Types.RequestListSnapshots) value_);
}
if (valueCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (tendermint.abci.Types.RequestOfferSnapshot) value_);
}
if (valueCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (tendermint.abci.Types.RequestLoadSnapshotChunk) value_);
}
if (valueCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (tendermint.abci.Types.RequestApplySnapshotChunk) value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tendermint.abci.Types.Request)) {
return super.equals(obj);
}
tendermint.abci.Types.Request other = (tendermint.abci.Types.Request) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getEcho()
.equals(other.getEcho())) return false;
break;
case 2:
if (!getFlush()
.equals(other.getFlush())) return false;
break;
case 3:
if (!getInfo()
.equals(other.getInfo())) return false;
break;
case 4:
if (!getSetOption()
.equals(other.getSetOption())) return false;
break;
case 5:
if (!getInitChain()
.equals(other.getInitChain())) return false;
break;
case 6:
if (!getQuery()
.equals(other.getQuery())) return false;
break;
case 7:
if (!getBeginBlock()
.equals(other.getBeginBlock())) return false;
break;
case 8:
if (!getCheckTx()
.equals(other.getCheckTx())) return false;
break;
case 9:
if (!getDeliverTx()
.equals(other.getDeliverTx())) return false;
break;
case 10:
if (!getEndBlock()
.equals(other.getEndBlock())) return false;
break;
case 11:
if (!getCommit()
.equals(other.getCommit())) return false;
break;
case 12:
if (!getListSnapshots()
.equals(other.getListSnapshots())) return false;
break;
case 13:
if (!getOfferSnapshot()
.equals(other.getOfferSnapshot())) return false;
break;
case 14:
if (!getLoadSnapshotChunk()
.equals(other.getLoadSnapshotChunk())) return false;
break;
case 15:
if (!getApplySnapshotChunk()
.equals(other.getApplySnapshotChunk())) return false;
break;
case 0:
default:
}
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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + ECHO_FIELD_NUMBER;
hash = (53 * hash) + getEcho().hashCode();
break;
case 2:
hash = (37 * hash) + FLUSH_FIELD_NUMBER;
hash = (53 * hash) + getFlush().hashCode();
break;
case 3:
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
break;
case 4:
hash = (37 * hash) + SET_OPTION_FIELD_NUMBER;
hash = (53 * hash) + getSetOption().hashCode();
break;
case 5:
hash = (37 * hash) + INIT_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getInitChain().hashCode();
break;
case 6:
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
break;
case 7:
hash = (37 * hash) + BEGIN_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBeginBlock().hashCode();
break;
case 8:
hash = (37 * hash) + CHECK_TX_FIELD_NUMBER;
hash = (53 * hash) + getCheckTx().hashCode();
break;
case 9:
hash = (37 * hash) + DELIVER_TX_FIELD_NUMBER;
hash = (53 * hash) + getDeliverTx().hashCode();
break;
case 10:
hash = (37 * hash) + END_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getEndBlock().hashCode();
break;
case 11:
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getCommit().hashCode();
break;
case 12:
hash = (37 * hash) + LIST_SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getListSnapshots().hashCode();
break;
case 13:
hash = (37 * hash) + OFFER_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getOfferSnapshot().hashCode();
break;
case 14:
hash = (37 * hash) + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getLoadSnapshotChunk().hashCode();
break;
case 15:
hash = (37 * hash) + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getApplySnapshotChunk().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Request 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 tendermint.abci.Types.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Request 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 tendermint.abci.Types.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Request 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(tendermint.abci.Types.Request 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 tendermint.abci.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.Request)
tendermint.abci.Types.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.Request.class, tendermint.abci.Types.Request.Builder.class);
}
// Construct using tendermint.abci.Types.Request.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();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_Request_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.Request getDefaultInstanceForType() {
return tendermint.abci.Types.Request.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.Request build() {
tendermint.abci.Types.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.Request buildPartial() {
tendermint.abci.Types.Request result = new tendermint.abci.Types.Request(this);
if (valueCase_ == 1) {
if (echoBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = echoBuilder_.build();
}
}
if (valueCase_ == 2) {
if (flushBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = flushBuilder_.build();
}
}
if (valueCase_ == 3) {
if (infoBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = infoBuilder_.build();
}
}
if (valueCase_ == 4) {
if (setOptionBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = setOptionBuilder_.build();
}
}
if (valueCase_ == 5) {
if (initChainBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = initChainBuilder_.build();
}
}
if (valueCase_ == 6) {
if (queryBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = queryBuilder_.build();
}
}
if (valueCase_ == 7) {
if (beginBlockBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = beginBlockBuilder_.build();
}
}
if (valueCase_ == 8) {
if (checkTxBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = checkTxBuilder_.build();
}
}
if (valueCase_ == 9) {
if (deliverTxBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = deliverTxBuilder_.build();
}
}
if (valueCase_ == 10) {
if (endBlockBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = endBlockBuilder_.build();
}
}
if (valueCase_ == 11) {
if (commitBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = commitBuilder_.build();
}
}
if (valueCase_ == 12) {
if (listSnapshotsBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = listSnapshotsBuilder_.build();
}
}
if (valueCase_ == 13) {
if (offerSnapshotBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = offerSnapshotBuilder_.build();
}
}
if (valueCase_ == 14) {
if (loadSnapshotChunkBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = loadSnapshotChunkBuilder_.build();
}
}
if (valueCase_ == 15) {
if (applySnapshotChunkBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = applySnapshotChunkBuilder_.build();
}
}
result.valueCase_ = valueCase_;
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 tendermint.abci.Types.Request) {
return mergeFrom((tendermint.abci.Types.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.Request other) {
if (other == tendermint.abci.Types.Request.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case ECHO: {
mergeEcho(other.getEcho());
break;
}
case FLUSH: {
mergeFlush(other.getFlush());
break;
}
case INFO: {
mergeInfo(other.getInfo());
break;
}
case SET_OPTION: {
mergeSetOption(other.getSetOption());
break;
}
case INIT_CHAIN: {
mergeInitChain(other.getInitChain());
break;
}
case QUERY: {
mergeQuery(other.getQuery());
break;
}
case BEGIN_BLOCK: {
mergeBeginBlock(other.getBeginBlock());
break;
}
case CHECK_TX: {
mergeCheckTx(other.getCheckTx());
break;
}
case DELIVER_TX: {
mergeDeliverTx(other.getDeliverTx());
break;
}
case END_BLOCK: {
mergeEndBlock(other.getEndBlock());
break;
}
case COMMIT: {
mergeCommit(other.getCommit());
break;
}
case LIST_SNAPSHOTS: {
mergeListSnapshots(other.getListSnapshots());
break;
}
case OFFER_SNAPSHOT: {
mergeOfferSnapshot(other.getOfferSnapshot());
break;
}
case LOAD_SNAPSHOT_CHUNK: {
mergeLoadSnapshotChunk(other.getLoadSnapshotChunk());
break;
}
case APPLY_SNAPSHOT_CHUNK: {
mergeApplySnapshotChunk(other.getApplySnapshotChunk());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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 {
tendermint.abci.Types.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEcho, tendermint.abci.Types.RequestEcho.Builder, tendermint.abci.Types.RequestEchoOrBuilder> echoBuilder_;
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return Whether the echo field is set.
*/
@java.lang.Override
public boolean hasEcho() {
return valueCase_ == 1;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
* @return The echo.
*/
@java.lang.Override
public tendermint.abci.Types.RequestEcho getEcho() {
if (echoBuilder_ == null) {
if (valueCase_ == 1) {
return (tendermint.abci.Types.RequestEcho) value_;
}
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return echoBuilder_.getMessage();
}
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
public Builder setEcho(tendermint.abci.Types.RequestEcho value) {
if (echoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
echoBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
public Builder setEcho(
tendermint.abci.Types.RequestEcho.Builder builderForValue) {
if (echoBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
echoBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
public Builder mergeEcho(tendermint.abci.Types.RequestEcho value) {
if (echoBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != tendermint.abci.Types.RequestEcho.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestEcho.newBuilder((tendermint.abci.Types.RequestEcho) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
echoBuilder_.mergeFrom(value);
}
echoBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
public Builder clearEcho() {
if (echoBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
echoBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
public tendermint.abci.Types.RequestEcho.Builder getEchoBuilder() {
return getEchoFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
@java.lang.Override
public tendermint.abci.Types.RequestEchoOrBuilder getEchoOrBuilder() {
if ((valueCase_ == 1) && (echoBuilder_ != null)) {
return echoBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (tendermint.abci.Types.RequestEcho) value_;
}
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestEcho echo = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEcho, tendermint.abci.Types.RequestEcho.Builder, tendermint.abci.Types.RequestEchoOrBuilder>
getEchoFieldBuilder() {
if (echoBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
echoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEcho, tendermint.abci.Types.RequestEcho.Builder, tendermint.abci.Types.RequestEchoOrBuilder>(
(tendermint.abci.Types.RequestEcho) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return echoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestFlush, tendermint.abci.Types.RequestFlush.Builder, tendermint.abci.Types.RequestFlushOrBuilder> flushBuilder_;
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return Whether the flush field is set.
*/
@java.lang.Override
public boolean hasFlush() {
return valueCase_ == 2;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
* @return The flush.
*/
@java.lang.Override
public tendermint.abci.Types.RequestFlush getFlush() {
if (flushBuilder_ == null) {
if (valueCase_ == 2) {
return (tendermint.abci.Types.RequestFlush) value_;
}
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return flushBuilder_.getMessage();
}
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
public Builder setFlush(tendermint.abci.Types.RequestFlush value) {
if (flushBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
flushBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
public Builder setFlush(
tendermint.abci.Types.RequestFlush.Builder builderForValue) {
if (flushBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
flushBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
public Builder mergeFlush(tendermint.abci.Types.RequestFlush value) {
if (flushBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != tendermint.abci.Types.RequestFlush.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestFlush.newBuilder((tendermint.abci.Types.RequestFlush) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
flushBuilder_.mergeFrom(value);
}
flushBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
public Builder clearFlush() {
if (flushBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
flushBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
public tendermint.abci.Types.RequestFlush.Builder getFlushBuilder() {
return getFlushFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
@java.lang.Override
public tendermint.abci.Types.RequestFlushOrBuilder getFlushOrBuilder() {
if ((valueCase_ == 2) && (flushBuilder_ != null)) {
return flushBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (tendermint.abci.Types.RequestFlush) value_;
}
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestFlush flush = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestFlush, tendermint.abci.Types.RequestFlush.Builder, tendermint.abci.Types.RequestFlushOrBuilder>
getFlushFieldBuilder() {
if (flushBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
flushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestFlush, tendermint.abci.Types.RequestFlush.Builder, tendermint.abci.Types.RequestFlushOrBuilder>(
(tendermint.abci.Types.RequestFlush) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
return flushBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInfo, tendermint.abci.Types.RequestInfo.Builder, tendermint.abci.Types.RequestInfoOrBuilder> infoBuilder_;
/**
* .tendermint.abci.RequestInfo info = 3;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return valueCase_ == 3;
}
/**
* .tendermint.abci.RequestInfo info = 3;
* @return The info.
*/
@java.lang.Override
public tendermint.abci.Types.RequestInfo getInfo() {
if (infoBuilder_ == null) {
if (valueCase_ == 3) {
return (tendermint.abci.Types.RequestInfo) value_;
}
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return infoBuilder_.getMessage();
}
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
public Builder setInfo(tendermint.abci.Types.RequestInfo value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
public Builder setInfo(
tendermint.abci.Types.RequestInfo.Builder builderForValue) {
if (infoBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
public Builder mergeInfo(tendermint.abci.Types.RequestInfo value) {
if (infoBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != tendermint.abci.Types.RequestInfo.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestInfo.newBuilder((tendermint.abci.Types.RequestInfo) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
infoBuilder_.mergeFrom(value);
}
infoBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
infoBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
public tendermint.abci.Types.RequestInfo.Builder getInfoBuilder() {
return getInfoFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
@java.lang.Override
public tendermint.abci.Types.RequestInfoOrBuilder getInfoOrBuilder() {
if ((valueCase_ == 3) && (infoBuilder_ != null)) {
return infoBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (tendermint.abci.Types.RequestInfo) value_;
}
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestInfo info = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInfo, tendermint.abci.Types.RequestInfo.Builder, tendermint.abci.Types.RequestInfoOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInfo, tendermint.abci.Types.RequestInfo.Builder, tendermint.abci.Types.RequestInfoOrBuilder>(
(tendermint.abci.Types.RequestInfo) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();;
return infoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestSetOption, tendermint.abci.Types.RequestSetOption.Builder, tendermint.abci.Types.RequestSetOptionOrBuilder> setOptionBuilder_;
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return Whether the setOption field is set.
*/
@java.lang.Override
public boolean hasSetOption() {
return valueCase_ == 4;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
* @return The setOption.
*/
@java.lang.Override
public tendermint.abci.Types.RequestSetOption getSetOption() {
if (setOptionBuilder_ == null) {
if (valueCase_ == 4) {
return (tendermint.abci.Types.RequestSetOption) value_;
}
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
} else {
if (valueCase_ == 4) {
return setOptionBuilder_.getMessage();
}
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
public Builder setSetOption(tendermint.abci.Types.RequestSetOption value) {
if (setOptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
setOptionBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
public Builder setSetOption(
tendermint.abci.Types.RequestSetOption.Builder builderForValue) {
if (setOptionBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
setOptionBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
public Builder mergeSetOption(tendermint.abci.Types.RequestSetOption value) {
if (setOptionBuilder_ == null) {
if (valueCase_ == 4 &&
value_ != tendermint.abci.Types.RequestSetOption.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestSetOption.newBuilder((tendermint.abci.Types.RequestSetOption) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 4) {
setOptionBuilder_.mergeFrom(value);
}
setOptionBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
public Builder clearSetOption() {
if (setOptionBuilder_ == null) {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
}
setOptionBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
public tendermint.abci.Types.RequestSetOption.Builder getSetOptionBuilder() {
return getSetOptionFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
@java.lang.Override
public tendermint.abci.Types.RequestSetOptionOrBuilder getSetOptionOrBuilder() {
if ((valueCase_ == 4) && (setOptionBuilder_ != null)) {
return setOptionBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 4) {
return (tendermint.abci.Types.RequestSetOption) value_;
}
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestSetOption set_option = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestSetOption, tendermint.abci.Types.RequestSetOption.Builder, tendermint.abci.Types.RequestSetOptionOrBuilder>
getSetOptionFieldBuilder() {
if (setOptionBuilder_ == null) {
if (!(valueCase_ == 4)) {
value_ = tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
setOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestSetOption, tendermint.abci.Types.RequestSetOption.Builder, tendermint.abci.Types.RequestSetOptionOrBuilder>(
(tendermint.abci.Types.RequestSetOption) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 4;
onChanged();;
return setOptionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInitChain, tendermint.abci.Types.RequestInitChain.Builder, tendermint.abci.Types.RequestInitChainOrBuilder> initChainBuilder_;
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return Whether the initChain field is set.
*/
@java.lang.Override
public boolean hasInitChain() {
return valueCase_ == 5;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
* @return The initChain.
*/
@java.lang.Override
public tendermint.abci.Types.RequestInitChain getInitChain() {
if (initChainBuilder_ == null) {
if (valueCase_ == 5) {
return (tendermint.abci.Types.RequestInitChain) value_;
}
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
} else {
if (valueCase_ == 5) {
return initChainBuilder_.getMessage();
}
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
public Builder setInitChain(tendermint.abci.Types.RequestInitChain value) {
if (initChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
initChainBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
public Builder setInitChain(
tendermint.abci.Types.RequestInitChain.Builder builderForValue) {
if (initChainBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
initChainBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
public Builder mergeInitChain(tendermint.abci.Types.RequestInitChain value) {
if (initChainBuilder_ == null) {
if (valueCase_ == 5 &&
value_ != tendermint.abci.Types.RequestInitChain.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestInitChain.newBuilder((tendermint.abci.Types.RequestInitChain) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 5) {
initChainBuilder_.mergeFrom(value);
}
initChainBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
public Builder clearInitChain() {
if (initChainBuilder_ == null) {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
}
initChainBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
public tendermint.abci.Types.RequestInitChain.Builder getInitChainBuilder() {
return getInitChainFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
@java.lang.Override
public tendermint.abci.Types.RequestInitChainOrBuilder getInitChainOrBuilder() {
if ((valueCase_ == 5) && (initChainBuilder_ != null)) {
return initChainBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 5) {
return (tendermint.abci.Types.RequestInitChain) value_;
}
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestInitChain init_chain = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInitChain, tendermint.abci.Types.RequestInitChain.Builder, tendermint.abci.Types.RequestInitChainOrBuilder>
getInitChainFieldBuilder() {
if (initChainBuilder_ == null) {
if (!(valueCase_ == 5)) {
value_ = tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
initChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestInitChain, tendermint.abci.Types.RequestInitChain.Builder, tendermint.abci.Types.RequestInitChainOrBuilder>(
(tendermint.abci.Types.RequestInitChain) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 5;
onChanged();;
return initChainBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestQuery, tendermint.abci.Types.RequestQuery.Builder, tendermint.abci.Types.RequestQueryOrBuilder> queryBuilder_;
/**
* .tendermint.abci.RequestQuery query = 6;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return valueCase_ == 6;
}
/**
* .tendermint.abci.RequestQuery query = 6;
* @return The query.
*/
@java.lang.Override
public tendermint.abci.Types.RequestQuery getQuery() {
if (queryBuilder_ == null) {
if (valueCase_ == 6) {
return (tendermint.abci.Types.RequestQuery) value_;
}
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
} else {
if (valueCase_ == 6) {
return queryBuilder_.getMessage();
}
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
public Builder setQuery(tendermint.abci.Types.RequestQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
public Builder setQuery(
tendermint.abci.Types.RequestQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
public Builder mergeQuery(tendermint.abci.Types.RequestQuery value) {
if (queryBuilder_ == null) {
if (valueCase_ == 6 &&
value_ != tendermint.abci.Types.RequestQuery.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestQuery.newBuilder((tendermint.abci.Types.RequestQuery) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 6) {
queryBuilder_.mergeFrom(value);
}
queryBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
}
queryBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
public tendermint.abci.Types.RequestQuery.Builder getQueryBuilder() {
return getQueryFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
@java.lang.Override
public tendermint.abci.Types.RequestQueryOrBuilder getQueryOrBuilder() {
if ((valueCase_ == 6) && (queryBuilder_ != null)) {
return queryBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 6) {
return (tendermint.abci.Types.RequestQuery) value_;
}
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestQuery query = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestQuery, tendermint.abci.Types.RequestQuery.Builder, tendermint.abci.Types.RequestQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
if (!(valueCase_ == 6)) {
value_ = tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestQuery, tendermint.abci.Types.RequestQuery.Builder, tendermint.abci.Types.RequestQueryOrBuilder>(
(tendermint.abci.Types.RequestQuery) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 6;
onChanged();;
return queryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestBeginBlock, tendermint.abci.Types.RequestBeginBlock.Builder, tendermint.abci.Types.RequestBeginBlockOrBuilder> beginBlockBuilder_;
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return Whether the beginBlock field is set.
*/
@java.lang.Override
public boolean hasBeginBlock() {
return valueCase_ == 7;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
* @return The beginBlock.
*/
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlock getBeginBlock() {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 7) {
return (tendermint.abci.Types.RequestBeginBlock) value_;
}
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
} else {
if (valueCase_ == 7) {
return beginBlockBuilder_.getMessage();
}
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
public Builder setBeginBlock(tendermint.abci.Types.RequestBeginBlock value) {
if (beginBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
beginBlockBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
public Builder setBeginBlock(
tendermint.abci.Types.RequestBeginBlock.Builder builderForValue) {
if (beginBlockBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
beginBlockBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
public Builder mergeBeginBlock(tendermint.abci.Types.RequestBeginBlock value) {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 7 &&
value_ != tendermint.abci.Types.RequestBeginBlock.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestBeginBlock.newBuilder((tendermint.abci.Types.RequestBeginBlock) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 7) {
beginBlockBuilder_.mergeFrom(value);
}
beginBlockBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
public Builder clearBeginBlock() {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
}
beginBlockBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
public tendermint.abci.Types.RequestBeginBlock.Builder getBeginBlockBuilder() {
return getBeginBlockFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlockOrBuilder getBeginBlockOrBuilder() {
if ((valueCase_ == 7) && (beginBlockBuilder_ != null)) {
return beginBlockBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 7) {
return (tendermint.abci.Types.RequestBeginBlock) value_;
}
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestBeginBlock begin_block = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestBeginBlock, tendermint.abci.Types.RequestBeginBlock.Builder, tendermint.abci.Types.RequestBeginBlockOrBuilder>
getBeginBlockFieldBuilder() {
if (beginBlockBuilder_ == null) {
if (!(valueCase_ == 7)) {
value_ = tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
beginBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestBeginBlock, tendermint.abci.Types.RequestBeginBlock.Builder, tendermint.abci.Types.RequestBeginBlockOrBuilder>(
(tendermint.abci.Types.RequestBeginBlock) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 7;
onChanged();;
return beginBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCheckTx, tendermint.abci.Types.RequestCheckTx.Builder, tendermint.abci.Types.RequestCheckTxOrBuilder> checkTxBuilder_;
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return Whether the checkTx field is set.
*/
@java.lang.Override
public boolean hasCheckTx() {
return valueCase_ == 8;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
* @return The checkTx.
*/
@java.lang.Override
public tendermint.abci.Types.RequestCheckTx getCheckTx() {
if (checkTxBuilder_ == null) {
if (valueCase_ == 8) {
return (tendermint.abci.Types.RequestCheckTx) value_;
}
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return checkTxBuilder_.getMessage();
}
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
public Builder setCheckTx(tendermint.abci.Types.RequestCheckTx value) {
if (checkTxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
checkTxBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
public Builder setCheckTx(
tendermint.abci.Types.RequestCheckTx.Builder builderForValue) {
if (checkTxBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
checkTxBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
public Builder mergeCheckTx(tendermint.abci.Types.RequestCheckTx value) {
if (checkTxBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != tendermint.abci.Types.RequestCheckTx.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestCheckTx.newBuilder((tendermint.abci.Types.RequestCheckTx) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
checkTxBuilder_.mergeFrom(value);
}
checkTxBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
public Builder clearCheckTx() {
if (checkTxBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
checkTxBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
public tendermint.abci.Types.RequestCheckTx.Builder getCheckTxBuilder() {
return getCheckTxFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
@java.lang.Override
public tendermint.abci.Types.RequestCheckTxOrBuilder getCheckTxOrBuilder() {
if ((valueCase_ == 8) && (checkTxBuilder_ != null)) {
return checkTxBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (tendermint.abci.Types.RequestCheckTx) value_;
}
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestCheckTx check_tx = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCheckTx, tendermint.abci.Types.RequestCheckTx.Builder, tendermint.abci.Types.RequestCheckTxOrBuilder>
getCheckTxFieldBuilder() {
if (checkTxBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
checkTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCheckTx, tendermint.abci.Types.RequestCheckTx.Builder, tendermint.abci.Types.RequestCheckTxOrBuilder>(
(tendermint.abci.Types.RequestCheckTx) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();;
return checkTxBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestDeliverTx, tendermint.abci.Types.RequestDeliverTx.Builder, tendermint.abci.Types.RequestDeliverTxOrBuilder> deliverTxBuilder_;
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return Whether the deliverTx field is set.
*/
@java.lang.Override
public boolean hasDeliverTx() {
return valueCase_ == 9;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
* @return The deliverTx.
*/
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTx getDeliverTx() {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 9) {
return (tendermint.abci.Types.RequestDeliverTx) value_;
}
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
} else {
if (valueCase_ == 9) {
return deliverTxBuilder_.getMessage();
}
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
public Builder setDeliverTx(tendermint.abci.Types.RequestDeliverTx value) {
if (deliverTxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
deliverTxBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
public Builder setDeliverTx(
tendermint.abci.Types.RequestDeliverTx.Builder builderForValue) {
if (deliverTxBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
deliverTxBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
public Builder mergeDeliverTx(tendermint.abci.Types.RequestDeliverTx value) {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 9 &&
value_ != tendermint.abci.Types.RequestDeliverTx.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestDeliverTx.newBuilder((tendermint.abci.Types.RequestDeliverTx) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 9) {
deliverTxBuilder_.mergeFrom(value);
}
deliverTxBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
public Builder clearDeliverTx() {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
}
deliverTxBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
public tendermint.abci.Types.RequestDeliverTx.Builder getDeliverTxBuilder() {
return getDeliverTxFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTxOrBuilder getDeliverTxOrBuilder() {
if ((valueCase_ == 9) && (deliverTxBuilder_ != null)) {
return deliverTxBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 9) {
return (tendermint.abci.Types.RequestDeliverTx) value_;
}
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestDeliverTx deliver_tx = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestDeliverTx, tendermint.abci.Types.RequestDeliverTx.Builder, tendermint.abci.Types.RequestDeliverTxOrBuilder>
getDeliverTxFieldBuilder() {
if (deliverTxBuilder_ == null) {
if (!(valueCase_ == 9)) {
value_ = tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
deliverTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestDeliverTx, tendermint.abci.Types.RequestDeliverTx.Builder, tendermint.abci.Types.RequestDeliverTxOrBuilder>(
(tendermint.abci.Types.RequestDeliverTx) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 9;
onChanged();;
return deliverTxBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEndBlock, tendermint.abci.Types.RequestEndBlock.Builder, tendermint.abci.Types.RequestEndBlockOrBuilder> endBlockBuilder_;
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return Whether the endBlock field is set.
*/
@java.lang.Override
public boolean hasEndBlock() {
return valueCase_ == 10;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
* @return The endBlock.
*/
@java.lang.Override
public tendermint.abci.Types.RequestEndBlock getEndBlock() {
if (endBlockBuilder_ == null) {
if (valueCase_ == 10) {
return (tendermint.abci.Types.RequestEndBlock) value_;
}
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
} else {
if (valueCase_ == 10) {
return endBlockBuilder_.getMessage();
}
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
public Builder setEndBlock(tendermint.abci.Types.RequestEndBlock value) {
if (endBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
endBlockBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
public Builder setEndBlock(
tendermint.abci.Types.RequestEndBlock.Builder builderForValue) {
if (endBlockBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
endBlockBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
public Builder mergeEndBlock(tendermint.abci.Types.RequestEndBlock value) {
if (endBlockBuilder_ == null) {
if (valueCase_ == 10 &&
value_ != tendermint.abci.Types.RequestEndBlock.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestEndBlock.newBuilder((tendermint.abci.Types.RequestEndBlock) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 10) {
endBlockBuilder_.mergeFrom(value);
}
endBlockBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
public Builder clearEndBlock() {
if (endBlockBuilder_ == null) {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
}
endBlockBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
public tendermint.abci.Types.RequestEndBlock.Builder getEndBlockBuilder() {
return getEndBlockFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
@java.lang.Override
public tendermint.abci.Types.RequestEndBlockOrBuilder getEndBlockOrBuilder() {
if ((valueCase_ == 10) && (endBlockBuilder_ != null)) {
return endBlockBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 10) {
return (tendermint.abci.Types.RequestEndBlock) value_;
}
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestEndBlock end_block = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEndBlock, tendermint.abci.Types.RequestEndBlock.Builder, tendermint.abci.Types.RequestEndBlockOrBuilder>
getEndBlockFieldBuilder() {
if (endBlockBuilder_ == null) {
if (!(valueCase_ == 10)) {
value_ = tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
endBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestEndBlock, tendermint.abci.Types.RequestEndBlock.Builder, tendermint.abci.Types.RequestEndBlockOrBuilder>(
(tendermint.abci.Types.RequestEndBlock) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 10;
onChanged();;
return endBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCommit, tendermint.abci.Types.RequestCommit.Builder, tendermint.abci.Types.RequestCommitOrBuilder> commitBuilder_;
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return Whether the commit field is set.
*/
@java.lang.Override
public boolean hasCommit() {
return valueCase_ == 11;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
* @return The commit.
*/
@java.lang.Override
public tendermint.abci.Types.RequestCommit getCommit() {
if (commitBuilder_ == null) {
if (valueCase_ == 11) {
return (tendermint.abci.Types.RequestCommit) value_;
}
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
} else {
if (valueCase_ == 11) {
return commitBuilder_.getMessage();
}
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
public Builder setCommit(tendermint.abci.Types.RequestCommit value) {
if (commitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
commitBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
public Builder setCommit(
tendermint.abci.Types.RequestCommit.Builder builderForValue) {
if (commitBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
commitBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
public Builder mergeCommit(tendermint.abci.Types.RequestCommit value) {
if (commitBuilder_ == null) {
if (valueCase_ == 11 &&
value_ != tendermint.abci.Types.RequestCommit.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestCommit.newBuilder((tendermint.abci.Types.RequestCommit) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 11) {
commitBuilder_.mergeFrom(value);
}
commitBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
public Builder clearCommit() {
if (commitBuilder_ == null) {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
}
commitBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
public tendermint.abci.Types.RequestCommit.Builder getCommitBuilder() {
return getCommitFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
@java.lang.Override
public tendermint.abci.Types.RequestCommitOrBuilder getCommitOrBuilder() {
if ((valueCase_ == 11) && (commitBuilder_ != null)) {
return commitBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 11) {
return (tendermint.abci.Types.RequestCommit) value_;
}
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestCommit commit = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCommit, tendermint.abci.Types.RequestCommit.Builder, tendermint.abci.Types.RequestCommitOrBuilder>
getCommitFieldBuilder() {
if (commitBuilder_ == null) {
if (!(valueCase_ == 11)) {
value_ = tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestCommit, tendermint.abci.Types.RequestCommit.Builder, tendermint.abci.Types.RequestCommitOrBuilder>(
(tendermint.abci.Types.RequestCommit) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 11;
onChanged();;
return commitBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestListSnapshots, tendermint.abci.Types.RequestListSnapshots.Builder, tendermint.abci.Types.RequestListSnapshotsOrBuilder> listSnapshotsBuilder_;
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return Whether the listSnapshots field is set.
*/
@java.lang.Override
public boolean hasListSnapshots() {
return valueCase_ == 12;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
* @return The listSnapshots.
*/
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshots getListSnapshots() {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 12) {
return (tendermint.abci.Types.RequestListSnapshots) value_;
}
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
} else {
if (valueCase_ == 12) {
return listSnapshotsBuilder_.getMessage();
}
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
public Builder setListSnapshots(tendermint.abci.Types.RequestListSnapshots value) {
if (listSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
listSnapshotsBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
public Builder setListSnapshots(
tendermint.abci.Types.RequestListSnapshots.Builder builderForValue) {
if (listSnapshotsBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
listSnapshotsBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
public Builder mergeListSnapshots(tendermint.abci.Types.RequestListSnapshots value) {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 12 &&
value_ != tendermint.abci.Types.RequestListSnapshots.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestListSnapshots.newBuilder((tendermint.abci.Types.RequestListSnapshots) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 12) {
listSnapshotsBuilder_.mergeFrom(value);
}
listSnapshotsBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
public Builder clearListSnapshots() {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
}
listSnapshotsBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
public tendermint.abci.Types.RequestListSnapshots.Builder getListSnapshotsBuilder() {
return getListSnapshotsFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshotsOrBuilder getListSnapshotsOrBuilder() {
if ((valueCase_ == 12) && (listSnapshotsBuilder_ != null)) {
return listSnapshotsBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 12) {
return (tendermint.abci.Types.RequestListSnapshots) value_;
}
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestListSnapshots list_snapshots = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestListSnapshots, tendermint.abci.Types.RequestListSnapshots.Builder, tendermint.abci.Types.RequestListSnapshotsOrBuilder>
getListSnapshotsFieldBuilder() {
if (listSnapshotsBuilder_ == null) {
if (!(valueCase_ == 12)) {
value_ = tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
listSnapshotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestListSnapshots, tendermint.abci.Types.RequestListSnapshots.Builder, tendermint.abci.Types.RequestListSnapshotsOrBuilder>(
(tendermint.abci.Types.RequestListSnapshots) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 12;
onChanged();;
return listSnapshotsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestOfferSnapshot, tendermint.abci.Types.RequestOfferSnapshot.Builder, tendermint.abci.Types.RequestOfferSnapshotOrBuilder> offerSnapshotBuilder_;
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return Whether the offerSnapshot field is set.
*/
@java.lang.Override
public boolean hasOfferSnapshot() {
return valueCase_ == 13;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
* @return The offerSnapshot.
*/
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshot getOfferSnapshot() {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 13) {
return (tendermint.abci.Types.RequestOfferSnapshot) value_;
}
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
} else {
if (valueCase_ == 13) {
return offerSnapshotBuilder_.getMessage();
}
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
public Builder setOfferSnapshot(tendermint.abci.Types.RequestOfferSnapshot value) {
if (offerSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
offerSnapshotBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
public Builder setOfferSnapshot(
tendermint.abci.Types.RequestOfferSnapshot.Builder builderForValue) {
if (offerSnapshotBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
offerSnapshotBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
public Builder mergeOfferSnapshot(tendermint.abci.Types.RequestOfferSnapshot value) {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 13 &&
value_ != tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestOfferSnapshot.newBuilder((tendermint.abci.Types.RequestOfferSnapshot) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 13) {
offerSnapshotBuilder_.mergeFrom(value);
}
offerSnapshotBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
public Builder clearOfferSnapshot() {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
}
offerSnapshotBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
public tendermint.abci.Types.RequestOfferSnapshot.Builder getOfferSnapshotBuilder() {
return getOfferSnapshotFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() {
if ((valueCase_ == 13) && (offerSnapshotBuilder_ != null)) {
return offerSnapshotBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 13) {
return (tendermint.abci.Types.RequestOfferSnapshot) value_;
}
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestOfferSnapshot offer_snapshot = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestOfferSnapshot, tendermint.abci.Types.RequestOfferSnapshot.Builder, tendermint.abci.Types.RequestOfferSnapshotOrBuilder>
getOfferSnapshotFieldBuilder() {
if (offerSnapshotBuilder_ == null) {
if (!(valueCase_ == 13)) {
value_ = tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
offerSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestOfferSnapshot, tendermint.abci.Types.RequestOfferSnapshot.Builder, tendermint.abci.Types.RequestOfferSnapshotOrBuilder>(
(tendermint.abci.Types.RequestOfferSnapshot) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 13;
onChanged();;
return offerSnapshotBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestLoadSnapshotChunk, tendermint.abci.Types.RequestLoadSnapshotChunk.Builder, tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder> loadSnapshotChunkBuilder_;
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return Whether the loadSnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasLoadSnapshotChunk() {
return valueCase_ == 14;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
* @return The loadSnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunk getLoadSnapshotChunk() {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 14) {
return (tendermint.abci.Types.RequestLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
} else {
if (valueCase_ == 14) {
return loadSnapshotChunkBuilder_.getMessage();
}
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
public Builder setLoadSnapshotChunk(tendermint.abci.Types.RequestLoadSnapshotChunk value) {
if (loadSnapshotChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
loadSnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
public Builder setLoadSnapshotChunk(
tendermint.abci.Types.RequestLoadSnapshotChunk.Builder builderForValue) {
if (loadSnapshotChunkBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
loadSnapshotChunkBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
public Builder mergeLoadSnapshotChunk(tendermint.abci.Types.RequestLoadSnapshotChunk value) {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 14 &&
value_ != tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestLoadSnapshotChunk.newBuilder((tendermint.abci.Types.RequestLoadSnapshotChunk) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 14) {
loadSnapshotChunkBuilder_.mergeFrom(value);
}
loadSnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
public Builder clearLoadSnapshotChunk() {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 14) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 14) {
valueCase_ = 0;
value_ = null;
}
loadSnapshotChunkBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
public tendermint.abci.Types.RequestLoadSnapshotChunk.Builder getLoadSnapshotChunkBuilder() {
return getLoadSnapshotChunkFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() {
if ((valueCase_ == 14) && (loadSnapshotChunkBuilder_ != null)) {
return loadSnapshotChunkBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 14) {
return (tendermint.abci.Types.RequestLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestLoadSnapshotChunk, tendermint.abci.Types.RequestLoadSnapshotChunk.Builder, tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder>
getLoadSnapshotChunkFieldBuilder() {
if (loadSnapshotChunkBuilder_ == null) {
if (!(valueCase_ == 14)) {
value_ = tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
loadSnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestLoadSnapshotChunk, tendermint.abci.Types.RequestLoadSnapshotChunk.Builder, tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder>(
(tendermint.abci.Types.RequestLoadSnapshotChunk) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 14;
onChanged();;
return loadSnapshotChunkBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestApplySnapshotChunk, tendermint.abci.Types.RequestApplySnapshotChunk.Builder, tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder> applySnapshotChunkBuilder_;
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return Whether the applySnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasApplySnapshotChunk() {
return valueCase_ == 15;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
* @return The applySnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunk getApplySnapshotChunk() {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 15) {
return (tendermint.abci.Types.RequestApplySnapshotChunk) value_;
}
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
} else {
if (valueCase_ == 15) {
return applySnapshotChunkBuilder_.getMessage();
}
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
public Builder setApplySnapshotChunk(tendermint.abci.Types.RequestApplySnapshotChunk value) {
if (applySnapshotChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
applySnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
public Builder setApplySnapshotChunk(
tendermint.abci.Types.RequestApplySnapshotChunk.Builder builderForValue) {
if (applySnapshotChunkBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
applySnapshotChunkBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
public Builder mergeApplySnapshotChunk(tendermint.abci.Types.RequestApplySnapshotChunk value) {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 15 &&
value_ != tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance()) {
value_ = tendermint.abci.Types.RequestApplySnapshotChunk.newBuilder((tendermint.abci.Types.RequestApplySnapshotChunk) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 15) {
applySnapshotChunkBuilder_.mergeFrom(value);
}
applySnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
public Builder clearApplySnapshotChunk() {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 15) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 15) {
valueCase_ = 0;
value_ = null;
}
applySnapshotChunkBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
public tendermint.abci.Types.RequestApplySnapshotChunk.Builder getApplySnapshotChunkBuilder() {
return getApplySnapshotChunkFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() {
if ((valueCase_ == 15) && (applySnapshotChunkBuilder_ != null)) {
return applySnapshotChunkBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 15) {
return (tendermint.abci.Types.RequestApplySnapshotChunk) value_;
}
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestApplySnapshotChunk, tendermint.abci.Types.RequestApplySnapshotChunk.Builder, tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder>
getApplySnapshotChunkFieldBuilder() {
if (applySnapshotChunkBuilder_ == null) {
if (!(valueCase_ == 15)) {
value_ = tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
applySnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.RequestApplySnapshotChunk, tendermint.abci.Types.RequestApplySnapshotChunk.Builder, tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder>(
(tendermint.abci.Types.RequestApplySnapshotChunk) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 15;
onChanged();;
return applySnapshotChunkBuilder_;
}
@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:tendermint.abci.Request)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.Request)
private static final tendermint.abci.Types.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.Request();
}
public static tendermint.abci.Types.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Request(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 tendermint.abci.Types.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestEchoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestEcho)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code tendermint.abci.RequestEcho}
*/
public static final class RequestEcho extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestEcho)
RequestEchoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestEcho.newBuilder() to construct.
private RequestEcho(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestEcho() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestEcho();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestEcho(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestEcho.class, tendermint.abci.Types.RequestEcho.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
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 tendermint.abci.Types.RequestEcho)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestEcho other = (tendermint.abci.Types.RequestEcho) obj;
if (!getMessage()
.equals(other.getMessage())) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestEcho parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEcho parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEcho parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEcho parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEcho parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEcho parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEcho parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEcho 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 tendermint.abci.Types.RequestEcho parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEcho 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 tendermint.abci.Types.RequestEcho parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEcho 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(tendermint.abci.Types.RequestEcho 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 tendermint.abci.RequestEcho}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestEcho)
tendermint.abci.Types.RequestEchoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestEcho.class, tendermint.abci.Types.RequestEcho.Builder.class);
}
// Construct using tendermint.abci.Types.RequestEcho.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();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEcho_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestEcho getDefaultInstanceForType() {
return tendermint.abci.Types.RequestEcho.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestEcho build() {
tendermint.abci.Types.RequestEcho result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestEcho buildPartial() {
tendermint.abci.Types.RequestEcho result = new tendermint.abci.Types.RequestEcho(this);
result.message_ = message_;
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 tendermint.abci.Types.RequestEcho) {
return mergeFrom((tendermint.abci.Types.RequestEcho)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestEcho other) {
if (other == tendermint.abci.Types.RequestEcho.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
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 {
tendermint.abci.Types.RequestEcho parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestEcho) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = 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:tendermint.abci.RequestEcho)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestEcho)
private static final tendermint.abci.Types.RequestEcho DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestEcho();
}
public static tendermint.abci.Types.RequestEcho getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestEcho parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestEcho(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 tendermint.abci.Types.RequestEcho getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestFlushOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestFlush)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tendermint.abci.RequestFlush}
*/
public static final class RequestFlush extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestFlush)
RequestFlushOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestFlush.newBuilder() to construct.
private RequestFlush(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestFlush() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestFlush();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestFlush(
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;
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestFlush.class, tendermint.abci.Types.RequestFlush.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tendermint.abci.Types.RequestFlush)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestFlush other = (tendermint.abci.Types.RequestFlush) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestFlush parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestFlush parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestFlush parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestFlush parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestFlush parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestFlush parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestFlush parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestFlush 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 tendermint.abci.Types.RequestFlush parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestFlush 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 tendermint.abci.Types.RequestFlush parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestFlush 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(tendermint.abci.Types.RequestFlush 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 tendermint.abci.RequestFlush}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestFlush)
tendermint.abci.Types.RequestFlushOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestFlush.class, tendermint.abci.Types.RequestFlush.Builder.class);
}
// Construct using tendermint.abci.Types.RequestFlush.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestFlush_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestFlush getDefaultInstanceForType() {
return tendermint.abci.Types.RequestFlush.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestFlush build() {
tendermint.abci.Types.RequestFlush result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestFlush buildPartial() {
tendermint.abci.Types.RequestFlush result = new tendermint.abci.Types.RequestFlush(this);
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 tendermint.abci.Types.RequestFlush) {
return mergeFrom((tendermint.abci.Types.RequestFlush)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestFlush other) {
if (other == tendermint.abci.Types.RequestFlush.getDefaultInstance()) return this;
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 {
tendermint.abci.Types.RequestFlush parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestFlush) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:tendermint.abci.RequestFlush)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestFlush)
private static final tendermint.abci.Types.RequestFlush DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestFlush();
}
public static tendermint.abci.Types.RequestFlush getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestFlush parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestFlush(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 tendermint.abci.Types.RequestFlush getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* uint64 block_version = 2;
* @return The blockVersion.
*/
long getBlockVersion();
/**
* uint64 p2p_version = 3;
* @return The p2pVersion.
*/
long getP2PVersion();
}
/**
* Protobuf type {@code tendermint.abci.RequestInfo}
*/
public static final class RequestInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestInfo)
RequestInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestInfo.newBuilder() to construct.
private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestInfo() {
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 16: {
blockVersion_ = input.readUInt64();
break;
}
case 24: {
p2PVersion_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestInfo.class, tendermint.abci.Types.RequestInfo.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BLOCK_VERSION_FIELD_NUMBER = 2;
private long blockVersion_;
/**
* uint64 block_version = 2;
* @return The blockVersion.
*/
@java.lang.Override
public long getBlockVersion() {
return blockVersion_;
}
public static final int P2P_VERSION_FIELD_NUMBER = 3;
private long p2PVersion_;
/**
* uint64 p2p_version = 3;
* @return The p2pVersion.
*/
@java.lang.Override
public long getP2PVersion() {
return p2PVersion_;
}
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 (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (blockVersion_ != 0L) {
output.writeUInt64(2, blockVersion_);
}
if (p2PVersion_ != 0L) {
output.writeUInt64(3, p2PVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (blockVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, blockVersion_);
}
if (p2PVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, p2PVersion_);
}
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 tendermint.abci.Types.RequestInfo)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestInfo other = (tendermint.abci.Types.RequestInfo) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (getBlockVersion()
!= other.getBlockVersion()) return false;
if (getP2PVersion()
!= other.getP2PVersion()) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + BLOCK_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockVersion());
hash = (37 * hash) + P2P_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getP2PVersion());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInfo 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 tendermint.abci.Types.RequestInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInfo 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 tendermint.abci.Types.RequestInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInfo 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(tendermint.abci.Types.RequestInfo 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 tendermint.abci.RequestInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestInfo)
tendermint.abci.Types.RequestInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestInfo.class, tendermint.abci.Types.RequestInfo.Builder.class);
}
// Construct using tendermint.abci.Types.RequestInfo.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();
version_ = "";
blockVersion_ = 0L;
p2PVersion_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInfo_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestInfo getDefaultInstanceForType() {
return tendermint.abci.Types.RequestInfo.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestInfo build() {
tendermint.abci.Types.RequestInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestInfo buildPartial() {
tendermint.abci.Types.RequestInfo result = new tendermint.abci.Types.RequestInfo(this);
result.version_ = version_;
result.blockVersion_ = blockVersion_;
result.p2PVersion_ = p2PVersion_;
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 tendermint.abci.Types.RequestInfo) {
return mergeFrom((tendermint.abci.Types.RequestInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestInfo other) {
if (other == tendermint.abci.Types.RequestInfo.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.getBlockVersion() != 0L) {
setBlockVersion(other.getBlockVersion());
}
if (other.getP2PVersion() != 0L) {
setP2PVersion(other.getP2PVersion());
}
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 {
tendermint.abci.Types.RequestInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private long blockVersion_ ;
/**
* uint64 block_version = 2;
* @return The blockVersion.
*/
@java.lang.Override
public long getBlockVersion() {
return blockVersion_;
}
/**
* uint64 block_version = 2;
* @param value The blockVersion to set.
* @return This builder for chaining.
*/
public Builder setBlockVersion(long value) {
blockVersion_ = value;
onChanged();
return this;
}
/**
* uint64 block_version = 2;
* @return This builder for chaining.
*/
public Builder clearBlockVersion() {
blockVersion_ = 0L;
onChanged();
return this;
}
private long p2PVersion_ ;
/**
* uint64 p2p_version = 3;
* @return The p2pVersion.
*/
@java.lang.Override
public long getP2PVersion() {
return p2PVersion_;
}
/**
* uint64 p2p_version = 3;
* @param value The p2pVersion to set.
* @return This builder for chaining.
*/
public Builder setP2PVersion(long value) {
p2PVersion_ = value;
onChanged();
return this;
}
/**
* uint64 p2p_version = 3;
* @return This builder for chaining.
*/
public Builder clearP2PVersion() {
p2PVersion_ = 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:tendermint.abci.RequestInfo)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestInfo)
private static final tendermint.abci.Types.RequestInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestInfo();
}
public static tendermint.abci.Types.RequestInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestInfo(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 tendermint.abci.Types.RequestInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestSetOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestSetOption)
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();
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.RequestSetOption}
*/
public static final class RequestSetOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestSetOption)
RequestSetOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestSetOption.newBuilder() to construct.
private RequestSetOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestSetOption() {
key_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestSetOption();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestSetOption(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
value_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestSetOption.class, tendermint.abci.Types.RequestSetOption.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;
}
}
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_);
}
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_);
}
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 tendermint.abci.Types.RequestSetOption)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestSetOption other = (tendermint.abci.Types.RequestSetOption) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) 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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestSetOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestSetOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestSetOption 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 tendermint.abci.Types.RequestSetOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestSetOption 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 tendermint.abci.Types.RequestSetOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestSetOption 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(tendermint.abci.Types.RequestSetOption 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;
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.RequestSetOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestSetOption)
tendermint.abci.Types.RequestSetOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestSetOption.class, tendermint.abci.Types.RequestSetOption.Builder.class);
}
// Construct using tendermint.abci.Types.RequestSetOption.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestSetOption_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestSetOption getDefaultInstanceForType() {
return tendermint.abci.Types.RequestSetOption.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestSetOption build() {
tendermint.abci.Types.RequestSetOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestSetOption buildPartial() {
tendermint.abci.Types.RequestSetOption result = new tendermint.abci.Types.RequestSetOption(this);
result.key_ = key_;
result.value_ = value_;
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 tendermint.abci.Types.RequestSetOption) {
return mergeFrom((tendermint.abci.Types.RequestSetOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestSetOption other) {
if (other == tendermint.abci.Types.RequestSetOption.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
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 {
tendermint.abci.Types.RequestSetOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestSetOption) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
}
@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:tendermint.abci.RequestSetOption)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestSetOption)
private static final tendermint.abci.Types.RequestSetOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestSetOption();
}
public static tendermint.abci.Types.RequestSetOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestSetOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestSetOption(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 tendermint.abci.Types.RequestSetOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestInitChainOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestInitChain)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return Whether the time field is set.
*/
boolean hasTime();
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return The time.
*/
com.google.protobuf.Timestamp getTime();
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
/**
* string chain_id = 2;
* @return The chainId.
*/
java.lang.String getChainId();
/**
* string chain_id = 2;
* @return The bytes for chainId.
*/
com.google.protobuf.ByteString
getChainIdBytes();
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return Whether the consensusParams field is set.
*/
boolean hasConsensusParams();
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return The consensusParams.
*/
tendermint.abci.Types.ConsensusParams getConsensusParams();
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
java.util.List
getValidatorsList();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdate getValidators(int index);
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
int getValidatorsCount();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index);
/**
* bytes app_state_bytes = 5;
* @return The appStateBytes.
*/
com.google.protobuf.ByteString getAppStateBytes();
/**
* int64 initial_height = 6;
* @return The initialHeight.
*/
long getInitialHeight();
}
/**
* Protobuf type {@code tendermint.abci.RequestInitChain}
*/
public static final class RequestInitChain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestInitChain)
RequestInitChainOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestInitChain.newBuilder() to construct.
private RequestInitChain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestInitChain() {
chainId_ = "";
validators_ = java.util.Collections.emptyList();
appStateBytes_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestInitChain();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestInitChain(
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: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (time_ != null) {
subBuilder = time_.toBuilder();
}
time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(time_);
time_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
chainId_ = s;
break;
}
case 26: {
tendermint.abci.Types.ConsensusParams.Builder subBuilder = null;
if (consensusParams_ != null) {
subBuilder = consensusParams_.toBuilder();
}
consensusParams_ = input.readMessage(tendermint.abci.Types.ConsensusParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusParams_);
consensusParams_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
validators_.add(
input.readMessage(tendermint.abci.Types.ValidatorUpdate.parser(), extensionRegistry));
break;
}
case 42: {
appStateBytes_ = input.readBytes();
break;
}
case 48: {
initialHeight_ = input.readInt64();
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestInitChain.class, tendermint.abci.Types.RequestInitChain.Builder.class);
}
public static final int TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp time_;
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return Whether the time field is set.
*/
@java.lang.Override
public boolean hasTime() {
return time_ != null;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return The time.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTime() {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
return getTime();
}
public static final int CHAIN_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object chainId_;
/**
* string chain_id = 2;
* @return The chainId.
*/
@java.lang.Override
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
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();
chainId_ = s;
return s;
}
}
/**
* string chain_id = 2;
* @return The bytes for chainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONSENSUS_PARAMS_FIELD_NUMBER = 3;
private tendermint.abci.Types.ConsensusParams consensusParams_;
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return Whether the consensusParams field is set.
*/
@java.lang.Override
public boolean hasConsensusParams() {
return consensusParams_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return The consensusParams.
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParams getConsensusParams() {
return consensusParams_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() {
return getConsensusParams();
}
public static final int VALIDATORS_FIELD_NUMBER = 4;
private java.util.List validators_;
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getValidatorsList() {
return validators_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList() {
return validators_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdate getValidators(int index) {
return validators_.get(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index) {
return validators_.get(index);
}
public static final int APP_STATE_BYTES_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString appStateBytes_;
/**
* bytes app_state_bytes = 5;
* @return The appStateBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppStateBytes() {
return appStateBytes_;
}
public static final int INITIAL_HEIGHT_FIELD_NUMBER = 6;
private long initialHeight_;
/**
* int64 initial_height = 6;
* @return The initialHeight.
*/
@java.lang.Override
public long getInitialHeight() {
return initialHeight_;
}
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 (time_ != null) {
output.writeMessage(1, getTime());
}
if (!getChainIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_);
}
if (consensusParams_ != null) {
output.writeMessage(3, getConsensusParams());
}
for (int i = 0; i < validators_.size(); i++) {
output.writeMessage(4, validators_.get(i));
}
if (!appStateBytes_.isEmpty()) {
output.writeBytes(5, appStateBytes_);
}
if (initialHeight_ != 0L) {
output.writeInt64(6, initialHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (time_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTime());
}
if (!getChainIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_);
}
if (consensusParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConsensusParams());
}
for (int i = 0; i < validators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, validators_.get(i));
}
if (!appStateBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, appStateBytes_);
}
if (initialHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, initialHeight_);
}
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 tendermint.abci.Types.RequestInitChain)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestInitChain other = (tendermint.abci.Types.RequestInitChain) obj;
if (hasTime() != other.hasTime()) return false;
if (hasTime()) {
if (!getTime()
.equals(other.getTime())) return false;
}
if (!getChainId()
.equals(other.getChainId())) return false;
if (hasConsensusParams() != other.hasConsensusParams()) return false;
if (hasConsensusParams()) {
if (!getConsensusParams()
.equals(other.getConsensusParams())) return false;
}
if (!getValidatorsList()
.equals(other.getValidatorsList())) return false;
if (!getAppStateBytes()
.equals(other.getAppStateBytes())) return false;
if (getInitialHeight()
!= other.getInitialHeight()) 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 (hasTime()) {
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + getTime().hashCode();
}
hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId().hashCode();
if (hasConsensusParams()) {
hash = (37 * hash) + CONSENSUS_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getConsensusParams().hashCode();
}
if (getValidatorsCount() > 0) {
hash = (37 * hash) + VALIDATORS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorsList().hashCode();
}
hash = (37 * hash) + APP_STATE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getAppStateBytes().hashCode();
hash = (37 * hash) + INITIAL_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitialHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestInitChain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestInitChain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInitChain 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 tendermint.abci.Types.RequestInitChain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInitChain 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 tendermint.abci.Types.RequestInitChain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestInitChain 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(tendermint.abci.Types.RequestInitChain 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 tendermint.abci.RequestInitChain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestInitChain)
tendermint.abci.Types.RequestInitChainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestInitChain.class, tendermint.abci.Types.RequestInitChain.Builder.class);
}
// Construct using tendermint.abci.Types.RequestInitChain.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValidatorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (timeBuilder_ == null) {
time_ = null;
} else {
time_ = null;
timeBuilder_ = null;
}
chainId_ = "";
if (consensusParamsBuilder_ == null) {
consensusParams_ = null;
} else {
consensusParams_ = null;
consensusParamsBuilder_ = null;
}
if (validatorsBuilder_ == null) {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
validatorsBuilder_.clear();
}
appStateBytes_ = com.google.protobuf.ByteString.EMPTY;
initialHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestInitChain_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestInitChain getDefaultInstanceForType() {
return tendermint.abci.Types.RequestInitChain.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestInitChain build() {
tendermint.abci.Types.RequestInitChain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestInitChain buildPartial() {
tendermint.abci.Types.RequestInitChain result = new tendermint.abci.Types.RequestInitChain(this);
int from_bitField0_ = bitField0_;
if (timeBuilder_ == null) {
result.time_ = time_;
} else {
result.time_ = timeBuilder_.build();
}
result.chainId_ = chainId_;
if (consensusParamsBuilder_ == null) {
result.consensusParams_ = consensusParams_;
} else {
result.consensusParams_ = consensusParamsBuilder_.build();
}
if (validatorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
validators_ = java.util.Collections.unmodifiableList(validators_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validators_ = validators_;
} else {
result.validators_ = validatorsBuilder_.build();
}
result.appStateBytes_ = appStateBytes_;
result.initialHeight_ = initialHeight_;
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 tendermint.abci.Types.RequestInitChain) {
return mergeFrom((tendermint.abci.Types.RequestInitChain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestInitChain other) {
if (other == tendermint.abci.Types.RequestInitChain.getDefaultInstance()) return this;
if (other.hasTime()) {
mergeTime(other.getTime());
}
if (!other.getChainId().isEmpty()) {
chainId_ = other.chainId_;
onChanged();
}
if (other.hasConsensusParams()) {
mergeConsensusParams(other.getConsensusParams());
}
if (validatorsBuilder_ == null) {
if (!other.validators_.isEmpty()) {
if (validators_.isEmpty()) {
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidatorsIsMutable();
validators_.addAll(other.validators_);
}
onChanged();
}
} else {
if (!other.validators_.isEmpty()) {
if (validatorsBuilder_.isEmpty()) {
validatorsBuilder_.dispose();
validatorsBuilder_ = null;
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
validatorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorsFieldBuilder() : null;
} else {
validatorsBuilder_.addAllMessages(other.validators_);
}
}
}
if (other.getAppStateBytes() != com.google.protobuf.ByteString.EMPTY) {
setAppStateBytes(other.getAppStateBytes());
}
if (other.getInitialHeight() != 0L) {
setInitialHeight(other.getInitialHeight());
}
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 {
tendermint.abci.Types.RequestInitChain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestInitChain) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp time_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_;
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return Whether the time field is set.
*/
public boolean hasTime() {
return timeBuilder_ != null || time_ != null;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
* @return The time.
*/
public com.google.protobuf.Timestamp getTime() {
if (timeBuilder_ == null) {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
} else {
return timeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public Builder setTime(com.google.protobuf.Timestamp value) {
if (timeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
time_ = value;
onChanged();
} else {
timeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public Builder setTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timeBuilder_ == null) {
time_ = builderForValue.build();
onChanged();
} else {
timeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public Builder mergeTime(com.google.protobuf.Timestamp value) {
if (timeBuilder_ == null) {
if (time_ != null) {
time_ =
com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial();
} else {
time_ = value;
}
onChanged();
} else {
timeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public Builder clearTime() {
if (timeBuilder_ == null) {
time_ = null;
onChanged();
} else {
time_ = null;
timeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
onChanged();
return getTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
if (timeBuilder_ != null) {
return timeBuilder_.getMessageOrBuilder();
} else {
return time_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
}
/**
* .google.protobuf.Timestamp time = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimeFieldBuilder() {
if (timeBuilder_ == null) {
timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTime(),
getParentForChildren(),
isClean());
time_ = null;
}
return timeBuilder_;
}
private java.lang.Object chainId_ = "";
/**
* string chain_id = 2;
* @return The chainId.
*/
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string chain_id = 2;
* @return The bytes for chainId.
*/
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string chain_id = 2;
* @param value The chainId to set.
* @return This builder for chaining.
*/
public Builder setChainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainId_ = value;
onChanged();
return this;
}
/**
* string chain_id = 2;
* @return This builder for chaining.
*/
public Builder clearChainId() {
chainId_ = getDefaultInstance().getChainId();
onChanged();
return this;
}
/**
* string chain_id = 2;
* @param value The bytes for chainId to set.
* @return This builder for chaining.
*/
public Builder setChainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainId_ = value;
onChanged();
return this;
}
private tendermint.abci.Types.ConsensusParams consensusParams_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder> consensusParamsBuilder_;
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return Whether the consensusParams field is set.
*/
public boolean hasConsensusParams() {
return consensusParamsBuilder_ != null || consensusParams_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
* @return The consensusParams.
*/
public tendermint.abci.Types.ConsensusParams getConsensusParams() {
if (consensusParamsBuilder_ == null) {
return consensusParams_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
} else {
return consensusParamsBuilder_.getMessage();
}
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public Builder setConsensusParams(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusParams_ = value;
onChanged();
} else {
consensusParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public Builder setConsensusParams(
tendermint.abci.Types.ConsensusParams.Builder builderForValue) {
if (consensusParamsBuilder_ == null) {
consensusParams_ = builderForValue.build();
onChanged();
} else {
consensusParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public Builder mergeConsensusParams(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamsBuilder_ == null) {
if (consensusParams_ != null) {
consensusParams_ =
tendermint.abci.Types.ConsensusParams.newBuilder(consensusParams_).mergeFrom(value).buildPartial();
} else {
consensusParams_ = value;
}
onChanged();
} else {
consensusParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public Builder clearConsensusParams() {
if (consensusParamsBuilder_ == null) {
consensusParams_ = null;
onChanged();
} else {
consensusParams_ = null;
consensusParamsBuilder_ = null;
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public tendermint.abci.Types.ConsensusParams.Builder getConsensusParamsBuilder() {
onChanged();
return getConsensusParamsFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() {
if (consensusParamsBuilder_ != null) {
return consensusParamsBuilder_.getMessageOrBuilder();
} else {
return consensusParams_ == null ?
tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
}
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>
getConsensusParamsFieldBuilder() {
if (consensusParamsBuilder_ == null) {
consensusParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>(
getConsensusParams(),
getParentForChildren(),
isClean());
consensusParams_ = null;
}
return consensusParamsBuilder_;
}
private java.util.List validators_ =
java.util.Collections.emptyList();
private void ensureValidatorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList(validators_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder> validatorsBuilder_;
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List getValidatorsList() {
if (validatorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validators_);
} else {
return validatorsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public int getValidatorsCount() {
if (validatorsBuilder_ == null) {
return validators_.size();
} else {
return validatorsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate getValidators(int index) {
if (validatorsBuilder_ == null) {
return validators_.get(index);
} else {
return validatorsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder setValidators(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.set(index, value);
onChanged();
} else {
validatorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder setValidators(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.set(index, builderForValue.build());
onChanged();
} else {
validatorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(value);
onChanged();
} else {
validatorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(index, value);
onChanged();
} else {
validatorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.add(builderForValue.build());
onChanged();
} else {
validatorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.add(index, builderForValue.build());
onChanged();
} else {
validatorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addAllValidators(
java.lang.Iterable extends tendermint.abci.Types.ValidatorUpdate> values) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validators_);
onChanged();
} else {
validatorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder clearValidators() {
if (validatorsBuilder_ == null) {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
validatorsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder removeValidators(int index) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.remove(index);
onChanged();
} else {
validatorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder getValidatorsBuilder(
int index) {
return getValidatorsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index) {
if (validatorsBuilder_ == null) {
return validators_.get(index); } else {
return validatorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList() {
if (validatorsBuilder_ != null) {
return validatorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validators_);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorsBuilder() {
return getValidatorsFieldBuilder().addBuilder(
tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorsBuilder(
int index) {
return getValidatorsFieldBuilder().addBuilder(
index, tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List
getValidatorsBuilderList() {
return getValidatorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsFieldBuilder() {
if (validatorsBuilder_ == null) {
validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>(
validators_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
validators_ = null;
}
return validatorsBuilder_;
}
private com.google.protobuf.ByteString appStateBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes app_state_bytes = 5;
* @return The appStateBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppStateBytes() {
return appStateBytes_;
}
/**
* bytes app_state_bytes = 5;
* @param value The appStateBytes to set.
* @return This builder for chaining.
*/
public Builder setAppStateBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
appStateBytes_ = value;
onChanged();
return this;
}
/**
* bytes app_state_bytes = 5;
* @return This builder for chaining.
*/
public Builder clearAppStateBytes() {
appStateBytes_ = getDefaultInstance().getAppStateBytes();
onChanged();
return this;
}
private long initialHeight_ ;
/**
* int64 initial_height = 6;
* @return The initialHeight.
*/
@java.lang.Override
public long getInitialHeight() {
return initialHeight_;
}
/**
* int64 initial_height = 6;
* @param value The initialHeight to set.
* @return This builder for chaining.
*/
public Builder setInitialHeight(long value) {
initialHeight_ = value;
onChanged();
return this;
}
/**
* int64 initial_height = 6;
* @return This builder for chaining.
*/
public Builder clearInitialHeight() {
initialHeight_ = 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:tendermint.abci.RequestInitChain)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestInitChain)
private static final tendermint.abci.Types.RequestInitChain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestInitChain();
}
public static tendermint.abci.Types.RequestInitChain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestInitChain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestInitChain(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 tendermint.abci.Types.RequestInitChain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestQueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestQuery)
com.google.protobuf.MessageOrBuilder {
/**
* bytes data = 1;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* int64 height = 3;
* @return The height.
*/
long getHeight();
/**
* bool prove = 4;
* @return The prove.
*/
boolean getProve();
}
/**
* Protobuf type {@code tendermint.abci.RequestQuery}
*/
public static final class RequestQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestQuery)
RequestQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestQuery.newBuilder() to construct.
private RequestQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestQuery() {
data_ = com.google.protobuf.ByteString.EMPTY;
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestQuery();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestQuery(
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: {
data_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 24: {
height_ = input.readInt64();
break;
}
case 32: {
prove_ = input.readBool();
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestQuery.class, tendermint.abci.Types.RequestQuery.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEIGHT_FIELD_NUMBER = 3;
private long height_;
/**
* int64 height = 3;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
public static final int PROVE_FIELD_NUMBER = 4;
private boolean prove_;
/**
* bool prove = 4;
* @return The prove.
*/
@java.lang.Override
public boolean getProve() {
return prove_;
}
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 (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
if (height_ != 0L) {
output.writeInt64(3, height_);
}
if (prove_ != false) {
output.writeBool(4, prove_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, height_);
}
if (prove_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, prove_);
}
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 tendermint.abci.Types.RequestQuery)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestQuery other = (tendermint.abci.Types.RequestQuery) obj;
if (!getData()
.equals(other.getData())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (getHeight()
!= other.getHeight()) return false;
if (getProve()
!= other.getProve()) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + PROVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getProve());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestQuery parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestQuery parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestQuery 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 tendermint.abci.Types.RequestQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestQuery 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 tendermint.abci.Types.RequestQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestQuery 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(tendermint.abci.Types.RequestQuery 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 tendermint.abci.RequestQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestQuery)
tendermint.abci.Types.RequestQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestQuery.class, tendermint.abci.Types.RequestQuery.Builder.class);
}
// Construct using tendermint.abci.Types.RequestQuery.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();
data_ = com.google.protobuf.ByteString.EMPTY;
path_ = "";
height_ = 0L;
prove_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestQuery_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestQuery getDefaultInstanceForType() {
return tendermint.abci.Types.RequestQuery.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestQuery build() {
tendermint.abci.Types.RequestQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestQuery buildPartial() {
tendermint.abci.Types.RequestQuery result = new tendermint.abci.Types.RequestQuery(this);
result.data_ = data_;
result.path_ = path_;
result.height_ = height_;
result.prove_ = prove_;
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 tendermint.abci.Types.RequestQuery) {
return mergeFrom((tendermint.abci.Types.RequestQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestQuery other) {
if (other == tendermint.abci.Types.RequestQuery.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.getProve() != false) {
setProve(other.getProve());
}
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 {
tendermint.abci.Types.RequestQuery parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestQuery) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 1;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 1;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private long height_ ;
/**
* int64 height = 3;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* int64 height = 3;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* int64 height = 3;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private boolean prove_ ;
/**
* bool prove = 4;
* @return The prove.
*/
@java.lang.Override
public boolean getProve() {
return prove_;
}
/**
* bool prove = 4;
* @param value The prove to set.
* @return This builder for chaining.
*/
public Builder setProve(boolean value) {
prove_ = value;
onChanged();
return this;
}
/**
* bool prove = 4;
* @return This builder for chaining.
*/
public Builder clearProve() {
prove_ = false;
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:tendermint.abci.RequestQuery)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestQuery)
private static final tendermint.abci.Types.RequestQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestQuery();
}
public static tendermint.abci.Types.RequestQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestQuery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestQuery(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 tendermint.abci.Types.RequestQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestBeginBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestBeginBlock)
com.google.protobuf.MessageOrBuilder {
/**
* bytes hash = 1;
* @return The hash.
*/
com.google.protobuf.ByteString getHash();
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return The header.
*/
tendermint.types.Types.Header getHeader();
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder();
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return Whether the lastCommitInfo field is set.
*/
boolean hasLastCommitInfo();
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return The lastCommitInfo.
*/
tendermint.abci.Types.LastCommitInfo getLastCommitInfo();
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder();
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
java.util.List
getByzantineValidatorsList();
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.Evidence getByzantineValidators(int index);
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
int getByzantineValidatorsCount();
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
java.util.List extends tendermint.abci.Types.EvidenceOrBuilder>
getByzantineValidatorsOrBuilderList();
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.EvidenceOrBuilder getByzantineValidatorsOrBuilder(
int index);
}
/**
* Protobuf type {@code tendermint.abci.RequestBeginBlock}
*/
public static final class RequestBeginBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestBeginBlock)
RequestBeginBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestBeginBlock.newBuilder() to construct.
private RequestBeginBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestBeginBlock() {
hash_ = com.google.protobuf.ByteString.EMPTY;
byzantineValidators_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestBeginBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestBeginBlock(
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: {
hash_ = input.readBytes();
break;
}
case 18: {
tendermint.types.Types.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(tendermint.types.Types.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 26: {
tendermint.abci.Types.LastCommitInfo.Builder subBuilder = null;
if (lastCommitInfo_ != null) {
subBuilder = lastCommitInfo_.toBuilder();
}
lastCommitInfo_ = input.readMessage(tendermint.abci.Types.LastCommitInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastCommitInfo_);
lastCommitInfo_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
byzantineValidators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
byzantineValidators_.add(
input.readMessage(tendermint.abci.Types.Evidence.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)) {
byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestBeginBlock.class, tendermint.abci.Types.RequestBeginBlock.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 1;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
public static final int HEADER_FIELD_NUMBER = 2;
private tendermint.types.Types.Header header_;
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return The header.
*/
@java.lang.Override
public tendermint.types.Types.Header getHeader() {
return header_ == null ? tendermint.types.Types.Header.getDefaultInstance() : header_;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int LAST_COMMIT_INFO_FIELD_NUMBER = 3;
private tendermint.abci.Types.LastCommitInfo lastCommitInfo_;
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return Whether the lastCommitInfo field is set.
*/
@java.lang.Override
public boolean hasLastCommitInfo() {
return lastCommitInfo_ != null;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return The lastCommitInfo.
*/
@java.lang.Override
public tendermint.abci.Types.LastCommitInfo getLastCommitInfo() {
return lastCommitInfo_ == null ? tendermint.abci.Types.LastCommitInfo.getDefaultInstance() : lastCommitInfo_;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder() {
return getLastCommitInfo();
}
public static final int BYZANTINE_VALIDATORS_FIELD_NUMBER = 4;
private java.util.List byzantineValidators_;
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getByzantineValidatorsList() {
return byzantineValidators_;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.EvidenceOrBuilder>
getByzantineValidatorsOrBuilderList() {
return byzantineValidators_;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getByzantineValidatorsCount() {
return byzantineValidators_.size();
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.Evidence getByzantineValidators(int index) {
return byzantineValidators_.get(index);
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.EvidenceOrBuilder getByzantineValidatorsOrBuilder(
int index) {
return byzantineValidators_.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 (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
if (header_ != null) {
output.writeMessage(2, getHeader());
}
if (lastCommitInfo_ != null) {
output.writeMessage(3, getLastCommitInfo());
}
for (int i = 0; i < byzantineValidators_.size(); i++) {
output.writeMessage(4, byzantineValidators_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getHeader());
}
if (lastCommitInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLastCommitInfo());
}
for (int i = 0; i < byzantineValidators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, byzantineValidators_.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 tendermint.abci.Types.RequestBeginBlock)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestBeginBlock other = (tendermint.abci.Types.RequestBeginBlock) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasLastCommitInfo() != other.hasLastCommitInfo()) return false;
if (hasLastCommitInfo()) {
if (!getLastCommitInfo()
.equals(other.getLastCommitInfo())) return false;
}
if (!getByzantineValidatorsList()
.equals(other.getByzantineValidatorsList())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasLastCommitInfo()) {
hash = (37 * hash) + LAST_COMMIT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getLastCommitInfo().hashCode();
}
if (getByzantineValidatorsCount() > 0) {
hash = (37 * hash) + BYZANTINE_VALIDATORS_FIELD_NUMBER;
hash = (53 * hash) + getByzantineValidatorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestBeginBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestBeginBlock 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 tendermint.abci.Types.RequestBeginBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestBeginBlock 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 tendermint.abci.Types.RequestBeginBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestBeginBlock 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(tendermint.abci.Types.RequestBeginBlock 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 tendermint.abci.RequestBeginBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestBeginBlock)
tendermint.abci.Types.RequestBeginBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestBeginBlock.class, tendermint.abci.Types.RequestBeginBlock.Builder.class);
}
// Construct using tendermint.abci.Types.RequestBeginBlock.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getByzantineValidatorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hash_ = com.google.protobuf.ByteString.EMPTY;
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (lastCommitInfoBuilder_ == null) {
lastCommitInfo_ = null;
} else {
lastCommitInfo_ = null;
lastCommitInfoBuilder_ = null;
}
if (byzantineValidatorsBuilder_ == null) {
byzantineValidators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
byzantineValidatorsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestBeginBlock_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlock getDefaultInstanceForType() {
return tendermint.abci.Types.RequestBeginBlock.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlock build() {
tendermint.abci.Types.RequestBeginBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestBeginBlock buildPartial() {
tendermint.abci.Types.RequestBeginBlock result = new tendermint.abci.Types.RequestBeginBlock(this);
int from_bitField0_ = bitField0_;
result.hash_ = hash_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (lastCommitInfoBuilder_ == null) {
result.lastCommitInfo_ = lastCommitInfo_;
} else {
result.lastCommitInfo_ = lastCommitInfoBuilder_.build();
}
if (byzantineValidatorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
byzantineValidators_ = java.util.Collections.unmodifiableList(byzantineValidators_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.byzantineValidators_ = byzantineValidators_;
} else {
result.byzantineValidators_ = byzantineValidatorsBuilder_.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 tendermint.abci.Types.RequestBeginBlock) {
return mergeFrom((tendermint.abci.Types.RequestBeginBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestBeginBlock other) {
if (other == tendermint.abci.Types.RequestBeginBlock.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasLastCommitInfo()) {
mergeLastCommitInfo(other.getLastCommitInfo());
}
if (byzantineValidatorsBuilder_ == null) {
if (!other.byzantineValidators_.isEmpty()) {
if (byzantineValidators_.isEmpty()) {
byzantineValidators_ = other.byzantineValidators_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureByzantineValidatorsIsMutable();
byzantineValidators_.addAll(other.byzantineValidators_);
}
onChanged();
}
} else {
if (!other.byzantineValidators_.isEmpty()) {
if (byzantineValidatorsBuilder_.isEmpty()) {
byzantineValidatorsBuilder_.dispose();
byzantineValidatorsBuilder_ = null;
byzantineValidators_ = other.byzantineValidators_;
bitField0_ = (bitField0_ & ~0x00000001);
byzantineValidatorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getByzantineValidatorsFieldBuilder() : null;
} else {
byzantineValidatorsBuilder_.addAllMessages(other.byzantineValidators_);
}
}
}
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 {
tendermint.abci.Types.RequestBeginBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestBeginBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 1;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private tendermint.types.Types.Header header_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder> headerBuilder_;
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
* @return The header.
*/
public tendermint.types.Types.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? tendermint.types.Types.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(tendermint.types.Types.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(
tendermint.types.Types.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeHeader(tendermint.types.Types.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
tendermint.types.Types.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
tendermint.types.Types.Header.getDefaultInstance() : header_;
}
}
/**
* .tendermint.types.Header header = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private tendermint.abci.Types.LastCommitInfo lastCommitInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.LastCommitInfo, tendermint.abci.Types.LastCommitInfo.Builder, tendermint.abci.Types.LastCommitInfoOrBuilder> lastCommitInfoBuilder_;
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return Whether the lastCommitInfo field is set.
*/
public boolean hasLastCommitInfo() {
return lastCommitInfoBuilder_ != null || lastCommitInfo_ != null;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
* @return The lastCommitInfo.
*/
public tendermint.abci.Types.LastCommitInfo getLastCommitInfo() {
if (lastCommitInfoBuilder_ == null) {
return lastCommitInfo_ == null ? tendermint.abci.Types.LastCommitInfo.getDefaultInstance() : lastCommitInfo_;
} else {
return lastCommitInfoBuilder_.getMessage();
}
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public Builder setLastCommitInfo(tendermint.abci.Types.LastCommitInfo value) {
if (lastCommitInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastCommitInfo_ = value;
onChanged();
} else {
lastCommitInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public Builder setLastCommitInfo(
tendermint.abci.Types.LastCommitInfo.Builder builderForValue) {
if (lastCommitInfoBuilder_ == null) {
lastCommitInfo_ = builderForValue.build();
onChanged();
} else {
lastCommitInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeLastCommitInfo(tendermint.abci.Types.LastCommitInfo value) {
if (lastCommitInfoBuilder_ == null) {
if (lastCommitInfo_ != null) {
lastCommitInfo_ =
tendermint.abci.Types.LastCommitInfo.newBuilder(lastCommitInfo_).mergeFrom(value).buildPartial();
} else {
lastCommitInfo_ = value;
}
onChanged();
} else {
lastCommitInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearLastCommitInfo() {
if (lastCommitInfoBuilder_ == null) {
lastCommitInfo_ = null;
onChanged();
} else {
lastCommitInfo_ = null;
lastCommitInfoBuilder_ = null;
}
return this;
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.LastCommitInfo.Builder getLastCommitInfoBuilder() {
onChanged();
return getLastCommitInfoFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.LastCommitInfoOrBuilder getLastCommitInfoOrBuilder() {
if (lastCommitInfoBuilder_ != null) {
return lastCommitInfoBuilder_.getMessageOrBuilder();
} else {
return lastCommitInfo_ == null ?
tendermint.abci.Types.LastCommitInfo.getDefaultInstance() : lastCommitInfo_;
}
}
/**
* .tendermint.abci.LastCommitInfo last_commit_info = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.LastCommitInfo, tendermint.abci.Types.LastCommitInfo.Builder, tendermint.abci.Types.LastCommitInfoOrBuilder>
getLastCommitInfoFieldBuilder() {
if (lastCommitInfoBuilder_ == null) {
lastCommitInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.LastCommitInfo, tendermint.abci.Types.LastCommitInfo.Builder, tendermint.abci.Types.LastCommitInfoOrBuilder>(
getLastCommitInfo(),
getParentForChildren(),
isClean());
lastCommitInfo_ = null;
}
return lastCommitInfoBuilder_;
}
private java.util.List byzantineValidators_ =
java.util.Collections.emptyList();
private void ensureByzantineValidatorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
byzantineValidators_ = new java.util.ArrayList(byzantineValidators_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Evidence, tendermint.abci.Types.Evidence.Builder, tendermint.abci.Types.EvidenceOrBuilder> byzantineValidatorsBuilder_;
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List getByzantineValidatorsList() {
if (byzantineValidatorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(byzantineValidators_);
} else {
return byzantineValidatorsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public int getByzantineValidatorsCount() {
if (byzantineValidatorsBuilder_ == null) {
return byzantineValidators_.size();
} else {
return byzantineValidatorsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.Evidence getByzantineValidators(int index) {
if (byzantineValidatorsBuilder_ == null) {
return byzantineValidators_.get(index);
} else {
return byzantineValidatorsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder setByzantineValidators(
int index, tendermint.abci.Types.Evidence value) {
if (byzantineValidatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureByzantineValidatorsIsMutable();
byzantineValidators_.set(index, value);
onChanged();
} else {
byzantineValidatorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder setByzantineValidators(
int index, tendermint.abci.Types.Evidence.Builder builderForValue) {
if (byzantineValidatorsBuilder_ == null) {
ensureByzantineValidatorsIsMutable();
byzantineValidators_.set(index, builderForValue.build());
onChanged();
} else {
byzantineValidatorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addByzantineValidators(tendermint.abci.Types.Evidence value) {
if (byzantineValidatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureByzantineValidatorsIsMutable();
byzantineValidators_.add(value);
onChanged();
} else {
byzantineValidatorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addByzantineValidators(
int index, tendermint.abci.Types.Evidence value) {
if (byzantineValidatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureByzantineValidatorsIsMutable();
byzantineValidators_.add(index, value);
onChanged();
} else {
byzantineValidatorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addByzantineValidators(
tendermint.abci.Types.Evidence.Builder builderForValue) {
if (byzantineValidatorsBuilder_ == null) {
ensureByzantineValidatorsIsMutable();
byzantineValidators_.add(builderForValue.build());
onChanged();
} else {
byzantineValidatorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addByzantineValidators(
int index, tendermint.abci.Types.Evidence.Builder builderForValue) {
if (byzantineValidatorsBuilder_ == null) {
ensureByzantineValidatorsIsMutable();
byzantineValidators_.add(index, builderForValue.build());
onChanged();
} else {
byzantineValidatorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder addAllByzantineValidators(
java.lang.Iterable extends tendermint.abci.Types.Evidence> values) {
if (byzantineValidatorsBuilder_ == null) {
ensureByzantineValidatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, byzantineValidators_);
onChanged();
} else {
byzantineValidatorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder clearByzantineValidators() {
if (byzantineValidatorsBuilder_ == null) {
byzantineValidators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
byzantineValidatorsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public Builder removeByzantineValidators(int index) {
if (byzantineValidatorsBuilder_ == null) {
ensureByzantineValidatorsIsMutable();
byzantineValidators_.remove(index);
onChanged();
} else {
byzantineValidatorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.Evidence.Builder getByzantineValidatorsBuilder(
int index) {
return getByzantineValidatorsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.EvidenceOrBuilder getByzantineValidatorsOrBuilder(
int index) {
if (byzantineValidatorsBuilder_ == null) {
return byzantineValidators_.get(index); } else {
return byzantineValidatorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List extends tendermint.abci.Types.EvidenceOrBuilder>
getByzantineValidatorsOrBuilderList() {
if (byzantineValidatorsBuilder_ != null) {
return byzantineValidatorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(byzantineValidators_);
}
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.Evidence.Builder addByzantineValidatorsBuilder() {
return getByzantineValidatorsFieldBuilder().addBuilder(
tendermint.abci.Types.Evidence.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.Evidence.Builder addByzantineValidatorsBuilder(
int index) {
return getByzantineValidatorsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Evidence.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Evidence byzantine_validators = 4 [(.gogoproto.nullable) = false];
*/
public java.util.List
getByzantineValidatorsBuilderList() {
return getByzantineValidatorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Evidence, tendermint.abci.Types.Evidence.Builder, tendermint.abci.Types.EvidenceOrBuilder>
getByzantineValidatorsFieldBuilder() {
if (byzantineValidatorsBuilder_ == null) {
byzantineValidatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Evidence, tendermint.abci.Types.Evidence.Builder, tendermint.abci.Types.EvidenceOrBuilder>(
byzantineValidators_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
byzantineValidators_ = null;
}
return byzantineValidatorsBuilder_;
}
@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:tendermint.abci.RequestBeginBlock)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestBeginBlock)
private static final tendermint.abci.Types.RequestBeginBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestBeginBlock();
}
public static tendermint.abci.Types.RequestBeginBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestBeginBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestBeginBlock(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 tendermint.abci.Types.RequestBeginBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestCheckTxOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestCheckTx)
com.google.protobuf.MessageOrBuilder {
/**
* bytes tx = 1;
* @return The tx.
*/
com.google.protobuf.ByteString getTx();
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The type.
*/
tendermint.abci.Types.CheckTxType getType();
}
/**
* Protobuf type {@code tendermint.abci.RequestCheckTx}
*/
public static final class RequestCheckTx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestCheckTx)
RequestCheckTxOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestCheckTx.newBuilder() to construct.
private RequestCheckTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestCheckTx() {
tx_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestCheckTx();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestCheckTx(
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: {
tx_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestCheckTx.class, tendermint.abci.Types.RequestCheckTx.Builder.class);
}
public static final int TX_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tx_;
/**
* bytes tx = 1;
* @return The tx.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTx() {
return tx_;
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The type.
*/
@java.lang.Override public tendermint.abci.Types.CheckTxType getType() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.CheckTxType result = tendermint.abci.Types.CheckTxType.valueOf(type_);
return result == null ? tendermint.abci.Types.CheckTxType.UNRECOGNIZED : result;
}
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 (!tx_.isEmpty()) {
output.writeBytes(1, tx_);
}
if (type_ != tendermint.abci.Types.CheckTxType.NEW.getNumber()) {
output.writeEnum(2, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!tx_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tx_);
}
if (type_ != tendermint.abci.Types.CheckTxType.NEW.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
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 tendermint.abci.Types.RequestCheckTx)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestCheckTx other = (tendermint.abci.Types.RequestCheckTx) obj;
if (!getTx()
.equals(other.getTx())) return false;
if (type_ != other.type_) 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) + TX_FIELD_NUMBER;
hash = (53 * hash) + getTx().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCheckTx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCheckTx 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 tendermint.abci.Types.RequestCheckTx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCheckTx 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 tendermint.abci.Types.RequestCheckTx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCheckTx 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(tendermint.abci.Types.RequestCheckTx 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 tendermint.abci.RequestCheckTx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestCheckTx)
tendermint.abci.Types.RequestCheckTxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestCheckTx.class, tendermint.abci.Types.RequestCheckTx.Builder.class);
}
// Construct using tendermint.abci.Types.RequestCheckTx.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();
tx_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCheckTx_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestCheckTx getDefaultInstanceForType() {
return tendermint.abci.Types.RequestCheckTx.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestCheckTx build() {
tendermint.abci.Types.RequestCheckTx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestCheckTx buildPartial() {
tendermint.abci.Types.RequestCheckTx result = new tendermint.abci.Types.RequestCheckTx(this);
result.tx_ = tx_;
result.type_ = type_;
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 tendermint.abci.Types.RequestCheckTx) {
return mergeFrom((tendermint.abci.Types.RequestCheckTx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestCheckTx other) {
if (other == tendermint.abci.Types.RequestCheckTx.getDefaultInstance()) return this;
if (other.getTx() != com.google.protobuf.ByteString.EMPTY) {
setTx(other.getTx());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
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 {
tendermint.abci.Types.RequestCheckTx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestCheckTx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes tx = 1;
* @return The tx.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTx() {
return tx_;
}
/**
* bytes tx = 1;
* @param value The tx to set.
* @return This builder for chaining.
*/
public Builder setTx(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tx_ = value;
onChanged();
return this;
}
/**
* bytes tx = 1;
* @return This builder for chaining.
*/
public Builder clearTx() {
tx_ = getDefaultInstance().getTx();
onChanged();
return this;
}
private int type_ = 0;
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .tendermint.abci.CheckTxType type = 2;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .tendermint.abci.CheckTxType type = 2;
* @return The type.
*/
@java.lang.Override
public tendermint.abci.Types.CheckTxType getType() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.CheckTxType result = tendermint.abci.Types.CheckTxType.valueOf(type_);
return result == null ? tendermint.abci.Types.CheckTxType.UNRECOGNIZED : result;
}
/**
* .tendermint.abci.CheckTxType type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(tendermint.abci.Types.CheckTxType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .tendermint.abci.CheckTxType type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
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:tendermint.abci.RequestCheckTx)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestCheckTx)
private static final tendermint.abci.Types.RequestCheckTx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestCheckTx();
}
public static tendermint.abci.Types.RequestCheckTx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestCheckTx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestCheckTx(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 tendermint.abci.Types.RequestCheckTx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestDeliverTxOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestDeliverTx)
com.google.protobuf.MessageOrBuilder {
/**
* bytes tx = 1;
* @return The tx.
*/
com.google.protobuf.ByteString getTx();
}
/**
* Protobuf type {@code tendermint.abci.RequestDeliverTx}
*/
public static final class RequestDeliverTx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestDeliverTx)
RequestDeliverTxOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestDeliverTx.newBuilder() to construct.
private RequestDeliverTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestDeliverTx() {
tx_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestDeliverTx();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestDeliverTx(
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: {
tx_ = 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 tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestDeliverTx.class, tendermint.abci.Types.RequestDeliverTx.Builder.class);
}
public static final int TX_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tx_;
/**
* bytes tx = 1;
* @return The tx.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTx() {
return tx_;
}
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 (!tx_.isEmpty()) {
output.writeBytes(1, tx_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!tx_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tx_);
}
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 tendermint.abci.Types.RequestDeliverTx)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestDeliverTx other = (tendermint.abci.Types.RequestDeliverTx) obj;
if (!getTx()
.equals(other.getTx())) 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) + TX_FIELD_NUMBER;
hash = (53 * hash) + getTx().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestDeliverTx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestDeliverTx 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 tendermint.abci.Types.RequestDeliverTx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestDeliverTx 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 tendermint.abci.Types.RequestDeliverTx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestDeliverTx 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(tendermint.abci.Types.RequestDeliverTx 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 tendermint.abci.RequestDeliverTx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestDeliverTx)
tendermint.abci.Types.RequestDeliverTxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestDeliverTx.class, tendermint.abci.Types.RequestDeliverTx.Builder.class);
}
// Construct using tendermint.abci.Types.RequestDeliverTx.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();
tx_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestDeliverTx_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTx getDefaultInstanceForType() {
return tendermint.abci.Types.RequestDeliverTx.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTx build() {
tendermint.abci.Types.RequestDeliverTx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestDeliverTx buildPartial() {
tendermint.abci.Types.RequestDeliverTx result = new tendermint.abci.Types.RequestDeliverTx(this);
result.tx_ = tx_;
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 tendermint.abci.Types.RequestDeliverTx) {
return mergeFrom((tendermint.abci.Types.RequestDeliverTx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestDeliverTx other) {
if (other == tendermint.abci.Types.RequestDeliverTx.getDefaultInstance()) return this;
if (other.getTx() != com.google.protobuf.ByteString.EMPTY) {
setTx(other.getTx());
}
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 {
tendermint.abci.Types.RequestDeliverTx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestDeliverTx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString tx_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes tx = 1;
* @return The tx.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTx() {
return tx_;
}
/**
* bytes tx = 1;
* @param value The tx to set.
* @return This builder for chaining.
*/
public Builder setTx(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tx_ = value;
onChanged();
return this;
}
/**
* bytes tx = 1;
* @return This builder for chaining.
*/
public Builder clearTx() {
tx_ = getDefaultInstance().getTx();
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:tendermint.abci.RequestDeliverTx)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestDeliverTx)
private static final tendermint.abci.Types.RequestDeliverTx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestDeliverTx();
}
public static tendermint.abci.Types.RequestDeliverTx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestDeliverTx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestDeliverTx(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 tendermint.abci.Types.RequestDeliverTx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestEndBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestEndBlock)
com.google.protobuf.MessageOrBuilder {
/**
* int64 height = 1;
* @return The height.
*/
long getHeight();
}
/**
* Protobuf type {@code tendermint.abci.RequestEndBlock}
*/
public static final class RequestEndBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestEndBlock)
RequestEndBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestEndBlock.newBuilder() to construct.
private RequestEndBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestEndBlock() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestEndBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestEndBlock(
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: {
height_ = input.readInt64();
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestEndBlock.class, tendermint.abci.Types.RequestEndBlock.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private long height_;
/**
* int64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
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_ != 0L) {
output.writeInt64(1, height_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, height_);
}
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 tendermint.abci.Types.RequestEndBlock)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestEndBlock other = (tendermint.abci.Types.RequestEndBlock) obj;
if (getHeight()
!= other.getHeight()) 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) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestEndBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEndBlock 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 tendermint.abci.Types.RequestEndBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEndBlock 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 tendermint.abci.Types.RequestEndBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestEndBlock 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(tendermint.abci.Types.RequestEndBlock 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 tendermint.abci.RequestEndBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestEndBlock)
tendermint.abci.Types.RequestEndBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestEndBlock.class, tendermint.abci.Types.RequestEndBlock.Builder.class);
}
// Construct using tendermint.abci.Types.RequestEndBlock.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();
height_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestEndBlock_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestEndBlock getDefaultInstanceForType() {
return tendermint.abci.Types.RequestEndBlock.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestEndBlock build() {
tendermint.abci.Types.RequestEndBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestEndBlock buildPartial() {
tendermint.abci.Types.RequestEndBlock result = new tendermint.abci.Types.RequestEndBlock(this);
result.height_ = height_;
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 tendermint.abci.Types.RequestEndBlock) {
return mergeFrom((tendermint.abci.Types.RequestEndBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestEndBlock other) {
if (other == tendermint.abci.Types.RequestEndBlock.getDefaultInstance()) return this;
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
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 {
tendermint.abci.Types.RequestEndBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestEndBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long height_ ;
/**
* int64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* int64 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* int64 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 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:tendermint.abci.RequestEndBlock)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestEndBlock)
private static final tendermint.abci.Types.RequestEndBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestEndBlock();
}
public static tendermint.abci.Types.RequestEndBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestEndBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestEndBlock(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 tendermint.abci.Types.RequestEndBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestCommitOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestCommit)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tendermint.abci.RequestCommit}
*/
public static final class RequestCommit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestCommit)
RequestCommitOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestCommit.newBuilder() to construct.
private RequestCommit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestCommit() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestCommit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestCommit(
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;
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestCommit.class, tendermint.abci.Types.RequestCommit.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tendermint.abci.Types.RequestCommit)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestCommit other = (tendermint.abci.Types.RequestCommit) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestCommit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCommit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCommit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCommit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCommit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestCommit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestCommit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCommit 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 tendermint.abci.Types.RequestCommit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCommit 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 tendermint.abci.Types.RequestCommit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestCommit 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(tendermint.abci.Types.RequestCommit 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 tendermint.abci.RequestCommit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestCommit)
tendermint.abci.Types.RequestCommitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestCommit.class, tendermint.abci.Types.RequestCommit.Builder.class);
}
// Construct using tendermint.abci.Types.RequestCommit.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestCommit_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestCommit getDefaultInstanceForType() {
return tendermint.abci.Types.RequestCommit.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestCommit build() {
tendermint.abci.Types.RequestCommit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestCommit buildPartial() {
tendermint.abci.Types.RequestCommit result = new tendermint.abci.Types.RequestCommit(this);
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 tendermint.abci.Types.RequestCommit) {
return mergeFrom((tendermint.abci.Types.RequestCommit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestCommit other) {
if (other == tendermint.abci.Types.RequestCommit.getDefaultInstance()) return this;
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 {
tendermint.abci.Types.RequestCommit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestCommit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:tendermint.abci.RequestCommit)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestCommit)
private static final tendermint.abci.Types.RequestCommit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestCommit();
}
public static tendermint.abci.Types.RequestCommit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestCommit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestCommit(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 tendermint.abci.Types.RequestCommit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestListSnapshotsOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestListSnapshots)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* lists available snapshots
*
*
* Protobuf type {@code tendermint.abci.RequestListSnapshots}
*/
public static final class RequestListSnapshots extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestListSnapshots)
RequestListSnapshotsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestListSnapshots.newBuilder() to construct.
private RequestListSnapshots(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestListSnapshots() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestListSnapshots();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestListSnapshots(
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;
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestListSnapshots.class, tendermint.abci.Types.RequestListSnapshots.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tendermint.abci.Types.RequestListSnapshots)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestListSnapshots other = (tendermint.abci.Types.RequestListSnapshots) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestListSnapshots parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestListSnapshots 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 tendermint.abci.Types.RequestListSnapshots parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestListSnapshots 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 tendermint.abci.Types.RequestListSnapshots parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestListSnapshots 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(tendermint.abci.Types.RequestListSnapshots 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;
}
/**
*
* lists available snapshots
*
*
* Protobuf type {@code tendermint.abci.RequestListSnapshots}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestListSnapshots)
tendermint.abci.Types.RequestListSnapshotsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestListSnapshots.class, tendermint.abci.Types.RequestListSnapshots.Builder.class);
}
// Construct using tendermint.abci.Types.RequestListSnapshots.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestListSnapshots_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshots getDefaultInstanceForType() {
return tendermint.abci.Types.RequestListSnapshots.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshots build() {
tendermint.abci.Types.RequestListSnapshots result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestListSnapshots buildPartial() {
tendermint.abci.Types.RequestListSnapshots result = new tendermint.abci.Types.RequestListSnapshots(this);
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 tendermint.abci.Types.RequestListSnapshots) {
return mergeFrom((tendermint.abci.Types.RequestListSnapshots)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestListSnapshots other) {
if (other == tendermint.abci.Types.RequestListSnapshots.getDefaultInstance()) return this;
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 {
tendermint.abci.Types.RequestListSnapshots parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestListSnapshots) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:tendermint.abci.RequestListSnapshots)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestListSnapshots)
private static final tendermint.abci.Types.RequestListSnapshots DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestListSnapshots();
}
public static tendermint.abci.Types.RequestListSnapshots getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestListSnapshots parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestListSnapshots(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 tendermint.abci.Types.RequestListSnapshots getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOfferSnapshotOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestOfferSnapshot)
com.google.protobuf.MessageOrBuilder {
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return Whether the snapshot field is set.
*/
boolean hasSnapshot();
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return The snapshot.
*/
tendermint.abci.Types.Snapshot getSnapshot();
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
tendermint.abci.Types.SnapshotOrBuilder getSnapshotOrBuilder();
/**
*
* light client-verified app hash for snapshot height
*
*
* bytes app_hash = 2;
* @return The appHash.
*/
com.google.protobuf.ByteString getAppHash();
}
/**
*
* offers a snapshot to the application
*
*
* Protobuf type {@code tendermint.abci.RequestOfferSnapshot}
*/
public static final class RequestOfferSnapshot extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestOfferSnapshot)
RequestOfferSnapshotOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestOfferSnapshot.newBuilder() to construct.
private RequestOfferSnapshot(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestOfferSnapshot() {
appHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestOfferSnapshot();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestOfferSnapshot(
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: {
tendermint.abci.Types.Snapshot.Builder subBuilder = null;
if (snapshot_ != null) {
subBuilder = snapshot_.toBuilder();
}
snapshot_ = input.readMessage(tendermint.abci.Types.Snapshot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(snapshot_);
snapshot_ = subBuilder.buildPartial();
}
break;
}
case 18: {
appHash_ = 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 tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestOfferSnapshot.class, tendermint.abci.Types.RequestOfferSnapshot.Builder.class);
}
public static final int SNAPSHOT_FIELD_NUMBER = 1;
private tendermint.abci.Types.Snapshot snapshot_;
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return Whether the snapshot field is set.
*/
@java.lang.Override
public boolean hasSnapshot() {
return snapshot_ != null;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return The snapshot.
*/
@java.lang.Override
public tendermint.abci.Types.Snapshot getSnapshot() {
return snapshot_ == null ? tendermint.abci.Types.Snapshot.getDefaultInstance() : snapshot_;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
@java.lang.Override
public tendermint.abci.Types.SnapshotOrBuilder getSnapshotOrBuilder() {
return getSnapshot();
}
public static final int APP_HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString appHash_;
/**
*
* light client-verified app hash for snapshot height
*
*
* bytes app_hash = 2;
* @return The appHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppHash() {
return appHash_;
}
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 (snapshot_ != null) {
output.writeMessage(1, getSnapshot());
}
if (!appHash_.isEmpty()) {
output.writeBytes(2, appHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (snapshot_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSnapshot());
}
if (!appHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, appHash_);
}
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 tendermint.abci.Types.RequestOfferSnapshot)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestOfferSnapshot other = (tendermint.abci.Types.RequestOfferSnapshot) obj;
if (hasSnapshot() != other.hasSnapshot()) return false;
if (hasSnapshot()) {
if (!getSnapshot()
.equals(other.getSnapshot())) return false;
}
if (!getAppHash()
.equals(other.getAppHash())) 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 (hasSnapshot()) {
hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getSnapshot().hashCode();
}
hash = (37 * hash) + APP_HASH_FIELD_NUMBER;
hash = (53 * hash) + getAppHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestOfferSnapshot parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestOfferSnapshot 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 tendermint.abci.Types.RequestOfferSnapshot parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestOfferSnapshot 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 tendermint.abci.Types.RequestOfferSnapshot parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestOfferSnapshot 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(tendermint.abci.Types.RequestOfferSnapshot 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;
}
/**
*
* offers a snapshot to the application
*
*
* Protobuf type {@code tendermint.abci.RequestOfferSnapshot}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestOfferSnapshot)
tendermint.abci.Types.RequestOfferSnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestOfferSnapshot.class, tendermint.abci.Types.RequestOfferSnapshot.Builder.class);
}
// Construct using tendermint.abci.Types.RequestOfferSnapshot.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 (snapshotBuilder_ == null) {
snapshot_ = null;
} else {
snapshot_ = null;
snapshotBuilder_ = null;
}
appHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestOfferSnapshot_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshot getDefaultInstanceForType() {
return tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshot build() {
tendermint.abci.Types.RequestOfferSnapshot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestOfferSnapshot buildPartial() {
tendermint.abci.Types.RequestOfferSnapshot result = new tendermint.abci.Types.RequestOfferSnapshot(this);
if (snapshotBuilder_ == null) {
result.snapshot_ = snapshot_;
} else {
result.snapshot_ = snapshotBuilder_.build();
}
result.appHash_ = appHash_;
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 tendermint.abci.Types.RequestOfferSnapshot) {
return mergeFrom((tendermint.abci.Types.RequestOfferSnapshot)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestOfferSnapshot other) {
if (other == tendermint.abci.Types.RequestOfferSnapshot.getDefaultInstance()) return this;
if (other.hasSnapshot()) {
mergeSnapshot(other.getSnapshot());
}
if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) {
setAppHash(other.getAppHash());
}
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 {
tendermint.abci.Types.RequestOfferSnapshot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestOfferSnapshot) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tendermint.abci.Types.Snapshot snapshot_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder> snapshotBuilder_;
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return Whether the snapshot field is set.
*/
public boolean hasSnapshot() {
return snapshotBuilder_ != null || snapshot_ != null;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
* @return The snapshot.
*/
public tendermint.abci.Types.Snapshot getSnapshot() {
if (snapshotBuilder_ == null) {
return snapshot_ == null ? tendermint.abci.Types.Snapshot.getDefaultInstance() : snapshot_;
} else {
return snapshotBuilder_.getMessage();
}
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public Builder setSnapshot(tendermint.abci.Types.Snapshot value) {
if (snapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snapshot_ = value;
onChanged();
} else {
snapshotBuilder_.setMessage(value);
}
return this;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public Builder setSnapshot(
tendermint.abci.Types.Snapshot.Builder builderForValue) {
if (snapshotBuilder_ == null) {
snapshot_ = builderForValue.build();
onChanged();
} else {
snapshotBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public Builder mergeSnapshot(tendermint.abci.Types.Snapshot value) {
if (snapshotBuilder_ == null) {
if (snapshot_ != null) {
snapshot_ =
tendermint.abci.Types.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial();
} else {
snapshot_ = value;
}
onChanged();
} else {
snapshotBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public Builder clearSnapshot() {
if (snapshotBuilder_ == null) {
snapshot_ = null;
onChanged();
} else {
snapshot_ = null;
snapshotBuilder_ = null;
}
return this;
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public tendermint.abci.Types.Snapshot.Builder getSnapshotBuilder() {
onChanged();
return getSnapshotFieldBuilder().getBuilder();
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
public tendermint.abci.Types.SnapshotOrBuilder getSnapshotOrBuilder() {
if (snapshotBuilder_ != null) {
return snapshotBuilder_.getMessageOrBuilder();
} else {
return snapshot_ == null ?
tendermint.abci.Types.Snapshot.getDefaultInstance() : snapshot_;
}
}
/**
*
* snapshot offered by peers
*
*
* .tendermint.abci.Snapshot snapshot = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder>
getSnapshotFieldBuilder() {
if (snapshotBuilder_ == null) {
snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder>(
getSnapshot(),
getParentForChildren(),
isClean());
snapshot_ = null;
}
return snapshotBuilder_;
}
private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* light client-verified app hash for snapshot height
*
*
* bytes app_hash = 2;
* @return The appHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppHash() {
return appHash_;
}
/**
*
* light client-verified app hash for snapshot height
*
*
* bytes app_hash = 2;
* @param value The appHash to set.
* @return This builder for chaining.
*/
public Builder setAppHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
appHash_ = value;
onChanged();
return this;
}
/**
*
* light client-verified app hash for snapshot height
*
*
* bytes app_hash = 2;
* @return This builder for chaining.
*/
public Builder clearAppHash() {
appHash_ = getDefaultInstance().getAppHash();
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:tendermint.abci.RequestOfferSnapshot)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestOfferSnapshot)
private static final tendermint.abci.Types.RequestOfferSnapshot DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestOfferSnapshot();
}
public static tendermint.abci.Types.RequestOfferSnapshot getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestOfferSnapshot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestOfferSnapshot(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 tendermint.abci.Types.RequestOfferSnapshot getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestLoadSnapshotChunkOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestLoadSnapshotChunk)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 height = 1;
* @return The height.
*/
long getHeight();
/**
* uint32 format = 2;
* @return The format.
*/
int getFormat();
/**
* uint32 chunk = 3;
* @return The chunk.
*/
int getChunk();
}
/**
*
* loads a snapshot chunk
*
*
* Protobuf type {@code tendermint.abci.RequestLoadSnapshotChunk}
*/
public static final class RequestLoadSnapshotChunk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestLoadSnapshotChunk)
RequestLoadSnapshotChunkOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestLoadSnapshotChunk.newBuilder() to construct.
private RequestLoadSnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestLoadSnapshotChunk() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestLoadSnapshotChunk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestLoadSnapshotChunk(
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: {
height_ = input.readUInt64();
break;
}
case 16: {
format_ = input.readUInt32();
break;
}
case 24: {
chunk_ = input.readUInt32();
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 tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestLoadSnapshotChunk.class, tendermint.abci.Types.RequestLoadSnapshotChunk.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private long height_;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
public static final int FORMAT_FIELD_NUMBER = 2;
private int format_;
/**
* uint32 format = 2;
* @return The format.
*/
@java.lang.Override
public int getFormat() {
return format_;
}
public static final int CHUNK_FIELD_NUMBER = 3;
private int chunk_;
/**
* uint32 chunk = 3;
* @return The chunk.
*/
@java.lang.Override
public int getChunk() {
return chunk_;
}
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_ != 0L) {
output.writeUInt64(1, height_);
}
if (format_ != 0) {
output.writeUInt32(2, format_);
}
if (chunk_ != 0) {
output.writeUInt32(3, chunk_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, height_);
}
if (format_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, format_);
}
if (chunk_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, chunk_);
}
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 tendermint.abci.Types.RequestLoadSnapshotChunk)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestLoadSnapshotChunk other = (tendermint.abci.Types.RequestLoadSnapshotChunk) obj;
if (getHeight()
!= other.getHeight()) return false;
if (getFormat()
!= other.getFormat()) return false;
if (getChunk()
!= other.getChunk()) 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) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getFormat();
hash = (37 * hash) + CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getChunk();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk 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 tendermint.abci.Types.RequestLoadSnapshotChunk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk 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 tendermint.abci.Types.RequestLoadSnapshotChunk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk 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(tendermint.abci.Types.RequestLoadSnapshotChunk 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;
}
/**
*
* loads a snapshot chunk
*
*
* Protobuf type {@code tendermint.abci.RequestLoadSnapshotChunk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestLoadSnapshotChunk)
tendermint.abci.Types.RequestLoadSnapshotChunkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestLoadSnapshotChunk.class, tendermint.abci.Types.RequestLoadSnapshotChunk.Builder.class);
}
// Construct using tendermint.abci.Types.RequestLoadSnapshotChunk.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();
height_ = 0L;
format_ = 0;
chunk_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestLoadSnapshotChunk_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunk getDefaultInstanceForType() {
return tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunk build() {
tendermint.abci.Types.RequestLoadSnapshotChunk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestLoadSnapshotChunk buildPartial() {
tendermint.abci.Types.RequestLoadSnapshotChunk result = new tendermint.abci.Types.RequestLoadSnapshotChunk(this);
result.height_ = height_;
result.format_ = format_;
result.chunk_ = chunk_;
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 tendermint.abci.Types.RequestLoadSnapshotChunk) {
return mergeFrom((tendermint.abci.Types.RequestLoadSnapshotChunk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestLoadSnapshotChunk other) {
if (other == tendermint.abci.Types.RequestLoadSnapshotChunk.getDefaultInstance()) return this;
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.getFormat() != 0) {
setFormat(other.getFormat());
}
if (other.getChunk() != 0) {
setChunk(other.getChunk());
}
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 {
tendermint.abci.Types.RequestLoadSnapshotChunk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestLoadSnapshotChunk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long height_ ;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* uint64 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* uint64 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private int format_ ;
/**
* uint32 format = 2;
* @return The format.
*/
@java.lang.Override
public int getFormat() {
return format_;
}
/**
* uint32 format = 2;
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(int value) {
format_ = value;
onChanged();
return this;
}
/**
* uint32 format = 2;
* @return This builder for chaining.
*/
public Builder clearFormat() {
format_ = 0;
onChanged();
return this;
}
private int chunk_ ;
/**
* uint32 chunk = 3;
* @return The chunk.
*/
@java.lang.Override
public int getChunk() {
return chunk_;
}
/**
* uint32 chunk = 3;
* @param value The chunk to set.
* @return This builder for chaining.
*/
public Builder setChunk(int value) {
chunk_ = value;
onChanged();
return this;
}
/**
* uint32 chunk = 3;
* @return This builder for chaining.
*/
public Builder clearChunk() {
chunk_ = 0;
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:tendermint.abci.RequestLoadSnapshotChunk)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestLoadSnapshotChunk)
private static final tendermint.abci.Types.RequestLoadSnapshotChunk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestLoadSnapshotChunk();
}
public static tendermint.abci.Types.RequestLoadSnapshotChunk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestLoadSnapshotChunk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestLoadSnapshotChunk(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 tendermint.abci.Types.RequestLoadSnapshotChunk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestApplySnapshotChunkOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.RequestApplySnapshotChunk)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 index = 1;
* @return The index.
*/
int getIndex();
/**
* bytes chunk = 2;
* @return The chunk.
*/
com.google.protobuf.ByteString getChunk();
/**
* string sender = 3;
* @return The sender.
*/
java.lang.String getSender();
/**
* string sender = 3;
* @return The bytes for sender.
*/
com.google.protobuf.ByteString
getSenderBytes();
}
/**
*
* Applies a snapshot chunk
*
*
* Protobuf type {@code tendermint.abci.RequestApplySnapshotChunk}
*/
public static final class RequestApplySnapshotChunk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.RequestApplySnapshotChunk)
RequestApplySnapshotChunkOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestApplySnapshotChunk.newBuilder() to construct.
private RequestApplySnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestApplySnapshotChunk() {
chunk_ = com.google.protobuf.ByteString.EMPTY;
sender_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestApplySnapshotChunk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestApplySnapshotChunk(
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: {
index_ = input.readUInt32();
break;
}
case 18: {
chunk_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sender_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestApplySnapshotChunk.class, tendermint.abci.Types.RequestApplySnapshotChunk.Builder.class);
}
public static final int INDEX_FIELD_NUMBER = 1;
private int index_;
/**
* uint32 index = 1;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
public static final int CHUNK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString chunk_;
/**
* bytes chunk = 2;
* @return The chunk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChunk() {
return chunk_;
}
public static final int SENDER_FIELD_NUMBER = 3;
private volatile java.lang.Object sender_;
/**
* string sender = 3;
* @return The sender.
*/
@java.lang.Override
public java.lang.String getSender() {
java.lang.Object ref = sender_;
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();
sender_ = s;
return s;
}
}
/**
* string sender = 3;
* @return The bytes for sender.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (index_ != 0) {
output.writeUInt32(1, index_);
}
if (!chunk_.isEmpty()) {
output.writeBytes(2, chunk_);
}
if (!getSenderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sender_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, index_);
}
if (!chunk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, chunk_);
}
if (!getSenderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sender_);
}
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 tendermint.abci.Types.RequestApplySnapshotChunk)) {
return super.equals(obj);
}
tendermint.abci.Types.RequestApplySnapshotChunk other = (tendermint.abci.Types.RequestApplySnapshotChunk) obj;
if (getIndex()
!= other.getIndex()) return false;
if (!getChunk()
.equals(other.getChunk())) return false;
if (!getSender()
.equals(other.getSender())) 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) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
hash = (37 * hash) + CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getChunk().hashCode();
hash = (37 * hash) + SENDER_FIELD_NUMBER;
hash = (53 * hash) + getSender().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk 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 tendermint.abci.Types.RequestApplySnapshotChunk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk 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 tendermint.abci.Types.RequestApplySnapshotChunk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.RequestApplySnapshotChunk 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(tendermint.abci.Types.RequestApplySnapshotChunk 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;
}
/**
*
* Applies a snapshot chunk
*
*
* Protobuf type {@code tendermint.abci.RequestApplySnapshotChunk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.RequestApplySnapshotChunk)
tendermint.abci.Types.RequestApplySnapshotChunkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.RequestApplySnapshotChunk.class, tendermint.abci.Types.RequestApplySnapshotChunk.Builder.class);
}
// Construct using tendermint.abci.Types.RequestApplySnapshotChunk.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();
index_ = 0;
chunk_ = com.google.protobuf.ByteString.EMPTY;
sender_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_RequestApplySnapshotChunk_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunk getDefaultInstanceForType() {
return tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunk build() {
tendermint.abci.Types.RequestApplySnapshotChunk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.RequestApplySnapshotChunk buildPartial() {
tendermint.abci.Types.RequestApplySnapshotChunk result = new tendermint.abci.Types.RequestApplySnapshotChunk(this);
result.index_ = index_;
result.chunk_ = chunk_;
result.sender_ = sender_;
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 tendermint.abci.Types.RequestApplySnapshotChunk) {
return mergeFrom((tendermint.abci.Types.RequestApplySnapshotChunk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.RequestApplySnapshotChunk other) {
if (other == tendermint.abci.Types.RequestApplySnapshotChunk.getDefaultInstance()) return this;
if (other.getIndex() != 0) {
setIndex(other.getIndex());
}
if (other.getChunk() != com.google.protobuf.ByteString.EMPTY) {
setChunk(other.getChunk());
}
if (!other.getSender().isEmpty()) {
sender_ = other.sender_;
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 {
tendermint.abci.Types.RequestApplySnapshotChunk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.RequestApplySnapshotChunk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int index_ ;
/**
* uint32 index = 1;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
/**
* uint32 index = 1;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
index_ = value;
onChanged();
return this;
}
/**
* uint32 index = 1;
* @return This builder for chaining.
*/
public Builder clearIndex() {
index_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString chunk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes chunk = 2;
* @return The chunk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChunk() {
return chunk_;
}
/**
* bytes chunk = 2;
* @param value The chunk to set.
* @return This builder for chaining.
*/
public Builder setChunk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
return this;
}
/**
* bytes chunk = 2;
* @return This builder for chaining.
*/
public Builder clearChunk() {
chunk_ = getDefaultInstance().getChunk();
onChanged();
return this;
}
private java.lang.Object sender_ = "";
/**
* string sender = 3;
* @return The sender.
*/
public java.lang.String getSender() {
java.lang.Object ref = sender_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sender_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sender = 3;
* @return The bytes for sender.
*/
public com.google.protobuf.ByteString
getSenderBytes() {
java.lang.Object ref = sender_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sender = 3;
* @param value The sender to set.
* @return This builder for chaining.
*/
public Builder setSender(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sender_ = value;
onChanged();
return this;
}
/**
* string sender = 3;
* @return This builder for chaining.
*/
public Builder clearSender() {
sender_ = getDefaultInstance().getSender();
onChanged();
return this;
}
/**
* string sender = 3;
* @param value The bytes for sender to set.
* @return This builder for chaining.
*/
public Builder setSenderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sender_ = 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:tendermint.abci.RequestApplySnapshotChunk)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.RequestApplySnapshotChunk)
private static final tendermint.abci.Types.RequestApplySnapshotChunk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.RequestApplySnapshotChunk();
}
public static tendermint.abci.Types.RequestApplySnapshotChunk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestApplySnapshotChunk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestApplySnapshotChunk(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 tendermint.abci.Types.RequestApplySnapshotChunk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.Response)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.ResponseException exception = 1;
* @return Whether the exception field is set.
*/
boolean hasException();
/**
* .tendermint.abci.ResponseException exception = 1;
* @return The exception.
*/
tendermint.abci.Types.ResponseException getException();
/**
* .tendermint.abci.ResponseException exception = 1;
*/
tendermint.abci.Types.ResponseExceptionOrBuilder getExceptionOrBuilder();
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return Whether the echo field is set.
*/
boolean hasEcho();
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return The echo.
*/
tendermint.abci.Types.ResponseEcho getEcho();
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
tendermint.abci.Types.ResponseEchoOrBuilder getEchoOrBuilder();
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return Whether the flush field is set.
*/
boolean hasFlush();
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return The flush.
*/
tendermint.abci.Types.ResponseFlush getFlush();
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
tendermint.abci.Types.ResponseFlushOrBuilder getFlushOrBuilder();
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return The info.
*/
tendermint.abci.Types.ResponseInfo getInfo();
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
tendermint.abci.Types.ResponseInfoOrBuilder getInfoOrBuilder();
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return Whether the setOption field is set.
*/
boolean hasSetOption();
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return The setOption.
*/
tendermint.abci.Types.ResponseSetOption getSetOption();
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
tendermint.abci.Types.ResponseSetOptionOrBuilder getSetOptionOrBuilder();
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return Whether the initChain field is set.
*/
boolean hasInitChain();
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return The initChain.
*/
tendermint.abci.Types.ResponseInitChain getInitChain();
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
tendermint.abci.Types.ResponseInitChainOrBuilder getInitChainOrBuilder();
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return Whether the query field is set.
*/
boolean hasQuery();
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return The query.
*/
tendermint.abci.Types.ResponseQuery getQuery();
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
tendermint.abci.Types.ResponseQueryOrBuilder getQueryOrBuilder();
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return Whether the beginBlock field is set.
*/
boolean hasBeginBlock();
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return The beginBlock.
*/
tendermint.abci.Types.ResponseBeginBlock getBeginBlock();
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
tendermint.abci.Types.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder();
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return Whether the checkTx field is set.
*/
boolean hasCheckTx();
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return The checkTx.
*/
tendermint.abci.Types.ResponseCheckTx getCheckTx();
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
tendermint.abci.Types.ResponseCheckTxOrBuilder getCheckTxOrBuilder();
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return Whether the deliverTx field is set.
*/
boolean hasDeliverTx();
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return The deliverTx.
*/
tendermint.abci.Types.ResponseDeliverTx getDeliverTx();
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
tendermint.abci.Types.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder();
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return Whether the endBlock field is set.
*/
boolean hasEndBlock();
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return The endBlock.
*/
tendermint.abci.Types.ResponseEndBlock getEndBlock();
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
tendermint.abci.Types.ResponseEndBlockOrBuilder getEndBlockOrBuilder();
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return Whether the commit field is set.
*/
boolean hasCommit();
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return The commit.
*/
tendermint.abci.Types.ResponseCommit getCommit();
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
tendermint.abci.Types.ResponseCommitOrBuilder getCommitOrBuilder();
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return Whether the listSnapshots field is set.
*/
boolean hasListSnapshots();
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return The listSnapshots.
*/
tendermint.abci.Types.ResponseListSnapshots getListSnapshots();
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
tendermint.abci.Types.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder();
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return Whether the offerSnapshot field is set.
*/
boolean hasOfferSnapshot();
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return The offerSnapshot.
*/
tendermint.abci.Types.ResponseOfferSnapshot getOfferSnapshot();
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
tendermint.abci.Types.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder();
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return Whether the loadSnapshotChunk field is set.
*/
boolean hasLoadSnapshotChunk();
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return The loadSnapshotChunk.
*/
tendermint.abci.Types.ResponseLoadSnapshotChunk getLoadSnapshotChunk();
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder();
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return Whether the applySnapshotChunk field is set.
*/
boolean hasApplySnapshotChunk();
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return The applySnapshotChunk.
*/
tendermint.abci.Types.ResponseApplySnapshotChunk getApplySnapshotChunk();
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder();
public tendermint.abci.Types.Response.ValueCase getValueCase();
}
/**
* Protobuf type {@code tendermint.abci.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Response();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
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: {
tendermint.abci.Types.ResponseException.Builder subBuilder = null;
if (valueCase_ == 1) {
subBuilder = ((tendermint.abci.Types.ResponseException) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseException.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseException) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 1;
break;
}
case 18: {
tendermint.abci.Types.ResponseEcho.Builder subBuilder = null;
if (valueCase_ == 2) {
subBuilder = ((tendermint.abci.Types.ResponseEcho) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseEcho.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseEcho) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 2;
break;
}
case 26: {
tendermint.abci.Types.ResponseFlush.Builder subBuilder = null;
if (valueCase_ == 3) {
subBuilder = ((tendermint.abci.Types.ResponseFlush) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseFlush.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseFlush) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 3;
break;
}
case 34: {
tendermint.abci.Types.ResponseInfo.Builder subBuilder = null;
if (valueCase_ == 4) {
subBuilder = ((tendermint.abci.Types.ResponseInfo) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseInfo) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 4;
break;
}
case 42: {
tendermint.abci.Types.ResponseSetOption.Builder subBuilder = null;
if (valueCase_ == 5) {
subBuilder = ((tendermint.abci.Types.ResponseSetOption) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseSetOption.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseSetOption) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 5;
break;
}
case 50: {
tendermint.abci.Types.ResponseInitChain.Builder subBuilder = null;
if (valueCase_ == 6) {
subBuilder = ((tendermint.abci.Types.ResponseInitChain) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseInitChain.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseInitChain) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 6;
break;
}
case 58: {
tendermint.abci.Types.ResponseQuery.Builder subBuilder = null;
if (valueCase_ == 7) {
subBuilder = ((tendermint.abci.Types.ResponseQuery) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseQuery) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 7;
break;
}
case 66: {
tendermint.abci.Types.ResponseBeginBlock.Builder subBuilder = null;
if (valueCase_ == 8) {
subBuilder = ((tendermint.abci.Types.ResponseBeginBlock) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseBeginBlock.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseBeginBlock) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 8;
break;
}
case 74: {
tendermint.abci.Types.ResponseCheckTx.Builder subBuilder = null;
if (valueCase_ == 9) {
subBuilder = ((tendermint.abci.Types.ResponseCheckTx) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseCheckTx.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseCheckTx) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 9;
break;
}
case 82: {
tendermint.abci.Types.ResponseDeliverTx.Builder subBuilder = null;
if (valueCase_ == 10) {
subBuilder = ((tendermint.abci.Types.ResponseDeliverTx) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseDeliverTx.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseDeliverTx) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 10;
break;
}
case 90: {
tendermint.abci.Types.ResponseEndBlock.Builder subBuilder = null;
if (valueCase_ == 11) {
subBuilder = ((tendermint.abci.Types.ResponseEndBlock) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseEndBlock.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseEndBlock) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 11;
break;
}
case 98: {
tendermint.abci.Types.ResponseCommit.Builder subBuilder = null;
if (valueCase_ == 12) {
subBuilder = ((tendermint.abci.Types.ResponseCommit) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseCommit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseCommit) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 12;
break;
}
case 106: {
tendermint.abci.Types.ResponseListSnapshots.Builder subBuilder = null;
if (valueCase_ == 13) {
subBuilder = ((tendermint.abci.Types.ResponseListSnapshots) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseListSnapshots.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseListSnapshots) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 13;
break;
}
case 114: {
tendermint.abci.Types.ResponseOfferSnapshot.Builder subBuilder = null;
if (valueCase_ == 14) {
subBuilder = ((tendermint.abci.Types.ResponseOfferSnapshot) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseOfferSnapshot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseOfferSnapshot) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 14;
break;
}
case 122: {
tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder subBuilder = null;
if (valueCase_ == 15) {
subBuilder = ((tendermint.abci.Types.ResponseLoadSnapshotChunk) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseLoadSnapshotChunk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseLoadSnapshotChunk) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 15;
break;
}
case 130: {
tendermint.abci.Types.ResponseApplySnapshotChunk.Builder subBuilder = null;
if (valueCase_ == 16) {
subBuilder = ((tendermint.abci.Types.ResponseApplySnapshotChunk) value_).toBuilder();
}
value_ =
input.readMessage(tendermint.abci.Types.ResponseApplySnapshotChunk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tendermint.abci.Types.ResponseApplySnapshotChunk) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 16;
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 tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.Response.class, tendermint.abci.Types.Response.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
EXCEPTION(1),
ECHO(2),
FLUSH(3),
INFO(4),
SET_OPTION(5),
INIT_CHAIN(6),
QUERY(7),
BEGIN_BLOCK(8),
CHECK_TX(9),
DELIVER_TX(10),
END_BLOCK(11),
COMMIT(12),
LIST_SNAPSHOTS(13),
OFFER_SNAPSHOT(14),
LOAD_SNAPSHOT_CHUNK(15),
APPLY_SNAPSHOT_CHUNK(16),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return EXCEPTION;
case 2: return ECHO;
case 3: return FLUSH;
case 4: return INFO;
case 5: return SET_OPTION;
case 6: return INIT_CHAIN;
case 7: return QUERY;
case 8: return BEGIN_BLOCK;
case 9: return CHECK_TX;
case 10: return DELIVER_TX;
case 11: return END_BLOCK;
case 12: return COMMIT;
case 13: return LIST_SNAPSHOTS;
case 14: return OFFER_SNAPSHOT;
case 15: return LOAD_SNAPSHOT_CHUNK;
case 16: return APPLY_SNAPSHOT_CHUNK;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int EXCEPTION_FIELD_NUMBER = 1;
/**
* .tendermint.abci.ResponseException exception = 1;
* @return Whether the exception field is set.
*/
@java.lang.Override
public boolean hasException() {
return valueCase_ == 1;
}
/**
* .tendermint.abci.ResponseException exception = 1;
* @return The exception.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseException getException() {
if (valueCase_ == 1) {
return (tendermint.abci.Types.ResponseException) value_;
}
return tendermint.abci.Types.ResponseException.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseExceptionOrBuilder getExceptionOrBuilder() {
if (valueCase_ == 1) {
return (tendermint.abci.Types.ResponseException) value_;
}
return tendermint.abci.Types.ResponseException.getDefaultInstance();
}
public static final int ECHO_FIELD_NUMBER = 2;
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return Whether the echo field is set.
*/
@java.lang.Override
public boolean hasEcho() {
return valueCase_ == 2;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return The echo.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEcho getEcho() {
if (valueCase_ == 2) {
return (tendermint.abci.Types.ResponseEcho) value_;
}
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEchoOrBuilder getEchoOrBuilder() {
if (valueCase_ == 2) {
return (tendermint.abci.Types.ResponseEcho) value_;
}
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
public static final int FLUSH_FIELD_NUMBER = 3;
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return Whether the flush field is set.
*/
@java.lang.Override
public boolean hasFlush() {
return valueCase_ == 3;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return The flush.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseFlush getFlush() {
if (valueCase_ == 3) {
return (tendermint.abci.Types.ResponseFlush) value_;
}
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseFlushOrBuilder getFlushOrBuilder() {
if (valueCase_ == 3) {
return (tendermint.abci.Types.ResponseFlush) value_;
}
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
public static final int INFO_FIELD_NUMBER = 4;
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return valueCase_ == 4;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return The info.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInfo getInfo() {
if (valueCase_ == 4) {
return (tendermint.abci.Types.ResponseInfo) value_;
}
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInfoOrBuilder getInfoOrBuilder() {
if (valueCase_ == 4) {
return (tendermint.abci.Types.ResponseInfo) value_;
}
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
public static final int SET_OPTION_FIELD_NUMBER = 5;
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return Whether the setOption field is set.
*/
@java.lang.Override
public boolean hasSetOption() {
return valueCase_ == 5;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return The setOption.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseSetOption getSetOption() {
if (valueCase_ == 5) {
return (tendermint.abci.Types.ResponseSetOption) value_;
}
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseSetOptionOrBuilder getSetOptionOrBuilder() {
if (valueCase_ == 5) {
return (tendermint.abci.Types.ResponseSetOption) value_;
}
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
public static final int INIT_CHAIN_FIELD_NUMBER = 6;
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return Whether the initChain field is set.
*/
@java.lang.Override
public boolean hasInitChain() {
return valueCase_ == 6;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return The initChain.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInitChain getInitChain() {
if (valueCase_ == 6) {
return (tendermint.abci.Types.ResponseInitChain) value_;
}
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInitChainOrBuilder getInitChainOrBuilder() {
if (valueCase_ == 6) {
return (tendermint.abci.Types.ResponseInitChain) value_;
}
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
public static final int QUERY_FIELD_NUMBER = 7;
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return valueCase_ == 7;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return The query.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseQuery getQuery() {
if (valueCase_ == 7) {
return (tendermint.abci.Types.ResponseQuery) value_;
}
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseQueryOrBuilder getQueryOrBuilder() {
if (valueCase_ == 7) {
return (tendermint.abci.Types.ResponseQuery) value_;
}
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
public static final int BEGIN_BLOCK_FIELD_NUMBER = 8;
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return Whether the beginBlock field is set.
*/
@java.lang.Override
public boolean hasBeginBlock() {
return valueCase_ == 8;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return The beginBlock.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlock getBeginBlock() {
if (valueCase_ == 8) {
return (tendermint.abci.Types.ResponseBeginBlock) value_;
}
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder() {
if (valueCase_ == 8) {
return (tendermint.abci.Types.ResponseBeginBlock) value_;
}
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
public static final int CHECK_TX_FIELD_NUMBER = 9;
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return Whether the checkTx field is set.
*/
@java.lang.Override
public boolean hasCheckTx() {
return valueCase_ == 9;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return The checkTx.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTx getCheckTx() {
if (valueCase_ == 9) {
return (tendermint.abci.Types.ResponseCheckTx) value_;
}
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTxOrBuilder getCheckTxOrBuilder() {
if (valueCase_ == 9) {
return (tendermint.abci.Types.ResponseCheckTx) value_;
}
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
public static final int DELIVER_TX_FIELD_NUMBER = 10;
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return Whether the deliverTx field is set.
*/
@java.lang.Override
public boolean hasDeliverTx() {
return valueCase_ == 10;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return The deliverTx.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTx getDeliverTx() {
if (valueCase_ == 10) {
return (tendermint.abci.Types.ResponseDeliverTx) value_;
}
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder() {
if (valueCase_ == 10) {
return (tendermint.abci.Types.ResponseDeliverTx) value_;
}
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
public static final int END_BLOCK_FIELD_NUMBER = 11;
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return Whether the endBlock field is set.
*/
@java.lang.Override
public boolean hasEndBlock() {
return valueCase_ == 11;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return The endBlock.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlock getEndBlock() {
if (valueCase_ == 11) {
return (tendermint.abci.Types.ResponseEndBlock) value_;
}
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlockOrBuilder getEndBlockOrBuilder() {
if (valueCase_ == 11) {
return (tendermint.abci.Types.ResponseEndBlock) value_;
}
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
public static final int COMMIT_FIELD_NUMBER = 12;
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return Whether the commit field is set.
*/
@java.lang.Override
public boolean hasCommit() {
return valueCase_ == 12;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return The commit.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCommit getCommit() {
if (valueCase_ == 12) {
return (tendermint.abci.Types.ResponseCommit) value_;
}
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCommitOrBuilder getCommitOrBuilder() {
if (valueCase_ == 12) {
return (tendermint.abci.Types.ResponseCommit) value_;
}
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
public static final int LIST_SNAPSHOTS_FIELD_NUMBER = 13;
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return Whether the listSnapshots field is set.
*/
@java.lang.Override
public boolean hasListSnapshots() {
return valueCase_ == 13;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return The listSnapshots.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshots getListSnapshots() {
if (valueCase_ == 13) {
return (tendermint.abci.Types.ResponseListSnapshots) value_;
}
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder() {
if (valueCase_ == 13) {
return (tendermint.abci.Types.ResponseListSnapshots) value_;
}
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
public static final int OFFER_SNAPSHOT_FIELD_NUMBER = 14;
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return Whether the offerSnapshot field is set.
*/
@java.lang.Override
public boolean hasOfferSnapshot() {
return valueCase_ == 14;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return The offerSnapshot.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot getOfferSnapshot() {
if (valueCase_ == 14) {
return (tendermint.abci.Types.ResponseOfferSnapshot) value_;
}
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() {
if (valueCase_ == 14) {
return (tendermint.abci.Types.ResponseOfferSnapshot) value_;
}
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
public static final int LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER = 15;
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return Whether the loadSnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasLoadSnapshotChunk() {
return valueCase_ == 15;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return The loadSnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunk getLoadSnapshotChunk() {
if (valueCase_ == 15) {
return (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() {
if (valueCase_ == 15) {
return (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
public static final int APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER = 16;
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return Whether the applySnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasApplySnapshotChunk() {
return valueCase_ == 16;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return The applySnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk getApplySnapshotChunk() {
if (valueCase_ == 16) {
return (tendermint.abci.Types.ResponseApplySnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() {
if (valueCase_ == 16) {
return (tendermint.abci.Types.ResponseApplySnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
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 (valueCase_ == 1) {
output.writeMessage(1, (tendermint.abci.Types.ResponseException) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (tendermint.abci.Types.ResponseEcho) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (tendermint.abci.Types.ResponseFlush) value_);
}
if (valueCase_ == 4) {
output.writeMessage(4, (tendermint.abci.Types.ResponseInfo) value_);
}
if (valueCase_ == 5) {
output.writeMessage(5, (tendermint.abci.Types.ResponseSetOption) value_);
}
if (valueCase_ == 6) {
output.writeMessage(6, (tendermint.abci.Types.ResponseInitChain) value_);
}
if (valueCase_ == 7) {
output.writeMessage(7, (tendermint.abci.Types.ResponseQuery) value_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (tendermint.abci.Types.ResponseBeginBlock) value_);
}
if (valueCase_ == 9) {
output.writeMessage(9, (tendermint.abci.Types.ResponseCheckTx) value_);
}
if (valueCase_ == 10) {
output.writeMessage(10, (tendermint.abci.Types.ResponseDeliverTx) value_);
}
if (valueCase_ == 11) {
output.writeMessage(11, (tendermint.abci.Types.ResponseEndBlock) value_);
}
if (valueCase_ == 12) {
output.writeMessage(12, (tendermint.abci.Types.ResponseCommit) value_);
}
if (valueCase_ == 13) {
output.writeMessage(13, (tendermint.abci.Types.ResponseListSnapshots) value_);
}
if (valueCase_ == 14) {
output.writeMessage(14, (tendermint.abci.Types.ResponseOfferSnapshot) value_);
}
if (valueCase_ == 15) {
output.writeMessage(15, (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_);
}
if (valueCase_ == 16) {
output.writeMessage(16, (tendermint.abci.Types.ResponseApplySnapshotChunk) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tendermint.abci.Types.ResponseException) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tendermint.abci.Types.ResponseEcho) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tendermint.abci.Types.ResponseFlush) value_);
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tendermint.abci.Types.ResponseInfo) value_);
}
if (valueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (tendermint.abci.Types.ResponseSetOption) value_);
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (tendermint.abci.Types.ResponseInitChain) value_);
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (tendermint.abci.Types.ResponseQuery) value_);
}
if (valueCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (tendermint.abci.Types.ResponseBeginBlock) value_);
}
if (valueCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (tendermint.abci.Types.ResponseCheckTx) value_);
}
if (valueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (tendermint.abci.Types.ResponseDeliverTx) value_);
}
if (valueCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (tendermint.abci.Types.ResponseEndBlock) value_);
}
if (valueCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (tendermint.abci.Types.ResponseCommit) value_);
}
if (valueCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (tendermint.abci.Types.ResponseListSnapshots) value_);
}
if (valueCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (tendermint.abci.Types.ResponseOfferSnapshot) value_);
}
if (valueCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_);
}
if (valueCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (tendermint.abci.Types.ResponseApplySnapshotChunk) value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tendermint.abci.Types.Response)) {
return super.equals(obj);
}
tendermint.abci.Types.Response other = (tendermint.abci.Types.Response) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getException()
.equals(other.getException())) return false;
break;
case 2:
if (!getEcho()
.equals(other.getEcho())) return false;
break;
case 3:
if (!getFlush()
.equals(other.getFlush())) return false;
break;
case 4:
if (!getInfo()
.equals(other.getInfo())) return false;
break;
case 5:
if (!getSetOption()
.equals(other.getSetOption())) return false;
break;
case 6:
if (!getInitChain()
.equals(other.getInitChain())) return false;
break;
case 7:
if (!getQuery()
.equals(other.getQuery())) return false;
break;
case 8:
if (!getBeginBlock()
.equals(other.getBeginBlock())) return false;
break;
case 9:
if (!getCheckTx()
.equals(other.getCheckTx())) return false;
break;
case 10:
if (!getDeliverTx()
.equals(other.getDeliverTx())) return false;
break;
case 11:
if (!getEndBlock()
.equals(other.getEndBlock())) return false;
break;
case 12:
if (!getCommit()
.equals(other.getCommit())) return false;
break;
case 13:
if (!getListSnapshots()
.equals(other.getListSnapshots())) return false;
break;
case 14:
if (!getOfferSnapshot()
.equals(other.getOfferSnapshot())) return false;
break;
case 15:
if (!getLoadSnapshotChunk()
.equals(other.getLoadSnapshotChunk())) return false;
break;
case 16:
if (!getApplySnapshotChunk()
.equals(other.getApplySnapshotChunk())) return false;
break;
case 0:
default:
}
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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getException().hashCode();
break;
case 2:
hash = (37 * hash) + ECHO_FIELD_NUMBER;
hash = (53 * hash) + getEcho().hashCode();
break;
case 3:
hash = (37 * hash) + FLUSH_FIELD_NUMBER;
hash = (53 * hash) + getFlush().hashCode();
break;
case 4:
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
break;
case 5:
hash = (37 * hash) + SET_OPTION_FIELD_NUMBER;
hash = (53 * hash) + getSetOption().hashCode();
break;
case 6:
hash = (37 * hash) + INIT_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getInitChain().hashCode();
break;
case 7:
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
break;
case 8:
hash = (37 * hash) + BEGIN_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBeginBlock().hashCode();
break;
case 9:
hash = (37 * hash) + CHECK_TX_FIELD_NUMBER;
hash = (53 * hash) + getCheckTx().hashCode();
break;
case 10:
hash = (37 * hash) + DELIVER_TX_FIELD_NUMBER;
hash = (53 * hash) + getDeliverTx().hashCode();
break;
case 11:
hash = (37 * hash) + END_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getEndBlock().hashCode();
break;
case 12:
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getCommit().hashCode();
break;
case 13:
hash = (37 * hash) + LIST_SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getListSnapshots().hashCode();
break;
case 14:
hash = (37 * hash) + OFFER_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getOfferSnapshot().hashCode();
break;
case 15:
hash = (37 * hash) + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getLoadSnapshotChunk().hashCode();
break;
case 16:
hash = (37 * hash) + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getApplySnapshotChunk().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Response 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 tendermint.abci.Types.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Response 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 tendermint.abci.Types.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.Response 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(tendermint.abci.Types.Response 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 tendermint.abci.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.Response)
tendermint.abci.Types.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.Response.class, tendermint.abci.Types.Response.Builder.class);
}
// Construct using tendermint.abci.Types.Response.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();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_Response_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.Response getDefaultInstanceForType() {
return tendermint.abci.Types.Response.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.Response build() {
tendermint.abci.Types.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.Response buildPartial() {
tendermint.abci.Types.Response result = new tendermint.abci.Types.Response(this);
if (valueCase_ == 1) {
if (exceptionBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = exceptionBuilder_.build();
}
}
if (valueCase_ == 2) {
if (echoBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = echoBuilder_.build();
}
}
if (valueCase_ == 3) {
if (flushBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = flushBuilder_.build();
}
}
if (valueCase_ == 4) {
if (infoBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = infoBuilder_.build();
}
}
if (valueCase_ == 5) {
if (setOptionBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = setOptionBuilder_.build();
}
}
if (valueCase_ == 6) {
if (initChainBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = initChainBuilder_.build();
}
}
if (valueCase_ == 7) {
if (queryBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = queryBuilder_.build();
}
}
if (valueCase_ == 8) {
if (beginBlockBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = beginBlockBuilder_.build();
}
}
if (valueCase_ == 9) {
if (checkTxBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = checkTxBuilder_.build();
}
}
if (valueCase_ == 10) {
if (deliverTxBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = deliverTxBuilder_.build();
}
}
if (valueCase_ == 11) {
if (endBlockBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = endBlockBuilder_.build();
}
}
if (valueCase_ == 12) {
if (commitBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = commitBuilder_.build();
}
}
if (valueCase_ == 13) {
if (listSnapshotsBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = listSnapshotsBuilder_.build();
}
}
if (valueCase_ == 14) {
if (offerSnapshotBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = offerSnapshotBuilder_.build();
}
}
if (valueCase_ == 15) {
if (loadSnapshotChunkBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = loadSnapshotChunkBuilder_.build();
}
}
if (valueCase_ == 16) {
if (applySnapshotChunkBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = applySnapshotChunkBuilder_.build();
}
}
result.valueCase_ = valueCase_;
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 tendermint.abci.Types.Response) {
return mergeFrom((tendermint.abci.Types.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.Response other) {
if (other == tendermint.abci.Types.Response.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case EXCEPTION: {
mergeException(other.getException());
break;
}
case ECHO: {
mergeEcho(other.getEcho());
break;
}
case FLUSH: {
mergeFlush(other.getFlush());
break;
}
case INFO: {
mergeInfo(other.getInfo());
break;
}
case SET_OPTION: {
mergeSetOption(other.getSetOption());
break;
}
case INIT_CHAIN: {
mergeInitChain(other.getInitChain());
break;
}
case QUERY: {
mergeQuery(other.getQuery());
break;
}
case BEGIN_BLOCK: {
mergeBeginBlock(other.getBeginBlock());
break;
}
case CHECK_TX: {
mergeCheckTx(other.getCheckTx());
break;
}
case DELIVER_TX: {
mergeDeliverTx(other.getDeliverTx());
break;
}
case END_BLOCK: {
mergeEndBlock(other.getEndBlock());
break;
}
case COMMIT: {
mergeCommit(other.getCommit());
break;
}
case LIST_SNAPSHOTS: {
mergeListSnapshots(other.getListSnapshots());
break;
}
case OFFER_SNAPSHOT: {
mergeOfferSnapshot(other.getOfferSnapshot());
break;
}
case LOAD_SNAPSHOT_CHUNK: {
mergeLoadSnapshotChunk(other.getLoadSnapshotChunk());
break;
}
case APPLY_SNAPSHOT_CHUNK: {
mergeApplySnapshotChunk(other.getApplySnapshotChunk());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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 {
tendermint.abci.Types.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseException, tendermint.abci.Types.ResponseException.Builder, tendermint.abci.Types.ResponseExceptionOrBuilder> exceptionBuilder_;
/**
* .tendermint.abci.ResponseException exception = 1;
* @return Whether the exception field is set.
*/
@java.lang.Override
public boolean hasException() {
return valueCase_ == 1;
}
/**
* .tendermint.abci.ResponseException exception = 1;
* @return The exception.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseException getException() {
if (exceptionBuilder_ == null) {
if (valueCase_ == 1) {
return (tendermint.abci.Types.ResponseException) value_;
}
return tendermint.abci.Types.ResponseException.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return exceptionBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseException.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
public Builder setException(tendermint.abci.Types.ResponseException value) {
if (exceptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
exceptionBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
public Builder setException(
tendermint.abci.Types.ResponseException.Builder builderForValue) {
if (exceptionBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
exceptionBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
public Builder mergeException(tendermint.abci.Types.ResponseException value) {
if (exceptionBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != tendermint.abci.Types.ResponseException.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseException.newBuilder((tendermint.abci.Types.ResponseException) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
exceptionBuilder_.mergeFrom(value);
}
exceptionBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
public Builder clearException() {
if (exceptionBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
exceptionBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
public tendermint.abci.Types.ResponseException.Builder getExceptionBuilder() {
return getExceptionFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseExceptionOrBuilder getExceptionOrBuilder() {
if ((valueCase_ == 1) && (exceptionBuilder_ != null)) {
return exceptionBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (tendermint.abci.Types.ResponseException) value_;
}
return tendermint.abci.Types.ResponseException.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseException exception = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseException, tendermint.abci.Types.ResponseException.Builder, tendermint.abci.Types.ResponseExceptionOrBuilder>
getExceptionFieldBuilder() {
if (exceptionBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = tendermint.abci.Types.ResponseException.getDefaultInstance();
}
exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseException, tendermint.abci.Types.ResponseException.Builder, tendermint.abci.Types.ResponseExceptionOrBuilder>(
(tendermint.abci.Types.ResponseException) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return exceptionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEcho, tendermint.abci.Types.ResponseEcho.Builder, tendermint.abci.Types.ResponseEchoOrBuilder> echoBuilder_;
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return Whether the echo field is set.
*/
@java.lang.Override
public boolean hasEcho() {
return valueCase_ == 2;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
* @return The echo.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEcho getEcho() {
if (echoBuilder_ == null) {
if (valueCase_ == 2) {
return (tendermint.abci.Types.ResponseEcho) value_;
}
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return echoBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
public Builder setEcho(tendermint.abci.Types.ResponseEcho value) {
if (echoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
echoBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
public Builder setEcho(
tendermint.abci.Types.ResponseEcho.Builder builderForValue) {
if (echoBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
echoBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
public Builder mergeEcho(tendermint.abci.Types.ResponseEcho value) {
if (echoBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != tendermint.abci.Types.ResponseEcho.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseEcho.newBuilder((tendermint.abci.Types.ResponseEcho) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
echoBuilder_.mergeFrom(value);
}
echoBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
public Builder clearEcho() {
if (echoBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
echoBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
public tendermint.abci.Types.ResponseEcho.Builder getEchoBuilder() {
return getEchoFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEchoOrBuilder getEchoOrBuilder() {
if ((valueCase_ == 2) && (echoBuilder_ != null)) {
return echoBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (tendermint.abci.Types.ResponseEcho) value_;
}
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseEcho echo = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEcho, tendermint.abci.Types.ResponseEcho.Builder, tendermint.abci.Types.ResponseEchoOrBuilder>
getEchoFieldBuilder() {
if (echoBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
echoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEcho, tendermint.abci.Types.ResponseEcho.Builder, tendermint.abci.Types.ResponseEchoOrBuilder>(
(tendermint.abci.Types.ResponseEcho) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
return echoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseFlush, tendermint.abci.Types.ResponseFlush.Builder, tendermint.abci.Types.ResponseFlushOrBuilder> flushBuilder_;
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return Whether the flush field is set.
*/
@java.lang.Override
public boolean hasFlush() {
return valueCase_ == 3;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
* @return The flush.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseFlush getFlush() {
if (flushBuilder_ == null) {
if (valueCase_ == 3) {
return (tendermint.abci.Types.ResponseFlush) value_;
}
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return flushBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
public Builder setFlush(tendermint.abci.Types.ResponseFlush value) {
if (flushBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
flushBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
public Builder setFlush(
tendermint.abci.Types.ResponseFlush.Builder builderForValue) {
if (flushBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
flushBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
public Builder mergeFlush(tendermint.abci.Types.ResponseFlush value) {
if (flushBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != tendermint.abci.Types.ResponseFlush.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseFlush.newBuilder((tendermint.abci.Types.ResponseFlush) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
flushBuilder_.mergeFrom(value);
}
flushBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
public Builder clearFlush() {
if (flushBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
flushBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
public tendermint.abci.Types.ResponseFlush.Builder getFlushBuilder() {
return getFlushFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseFlushOrBuilder getFlushOrBuilder() {
if ((valueCase_ == 3) && (flushBuilder_ != null)) {
return flushBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (tendermint.abci.Types.ResponseFlush) value_;
}
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseFlush flush = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseFlush, tendermint.abci.Types.ResponseFlush.Builder, tendermint.abci.Types.ResponseFlushOrBuilder>
getFlushFieldBuilder() {
if (flushBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
flushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseFlush, tendermint.abci.Types.ResponseFlush.Builder, tendermint.abci.Types.ResponseFlushOrBuilder>(
(tendermint.abci.Types.ResponseFlush) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();;
return flushBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInfo, tendermint.abci.Types.ResponseInfo.Builder, tendermint.abci.Types.ResponseInfoOrBuilder> infoBuilder_;
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return valueCase_ == 4;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
* @return The info.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInfo getInfo() {
if (infoBuilder_ == null) {
if (valueCase_ == 4) {
return (tendermint.abci.Types.ResponseInfo) value_;
}
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
} else {
if (valueCase_ == 4) {
return infoBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
public Builder setInfo(tendermint.abci.Types.ResponseInfo value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
public Builder setInfo(
tendermint.abci.Types.ResponseInfo.Builder builderForValue) {
if (infoBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
public Builder mergeInfo(tendermint.abci.Types.ResponseInfo value) {
if (infoBuilder_ == null) {
if (valueCase_ == 4 &&
value_ != tendermint.abci.Types.ResponseInfo.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseInfo.newBuilder((tendermint.abci.Types.ResponseInfo) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 4) {
infoBuilder_.mergeFrom(value);
}
infoBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
}
infoBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
public tendermint.abci.Types.ResponseInfo.Builder getInfoBuilder() {
return getInfoFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInfoOrBuilder getInfoOrBuilder() {
if ((valueCase_ == 4) && (infoBuilder_ != null)) {
return infoBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 4) {
return (tendermint.abci.Types.ResponseInfo) value_;
}
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseInfo info = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInfo, tendermint.abci.Types.ResponseInfo.Builder, tendermint.abci.Types.ResponseInfoOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
if (!(valueCase_ == 4)) {
value_ = tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInfo, tendermint.abci.Types.ResponseInfo.Builder, tendermint.abci.Types.ResponseInfoOrBuilder>(
(tendermint.abci.Types.ResponseInfo) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 4;
onChanged();;
return infoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseSetOption, tendermint.abci.Types.ResponseSetOption.Builder, tendermint.abci.Types.ResponseSetOptionOrBuilder> setOptionBuilder_;
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return Whether the setOption field is set.
*/
@java.lang.Override
public boolean hasSetOption() {
return valueCase_ == 5;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
* @return The setOption.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseSetOption getSetOption() {
if (setOptionBuilder_ == null) {
if (valueCase_ == 5) {
return (tendermint.abci.Types.ResponseSetOption) value_;
}
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
} else {
if (valueCase_ == 5) {
return setOptionBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
public Builder setSetOption(tendermint.abci.Types.ResponseSetOption value) {
if (setOptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
setOptionBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
public Builder setSetOption(
tendermint.abci.Types.ResponseSetOption.Builder builderForValue) {
if (setOptionBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
setOptionBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
public Builder mergeSetOption(tendermint.abci.Types.ResponseSetOption value) {
if (setOptionBuilder_ == null) {
if (valueCase_ == 5 &&
value_ != tendermint.abci.Types.ResponseSetOption.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseSetOption.newBuilder((tendermint.abci.Types.ResponseSetOption) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 5) {
setOptionBuilder_.mergeFrom(value);
}
setOptionBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
public Builder clearSetOption() {
if (setOptionBuilder_ == null) {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
}
setOptionBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
public tendermint.abci.Types.ResponseSetOption.Builder getSetOptionBuilder() {
return getSetOptionFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseSetOptionOrBuilder getSetOptionOrBuilder() {
if ((valueCase_ == 5) && (setOptionBuilder_ != null)) {
return setOptionBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 5) {
return (tendermint.abci.Types.ResponseSetOption) value_;
}
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseSetOption set_option = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseSetOption, tendermint.abci.Types.ResponseSetOption.Builder, tendermint.abci.Types.ResponseSetOptionOrBuilder>
getSetOptionFieldBuilder() {
if (setOptionBuilder_ == null) {
if (!(valueCase_ == 5)) {
value_ = tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
setOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseSetOption, tendermint.abci.Types.ResponseSetOption.Builder, tendermint.abci.Types.ResponseSetOptionOrBuilder>(
(tendermint.abci.Types.ResponseSetOption) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 5;
onChanged();;
return setOptionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInitChain, tendermint.abci.Types.ResponseInitChain.Builder, tendermint.abci.Types.ResponseInitChainOrBuilder> initChainBuilder_;
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return Whether the initChain field is set.
*/
@java.lang.Override
public boolean hasInitChain() {
return valueCase_ == 6;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
* @return The initChain.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInitChain getInitChain() {
if (initChainBuilder_ == null) {
if (valueCase_ == 6) {
return (tendermint.abci.Types.ResponseInitChain) value_;
}
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
} else {
if (valueCase_ == 6) {
return initChainBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
public Builder setInitChain(tendermint.abci.Types.ResponseInitChain value) {
if (initChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
initChainBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
public Builder setInitChain(
tendermint.abci.Types.ResponseInitChain.Builder builderForValue) {
if (initChainBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
initChainBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
public Builder mergeInitChain(tendermint.abci.Types.ResponseInitChain value) {
if (initChainBuilder_ == null) {
if (valueCase_ == 6 &&
value_ != tendermint.abci.Types.ResponseInitChain.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseInitChain.newBuilder((tendermint.abci.Types.ResponseInitChain) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 6) {
initChainBuilder_.mergeFrom(value);
}
initChainBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
public Builder clearInitChain() {
if (initChainBuilder_ == null) {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
}
initChainBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
public tendermint.abci.Types.ResponseInitChain.Builder getInitChainBuilder() {
return getInitChainFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseInitChainOrBuilder getInitChainOrBuilder() {
if ((valueCase_ == 6) && (initChainBuilder_ != null)) {
return initChainBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 6) {
return (tendermint.abci.Types.ResponseInitChain) value_;
}
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseInitChain init_chain = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInitChain, tendermint.abci.Types.ResponseInitChain.Builder, tendermint.abci.Types.ResponseInitChainOrBuilder>
getInitChainFieldBuilder() {
if (initChainBuilder_ == null) {
if (!(valueCase_ == 6)) {
value_ = tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
initChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseInitChain, tendermint.abci.Types.ResponseInitChain.Builder, tendermint.abci.Types.ResponseInitChainOrBuilder>(
(tendermint.abci.Types.ResponseInitChain) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 6;
onChanged();;
return initChainBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseQuery, tendermint.abci.Types.ResponseQuery.Builder, tendermint.abci.Types.ResponseQueryOrBuilder> queryBuilder_;
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return valueCase_ == 7;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
* @return The query.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseQuery getQuery() {
if (queryBuilder_ == null) {
if (valueCase_ == 7) {
return (tendermint.abci.Types.ResponseQuery) value_;
}
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
} else {
if (valueCase_ == 7) {
return queryBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
public Builder setQuery(tendermint.abci.Types.ResponseQuery value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
public Builder setQuery(
tendermint.abci.Types.ResponseQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
public Builder mergeQuery(tendermint.abci.Types.ResponseQuery value) {
if (queryBuilder_ == null) {
if (valueCase_ == 7 &&
value_ != tendermint.abci.Types.ResponseQuery.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseQuery.newBuilder((tendermint.abci.Types.ResponseQuery) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 7) {
queryBuilder_.mergeFrom(value);
}
queryBuilder_.setMessage(value);
}
valueCase_ = 7;
return this;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
}
queryBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
public tendermint.abci.Types.ResponseQuery.Builder getQueryBuilder() {
return getQueryFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseQueryOrBuilder getQueryOrBuilder() {
if ((valueCase_ == 7) && (queryBuilder_ != null)) {
return queryBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 7) {
return (tendermint.abci.Types.ResponseQuery) value_;
}
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseQuery query = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseQuery, tendermint.abci.Types.ResponseQuery.Builder, tendermint.abci.Types.ResponseQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
if (!(valueCase_ == 7)) {
value_ = tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseQuery, tendermint.abci.Types.ResponseQuery.Builder, tendermint.abci.Types.ResponseQueryOrBuilder>(
(tendermint.abci.Types.ResponseQuery) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 7;
onChanged();;
return queryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseBeginBlock, tendermint.abci.Types.ResponseBeginBlock.Builder, tendermint.abci.Types.ResponseBeginBlockOrBuilder> beginBlockBuilder_;
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return Whether the beginBlock field is set.
*/
@java.lang.Override
public boolean hasBeginBlock() {
return valueCase_ == 8;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
* @return The beginBlock.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlock getBeginBlock() {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 8) {
return (tendermint.abci.Types.ResponseBeginBlock) value_;
}
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return beginBlockBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
public Builder setBeginBlock(tendermint.abci.Types.ResponseBeginBlock value) {
if (beginBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
beginBlockBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
public Builder setBeginBlock(
tendermint.abci.Types.ResponseBeginBlock.Builder builderForValue) {
if (beginBlockBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
beginBlockBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
public Builder mergeBeginBlock(tendermint.abci.Types.ResponseBeginBlock value) {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseBeginBlock.newBuilder((tendermint.abci.Types.ResponseBeginBlock) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
beginBlockBuilder_.mergeFrom(value);
}
beginBlockBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
public Builder clearBeginBlock() {
if (beginBlockBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
beginBlockBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
public tendermint.abci.Types.ResponseBeginBlock.Builder getBeginBlockBuilder() {
return getBeginBlockFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlockOrBuilder getBeginBlockOrBuilder() {
if ((valueCase_ == 8) && (beginBlockBuilder_ != null)) {
return beginBlockBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (tendermint.abci.Types.ResponseBeginBlock) value_;
}
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseBeginBlock begin_block = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseBeginBlock, tendermint.abci.Types.ResponseBeginBlock.Builder, tendermint.abci.Types.ResponseBeginBlockOrBuilder>
getBeginBlockFieldBuilder() {
if (beginBlockBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
beginBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseBeginBlock, tendermint.abci.Types.ResponseBeginBlock.Builder, tendermint.abci.Types.ResponseBeginBlockOrBuilder>(
(tendermint.abci.Types.ResponseBeginBlock) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();;
return beginBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCheckTx, tendermint.abci.Types.ResponseCheckTx.Builder, tendermint.abci.Types.ResponseCheckTxOrBuilder> checkTxBuilder_;
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return Whether the checkTx field is set.
*/
@java.lang.Override
public boolean hasCheckTx() {
return valueCase_ == 9;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
* @return The checkTx.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTx getCheckTx() {
if (checkTxBuilder_ == null) {
if (valueCase_ == 9) {
return (tendermint.abci.Types.ResponseCheckTx) value_;
}
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
} else {
if (valueCase_ == 9) {
return checkTxBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
public Builder setCheckTx(tendermint.abci.Types.ResponseCheckTx value) {
if (checkTxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
checkTxBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
public Builder setCheckTx(
tendermint.abci.Types.ResponseCheckTx.Builder builderForValue) {
if (checkTxBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
checkTxBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
public Builder mergeCheckTx(tendermint.abci.Types.ResponseCheckTx value) {
if (checkTxBuilder_ == null) {
if (valueCase_ == 9 &&
value_ != tendermint.abci.Types.ResponseCheckTx.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseCheckTx.newBuilder((tendermint.abci.Types.ResponseCheckTx) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 9) {
checkTxBuilder_.mergeFrom(value);
}
checkTxBuilder_.setMessage(value);
}
valueCase_ = 9;
return this;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
public Builder clearCheckTx() {
if (checkTxBuilder_ == null) {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 9) {
valueCase_ = 0;
value_ = null;
}
checkTxBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
public tendermint.abci.Types.ResponseCheckTx.Builder getCheckTxBuilder() {
return getCheckTxFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTxOrBuilder getCheckTxOrBuilder() {
if ((valueCase_ == 9) && (checkTxBuilder_ != null)) {
return checkTxBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 9) {
return (tendermint.abci.Types.ResponseCheckTx) value_;
}
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseCheckTx check_tx = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCheckTx, tendermint.abci.Types.ResponseCheckTx.Builder, tendermint.abci.Types.ResponseCheckTxOrBuilder>
getCheckTxFieldBuilder() {
if (checkTxBuilder_ == null) {
if (!(valueCase_ == 9)) {
value_ = tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
checkTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCheckTx, tendermint.abci.Types.ResponseCheckTx.Builder, tendermint.abci.Types.ResponseCheckTxOrBuilder>(
(tendermint.abci.Types.ResponseCheckTx) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 9;
onChanged();;
return checkTxBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseDeliverTx, tendermint.abci.Types.ResponseDeliverTx.Builder, tendermint.abci.Types.ResponseDeliverTxOrBuilder> deliverTxBuilder_;
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return Whether the deliverTx field is set.
*/
@java.lang.Override
public boolean hasDeliverTx() {
return valueCase_ == 10;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
* @return The deliverTx.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTx getDeliverTx() {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 10) {
return (tendermint.abci.Types.ResponseDeliverTx) value_;
}
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
} else {
if (valueCase_ == 10) {
return deliverTxBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
public Builder setDeliverTx(tendermint.abci.Types.ResponseDeliverTx value) {
if (deliverTxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
deliverTxBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
public Builder setDeliverTx(
tendermint.abci.Types.ResponseDeliverTx.Builder builderForValue) {
if (deliverTxBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
deliverTxBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
public Builder mergeDeliverTx(tendermint.abci.Types.ResponseDeliverTx value) {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 10 &&
value_ != tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseDeliverTx.newBuilder((tendermint.abci.Types.ResponseDeliverTx) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 10) {
deliverTxBuilder_.mergeFrom(value);
}
deliverTxBuilder_.setMessage(value);
}
valueCase_ = 10;
return this;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
public Builder clearDeliverTx() {
if (deliverTxBuilder_ == null) {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
}
deliverTxBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
public tendermint.abci.Types.ResponseDeliverTx.Builder getDeliverTxBuilder() {
return getDeliverTxFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTxOrBuilder getDeliverTxOrBuilder() {
if ((valueCase_ == 10) && (deliverTxBuilder_ != null)) {
return deliverTxBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 10) {
return (tendermint.abci.Types.ResponseDeliverTx) value_;
}
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseDeliverTx deliver_tx = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseDeliverTx, tendermint.abci.Types.ResponseDeliverTx.Builder, tendermint.abci.Types.ResponseDeliverTxOrBuilder>
getDeliverTxFieldBuilder() {
if (deliverTxBuilder_ == null) {
if (!(valueCase_ == 10)) {
value_ = tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
deliverTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseDeliverTx, tendermint.abci.Types.ResponseDeliverTx.Builder, tendermint.abci.Types.ResponseDeliverTxOrBuilder>(
(tendermint.abci.Types.ResponseDeliverTx) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 10;
onChanged();;
return deliverTxBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEndBlock, tendermint.abci.Types.ResponseEndBlock.Builder, tendermint.abci.Types.ResponseEndBlockOrBuilder> endBlockBuilder_;
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return Whether the endBlock field is set.
*/
@java.lang.Override
public boolean hasEndBlock() {
return valueCase_ == 11;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
* @return The endBlock.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlock getEndBlock() {
if (endBlockBuilder_ == null) {
if (valueCase_ == 11) {
return (tendermint.abci.Types.ResponseEndBlock) value_;
}
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
} else {
if (valueCase_ == 11) {
return endBlockBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
public Builder setEndBlock(tendermint.abci.Types.ResponseEndBlock value) {
if (endBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
endBlockBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
public Builder setEndBlock(
tendermint.abci.Types.ResponseEndBlock.Builder builderForValue) {
if (endBlockBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
endBlockBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
public Builder mergeEndBlock(tendermint.abci.Types.ResponseEndBlock value) {
if (endBlockBuilder_ == null) {
if (valueCase_ == 11 &&
value_ != tendermint.abci.Types.ResponseEndBlock.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseEndBlock.newBuilder((tendermint.abci.Types.ResponseEndBlock) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 11) {
endBlockBuilder_.mergeFrom(value);
}
endBlockBuilder_.setMessage(value);
}
valueCase_ = 11;
return this;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
public Builder clearEndBlock() {
if (endBlockBuilder_ == null) {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
}
endBlockBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
public tendermint.abci.Types.ResponseEndBlock.Builder getEndBlockBuilder() {
return getEndBlockFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlockOrBuilder getEndBlockOrBuilder() {
if ((valueCase_ == 11) && (endBlockBuilder_ != null)) {
return endBlockBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 11) {
return (tendermint.abci.Types.ResponseEndBlock) value_;
}
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseEndBlock end_block = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEndBlock, tendermint.abci.Types.ResponseEndBlock.Builder, tendermint.abci.Types.ResponseEndBlockOrBuilder>
getEndBlockFieldBuilder() {
if (endBlockBuilder_ == null) {
if (!(valueCase_ == 11)) {
value_ = tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
endBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseEndBlock, tendermint.abci.Types.ResponseEndBlock.Builder, tendermint.abci.Types.ResponseEndBlockOrBuilder>(
(tendermint.abci.Types.ResponseEndBlock) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 11;
onChanged();;
return endBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCommit, tendermint.abci.Types.ResponseCommit.Builder, tendermint.abci.Types.ResponseCommitOrBuilder> commitBuilder_;
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return Whether the commit field is set.
*/
@java.lang.Override
public boolean hasCommit() {
return valueCase_ == 12;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
* @return The commit.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCommit getCommit() {
if (commitBuilder_ == null) {
if (valueCase_ == 12) {
return (tendermint.abci.Types.ResponseCommit) value_;
}
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
} else {
if (valueCase_ == 12) {
return commitBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
public Builder setCommit(tendermint.abci.Types.ResponseCommit value) {
if (commitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
commitBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
public Builder setCommit(
tendermint.abci.Types.ResponseCommit.Builder builderForValue) {
if (commitBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
commitBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
public Builder mergeCommit(tendermint.abci.Types.ResponseCommit value) {
if (commitBuilder_ == null) {
if (valueCase_ == 12 &&
value_ != tendermint.abci.Types.ResponseCommit.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseCommit.newBuilder((tendermint.abci.Types.ResponseCommit) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 12) {
commitBuilder_.mergeFrom(value);
}
commitBuilder_.setMessage(value);
}
valueCase_ = 12;
return this;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
public Builder clearCommit() {
if (commitBuilder_ == null) {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
}
commitBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
public tendermint.abci.Types.ResponseCommit.Builder getCommitBuilder() {
return getCommitFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseCommitOrBuilder getCommitOrBuilder() {
if ((valueCase_ == 12) && (commitBuilder_ != null)) {
return commitBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 12) {
return (tendermint.abci.Types.ResponseCommit) value_;
}
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseCommit commit = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCommit, tendermint.abci.Types.ResponseCommit.Builder, tendermint.abci.Types.ResponseCommitOrBuilder>
getCommitFieldBuilder() {
if (commitBuilder_ == null) {
if (!(valueCase_ == 12)) {
value_ = tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseCommit, tendermint.abci.Types.ResponseCommit.Builder, tendermint.abci.Types.ResponseCommitOrBuilder>(
(tendermint.abci.Types.ResponseCommit) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 12;
onChanged();;
return commitBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseListSnapshots, tendermint.abci.Types.ResponseListSnapshots.Builder, tendermint.abci.Types.ResponseListSnapshotsOrBuilder> listSnapshotsBuilder_;
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return Whether the listSnapshots field is set.
*/
@java.lang.Override
public boolean hasListSnapshots() {
return valueCase_ == 13;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
* @return The listSnapshots.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshots getListSnapshots() {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 13) {
return (tendermint.abci.Types.ResponseListSnapshots) value_;
}
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
} else {
if (valueCase_ == 13) {
return listSnapshotsBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
public Builder setListSnapshots(tendermint.abci.Types.ResponseListSnapshots value) {
if (listSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
listSnapshotsBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
public Builder setListSnapshots(
tendermint.abci.Types.ResponseListSnapshots.Builder builderForValue) {
if (listSnapshotsBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
listSnapshotsBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
public Builder mergeListSnapshots(tendermint.abci.Types.ResponseListSnapshots value) {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 13 &&
value_ != tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseListSnapshots.newBuilder((tendermint.abci.Types.ResponseListSnapshots) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 13) {
listSnapshotsBuilder_.mergeFrom(value);
}
listSnapshotsBuilder_.setMessage(value);
}
valueCase_ = 13;
return this;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
public Builder clearListSnapshots() {
if (listSnapshotsBuilder_ == null) {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 13) {
valueCase_ = 0;
value_ = null;
}
listSnapshotsBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
public tendermint.abci.Types.ResponseListSnapshots.Builder getListSnapshotsBuilder() {
return getListSnapshotsFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshotsOrBuilder getListSnapshotsOrBuilder() {
if ((valueCase_ == 13) && (listSnapshotsBuilder_ != null)) {
return listSnapshotsBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 13) {
return (tendermint.abci.Types.ResponseListSnapshots) value_;
}
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseListSnapshots list_snapshots = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseListSnapshots, tendermint.abci.Types.ResponseListSnapshots.Builder, tendermint.abci.Types.ResponseListSnapshotsOrBuilder>
getListSnapshotsFieldBuilder() {
if (listSnapshotsBuilder_ == null) {
if (!(valueCase_ == 13)) {
value_ = tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
listSnapshotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseListSnapshots, tendermint.abci.Types.ResponseListSnapshots.Builder, tendermint.abci.Types.ResponseListSnapshotsOrBuilder>(
(tendermint.abci.Types.ResponseListSnapshots) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 13;
onChanged();;
return listSnapshotsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseOfferSnapshot, tendermint.abci.Types.ResponseOfferSnapshot.Builder, tendermint.abci.Types.ResponseOfferSnapshotOrBuilder> offerSnapshotBuilder_;
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return Whether the offerSnapshot field is set.
*/
@java.lang.Override
public boolean hasOfferSnapshot() {
return valueCase_ == 14;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
* @return The offerSnapshot.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot getOfferSnapshot() {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 14) {
return (tendermint.abci.Types.ResponseOfferSnapshot) value_;
}
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
} else {
if (valueCase_ == 14) {
return offerSnapshotBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
public Builder setOfferSnapshot(tendermint.abci.Types.ResponseOfferSnapshot value) {
if (offerSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
offerSnapshotBuilder_.setMessage(value);
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
public Builder setOfferSnapshot(
tendermint.abci.Types.ResponseOfferSnapshot.Builder builderForValue) {
if (offerSnapshotBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
offerSnapshotBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
public Builder mergeOfferSnapshot(tendermint.abci.Types.ResponseOfferSnapshot value) {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 14 &&
value_ != tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseOfferSnapshot.newBuilder((tendermint.abci.Types.ResponseOfferSnapshot) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 14) {
offerSnapshotBuilder_.mergeFrom(value);
}
offerSnapshotBuilder_.setMessage(value);
}
valueCase_ = 14;
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
public Builder clearOfferSnapshot() {
if (offerSnapshotBuilder_ == null) {
if (valueCase_ == 14) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 14) {
valueCase_ = 0;
value_ = null;
}
offerSnapshotBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
public tendermint.abci.Types.ResponseOfferSnapshot.Builder getOfferSnapshotBuilder() {
return getOfferSnapshotFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshotOrBuilder getOfferSnapshotOrBuilder() {
if ((valueCase_ == 14) && (offerSnapshotBuilder_ != null)) {
return offerSnapshotBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 14) {
return (tendermint.abci.Types.ResponseOfferSnapshot) value_;
}
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseOfferSnapshot, tendermint.abci.Types.ResponseOfferSnapshot.Builder, tendermint.abci.Types.ResponseOfferSnapshotOrBuilder>
getOfferSnapshotFieldBuilder() {
if (offerSnapshotBuilder_ == null) {
if (!(valueCase_ == 14)) {
value_ = tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
offerSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseOfferSnapshot, tendermint.abci.Types.ResponseOfferSnapshot.Builder, tendermint.abci.Types.ResponseOfferSnapshotOrBuilder>(
(tendermint.abci.Types.ResponseOfferSnapshot) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 14;
onChanged();;
return offerSnapshotBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseLoadSnapshotChunk, tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder, tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder> loadSnapshotChunkBuilder_;
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return Whether the loadSnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasLoadSnapshotChunk() {
return valueCase_ == 15;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
* @return The loadSnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunk getLoadSnapshotChunk() {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 15) {
return (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
} else {
if (valueCase_ == 15) {
return loadSnapshotChunkBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
public Builder setLoadSnapshotChunk(tendermint.abci.Types.ResponseLoadSnapshotChunk value) {
if (loadSnapshotChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
loadSnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
public Builder setLoadSnapshotChunk(
tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder builderForValue) {
if (loadSnapshotChunkBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
loadSnapshotChunkBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
public Builder mergeLoadSnapshotChunk(tendermint.abci.Types.ResponseLoadSnapshotChunk value) {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 15 &&
value_ != tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseLoadSnapshotChunk.newBuilder((tendermint.abci.Types.ResponseLoadSnapshotChunk) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 15) {
loadSnapshotChunkBuilder_.mergeFrom(value);
}
loadSnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 15;
return this;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
public Builder clearLoadSnapshotChunk() {
if (loadSnapshotChunkBuilder_ == null) {
if (valueCase_ == 15) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 15) {
valueCase_ = 0;
value_ = null;
}
loadSnapshotChunkBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
public tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder getLoadSnapshotChunkBuilder() {
return getLoadSnapshotChunkFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder getLoadSnapshotChunkOrBuilder() {
if ((valueCase_ == 15) && (loadSnapshotChunkBuilder_ != null)) {
return loadSnapshotChunkBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 15) {
return (tendermint.abci.Types.ResponseLoadSnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseLoadSnapshotChunk, tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder, tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder>
getLoadSnapshotChunkFieldBuilder() {
if (loadSnapshotChunkBuilder_ == null) {
if (!(valueCase_ == 15)) {
value_ = tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
loadSnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseLoadSnapshotChunk, tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder, tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder>(
(tendermint.abci.Types.ResponseLoadSnapshotChunk) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 15;
onChanged();;
return loadSnapshotChunkBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseApplySnapshotChunk, tendermint.abci.Types.ResponseApplySnapshotChunk.Builder, tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder> applySnapshotChunkBuilder_;
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return Whether the applySnapshotChunk field is set.
*/
@java.lang.Override
public boolean hasApplySnapshotChunk() {
return valueCase_ == 16;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
* @return The applySnapshotChunk.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk getApplySnapshotChunk() {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 16) {
return (tendermint.abci.Types.ResponseApplySnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
} else {
if (valueCase_ == 16) {
return applySnapshotChunkBuilder_.getMessage();
}
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
public Builder setApplySnapshotChunk(tendermint.abci.Types.ResponseApplySnapshotChunk value) {
if (applySnapshotChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
applySnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 16;
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
public Builder setApplySnapshotChunk(
tendermint.abci.Types.ResponseApplySnapshotChunk.Builder builderForValue) {
if (applySnapshotChunkBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
applySnapshotChunkBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 16;
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
public Builder mergeApplySnapshotChunk(tendermint.abci.Types.ResponseApplySnapshotChunk value) {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 16 &&
value_ != tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance()) {
value_ = tendermint.abci.Types.ResponseApplySnapshotChunk.newBuilder((tendermint.abci.Types.ResponseApplySnapshotChunk) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 16) {
applySnapshotChunkBuilder_.mergeFrom(value);
}
applySnapshotChunkBuilder_.setMessage(value);
}
valueCase_ = 16;
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
public Builder clearApplySnapshotChunk() {
if (applySnapshotChunkBuilder_ == null) {
if (valueCase_ == 16) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 16) {
valueCase_ = 0;
value_ = null;
}
applySnapshotChunkBuilder_.clear();
}
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
public tendermint.abci.Types.ResponseApplySnapshotChunk.Builder getApplySnapshotChunkBuilder() {
return getApplySnapshotChunkFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder getApplySnapshotChunkOrBuilder() {
if ((valueCase_ == 16) && (applySnapshotChunkBuilder_ != null)) {
return applySnapshotChunkBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 16) {
return (tendermint.abci.Types.ResponseApplySnapshotChunk) value_;
}
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseApplySnapshotChunk, tendermint.abci.Types.ResponseApplySnapshotChunk.Builder, tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder>
getApplySnapshotChunkFieldBuilder() {
if (applySnapshotChunkBuilder_ == null) {
if (!(valueCase_ == 16)) {
value_ = tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
applySnapshotChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ResponseApplySnapshotChunk, tendermint.abci.Types.ResponseApplySnapshotChunk.Builder, tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder>(
(tendermint.abci.Types.ResponseApplySnapshotChunk) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 16;
onChanged();;
return applySnapshotChunkBuilder_;
}
@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:tendermint.abci.Response)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.Response)
private static final tendermint.abci.Types.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.Response();
}
public static tendermint.abci.Types.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(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 tendermint.abci.Types.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseExceptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseException)
com.google.protobuf.MessageOrBuilder {
/**
* string error = 1;
* @return The error.
*/
java.lang.String getError();
/**
* string error = 1;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.ResponseException}
*/
public static final class ResponseException extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseException)
ResponseExceptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseException.newBuilder() to construct.
private ResponseException(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseException() {
error_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseException();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseException(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
error_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseException.class, tendermint.abci.Types.ResponseException.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private volatile java.lang.Object error_;
/**
* string error = 1;
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
java.lang.Object ref = error_;
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();
error_ = s;
return s;
}
}
/**
* string error = 1;
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_);
}
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 tendermint.abci.Types.ResponseException)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseException other = (tendermint.abci.Types.ResponseException) obj;
if (!getError()
.equals(other.getError())) 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) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseException parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseException parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseException parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseException parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseException parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseException parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseException parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseException 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 tendermint.abci.Types.ResponseException parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseException 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 tendermint.abci.Types.ResponseException parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseException 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(tendermint.abci.Types.ResponseException 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;
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.ResponseException}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseException)
tendermint.abci.Types.ResponseExceptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseException.class, tendermint.abci.Types.ResponseException.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseException.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();
error_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseException_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseException getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseException.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseException build() {
tendermint.abci.Types.ResponseException result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseException buildPartial() {
tendermint.abci.Types.ResponseException result = new tendermint.abci.Types.ResponseException(this);
result.error_ = error_;
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 tendermint.abci.Types.ResponseException) {
return mergeFrom((tendermint.abci.Types.ResponseException)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseException other) {
if (other == tendermint.abci.Types.ResponseException.getDefaultInstance()) return this;
if (!other.getError().isEmpty()) {
error_ = other.error_;
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 {
tendermint.abci.Types.ResponseException parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseException) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object error_ = "";
/**
* string error = 1;
* @return The error.
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
error_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error = 1;
* @return The bytes for error.
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error = 1;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
return this;
}
/**
* string error = 1;
* @return This builder for chaining.
*/
public Builder clearError() {
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
* string error = 1;
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
error_ = 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:tendermint.abci.ResponseException)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseException)
private static final tendermint.abci.Types.ResponseException DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseException();
}
public static tendermint.abci.Types.ResponseException getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseException parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseException(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 tendermint.abci.Types.ResponseException getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseEchoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseEcho)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code tendermint.abci.ResponseEcho}
*/
public static final class ResponseEcho extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseEcho)
ResponseEchoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseEcho.newBuilder() to construct.
private ResponseEcho(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseEcho() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseEcho();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseEcho(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseEcho.class, tendermint.abci.Types.ResponseEcho.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
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 tendermint.abci.Types.ResponseEcho)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseEcho other = (tendermint.abci.Types.ResponseEcho) obj;
if (!getMessage()
.equals(other.getMessage())) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseEcho parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEcho parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEcho 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 tendermint.abci.Types.ResponseEcho parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEcho 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 tendermint.abci.Types.ResponseEcho parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEcho 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(tendermint.abci.Types.ResponseEcho 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 tendermint.abci.ResponseEcho}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseEcho)
tendermint.abci.Types.ResponseEchoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseEcho.class, tendermint.abci.Types.ResponseEcho.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseEcho.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();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEcho_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseEcho getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseEcho.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseEcho build() {
tendermint.abci.Types.ResponseEcho result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseEcho buildPartial() {
tendermint.abci.Types.ResponseEcho result = new tendermint.abci.Types.ResponseEcho(this);
result.message_ = message_;
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 tendermint.abci.Types.ResponseEcho) {
return mergeFrom((tendermint.abci.Types.ResponseEcho)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseEcho other) {
if (other == tendermint.abci.Types.ResponseEcho.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
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 {
tendermint.abci.Types.ResponseEcho parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseEcho) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = 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:tendermint.abci.ResponseEcho)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseEcho)
private static final tendermint.abci.Types.ResponseEcho DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseEcho();
}
public static tendermint.abci.Types.ResponseEcho getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseEcho parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseEcho(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 tendermint.abci.Types.ResponseEcho getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseFlushOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseFlush)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tendermint.abci.ResponseFlush}
*/
public static final class ResponseFlush extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseFlush)
ResponseFlushOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseFlush.newBuilder() to construct.
private ResponseFlush(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseFlush() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseFlush();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseFlush(
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;
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 tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseFlush.class, tendermint.abci.Types.ResponseFlush.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tendermint.abci.Types.ResponseFlush)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseFlush other = (tendermint.abci.Types.ResponseFlush) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseFlush parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseFlush parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseFlush 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 tendermint.abci.Types.ResponseFlush parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseFlush 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 tendermint.abci.Types.ResponseFlush parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseFlush 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(tendermint.abci.Types.ResponseFlush 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 tendermint.abci.ResponseFlush}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseFlush)
tendermint.abci.Types.ResponseFlushOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseFlush.class, tendermint.abci.Types.ResponseFlush.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseFlush.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseFlush_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseFlush getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseFlush.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseFlush build() {
tendermint.abci.Types.ResponseFlush result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseFlush buildPartial() {
tendermint.abci.Types.ResponseFlush result = new tendermint.abci.Types.ResponseFlush(this);
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 tendermint.abci.Types.ResponseFlush) {
return mergeFrom((tendermint.abci.Types.ResponseFlush)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseFlush other) {
if (other == tendermint.abci.Types.ResponseFlush.getDefaultInstance()) return this;
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 {
tendermint.abci.Types.ResponseFlush parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseFlush) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:tendermint.abci.ResponseFlush)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseFlush)
private static final tendermint.abci.Types.ResponseFlush DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseFlush();
}
public static tendermint.abci.Types.ResponseFlush getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseFlush parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseFlush(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 tendermint.abci.Types.ResponseFlush getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string data = 1;
* @return The data.
*/
java.lang.String getData();
/**
* string data = 1;
* @return The bytes for data.
*/
com.google.protobuf.ByteString
getDataBytes();
/**
* string version = 2;
* @return The version.
*/
java.lang.String getVersion();
/**
* string version = 2;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* uint64 app_version = 3;
* @return The appVersion.
*/
long getAppVersion();
/**
* int64 last_block_height = 4;
* @return The lastBlockHeight.
*/
long getLastBlockHeight();
/**
* bytes last_block_app_hash = 5;
* @return The lastBlockAppHash.
*/
com.google.protobuf.ByteString getLastBlockAppHash();
}
/**
* Protobuf type {@code tendermint.abci.ResponseInfo}
*/
public static final class ResponseInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseInfo)
ResponseInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseInfo.newBuilder() to construct.
private ResponseInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseInfo() {
data_ = "";
version_ = "";
lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
data_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 24: {
appVersion_ = input.readUInt64();
break;
}
case 32: {
lastBlockHeight_ = input.readInt64();
break;
}
case 42: {
lastBlockAppHash_ = 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 tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseInfo.class, tendermint.abci.Types.ResponseInfo.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private volatile java.lang.Object data_;
/**
* string data = 1;
* @return The data.
*/
@java.lang.Override
public java.lang.String getData() {
java.lang.Object ref = data_;
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();
data_ = s;
return s;
}
}
/**
* string data = 1;
* @return The bytes for data.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
* string version = 2;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 2;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_VERSION_FIELD_NUMBER = 3;
private long appVersion_;
/**
* uint64 app_version = 3;
* @return The appVersion.
*/
@java.lang.Override
public long getAppVersion() {
return appVersion_;
}
public static final int LAST_BLOCK_HEIGHT_FIELD_NUMBER = 4;
private long lastBlockHeight_;
/**
* int64 last_block_height = 4;
* @return The lastBlockHeight.
*/
@java.lang.Override
public long getLastBlockHeight() {
return lastBlockHeight_;
}
public static final int LAST_BLOCK_APP_HASH_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString lastBlockAppHash_;
/**
* bytes last_block_app_hash = 5;
* @return The lastBlockAppHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLastBlockAppHash() {
return lastBlockAppHash_;
}
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 (!getDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_);
}
if (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (appVersion_ != 0L) {
output.writeUInt64(3, appVersion_);
}
if (lastBlockHeight_ != 0L) {
output.writeInt64(4, lastBlockHeight_);
}
if (!lastBlockAppHash_.isEmpty()) {
output.writeBytes(5, lastBlockAppHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_);
}
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (appVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, appVersion_);
}
if (lastBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastBlockHeight_);
}
if (!lastBlockAppHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, lastBlockAppHash_);
}
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 tendermint.abci.Types.ResponseInfo)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseInfo other = (tendermint.abci.Types.ResponseInfo) obj;
if (!getData()
.equals(other.getData())) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (getAppVersion()
!= other.getAppVersion()) return false;
if (getLastBlockHeight()
!= other.getLastBlockHeight()) return false;
if (!getLastBlockAppHash()
.equals(other.getLastBlockAppHash())) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + APP_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAppVersion());
hash = (37 * hash) + LAST_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastBlockHeight());
hash = (37 * hash) + LAST_BLOCK_APP_HASH_FIELD_NUMBER;
hash = (53 * hash) + getLastBlockAppHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInfo 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 tendermint.abci.Types.ResponseInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInfo 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 tendermint.abci.Types.ResponseInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInfo 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(tendermint.abci.Types.ResponseInfo 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 tendermint.abci.ResponseInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseInfo)
tendermint.abci.Types.ResponseInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseInfo.class, tendermint.abci.Types.ResponseInfo.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseInfo.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();
data_ = "";
version_ = "";
appVersion_ = 0L;
lastBlockHeight_ = 0L;
lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInfo_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseInfo getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseInfo.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseInfo build() {
tendermint.abci.Types.ResponseInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseInfo buildPartial() {
tendermint.abci.Types.ResponseInfo result = new tendermint.abci.Types.ResponseInfo(this);
result.data_ = data_;
result.version_ = version_;
result.appVersion_ = appVersion_;
result.lastBlockHeight_ = lastBlockHeight_;
result.lastBlockAppHash_ = lastBlockAppHash_;
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 tendermint.abci.Types.ResponseInfo) {
return mergeFrom((tendermint.abci.Types.ResponseInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseInfo other) {
if (other == tendermint.abci.Types.ResponseInfo.getDefaultInstance()) return this;
if (!other.getData().isEmpty()) {
data_ = other.data_;
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.getAppVersion() != 0L) {
setAppVersion(other.getAppVersion());
}
if (other.getLastBlockHeight() != 0L) {
setLastBlockHeight(other.getLastBlockHeight());
}
if (other.getLastBlockAppHash() != com.google.protobuf.ByteString.EMPTY) {
setLastBlockAppHash(other.getLastBlockAppHash());
}
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 {
tendermint.abci.Types.ResponseInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object data_ = "";
/**
* string data = 1;
* @return The data.
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string data = 1;
* @return The bytes for data.
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string data = 1;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* string data = 1;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
* string data = 1;
* @param value The bytes for data to set.
* @return This builder for chaining.
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
data_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 2;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 2;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 2;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 2;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 2;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private long appVersion_ ;
/**
* uint64 app_version = 3;
* @return The appVersion.
*/
@java.lang.Override
public long getAppVersion() {
return appVersion_;
}
/**
* uint64 app_version = 3;
* @param value The appVersion to set.
* @return This builder for chaining.
*/
public Builder setAppVersion(long value) {
appVersion_ = value;
onChanged();
return this;
}
/**
* uint64 app_version = 3;
* @return This builder for chaining.
*/
public Builder clearAppVersion() {
appVersion_ = 0L;
onChanged();
return this;
}
private long lastBlockHeight_ ;
/**
* int64 last_block_height = 4;
* @return The lastBlockHeight.
*/
@java.lang.Override
public long getLastBlockHeight() {
return lastBlockHeight_;
}
/**
* int64 last_block_height = 4;
* @param value The lastBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setLastBlockHeight(long value) {
lastBlockHeight_ = value;
onChanged();
return this;
}
/**
* int64 last_block_height = 4;
* @return This builder for chaining.
*/
public Builder clearLastBlockHeight() {
lastBlockHeight_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString lastBlockAppHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes last_block_app_hash = 5;
* @return The lastBlockAppHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLastBlockAppHash() {
return lastBlockAppHash_;
}
/**
* bytes last_block_app_hash = 5;
* @param value The lastBlockAppHash to set.
* @return This builder for chaining.
*/
public Builder setLastBlockAppHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
lastBlockAppHash_ = value;
onChanged();
return this;
}
/**
* bytes last_block_app_hash = 5;
* @return This builder for chaining.
*/
public Builder clearLastBlockAppHash() {
lastBlockAppHash_ = getDefaultInstance().getLastBlockAppHash();
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:tendermint.abci.ResponseInfo)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseInfo)
private static final tendermint.abci.Types.ResponseInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseInfo();
}
public static tendermint.abci.Types.ResponseInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseInfo(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 tendermint.abci.Types.ResponseInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseSetOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseSetOption)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 code = 1;
* @return The code.
*/
int getCode();
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The log.
*/
java.lang.String getLog();
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The bytes for log.
*/
com.google.protobuf.ByteString
getLogBytes();
/**
* string info = 4;
* @return The info.
*/
java.lang.String getInfo();
/**
* string info = 4;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.ResponseSetOption}
*/
public static final class ResponseSetOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseSetOption)
ResponseSetOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseSetOption.newBuilder() to construct.
private ResponseSetOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseSetOption() {
log_ = "";
info_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseSetOption();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseSetOption(
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: {
code_ = input.readUInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
log_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
info_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseSetOption.class, tendermint.abci.Types.ResponseSetOption.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int LOG_FIELD_NUMBER = 3;
private volatile java.lang.Object log_;
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The log.
*/
@java.lang.Override
public java.lang.String getLog() {
java.lang.Object ref = log_;
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();
log_ = s;
return s;
}
}
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The bytes for log.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFO_FIELD_NUMBER = 4;
private volatile java.lang.Object info_;
/**
* string info = 4;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
* string info = 4;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!getLogBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_);
}
if (!getInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, code_);
}
if (!getLogBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_);
}
if (!getInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_);
}
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 tendermint.abci.Types.ResponseSetOption)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseSetOption other = (tendermint.abci.Types.ResponseSetOption) obj;
if (getCode()
!= other.getCode()) return false;
if (!getLog()
.equals(other.getLog())) return false;
if (!getInfo()
.equals(other.getInfo())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseSetOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseSetOption 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 tendermint.abci.Types.ResponseSetOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseSetOption 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 tendermint.abci.Types.ResponseSetOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseSetOption 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(tendermint.abci.Types.ResponseSetOption 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;
}
/**
*
* nondeterministic
*
*
* Protobuf type {@code tendermint.abci.ResponseSetOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseSetOption)
tendermint.abci.Types.ResponseSetOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseSetOption.class, tendermint.abci.Types.ResponseSetOption.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseSetOption.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();
code_ = 0;
log_ = "";
info_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseSetOption_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseSetOption getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseSetOption.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseSetOption build() {
tendermint.abci.Types.ResponseSetOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseSetOption buildPartial() {
tendermint.abci.Types.ResponseSetOption result = new tendermint.abci.Types.ResponseSetOption(this);
result.code_ = code_;
result.log_ = log_;
result.info_ = info_;
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 tendermint.abci.Types.ResponseSetOption) {
return mergeFrom((tendermint.abci.Types.ResponseSetOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseSetOption other) {
if (other == tendermint.abci.Types.ResponseSetOption.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (!other.getLog().isEmpty()) {
log_ = other.log_;
onChanged();
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
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 {
tendermint.abci.Types.ResponseSetOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseSetOption) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int code_ ;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* uint32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* uint32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object log_ = "";
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The log.
*/
public java.lang.String getLog() {
java.lang.Object ref = log_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
log_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return The bytes for log.
*/
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @param value The log to set.
* @return This builder for chaining.
*/
public Builder setLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
onChanged();
return this;
}
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @return This builder for chaining.
*/
public Builder clearLog() {
log_ = getDefaultInstance().getLog();
onChanged();
return this;
}
/**
*
* bytes data = 2;
*
*
* string log = 3;
* @param value The bytes for log to set.
* @return This builder for chaining.
*/
public Builder setLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
log_ = value;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
* string info = 4;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string info = 4;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string info = 4;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
* string info = 4;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
* string info = 4;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = 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:tendermint.abci.ResponseSetOption)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseSetOption)
private static final tendermint.abci.Types.ResponseSetOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseSetOption();
}
public static tendermint.abci.Types.ResponseSetOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseSetOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseSetOption(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 tendermint.abci.Types.ResponseSetOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseInitChainOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseInitChain)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return Whether the consensusParams field is set.
*/
boolean hasConsensusParams();
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return The consensusParams.
*/
tendermint.abci.Types.ConsensusParams getConsensusParams();
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
java.util.List
getValidatorsList();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdate getValidators(int index);
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
int getValidatorsCount();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList();
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index);
/**
* bytes app_hash = 3;
* @return The appHash.
*/
com.google.protobuf.ByteString getAppHash();
}
/**
* Protobuf type {@code tendermint.abci.ResponseInitChain}
*/
public static final class ResponseInitChain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseInitChain)
ResponseInitChainOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseInitChain.newBuilder() to construct.
private ResponseInitChain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseInitChain() {
validators_ = java.util.Collections.emptyList();
appHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseInitChain();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseInitChain(
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: {
tendermint.abci.Types.ConsensusParams.Builder subBuilder = null;
if (consensusParams_ != null) {
subBuilder = consensusParams_.toBuilder();
}
consensusParams_ = input.readMessage(tendermint.abci.Types.ConsensusParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusParams_);
consensusParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
validators_.add(
input.readMessage(tendermint.abci.Types.ValidatorUpdate.parser(), extensionRegistry));
break;
}
case 26: {
appHash_ = 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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseInitChain.class, tendermint.abci.Types.ResponseInitChain.Builder.class);
}
public static final int CONSENSUS_PARAMS_FIELD_NUMBER = 1;
private tendermint.abci.Types.ConsensusParams consensusParams_;
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return Whether the consensusParams field is set.
*/
@java.lang.Override
public boolean hasConsensusParams() {
return consensusParams_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return The consensusParams.
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParams getConsensusParams() {
return consensusParams_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() {
return getConsensusParams();
}
public static final int VALIDATORS_FIELD_NUMBER = 2;
private java.util.List validators_;
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getValidatorsList() {
return validators_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList() {
return validators_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getValidatorsCount() {
return validators_.size();
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdate getValidators(int index) {
return validators_.get(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index) {
return validators_.get(index);
}
public static final int APP_HASH_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString appHash_;
/**
* bytes app_hash = 3;
* @return The appHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppHash() {
return appHash_;
}
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 (consensusParams_ != null) {
output.writeMessage(1, getConsensusParams());
}
for (int i = 0; i < validators_.size(); i++) {
output.writeMessage(2, validators_.get(i));
}
if (!appHash_.isEmpty()) {
output.writeBytes(3, appHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consensusParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConsensusParams());
}
for (int i = 0; i < validators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, validators_.get(i));
}
if (!appHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, appHash_);
}
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 tendermint.abci.Types.ResponseInitChain)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseInitChain other = (tendermint.abci.Types.ResponseInitChain) obj;
if (hasConsensusParams() != other.hasConsensusParams()) return false;
if (hasConsensusParams()) {
if (!getConsensusParams()
.equals(other.getConsensusParams())) return false;
}
if (!getValidatorsList()
.equals(other.getValidatorsList())) return false;
if (!getAppHash()
.equals(other.getAppHash())) 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 (hasConsensusParams()) {
hash = (37 * hash) + CONSENSUS_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getConsensusParams().hashCode();
}
if (getValidatorsCount() > 0) {
hash = (37 * hash) + VALIDATORS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorsList().hashCode();
}
hash = (37 * hash) + APP_HASH_FIELD_NUMBER;
hash = (53 * hash) + getAppHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseInitChain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInitChain 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 tendermint.abci.Types.ResponseInitChain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInitChain 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 tendermint.abci.Types.ResponseInitChain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseInitChain 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(tendermint.abci.Types.ResponseInitChain 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 tendermint.abci.ResponseInitChain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseInitChain)
tendermint.abci.Types.ResponseInitChainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseInitChain.class, tendermint.abci.Types.ResponseInitChain.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseInitChain.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValidatorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (consensusParamsBuilder_ == null) {
consensusParams_ = null;
} else {
consensusParams_ = null;
consensusParamsBuilder_ = null;
}
if (validatorsBuilder_ == null) {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
validatorsBuilder_.clear();
}
appHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseInitChain_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseInitChain getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseInitChain.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseInitChain build() {
tendermint.abci.Types.ResponseInitChain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseInitChain buildPartial() {
tendermint.abci.Types.ResponseInitChain result = new tendermint.abci.Types.ResponseInitChain(this);
int from_bitField0_ = bitField0_;
if (consensusParamsBuilder_ == null) {
result.consensusParams_ = consensusParams_;
} else {
result.consensusParams_ = consensusParamsBuilder_.build();
}
if (validatorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
validators_ = java.util.Collections.unmodifiableList(validators_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validators_ = validators_;
} else {
result.validators_ = validatorsBuilder_.build();
}
result.appHash_ = appHash_;
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 tendermint.abci.Types.ResponseInitChain) {
return mergeFrom((tendermint.abci.Types.ResponseInitChain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseInitChain other) {
if (other == tendermint.abci.Types.ResponseInitChain.getDefaultInstance()) return this;
if (other.hasConsensusParams()) {
mergeConsensusParams(other.getConsensusParams());
}
if (validatorsBuilder_ == null) {
if (!other.validators_.isEmpty()) {
if (validators_.isEmpty()) {
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidatorsIsMutable();
validators_.addAll(other.validators_);
}
onChanged();
}
} else {
if (!other.validators_.isEmpty()) {
if (validatorsBuilder_.isEmpty()) {
validatorsBuilder_.dispose();
validatorsBuilder_ = null;
validators_ = other.validators_;
bitField0_ = (bitField0_ & ~0x00000001);
validatorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorsFieldBuilder() : null;
} else {
validatorsBuilder_.addAllMessages(other.validators_);
}
}
}
if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) {
setAppHash(other.getAppHash());
}
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 {
tendermint.abci.Types.ResponseInitChain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseInitChain) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private tendermint.abci.Types.ConsensusParams consensusParams_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder> consensusParamsBuilder_;
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return Whether the consensusParams field is set.
*/
public boolean hasConsensusParams() {
return consensusParamsBuilder_ != null || consensusParams_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
* @return The consensusParams.
*/
public tendermint.abci.Types.ConsensusParams getConsensusParams() {
if (consensusParamsBuilder_ == null) {
return consensusParams_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
} else {
return consensusParamsBuilder_.getMessage();
}
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public Builder setConsensusParams(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusParams_ = value;
onChanged();
} else {
consensusParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public Builder setConsensusParams(
tendermint.abci.Types.ConsensusParams.Builder builderForValue) {
if (consensusParamsBuilder_ == null) {
consensusParams_ = builderForValue.build();
onChanged();
} else {
consensusParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public Builder mergeConsensusParams(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamsBuilder_ == null) {
if (consensusParams_ != null) {
consensusParams_ =
tendermint.abci.Types.ConsensusParams.newBuilder(consensusParams_).mergeFrom(value).buildPartial();
} else {
consensusParams_ = value;
}
onChanged();
} else {
consensusParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public Builder clearConsensusParams() {
if (consensusParamsBuilder_ == null) {
consensusParams_ = null;
onChanged();
} else {
consensusParams_ = null;
consensusParamsBuilder_ = null;
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public tendermint.abci.Types.ConsensusParams.Builder getConsensusParamsBuilder() {
onChanged();
return getConsensusParamsFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamsOrBuilder() {
if (consensusParamsBuilder_ != null) {
return consensusParamsBuilder_.getMessageOrBuilder();
} else {
return consensusParams_ == null ?
tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParams_;
}
}
/**
* .tendermint.abci.ConsensusParams consensus_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>
getConsensusParamsFieldBuilder() {
if (consensusParamsBuilder_ == null) {
consensusParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>(
getConsensusParams(),
getParentForChildren(),
isClean());
consensusParams_ = null;
}
return consensusParamsBuilder_;
}
private java.util.List validators_ =
java.util.Collections.emptyList();
private void ensureValidatorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validators_ = new java.util.ArrayList(validators_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder> validatorsBuilder_;
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List getValidatorsList() {
if (validatorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validators_);
} else {
return validatorsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public int getValidatorsCount() {
if (validatorsBuilder_ == null) {
return validators_.size();
} else {
return validatorsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate getValidators(int index) {
if (validatorsBuilder_ == null) {
return validators_.get(index);
} else {
return validatorsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder setValidators(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.set(index, value);
onChanged();
} else {
validatorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder setValidators(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.set(index, builderForValue.build());
onChanged();
} else {
validatorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(value);
onChanged();
} else {
validatorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorsIsMutable();
validators_.add(index, value);
onChanged();
} else {
validatorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.add(builderForValue.build());
onChanged();
} else {
validatorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder addValidators(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.add(index, builderForValue.build());
onChanged();
} else {
validatorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder addAllValidators(
java.lang.Iterable extends tendermint.abci.Types.ValidatorUpdate> values) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validators_);
onChanged();
} else {
validatorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearValidators() {
if (validatorsBuilder_ == null) {
validators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
validatorsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public Builder removeValidators(int index) {
if (validatorsBuilder_ == null) {
ensureValidatorsIsMutable();
validators_.remove(index);
onChanged();
} else {
validatorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder getValidatorsBuilder(
int index) {
return getValidatorsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorsOrBuilder(
int index) {
if (validatorsBuilder_ == null) {
return validators_.get(index); } else {
return validatorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsOrBuilderList() {
if (validatorsBuilder_ != null) {
return validatorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validators_);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorsBuilder() {
return getValidatorsFieldBuilder().addBuilder(
tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorsBuilder(
int index) {
return getValidatorsFieldBuilder().addBuilder(
index, tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validators = 2 [(.gogoproto.nullable) = false];
*/
public java.util.List
getValidatorsBuilderList() {
return getValidatorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorsFieldBuilder() {
if (validatorsBuilder_ == null) {
validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>(
validators_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
validators_ = null;
}
return validatorsBuilder_;
}
private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes app_hash = 3;
* @return The appHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppHash() {
return appHash_;
}
/**
* bytes app_hash = 3;
* @param value The appHash to set.
* @return This builder for chaining.
*/
public Builder setAppHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
appHash_ = value;
onChanged();
return this;
}
/**
* bytes app_hash = 3;
* @return This builder for chaining.
*/
public Builder clearAppHash() {
appHash_ = getDefaultInstance().getAppHash();
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:tendermint.abci.ResponseInitChain)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseInitChain)
private static final tendermint.abci.Types.ResponseInitChain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseInitChain();
}
public static tendermint.abci.Types.ResponseInitChain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseInitChain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseInitChain(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 tendermint.abci.Types.ResponseInitChain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseQueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseQuery)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 code = 1;
* @return The code.
*/
int getCode();
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The log.
*/
java.lang.String getLog();
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The bytes for log.
*/
com.google.protobuf.ByteString
getLogBytes();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
java.lang.String getInfo();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
/**
* int64 index = 5;
* @return The index.
*/
long getIndex();
/**
* bytes key = 6;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 7;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return Whether the proofOps field is set.
*/
boolean hasProofOps();
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return The proofOps.
*/
tendermint.crypto.ProofOuterClass.ProofOps getProofOps();
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder getProofOpsOrBuilder();
/**
* int64 height = 9;
* @return The height.
*/
long getHeight();
/**
* string codespace = 10;
* @return The codespace.
*/
java.lang.String getCodespace();
/**
* string codespace = 10;
* @return The bytes for codespace.
*/
com.google.protobuf.ByteString
getCodespaceBytes();
}
/**
* Protobuf type {@code tendermint.abci.ResponseQuery}
*/
public static final class ResponseQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseQuery)
ResponseQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseQuery.newBuilder() to construct.
private ResponseQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseQuery() {
log_ = "";
info_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
codespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseQuery();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseQuery(
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: {
code_ = input.readUInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
log_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
info_ = s;
break;
}
case 40: {
index_ = input.readInt64();
break;
}
case 50: {
key_ = input.readBytes();
break;
}
case 58: {
value_ = input.readBytes();
break;
}
case 66: {
tendermint.crypto.ProofOuterClass.ProofOps.Builder subBuilder = null;
if (proofOps_ != null) {
subBuilder = proofOps_.toBuilder();
}
proofOps_ = input.readMessage(tendermint.crypto.ProofOuterClass.ProofOps.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofOps_);
proofOps_ = subBuilder.buildPartial();
}
break;
}
case 72: {
height_ = input.readInt64();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
codespace_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseQuery.class, tendermint.abci.Types.ResponseQuery.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int LOG_FIELD_NUMBER = 3;
private volatile java.lang.Object log_;
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The log.
*/
@java.lang.Override
public java.lang.String getLog() {
java.lang.Object ref = log_;
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();
log_ = s;
return s;
}
}
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The bytes for log.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFO_FIELD_NUMBER = 4;
private volatile java.lang.Object info_;
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 5;
private long index_;
/**
* int64 index = 5;
* @return The index.
*/
@java.lang.Override
public long getIndex() {
return index_;
}
public static final int KEY_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 6;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 7;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int PROOF_OPS_FIELD_NUMBER = 8;
private tendermint.crypto.ProofOuterClass.ProofOps proofOps_;
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return Whether the proofOps field is set.
*/
@java.lang.Override
public boolean hasProofOps() {
return proofOps_ != null;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return The proofOps.
*/
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOps getProofOps() {
return proofOps_ == null ? tendermint.crypto.ProofOuterClass.ProofOps.getDefaultInstance() : proofOps_;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder getProofOpsOrBuilder() {
return getProofOps();
}
public static final int HEIGHT_FIELD_NUMBER = 9;
private long height_;
/**
* int64 height = 9;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
public static final int CODESPACE_FIELD_NUMBER = 10;
private volatile java.lang.Object codespace_;
/**
* string codespace = 10;
* @return The codespace.
*/
@java.lang.Override
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
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();
codespace_ = s;
return s;
}
}
/**
* string codespace = 10;
* @return The bytes for codespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!getLogBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_);
}
if (!getInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_);
}
if (index_ != 0L) {
output.writeInt64(5, index_);
}
if (!key_.isEmpty()) {
output.writeBytes(6, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(7, value_);
}
if (proofOps_ != null) {
output.writeMessage(8, getProofOps());
}
if (height_ != 0L) {
output.writeInt64(9, height_);
}
if (!getCodespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, codespace_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, code_);
}
if (!getLogBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_);
}
if (!getInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_);
}
if (index_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, index_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, value_);
}
if (proofOps_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getProofOps());
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, height_);
}
if (!getCodespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, codespace_);
}
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 tendermint.abci.Types.ResponseQuery)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseQuery other = (tendermint.abci.Types.ResponseQuery) obj;
if (getCode()
!= other.getCode()) return false;
if (!getLog()
.equals(other.getLog())) return false;
if (!getInfo()
.equals(other.getInfo())) return false;
if (getIndex()
!= other.getIndex()) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (hasProofOps() != other.hasProofOps()) return false;
if (hasProofOps()) {
if (!getProofOps()
.equals(other.getProofOps())) return false;
}
if (getHeight()
!= other.getHeight()) return false;
if (!getCodespace()
.equals(other.getCodespace())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndex());
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
if (hasProofOps()) {
hash = (37 * hash) + PROOF_OPS_FIELD_NUMBER;
hash = (53 * hash) + getProofOps().hashCode();
}
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + CODESPACE_FIELD_NUMBER;
hash = (53 * hash) + getCodespace().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseQuery 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 tendermint.abci.Types.ResponseQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseQuery 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 tendermint.abci.Types.ResponseQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseQuery 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(tendermint.abci.Types.ResponseQuery 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 tendermint.abci.ResponseQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseQuery)
tendermint.abci.Types.ResponseQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseQuery.class, tendermint.abci.Types.ResponseQuery.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseQuery.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();
code_ = 0;
log_ = "";
info_ = "";
index_ = 0L;
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
if (proofOpsBuilder_ == null) {
proofOps_ = null;
} else {
proofOps_ = null;
proofOpsBuilder_ = null;
}
height_ = 0L;
codespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseQuery_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseQuery getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseQuery.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseQuery build() {
tendermint.abci.Types.ResponseQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseQuery buildPartial() {
tendermint.abci.Types.ResponseQuery result = new tendermint.abci.Types.ResponseQuery(this);
result.code_ = code_;
result.log_ = log_;
result.info_ = info_;
result.index_ = index_;
result.key_ = key_;
result.value_ = value_;
if (proofOpsBuilder_ == null) {
result.proofOps_ = proofOps_;
} else {
result.proofOps_ = proofOpsBuilder_.build();
}
result.height_ = height_;
result.codespace_ = codespace_;
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 tendermint.abci.Types.ResponseQuery) {
return mergeFrom((tendermint.abci.Types.ResponseQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseQuery other) {
if (other == tendermint.abci.Types.ResponseQuery.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (!other.getLog().isEmpty()) {
log_ = other.log_;
onChanged();
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
onChanged();
}
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.hasProofOps()) {
mergeProofOps(other.getProofOps());
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (!other.getCodespace().isEmpty()) {
codespace_ = other.codespace_;
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 {
tendermint.abci.Types.ResponseQuery parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseQuery) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int code_ ;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* uint32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* uint32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object log_ = "";
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The log.
*/
public java.lang.String getLog() {
java.lang.Object ref = log_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
log_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return The bytes for log.
*/
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @param value The log to set.
* @return This builder for chaining.
*/
public Builder setLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
onChanged();
return this;
}
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @return This builder for chaining.
*/
public Builder clearLog() {
log_ = getDefaultInstance().getLog();
onChanged();
return this;
}
/**
*
* bytes data = 2; // use "value" instead.
*
*
* string log = 3;
* @param value The bytes for log to set.
* @return This builder for chaining.
*/
public Builder setLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
log_ = value;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
onChanged();
return this;
}
private long index_ ;
/**
* int64 index = 5;
* @return The index.
*/
@java.lang.Override
public long getIndex() {
return index_;
}
/**
* int64 index = 5;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(long value) {
index_ = value;
onChanged();
return this;
}
/**
* int64 index = 5;
* @return This builder for chaining.
*/
public Builder clearIndex() {
index_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 6;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 6;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 6;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 7;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 7;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 7;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private tendermint.crypto.ProofOuterClass.ProofOps proofOps_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.crypto.ProofOuterClass.ProofOps, tendermint.crypto.ProofOuterClass.ProofOps.Builder, tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder> proofOpsBuilder_;
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return Whether the proofOps field is set.
*/
public boolean hasProofOps() {
return proofOpsBuilder_ != null || proofOps_ != null;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
* @return The proofOps.
*/
public tendermint.crypto.ProofOuterClass.ProofOps getProofOps() {
if (proofOpsBuilder_ == null) {
return proofOps_ == null ? tendermint.crypto.ProofOuterClass.ProofOps.getDefaultInstance() : proofOps_;
} else {
return proofOpsBuilder_.getMessage();
}
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public Builder setProofOps(tendermint.crypto.ProofOuterClass.ProofOps value) {
if (proofOpsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofOps_ = value;
onChanged();
} else {
proofOpsBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public Builder setProofOps(
tendermint.crypto.ProofOuterClass.ProofOps.Builder builderForValue) {
if (proofOpsBuilder_ == null) {
proofOps_ = builderForValue.build();
onChanged();
} else {
proofOpsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public Builder mergeProofOps(tendermint.crypto.ProofOuterClass.ProofOps value) {
if (proofOpsBuilder_ == null) {
if (proofOps_ != null) {
proofOps_ =
tendermint.crypto.ProofOuterClass.ProofOps.newBuilder(proofOps_).mergeFrom(value).buildPartial();
} else {
proofOps_ = value;
}
onChanged();
} else {
proofOpsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public Builder clearProofOps() {
if (proofOpsBuilder_ == null) {
proofOps_ = null;
onChanged();
} else {
proofOps_ = null;
proofOpsBuilder_ = null;
}
return this;
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public tendermint.crypto.ProofOuterClass.ProofOps.Builder getProofOpsBuilder() {
onChanged();
return getProofOpsFieldBuilder().getBuilder();
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
public tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder getProofOpsOrBuilder() {
if (proofOpsBuilder_ != null) {
return proofOpsBuilder_.getMessageOrBuilder();
} else {
return proofOps_ == null ?
tendermint.crypto.ProofOuterClass.ProofOps.getDefaultInstance() : proofOps_;
}
}
/**
* .tendermint.crypto.ProofOps proof_ops = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.crypto.ProofOuterClass.ProofOps, tendermint.crypto.ProofOuterClass.ProofOps.Builder, tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder>
getProofOpsFieldBuilder() {
if (proofOpsBuilder_ == null) {
proofOpsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.crypto.ProofOuterClass.ProofOps, tendermint.crypto.ProofOuterClass.ProofOps.Builder, tendermint.crypto.ProofOuterClass.ProofOpsOrBuilder>(
getProofOps(),
getParentForChildren(),
isClean());
proofOps_ = null;
}
return proofOpsBuilder_;
}
private long height_ ;
/**
* int64 height = 9;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* int64 height = 9;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* int64 height = 9;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private java.lang.Object codespace_ = "";
/**
* string codespace = 10;
* @return The codespace.
*/
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string codespace = 10;
* @return The bytes for codespace.
*/
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string codespace = 10;
* @param value The codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codespace_ = value;
onChanged();
return this;
}
/**
* string codespace = 10;
* @return This builder for chaining.
*/
public Builder clearCodespace() {
codespace_ = getDefaultInstance().getCodespace();
onChanged();
return this;
}
/**
* string codespace = 10;
* @param value The bytes for codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codespace_ = 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:tendermint.abci.ResponseQuery)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseQuery)
private static final tendermint.abci.Types.ResponseQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseQuery();
}
public static tendermint.abci.Types.ResponseQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseQuery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseQuery(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 tendermint.abci.Types.ResponseQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseBeginBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseBeginBlock)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List
getEventsList();
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.Event getEvents(int index);
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
int getEventsCount();
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code tendermint.abci.ResponseBeginBlock}
*/
public static final class ResponseBeginBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseBeginBlock)
ResponseBeginBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseBeginBlock.newBuilder() to construct.
private ResponseBeginBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseBeginBlock() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseBeginBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseBeginBlock(
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)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(tendermint.abci.Types.Event.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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseBeginBlock.class, tendermint.abci.Types.ResponseBeginBlock.Builder.class);
}
public static final int EVENTS_FIELD_NUMBER = 1;
private java.util.List events_;
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.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 < events_.size(); i++) {
output.writeMessage(1, events_.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 < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, events_.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 tendermint.abci.Types.ResponseBeginBlock)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseBeginBlock other = (tendermint.abci.Types.ResponseBeginBlock) obj;
if (!getEventsList()
.equals(other.getEventsList())) 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 (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseBeginBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseBeginBlock 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 tendermint.abci.Types.ResponseBeginBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseBeginBlock 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 tendermint.abci.Types.ResponseBeginBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseBeginBlock 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(tendermint.abci.Types.ResponseBeginBlock 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 tendermint.abci.ResponseBeginBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseBeginBlock)
tendermint.abci.Types.ResponseBeginBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseBeginBlock.class, tendermint.abci.Types.ResponseBeginBlock.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseBeginBlock.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseBeginBlock_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlock getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlock build() {
tendermint.abci.Types.ResponseBeginBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseBeginBlock buildPartial() {
tendermint.abci.Types.ResponseBeginBlock result = new tendermint.abci.Types.ResponseBeginBlock(this);
int from_bitField0_ = bitField0_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.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 tendermint.abci.Types.ResponseBeginBlock) {
return mergeFrom((tendermint.abci.Types.ResponseBeginBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseBeginBlock other) {
if (other == tendermint.abci.Types.ResponseBeginBlock.getDefaultInstance()) return this;
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
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 {
tendermint.abci.Types.ResponseBeginBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseBeginBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder> eventsBuilder_;
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addAllEvents(
java.lang.Iterable extends tendermint.abci.Types.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@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:tendermint.abci.ResponseBeginBlock)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseBeginBlock)
private static final tendermint.abci.Types.ResponseBeginBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseBeginBlock();
}
public static tendermint.abci.Types.ResponseBeginBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseBeginBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseBeginBlock(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 tendermint.abci.Types.ResponseBeginBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseCheckTxOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseCheckTx)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 code = 1;
* @return The code.
*/
int getCode();
/**
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
java.lang.String getLog();
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
com.google.protobuf.ByteString
getLogBytes();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
java.lang.String getInfo();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
long getGasWanted();
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
long getGasUsed();
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List
getEventsList();
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.Event getEvents(int index);
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
int getEventsCount();
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index);
/**
* string codespace = 8;
* @return The codespace.
*/
java.lang.String getCodespace();
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
com.google.protobuf.ByteString
getCodespaceBytes();
}
/**
* Protobuf type {@code tendermint.abci.ResponseCheckTx}
*/
public static final class ResponseCheckTx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseCheckTx)
ResponseCheckTxOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseCheckTx.newBuilder() to construct.
private ResponseCheckTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseCheckTx() {
data_ = com.google.protobuf.ByteString.EMPTY;
log_ = "";
info_ = "";
events_ = java.util.Collections.emptyList();
codespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseCheckTx();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseCheckTx(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
code_ = input.readUInt32();
break;
}
case 18: {
data_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
log_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
info_ = s;
break;
}
case 40: {
gasWanted_ = input.readInt64();
break;
}
case 48: {
gasUsed_ = input.readInt64();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(tendermint.abci.Types.Event.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
codespace_ = 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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseCheckTx.class, tendermint.abci.Types.ResponseCheckTx.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int LOG_FIELD_NUMBER = 3;
private volatile java.lang.Object log_;
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
@java.lang.Override
public java.lang.String getLog() {
java.lang.Object ref = log_;
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();
log_ = s;
return s;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFO_FIELD_NUMBER = 4;
private volatile java.lang.Object info_;
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GAS_WANTED_FIELD_NUMBER = 5;
private long gasWanted_;
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
@java.lang.Override
public long getGasWanted() {
return gasWanted_;
}
public static final int GAS_USED_FIELD_NUMBER = 6;
private long gasUsed_;
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
public static final int EVENTS_FIELD_NUMBER = 7;
private java.util.List events_;
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int CODESPACE_FIELD_NUMBER = 8;
private volatile java.lang.Object codespace_;
/**
* string codespace = 8;
* @return The codespace.
*/
@java.lang.Override
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
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();
codespace_ = s;
return s;
}
}
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (!getLogBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_);
}
if (!getInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_);
}
if (gasWanted_ != 0L) {
output.writeInt64(5, gasWanted_);
}
if (gasUsed_ != 0L) {
output.writeInt64(6, gasUsed_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(7, events_.get(i));
}
if (!getCodespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codespace_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, code_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (!getLogBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_);
}
if (!getInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_);
}
if (gasWanted_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, gasWanted_);
}
if (gasUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, gasUsed_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, events_.get(i));
}
if (!getCodespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codespace_);
}
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 tendermint.abci.Types.ResponseCheckTx)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseCheckTx other = (tendermint.abci.Types.ResponseCheckTx) obj;
if (getCode()
!= other.getCode()) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getLog()
.equals(other.getLog())) return false;
if (!getInfo()
.equals(other.getInfo())) return false;
if (getGasWanted()
!= other.getGasWanted()) return false;
if (getGasUsed()
!= other.getGasUsed()) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!getCodespace()
.equals(other.getCodespace())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasWanted());
hash = (37 * hash) + GAS_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasUsed());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (37 * hash) + CODESPACE_FIELD_NUMBER;
hash = (53 * hash) + getCodespace().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCheckTx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCheckTx 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 tendermint.abci.Types.ResponseCheckTx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCheckTx 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 tendermint.abci.Types.ResponseCheckTx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCheckTx 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(tendermint.abci.Types.ResponseCheckTx 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 tendermint.abci.ResponseCheckTx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseCheckTx)
tendermint.abci.Types.ResponseCheckTxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseCheckTx.class, tendermint.abci.Types.ResponseCheckTx.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseCheckTx.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
code_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
log_ = "";
info_ = "";
gasWanted_ = 0L;
gasUsed_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
codespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCheckTx_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTx getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseCheckTx.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTx build() {
tendermint.abci.Types.ResponseCheckTx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseCheckTx buildPartial() {
tendermint.abci.Types.ResponseCheckTx result = new tendermint.abci.Types.ResponseCheckTx(this);
int from_bitField0_ = bitField0_;
result.code_ = code_;
result.data_ = data_;
result.log_ = log_;
result.info_ = info_;
result.gasWanted_ = gasWanted_;
result.gasUsed_ = gasUsed_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
result.codespace_ = codespace_;
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 tendermint.abci.Types.ResponseCheckTx) {
return mergeFrom((tendermint.abci.Types.ResponseCheckTx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseCheckTx other) {
if (other == tendermint.abci.Types.ResponseCheckTx.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getLog().isEmpty()) {
log_ = other.log_;
onChanged();
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
onChanged();
}
if (other.getGasWanted() != 0L) {
setGasWanted(other.getGasWanted());
}
if (other.getGasUsed() != 0L) {
setGasUsed(other.getGasUsed());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
if (!other.getCodespace().isEmpty()) {
codespace_ = other.codespace_;
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 {
tendermint.abci.Types.ResponseCheckTx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseCheckTx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int code_ ;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* uint32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* uint32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object log_ = "";
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
public java.lang.String getLog() {
java.lang.Object ref = log_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
log_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @param value The log to set.
* @return This builder for chaining.
*/
public Builder setLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return This builder for chaining.
*/
public Builder clearLog() {
log_ = getDefaultInstance().getLog();
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @param value The bytes for log to set.
* @return This builder for chaining.
*/
public Builder setLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
log_ = value;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
onChanged();
return this;
}
private long gasWanted_ ;
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
@java.lang.Override
public long getGasWanted() {
return gasWanted_;
}
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @param value The gasWanted to set.
* @return This builder for chaining.
*/
public Builder setGasWanted(long value) {
gasWanted_ = value;
onChanged();
return this;
}
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return This builder for chaining.
*/
public Builder clearGasWanted() {
gasWanted_ = 0L;
onChanged();
return this;
}
private long gasUsed_ ;
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @param value The gasUsed to set.
* @return This builder for chaining.
*/
public Builder setGasUsed(long value) {
gasUsed_ = value;
onChanged();
return this;
}
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return This builder for chaining.
*/
public Builder clearGasUsed() {
gasUsed_ = 0L;
onChanged();
return this;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder> eventsBuilder_;
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addAllEvents(
java.lang.Iterable extends tendermint.abci.Types.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
private java.lang.Object codespace_ = "";
/**
* string codespace = 8;
* @return The codespace.
*/
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string codespace = 8;
* @param value The codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codespace_ = value;
onChanged();
return this;
}
/**
* string codespace = 8;
* @return This builder for chaining.
*/
public Builder clearCodespace() {
codespace_ = getDefaultInstance().getCodespace();
onChanged();
return this;
}
/**
* string codespace = 8;
* @param value The bytes for codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codespace_ = 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:tendermint.abci.ResponseCheckTx)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseCheckTx)
private static final tendermint.abci.Types.ResponseCheckTx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseCheckTx();
}
public static tendermint.abci.Types.ResponseCheckTx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseCheckTx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseCheckTx(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 tendermint.abci.Types.ResponseCheckTx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseDeliverTxOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseDeliverTx)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 code = 1;
* @return The code.
*/
int getCode();
/**
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
java.lang.String getLog();
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
com.google.protobuf.ByteString
getLogBytes();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
java.lang.String getInfo();
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
long getGasWanted();
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
long getGasUsed();
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List
getEventsList();
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.Event getEvents(int index);
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
int getEventsCount();
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList();
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index);
/**
* string codespace = 8;
* @return The codespace.
*/
java.lang.String getCodespace();
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
com.google.protobuf.ByteString
getCodespaceBytes();
}
/**
* Protobuf type {@code tendermint.abci.ResponseDeliverTx}
*/
public static final class ResponseDeliverTx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseDeliverTx)
ResponseDeliverTxOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseDeliverTx.newBuilder() to construct.
private ResponseDeliverTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseDeliverTx() {
data_ = com.google.protobuf.ByteString.EMPTY;
log_ = "";
info_ = "";
events_ = java.util.Collections.emptyList();
codespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseDeliverTx();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseDeliverTx(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
code_ = input.readUInt32();
break;
}
case 18: {
data_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
log_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
info_ = s;
break;
}
case 40: {
gasWanted_ = input.readInt64();
break;
}
case 48: {
gasUsed_ = input.readInt64();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(tendermint.abci.Types.Event.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
codespace_ = 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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseDeliverTx.class, tendermint.abci.Types.ResponseDeliverTx.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int LOG_FIELD_NUMBER = 3;
private volatile java.lang.Object log_;
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
@java.lang.Override
public java.lang.String getLog() {
java.lang.Object ref = log_;
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();
log_ = s;
return s;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFO_FIELD_NUMBER = 4;
private volatile java.lang.Object info_;
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GAS_WANTED_FIELD_NUMBER = 5;
private long gasWanted_;
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
@java.lang.Override
public long getGasWanted() {
return gasWanted_;
}
public static final int GAS_USED_FIELD_NUMBER = 6;
private long gasUsed_;
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
public static final int EVENTS_FIELD_NUMBER = 7;
private java.util.List events_;
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.Event getEvents(int index) {
return events_.get(index);
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int CODESPACE_FIELD_NUMBER = 8;
private volatile java.lang.Object codespace_;
/**
* string codespace = 8;
* @return The codespace.
*/
@java.lang.Override
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
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();
codespace_ = s;
return s;
}
}
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (!getLogBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, log_);
}
if (!getInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_);
}
if (gasWanted_ != 0L) {
output.writeInt64(5, gasWanted_);
}
if (gasUsed_ != 0L) {
output.writeInt64(6, gasUsed_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(7, events_.get(i));
}
if (!getCodespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codespace_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, code_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (!getLogBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, log_);
}
if (!getInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_);
}
if (gasWanted_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, gasWanted_);
}
if (gasUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, gasUsed_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, events_.get(i));
}
if (!getCodespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codespace_);
}
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 tendermint.abci.Types.ResponseDeliverTx)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseDeliverTx other = (tendermint.abci.Types.ResponseDeliverTx) obj;
if (getCode()
!= other.getCode()) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getLog()
.equals(other.getLog())) return false;
if (!getInfo()
.equals(other.getInfo())) return false;
if (getGasWanted()
!= other.getGasWanted()) return false;
if (getGasUsed()
!= other.getGasUsed()) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!getCodespace()
.equals(other.getCodespace())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + GAS_WANTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasWanted());
hash = (37 * hash) + GAS_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasUsed());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (37 * hash) + CODESPACE_FIELD_NUMBER;
hash = (53 * hash) + getCodespace().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseDeliverTx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseDeliverTx 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 tendermint.abci.Types.ResponseDeliverTx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseDeliverTx 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 tendermint.abci.Types.ResponseDeliverTx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseDeliverTx 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(tendermint.abci.Types.ResponseDeliverTx 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 tendermint.abci.ResponseDeliverTx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseDeliverTx)
tendermint.abci.Types.ResponseDeliverTxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseDeliverTx.class, tendermint.abci.Types.ResponseDeliverTx.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseDeliverTx.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
code_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
log_ = "";
info_ = "";
gasWanted_ = 0L;
gasUsed_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
codespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseDeliverTx_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTx getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTx build() {
tendermint.abci.Types.ResponseDeliverTx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseDeliverTx buildPartial() {
tendermint.abci.Types.ResponseDeliverTx result = new tendermint.abci.Types.ResponseDeliverTx(this);
int from_bitField0_ = bitField0_;
result.code_ = code_;
result.data_ = data_;
result.log_ = log_;
result.info_ = info_;
result.gasWanted_ = gasWanted_;
result.gasUsed_ = gasUsed_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
result.codespace_ = codespace_;
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 tendermint.abci.Types.ResponseDeliverTx) {
return mergeFrom((tendermint.abci.Types.ResponseDeliverTx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseDeliverTx other) {
if (other == tendermint.abci.Types.ResponseDeliverTx.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getLog().isEmpty()) {
log_ = other.log_;
onChanged();
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
onChanged();
}
if (other.getGasWanted() != 0L) {
setGasWanted(other.getGasWanted());
}
if (other.getGasUsed() != 0L) {
setGasUsed(other.getGasUsed());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
if (!other.getCodespace().isEmpty()) {
codespace_ = other.codespace_;
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 {
tendermint.abci.Types.ResponseDeliverTx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseDeliverTx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int code_ ;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* uint32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* uint32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object log_ = "";
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The log.
*/
public java.lang.String getLog() {
java.lang.Object ref = log_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
log_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return The bytes for log.
*/
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @param value The log to set.
* @return This builder for chaining.
*/
public Builder setLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @return This builder for chaining.
*/
public Builder clearLog() {
log_ = getDefaultInstance().getLog();
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string log = 3;
* @param value The bytes for log to set.
* @return This builder for chaining.
*/
public Builder setLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
log_ = value;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
*
* nondeterministic
*
*
* string info = 4;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
onChanged();
return this;
}
private long gasWanted_ ;
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return The gasWanted.
*/
@java.lang.Override
public long getGasWanted() {
return gasWanted_;
}
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @param value The gasWanted to set.
* @return This builder for chaining.
*/
public Builder setGasWanted(long value) {
gasWanted_ = value;
onChanged();
return this;
}
/**
* int64 gas_wanted = 5 [json_name = "gas_wanted"];
* @return This builder for chaining.
*/
public Builder clearGasWanted() {
gasWanted_ = 0L;
onChanged();
return this;
}
private long gasUsed_ ;
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @param value The gasUsed to set.
* @return This builder for chaining.
*/
public Builder setGasUsed(long value) {
gasUsed_ = value;
onChanged();
return this;
}
/**
* int64 gas_used = 6 [json_name = "gas_used"];
* @return This builder for chaining.
*/
public Builder clearGasUsed() {
gasUsed_ = 0L;
onChanged();
return this;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder> eventsBuilder_;
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addAllEvents(
java.lang.Iterable extends tendermint.abci.Types.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
tendermint.abci.Types.Event.getDefaultInstance());
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Event.getDefaultInstance());
}
/**
*
* nondeterministic
*
*
* repeated .tendermint.abci.Event events = 7 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
private java.lang.Object codespace_ = "";
/**
* string codespace = 8;
* @return The codespace.
*/
public java.lang.String getCodespace() {
java.lang.Object ref = codespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string codespace = 8;
* @return The bytes for codespace.
*/
public com.google.protobuf.ByteString
getCodespaceBytes() {
java.lang.Object ref = codespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string codespace = 8;
* @param value The codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codespace_ = value;
onChanged();
return this;
}
/**
* string codespace = 8;
* @return This builder for chaining.
*/
public Builder clearCodespace() {
codespace_ = getDefaultInstance().getCodespace();
onChanged();
return this;
}
/**
* string codespace = 8;
* @param value The bytes for codespace to set.
* @return This builder for chaining.
*/
public Builder setCodespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codespace_ = 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:tendermint.abci.ResponseDeliverTx)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseDeliverTx)
private static final tendermint.abci.Types.ResponseDeliverTx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseDeliverTx();
}
public static tendermint.abci.Types.ResponseDeliverTx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseDeliverTx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseDeliverTx(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 tendermint.abci.Types.ResponseDeliverTx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseEndBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseEndBlock)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getValidatorUpdatesList();
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdate getValidatorUpdates(int index);
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
int getValidatorUpdatesCount();
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorUpdatesOrBuilderList();
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder(
int index);
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return Whether the consensusParamUpdates field is set.
*/
boolean hasConsensusParamUpdates();
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return The consensusParamUpdates.
*/
tendermint.abci.Types.ConsensusParams getConsensusParamUpdates();
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder();
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List
getEventsList();
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.Event getEvents(int index);
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
int getEventsCount();
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code tendermint.abci.ResponseEndBlock}
*/
public static final class ResponseEndBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseEndBlock)
ResponseEndBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseEndBlock.newBuilder() to construct.
private ResponseEndBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseEndBlock() {
validatorUpdates_ = java.util.Collections.emptyList();
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseEndBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseEndBlock(
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)) {
validatorUpdates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
validatorUpdates_.add(
input.readMessage(tendermint.abci.Types.ValidatorUpdate.parser(), extensionRegistry));
break;
}
case 18: {
tendermint.abci.Types.ConsensusParams.Builder subBuilder = null;
if (consensusParamUpdates_ != null) {
subBuilder = consensusParamUpdates_.toBuilder();
}
consensusParamUpdates_ = input.readMessage(tendermint.abci.Types.ConsensusParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusParamUpdates_);
consensusParamUpdates_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
events_.add(
input.readMessage(tendermint.abci.Types.Event.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)) {
validatorUpdates_ = java.util.Collections.unmodifiableList(validatorUpdates_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseEndBlock.class, tendermint.abci.Types.ResponseEndBlock.Builder.class);
}
public static final int VALIDATOR_UPDATES_FIELD_NUMBER = 1;
private java.util.List validatorUpdates_;
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getValidatorUpdatesList() {
return validatorUpdates_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorUpdatesOrBuilderList() {
return validatorUpdates_;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getValidatorUpdatesCount() {
return validatorUpdates_.size();
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdate getValidatorUpdates(int index) {
return validatorUpdates_.get(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder(
int index) {
return validatorUpdates_.get(index);
}
public static final int CONSENSUS_PARAM_UPDATES_FIELD_NUMBER = 2;
private tendermint.abci.Types.ConsensusParams consensusParamUpdates_;
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return Whether the consensusParamUpdates field is set.
*/
@java.lang.Override
public boolean hasConsensusParamUpdates() {
return consensusParamUpdates_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return The consensusParamUpdates.
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParams getConsensusParamUpdates() {
return consensusParamUpdates_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParamUpdates_;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
@java.lang.Override
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder() {
return getConsensusParamUpdates();
}
public static final int EVENTS_FIELD_NUMBER = 3;
private java.util.List events_;
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
@java.lang.Override
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.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 < validatorUpdates_.size(); i++) {
output.writeMessage(1, validatorUpdates_.get(i));
}
if (consensusParamUpdates_ != null) {
output.writeMessage(2, getConsensusParamUpdates());
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(3, events_.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 < validatorUpdates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, validatorUpdates_.get(i));
}
if (consensusParamUpdates_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConsensusParamUpdates());
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, events_.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 tendermint.abci.Types.ResponseEndBlock)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseEndBlock other = (tendermint.abci.Types.ResponseEndBlock) obj;
if (!getValidatorUpdatesList()
.equals(other.getValidatorUpdatesList())) return false;
if (hasConsensusParamUpdates() != other.hasConsensusParamUpdates()) return false;
if (hasConsensusParamUpdates()) {
if (!getConsensusParamUpdates()
.equals(other.getConsensusParamUpdates())) return false;
}
if (!getEventsList()
.equals(other.getEventsList())) 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 (getValidatorUpdatesCount() > 0) {
hash = (37 * hash) + VALIDATOR_UPDATES_FIELD_NUMBER;
hash = (53 * hash) + getValidatorUpdatesList().hashCode();
}
if (hasConsensusParamUpdates()) {
hash = (37 * hash) + CONSENSUS_PARAM_UPDATES_FIELD_NUMBER;
hash = (53 * hash) + getConsensusParamUpdates().hashCode();
}
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseEndBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEndBlock 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 tendermint.abci.Types.ResponseEndBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEndBlock 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 tendermint.abci.Types.ResponseEndBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseEndBlock 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(tendermint.abci.Types.ResponseEndBlock 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 tendermint.abci.ResponseEndBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseEndBlock)
tendermint.abci.Types.ResponseEndBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseEndBlock.class, tendermint.abci.Types.ResponseEndBlock.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseEndBlock.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValidatorUpdatesFieldBuilder();
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (validatorUpdatesBuilder_ == null) {
validatorUpdates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
validatorUpdatesBuilder_.clear();
}
if (consensusParamUpdatesBuilder_ == null) {
consensusParamUpdates_ = null;
} else {
consensusParamUpdates_ = null;
consensusParamUpdatesBuilder_ = null;
}
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseEndBlock_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlock getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseEndBlock.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlock build() {
tendermint.abci.Types.ResponseEndBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseEndBlock buildPartial() {
tendermint.abci.Types.ResponseEndBlock result = new tendermint.abci.Types.ResponseEndBlock(this);
int from_bitField0_ = bitField0_;
if (validatorUpdatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
validatorUpdates_ = java.util.Collections.unmodifiableList(validatorUpdates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validatorUpdates_ = validatorUpdates_;
} else {
result.validatorUpdates_ = validatorUpdatesBuilder_.build();
}
if (consensusParamUpdatesBuilder_ == null) {
result.consensusParamUpdates_ = consensusParamUpdates_;
} else {
result.consensusParamUpdates_ = consensusParamUpdatesBuilder_.build();
}
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.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 tendermint.abci.Types.ResponseEndBlock) {
return mergeFrom((tendermint.abci.Types.ResponseEndBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseEndBlock other) {
if (other == tendermint.abci.Types.ResponseEndBlock.getDefaultInstance()) return this;
if (validatorUpdatesBuilder_ == null) {
if (!other.validatorUpdates_.isEmpty()) {
if (validatorUpdates_.isEmpty()) {
validatorUpdates_ = other.validatorUpdates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidatorUpdatesIsMutable();
validatorUpdates_.addAll(other.validatorUpdates_);
}
onChanged();
}
} else {
if (!other.validatorUpdates_.isEmpty()) {
if (validatorUpdatesBuilder_.isEmpty()) {
validatorUpdatesBuilder_.dispose();
validatorUpdatesBuilder_ = null;
validatorUpdates_ = other.validatorUpdates_;
bitField0_ = (bitField0_ & ~0x00000001);
validatorUpdatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorUpdatesFieldBuilder() : null;
} else {
validatorUpdatesBuilder_.addAllMessages(other.validatorUpdates_);
}
}
}
if (other.hasConsensusParamUpdates()) {
mergeConsensusParamUpdates(other.getConsensusParamUpdates());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000002);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
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 {
tendermint.abci.Types.ResponseEndBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseEndBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List validatorUpdates_ =
java.util.Collections.emptyList();
private void ensureValidatorUpdatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validatorUpdates_ = new java.util.ArrayList(validatorUpdates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder> validatorUpdatesBuilder_;
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getValidatorUpdatesList() {
if (validatorUpdatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(validatorUpdates_);
} else {
return validatorUpdatesBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public int getValidatorUpdatesCount() {
if (validatorUpdatesBuilder_ == null) {
return validatorUpdates_.size();
} else {
return validatorUpdatesBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate getValidatorUpdates(int index) {
if (validatorUpdatesBuilder_ == null) {
return validatorUpdates_.get(index);
} else {
return validatorUpdatesBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder setValidatorUpdates(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorUpdatesIsMutable();
validatorUpdates_.set(index, value);
onChanged();
} else {
validatorUpdatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder setValidatorUpdates(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorUpdatesBuilder_ == null) {
ensureValidatorUpdatesIsMutable();
validatorUpdates_.set(index, builderForValue.build());
onChanged();
} else {
validatorUpdatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder addValidatorUpdates(tendermint.abci.Types.ValidatorUpdate value) {
if (validatorUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorUpdatesIsMutable();
validatorUpdates_.add(value);
onChanged();
} else {
validatorUpdatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder addValidatorUpdates(
int index, tendermint.abci.Types.ValidatorUpdate value) {
if (validatorUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorUpdatesIsMutable();
validatorUpdates_.add(index, value);
onChanged();
} else {
validatorUpdatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder addValidatorUpdates(
tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorUpdatesBuilder_ == null) {
ensureValidatorUpdatesIsMutable();
validatorUpdates_.add(builderForValue.build());
onChanged();
} else {
validatorUpdatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder addValidatorUpdates(
int index, tendermint.abci.Types.ValidatorUpdate.Builder builderForValue) {
if (validatorUpdatesBuilder_ == null) {
ensureValidatorUpdatesIsMutable();
validatorUpdates_.add(index, builderForValue.build());
onChanged();
} else {
validatorUpdatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllValidatorUpdates(
java.lang.Iterable extends tendermint.abci.Types.ValidatorUpdate> values) {
if (validatorUpdatesBuilder_ == null) {
ensureValidatorUpdatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validatorUpdates_);
onChanged();
} else {
validatorUpdatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearValidatorUpdates() {
if (validatorUpdatesBuilder_ == null) {
validatorUpdates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
validatorUpdatesBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeValidatorUpdates(int index) {
if (validatorUpdatesBuilder_ == null) {
ensureValidatorUpdatesIsMutable();
validatorUpdates_.remove(index);
onChanged();
} else {
validatorUpdatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder getValidatorUpdatesBuilder(
int index) {
return getValidatorUpdatesFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdateOrBuilder getValidatorUpdatesOrBuilder(
int index) {
if (validatorUpdatesBuilder_ == null) {
return validatorUpdates_.get(index); } else {
return validatorUpdatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorUpdatesOrBuilderList() {
if (validatorUpdatesBuilder_ != null) {
return validatorUpdatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validatorUpdates_);
}
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorUpdatesBuilder() {
return getValidatorUpdatesFieldBuilder().addBuilder(
tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.abci.Types.ValidatorUpdate.Builder addValidatorUpdatesBuilder(
int index) {
return getValidatorUpdatesFieldBuilder().addBuilder(
index, tendermint.abci.Types.ValidatorUpdate.getDefaultInstance());
}
/**
* repeated .tendermint.abci.ValidatorUpdate validator_updates = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getValidatorUpdatesBuilderList() {
return getValidatorUpdatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>
getValidatorUpdatesFieldBuilder() {
if (validatorUpdatesBuilder_ == null) {
validatorUpdatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.ValidatorUpdate, tendermint.abci.Types.ValidatorUpdate.Builder, tendermint.abci.Types.ValidatorUpdateOrBuilder>(
validatorUpdates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
validatorUpdates_ = null;
}
return validatorUpdatesBuilder_;
}
private tendermint.abci.Types.ConsensusParams consensusParamUpdates_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder> consensusParamUpdatesBuilder_;
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return Whether the consensusParamUpdates field is set.
*/
public boolean hasConsensusParamUpdates() {
return consensusParamUpdatesBuilder_ != null || consensusParamUpdates_ != null;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
* @return The consensusParamUpdates.
*/
public tendermint.abci.Types.ConsensusParams getConsensusParamUpdates() {
if (consensusParamUpdatesBuilder_ == null) {
return consensusParamUpdates_ == null ? tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParamUpdates_;
} else {
return consensusParamUpdatesBuilder_.getMessage();
}
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public Builder setConsensusParamUpdates(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusParamUpdates_ = value;
onChanged();
} else {
consensusParamUpdatesBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public Builder setConsensusParamUpdates(
tendermint.abci.Types.ConsensusParams.Builder builderForValue) {
if (consensusParamUpdatesBuilder_ == null) {
consensusParamUpdates_ = builderForValue.build();
onChanged();
} else {
consensusParamUpdatesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public Builder mergeConsensusParamUpdates(tendermint.abci.Types.ConsensusParams value) {
if (consensusParamUpdatesBuilder_ == null) {
if (consensusParamUpdates_ != null) {
consensusParamUpdates_ =
tendermint.abci.Types.ConsensusParams.newBuilder(consensusParamUpdates_).mergeFrom(value).buildPartial();
} else {
consensusParamUpdates_ = value;
}
onChanged();
} else {
consensusParamUpdatesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public Builder clearConsensusParamUpdates() {
if (consensusParamUpdatesBuilder_ == null) {
consensusParamUpdates_ = null;
onChanged();
} else {
consensusParamUpdates_ = null;
consensusParamUpdatesBuilder_ = null;
}
return this;
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public tendermint.abci.Types.ConsensusParams.Builder getConsensusParamUpdatesBuilder() {
onChanged();
return getConsensusParamUpdatesFieldBuilder().getBuilder();
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
public tendermint.abci.Types.ConsensusParamsOrBuilder getConsensusParamUpdatesOrBuilder() {
if (consensusParamUpdatesBuilder_ != null) {
return consensusParamUpdatesBuilder_.getMessageOrBuilder();
} else {
return consensusParamUpdates_ == null ?
tendermint.abci.Types.ConsensusParams.getDefaultInstance() : consensusParamUpdates_;
}
}
/**
* .tendermint.abci.ConsensusParams consensus_param_updates = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>
getConsensusParamUpdatesFieldBuilder() {
if (consensusParamUpdatesBuilder_ == null) {
consensusParamUpdatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.ConsensusParams, tendermint.abci.Types.ConsensusParams.Builder, tendermint.abci.Types.ConsensusParamsOrBuilder>(
getConsensusParamUpdates(),
getParentForChildren(),
isClean());
consensusParamUpdates_ = null;
}
return consensusParamUpdatesBuilder_;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder> eventsBuilder_;
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder setEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addEvents(
int index, tendermint.abci.Types.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder addAllEvents(
java.lang.Iterable extends tendermint.abci.Types.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List extends tendermint.abci.Types.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public tendermint.abci.Types.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Event.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Event events = 3 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "events,omitempty"];
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Event, tendermint.abci.Types.Event.Builder, tendermint.abci.Types.EventOrBuilder>(
events_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@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:tendermint.abci.ResponseEndBlock)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseEndBlock)
private static final tendermint.abci.Types.ResponseEndBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseEndBlock();
}
public static tendermint.abci.Types.ResponseEndBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseEndBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseEndBlock(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 tendermint.abci.Types.ResponseEndBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseCommitOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseCommit)
com.google.protobuf.MessageOrBuilder {
/**
*
* reserve 1
*
*
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
* int64 retain_height = 3;
* @return The retainHeight.
*/
long getRetainHeight();
}
/**
* Protobuf type {@code tendermint.abci.ResponseCommit}
*/
public static final class ResponseCommit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseCommit)
ResponseCommitOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseCommit.newBuilder() to construct.
private ResponseCommit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseCommit() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseCommit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseCommit(
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 18: {
data_ = input.readBytes();
break;
}
case 24: {
retainHeight_ = input.readInt64();
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 tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseCommit.class, tendermint.abci.Types.ResponseCommit.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
*
* reserve 1
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int RETAIN_HEIGHT_FIELD_NUMBER = 3;
private long retainHeight_;
/**
* int64 retain_height = 3;
* @return The retainHeight.
*/
@java.lang.Override
public long getRetainHeight() {
return retainHeight_;
}
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 (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (retainHeight_ != 0L) {
output.writeInt64(3, retainHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (retainHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, retainHeight_);
}
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 tendermint.abci.Types.ResponseCommit)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseCommit other = (tendermint.abci.Types.ResponseCommit) obj;
if (!getData()
.equals(other.getData())) return false;
if (getRetainHeight()
!= other.getRetainHeight()) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + RETAIN_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRetainHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseCommit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseCommit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCommit 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 tendermint.abci.Types.ResponseCommit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCommit 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 tendermint.abci.Types.ResponseCommit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseCommit 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(tendermint.abci.Types.ResponseCommit 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 tendermint.abci.ResponseCommit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseCommit)
tendermint.abci.Types.ResponseCommitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseCommit.class, tendermint.abci.Types.ResponseCommit.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseCommit.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();
data_ = com.google.protobuf.ByteString.EMPTY;
retainHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseCommit_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseCommit getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseCommit.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseCommit build() {
tendermint.abci.Types.ResponseCommit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseCommit buildPartial() {
tendermint.abci.Types.ResponseCommit result = new tendermint.abci.Types.ResponseCommit(this);
result.data_ = data_;
result.retainHeight_ = retainHeight_;
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 tendermint.abci.Types.ResponseCommit) {
return mergeFrom((tendermint.abci.Types.ResponseCommit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseCommit other) {
if (other == tendermint.abci.Types.ResponseCommit.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.getRetainHeight() != 0L) {
setRetainHeight(other.getRetainHeight());
}
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 {
tendermint.abci.Types.ResponseCommit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseCommit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* reserve 1
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* reserve 1
*
*
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* reserve 1
*
*
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private long retainHeight_ ;
/**
* int64 retain_height = 3;
* @return The retainHeight.
*/
@java.lang.Override
public long getRetainHeight() {
return retainHeight_;
}
/**
* int64 retain_height = 3;
* @param value The retainHeight to set.
* @return This builder for chaining.
*/
public Builder setRetainHeight(long value) {
retainHeight_ = value;
onChanged();
return this;
}
/**
* int64 retain_height = 3;
* @return This builder for chaining.
*/
public Builder clearRetainHeight() {
retainHeight_ = 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:tendermint.abci.ResponseCommit)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseCommit)
private static final tendermint.abci.Types.ResponseCommit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseCommit();
}
public static tendermint.abci.Types.ResponseCommit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseCommit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseCommit(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 tendermint.abci.Types.ResponseCommit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseListSnapshotsOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseListSnapshots)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
java.util.List
getSnapshotsList();
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
tendermint.abci.Types.Snapshot getSnapshots(int index);
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
int getSnapshotsCount();
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
java.util.List extends tendermint.abci.Types.SnapshotOrBuilder>
getSnapshotsOrBuilderList();
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
tendermint.abci.Types.SnapshotOrBuilder getSnapshotsOrBuilder(
int index);
}
/**
* Protobuf type {@code tendermint.abci.ResponseListSnapshots}
*/
public static final class ResponseListSnapshots extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseListSnapshots)
ResponseListSnapshotsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseListSnapshots.newBuilder() to construct.
private ResponseListSnapshots(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseListSnapshots() {
snapshots_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseListSnapshots();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseListSnapshots(
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)) {
snapshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
snapshots_.add(
input.readMessage(tendermint.abci.Types.Snapshot.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)) {
snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseListSnapshots.class, tendermint.abci.Types.ResponseListSnapshots.Builder.class);
}
public static final int SNAPSHOTS_FIELD_NUMBER = 1;
private java.util.List snapshots_;
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
@java.lang.Override
public java.util.List getSnapshotsList() {
return snapshots_;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
@java.lang.Override
public java.util.List extends tendermint.abci.Types.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
return snapshots_;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
@java.lang.Override
public int getSnapshotsCount() {
return snapshots_.size();
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
@java.lang.Override
public tendermint.abci.Types.Snapshot getSnapshots(int index) {
return snapshots_.get(index);
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
@java.lang.Override
public tendermint.abci.Types.SnapshotOrBuilder getSnapshotsOrBuilder(
int index) {
return snapshots_.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 < snapshots_.size(); i++) {
output.writeMessage(1, snapshots_.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 < snapshots_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, snapshots_.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 tendermint.abci.Types.ResponseListSnapshots)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseListSnapshots other = (tendermint.abci.Types.ResponseListSnapshots) obj;
if (!getSnapshotsList()
.equals(other.getSnapshotsList())) 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 (getSnapshotsCount() > 0) {
hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseListSnapshots parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseListSnapshots 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 tendermint.abci.Types.ResponseListSnapshots parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseListSnapshots 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 tendermint.abci.Types.ResponseListSnapshots parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseListSnapshots 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(tendermint.abci.Types.ResponseListSnapshots 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 tendermint.abci.ResponseListSnapshots}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseListSnapshots)
tendermint.abci.Types.ResponseListSnapshotsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseListSnapshots.class, tendermint.abci.Types.ResponseListSnapshots.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseListSnapshots.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSnapshotsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (snapshotsBuilder_ == null) {
snapshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
snapshotsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseListSnapshots_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshots getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshots build() {
tendermint.abci.Types.ResponseListSnapshots result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseListSnapshots buildPartial() {
tendermint.abci.Types.ResponseListSnapshots result = new tendermint.abci.Types.ResponseListSnapshots(this);
int from_bitField0_ = bitField0_;
if (snapshotsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.snapshots_ = snapshots_;
} else {
result.snapshots_ = snapshotsBuilder_.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 tendermint.abci.Types.ResponseListSnapshots) {
return mergeFrom((tendermint.abci.Types.ResponseListSnapshots)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseListSnapshots other) {
if (other == tendermint.abci.Types.ResponseListSnapshots.getDefaultInstance()) return this;
if (snapshotsBuilder_ == null) {
if (!other.snapshots_.isEmpty()) {
if (snapshots_.isEmpty()) {
snapshots_ = other.snapshots_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSnapshotsIsMutable();
snapshots_.addAll(other.snapshots_);
}
onChanged();
}
} else {
if (!other.snapshots_.isEmpty()) {
if (snapshotsBuilder_.isEmpty()) {
snapshotsBuilder_.dispose();
snapshotsBuilder_ = null;
snapshots_ = other.snapshots_;
bitField0_ = (bitField0_ & ~0x00000001);
snapshotsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSnapshotsFieldBuilder() : null;
} else {
snapshotsBuilder_.addAllMessages(other.snapshots_);
}
}
}
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 {
tendermint.abci.Types.ResponseListSnapshots parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseListSnapshots) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List snapshots_ =
java.util.Collections.emptyList();
private void ensureSnapshotsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
snapshots_ = new java.util.ArrayList(snapshots_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder> snapshotsBuilder_;
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public java.util.List getSnapshotsList() {
if (snapshotsBuilder_ == null) {
return java.util.Collections.unmodifiableList(snapshots_);
} else {
return snapshotsBuilder_.getMessageList();
}
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public int getSnapshotsCount() {
if (snapshotsBuilder_ == null) {
return snapshots_.size();
} else {
return snapshotsBuilder_.getCount();
}
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public tendermint.abci.Types.Snapshot getSnapshots(int index) {
if (snapshotsBuilder_ == null) {
return snapshots_.get(index);
} else {
return snapshotsBuilder_.getMessage(index);
}
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder setSnapshots(
int index, tendermint.abci.Types.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSnapshotsIsMutable();
snapshots_.set(index, value);
onChanged();
} else {
snapshotsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder setSnapshots(
int index, tendermint.abci.Types.Snapshot.Builder builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.set(index, builderForValue.build());
onChanged();
} else {
snapshotsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder addSnapshots(tendermint.abci.Types.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSnapshotsIsMutable();
snapshots_.add(value);
onChanged();
} else {
snapshotsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder addSnapshots(
int index, tendermint.abci.Types.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSnapshotsIsMutable();
snapshots_.add(index, value);
onChanged();
} else {
snapshotsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder addSnapshots(
tendermint.abci.Types.Snapshot.Builder builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.add(builderForValue.build());
onChanged();
} else {
snapshotsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder addSnapshots(
int index, tendermint.abci.Types.Snapshot.Builder builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.add(index, builderForValue.build());
onChanged();
} else {
snapshotsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder addAllSnapshots(
java.lang.Iterable extends tendermint.abci.Types.Snapshot> values) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, snapshots_);
onChanged();
} else {
snapshotsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder clearSnapshots() {
if (snapshotsBuilder_ == null) {
snapshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
snapshotsBuilder_.clear();
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public Builder removeSnapshots(int index) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.remove(index);
onChanged();
} else {
snapshotsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public tendermint.abci.Types.Snapshot.Builder getSnapshotsBuilder(
int index) {
return getSnapshotsFieldBuilder().getBuilder(index);
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public tendermint.abci.Types.SnapshotOrBuilder getSnapshotsOrBuilder(
int index) {
if (snapshotsBuilder_ == null) {
return snapshots_.get(index); } else {
return snapshotsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public java.util.List extends tendermint.abci.Types.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
if (snapshotsBuilder_ != null) {
return snapshotsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(snapshots_);
}
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public tendermint.abci.Types.Snapshot.Builder addSnapshotsBuilder() {
return getSnapshotsFieldBuilder().addBuilder(
tendermint.abci.Types.Snapshot.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public tendermint.abci.Types.Snapshot.Builder addSnapshotsBuilder(
int index) {
return getSnapshotsFieldBuilder().addBuilder(
index, tendermint.abci.Types.Snapshot.getDefaultInstance());
}
/**
* repeated .tendermint.abci.Snapshot snapshots = 1;
*/
public java.util.List
getSnapshotsBuilderList() {
return getSnapshotsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder>
getSnapshotsFieldBuilder() {
if (snapshotsBuilder_ == null) {
snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tendermint.abci.Types.Snapshot, tendermint.abci.Types.Snapshot.Builder, tendermint.abci.Types.SnapshotOrBuilder>(
snapshots_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
snapshots_ = null;
}
return snapshotsBuilder_;
}
@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:tendermint.abci.ResponseListSnapshots)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseListSnapshots)
private static final tendermint.abci.Types.ResponseListSnapshots DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseListSnapshots();
}
public static tendermint.abci.Types.ResponseListSnapshots getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseListSnapshots parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseListSnapshots(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 tendermint.abci.Types.ResponseListSnapshots getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOfferSnapshotOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseOfferSnapshot)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The result.
*/
tendermint.abci.Types.ResponseOfferSnapshot.Result getResult();
}
/**
* Protobuf type {@code tendermint.abci.ResponseOfferSnapshot}
*/
public static final class ResponseOfferSnapshot extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseOfferSnapshot)
ResponseOfferSnapshotOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseOfferSnapshot.newBuilder() to construct.
private ResponseOfferSnapshot(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseOfferSnapshot() {
result_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseOfferSnapshot();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseOfferSnapshot(
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: {
int rawValue = input.readEnum();
result_ = rawValue;
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 tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseOfferSnapshot.class, tendermint.abci.Types.ResponseOfferSnapshot.Builder.class);
}
/**
* Protobuf enum {@code tendermint.abci.ResponseOfferSnapshot.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Unknown result, abort all snapshot restoration
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* Snapshot accepted, apply chunks
*
*
* ACCEPT = 1;
*/
ACCEPT(1),
/**
*
* Abort all snapshot restoration
*
*
* ABORT = 2;
*/
ABORT(2),
/**
*
* Reject this specific snapshot, try others
*
*
* REJECT = 3;
*/
REJECT(3),
/**
*
* Reject all snapshots of this format, try others
*
*
* REJECT_FORMAT = 4;
*/
REJECT_FORMAT(4),
/**
*
* Reject all snapshots from the sender(s), try others
*
*
* REJECT_SENDER = 5;
*/
REJECT_SENDER(5),
UNRECOGNIZED(-1),
;
/**
*
* Unknown result, abort all snapshot restoration
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* Snapshot accepted, apply chunks
*
*
* ACCEPT = 1;
*/
public static final int ACCEPT_VALUE = 1;
/**
*
* Abort all snapshot restoration
*
*
* ABORT = 2;
*/
public static final int ABORT_VALUE = 2;
/**
*
* Reject this specific snapshot, try others
*
*
* REJECT = 3;
*/
public static final int REJECT_VALUE = 3;
/**
*
* Reject all snapshots of this format, try others
*
*
* REJECT_FORMAT = 4;
*/
public static final int REJECT_FORMAT_VALUE = 4;
/**
*
* Reject all snapshots from the sender(s), try others
*
*
* REJECT_SENDER = 5;
*/
public static final int REJECT_SENDER_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Result valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Result forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return ACCEPT;
case 2: return ABORT;
case 3: return REJECT;
case 4: return REJECT_FORMAT;
case 5: return REJECT_SENDER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tendermint.abci.Types.ResponseOfferSnapshot.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tendermint.abci.ResponseOfferSnapshot.Result)
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_;
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The result.
*/
@java.lang.Override public tendermint.abci.Types.ResponseOfferSnapshot.Result getResult() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.ResponseOfferSnapshot.Result result = tendermint.abci.Types.ResponseOfferSnapshot.Result.valueOf(result_);
return result == null ? tendermint.abci.Types.ResponseOfferSnapshot.Result.UNRECOGNIZED : result;
}
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 (result_ != tendermint.abci.Types.ResponseOfferSnapshot.Result.UNKNOWN.getNumber()) {
output.writeEnum(1, result_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != tendermint.abci.Types.ResponseOfferSnapshot.Result.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
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 tendermint.abci.Types.ResponseOfferSnapshot)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseOfferSnapshot other = (tendermint.abci.Types.ResponseOfferSnapshot) obj;
if (result_ != other.result_) 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) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseOfferSnapshot parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseOfferSnapshot 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 tendermint.abci.Types.ResponseOfferSnapshot parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseOfferSnapshot 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 tendermint.abci.Types.ResponseOfferSnapshot parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseOfferSnapshot 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(tendermint.abci.Types.ResponseOfferSnapshot 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 tendermint.abci.ResponseOfferSnapshot}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseOfferSnapshot)
tendermint.abci.Types.ResponseOfferSnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseOfferSnapshot.class, tendermint.abci.Types.ResponseOfferSnapshot.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseOfferSnapshot.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();
result_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseOfferSnapshot_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot build() {
tendermint.abci.Types.ResponseOfferSnapshot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot buildPartial() {
tendermint.abci.Types.ResponseOfferSnapshot result = new tendermint.abci.Types.ResponseOfferSnapshot(this);
result.result_ = result_;
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 tendermint.abci.Types.ResponseOfferSnapshot) {
return mergeFrom((tendermint.abci.Types.ResponseOfferSnapshot)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseOfferSnapshot other) {
if (other == tendermint.abci.Types.ResponseOfferSnapshot.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
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 {
tendermint.abci.Types.ResponseOfferSnapshot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseOfferSnapshot) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int result_ = 0;
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return The result.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseOfferSnapshot.Result getResult() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.ResponseOfferSnapshot.Result result = tendermint.abci.Types.ResponseOfferSnapshot.Result.valueOf(result_);
return result == null ? tendermint.abci.Types.ResponseOfferSnapshot.Result.UNRECOGNIZED : result;
}
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(tendermint.abci.Types.ResponseOfferSnapshot.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .tendermint.abci.ResponseOfferSnapshot.Result result = 1;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
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:tendermint.abci.ResponseOfferSnapshot)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseOfferSnapshot)
private static final tendermint.abci.Types.ResponseOfferSnapshot DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseOfferSnapshot();
}
public static tendermint.abci.Types.ResponseOfferSnapshot getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseOfferSnapshot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseOfferSnapshot(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 tendermint.abci.Types.ResponseOfferSnapshot getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseLoadSnapshotChunkOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseLoadSnapshotChunk)
com.google.protobuf.MessageOrBuilder {
/**
* bytes chunk = 1;
* @return The chunk.
*/
com.google.protobuf.ByteString getChunk();
}
/**
* Protobuf type {@code tendermint.abci.ResponseLoadSnapshotChunk}
*/
public static final class ResponseLoadSnapshotChunk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseLoadSnapshotChunk)
ResponseLoadSnapshotChunkOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseLoadSnapshotChunk.newBuilder() to construct.
private ResponseLoadSnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseLoadSnapshotChunk() {
chunk_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseLoadSnapshotChunk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseLoadSnapshotChunk(
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: {
chunk_ = 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 tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseLoadSnapshotChunk.class, tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder.class);
}
public static final int CHUNK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString chunk_;
/**
* bytes chunk = 1;
* @return The chunk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChunk() {
return chunk_;
}
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 (!chunk_.isEmpty()) {
output.writeBytes(1, chunk_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!chunk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, chunk_);
}
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 tendermint.abci.Types.ResponseLoadSnapshotChunk)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseLoadSnapshotChunk other = (tendermint.abci.Types.ResponseLoadSnapshotChunk) obj;
if (!getChunk()
.equals(other.getChunk())) 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) + CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getChunk().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk 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 tendermint.abci.Types.ResponseLoadSnapshotChunk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk 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 tendermint.abci.Types.ResponseLoadSnapshotChunk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk 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(tendermint.abci.Types.ResponseLoadSnapshotChunk 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 tendermint.abci.ResponseLoadSnapshotChunk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseLoadSnapshotChunk)
tendermint.abci.Types.ResponseLoadSnapshotChunkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseLoadSnapshotChunk.class, tendermint.abci.Types.ResponseLoadSnapshotChunk.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseLoadSnapshotChunk.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();
chunk_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseLoadSnapshotChunk_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunk getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunk build() {
tendermint.abci.Types.ResponseLoadSnapshotChunk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseLoadSnapshotChunk buildPartial() {
tendermint.abci.Types.ResponseLoadSnapshotChunk result = new tendermint.abci.Types.ResponseLoadSnapshotChunk(this);
result.chunk_ = chunk_;
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 tendermint.abci.Types.ResponseLoadSnapshotChunk) {
return mergeFrom((tendermint.abci.Types.ResponseLoadSnapshotChunk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseLoadSnapshotChunk other) {
if (other == tendermint.abci.Types.ResponseLoadSnapshotChunk.getDefaultInstance()) return this;
if (other.getChunk() != com.google.protobuf.ByteString.EMPTY) {
setChunk(other.getChunk());
}
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 {
tendermint.abci.Types.ResponseLoadSnapshotChunk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseLoadSnapshotChunk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString chunk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes chunk = 1;
* @return The chunk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChunk() {
return chunk_;
}
/**
* bytes chunk = 1;
* @param value The chunk to set.
* @return This builder for chaining.
*/
public Builder setChunk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
return this;
}
/**
* bytes chunk = 1;
* @return This builder for chaining.
*/
public Builder clearChunk() {
chunk_ = getDefaultInstance().getChunk();
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:tendermint.abci.ResponseLoadSnapshotChunk)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseLoadSnapshotChunk)
private static final tendermint.abci.Types.ResponseLoadSnapshotChunk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseLoadSnapshotChunk();
}
public static tendermint.abci.Types.ResponseLoadSnapshotChunk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseLoadSnapshotChunk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseLoadSnapshotChunk(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 tendermint.abci.Types.ResponseLoadSnapshotChunk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseApplySnapshotChunkOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ResponseApplySnapshotChunk)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The result.
*/
tendermint.abci.Types.ResponseApplySnapshotChunk.Result getResult();
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return A list containing the refetchChunks.
*/
java.util.List getRefetchChunksList();
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return The count of refetchChunks.
*/
int getRefetchChunksCount();
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param index The index of the element to return.
* @return The refetchChunks at the given index.
*/
int getRefetchChunks(int index);
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return A list containing the rejectSenders.
*/
java.util.List
getRejectSendersList();
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return The count of rejectSenders.
*/
int getRejectSendersCount();
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the element to return.
* @return The rejectSenders at the given index.
*/
java.lang.String getRejectSenders(int index);
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the value to return.
* @return The bytes of the rejectSenders at the given index.
*/
com.google.protobuf.ByteString
getRejectSendersBytes(int index);
}
/**
* Protobuf type {@code tendermint.abci.ResponseApplySnapshotChunk}
*/
public static final class ResponseApplySnapshotChunk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ResponseApplySnapshotChunk)
ResponseApplySnapshotChunkOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseApplySnapshotChunk.newBuilder() to construct.
private ResponseApplySnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseApplySnapshotChunk() {
result_ = 0;
refetchChunks_ = emptyIntList();
rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseApplySnapshotChunk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseApplySnapshotChunk(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
result_ = rawValue;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
refetchChunks_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
refetchChunks_.addInt(input.readUInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
refetchChunks_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
refetchChunks_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
rejectSenders_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
rejectSenders_.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)) {
refetchChunks_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
rejectSenders_ = rejectSenders_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseApplySnapshotChunk.class, tendermint.abci.Types.ResponseApplySnapshotChunk.Builder.class);
}
/**
* Protobuf enum {@code tendermint.abci.ResponseApplySnapshotChunk.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Unknown result, abort all snapshot restoration
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* Chunk successfully accepted
*
*
* ACCEPT = 1;
*/
ACCEPT(1),
/**
*
* Abort all snapshot restoration
*
*
* ABORT = 2;
*/
ABORT(2),
/**
*
* Retry chunk (combine with refetch and reject)
*
*
* RETRY = 3;
*/
RETRY(3),
/**
*
* Retry snapshot (combine with refetch and reject)
*
*
* RETRY_SNAPSHOT = 4;
*/
RETRY_SNAPSHOT(4),
/**
*
* Reject this snapshot, try others
*
*
* REJECT_SNAPSHOT = 5;
*/
REJECT_SNAPSHOT(5),
UNRECOGNIZED(-1),
;
/**
*
* Unknown result, abort all snapshot restoration
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* Chunk successfully accepted
*
*
* ACCEPT = 1;
*/
public static final int ACCEPT_VALUE = 1;
/**
*
* Abort all snapshot restoration
*
*
* ABORT = 2;
*/
public static final int ABORT_VALUE = 2;
/**
*
* Retry chunk (combine with refetch and reject)
*
*
* RETRY = 3;
*/
public static final int RETRY_VALUE = 3;
/**
*
* Retry snapshot (combine with refetch and reject)
*
*
* RETRY_SNAPSHOT = 4;
*/
public static final int RETRY_SNAPSHOT_VALUE = 4;
/**
*
* Reject this snapshot, try others
*
*
* REJECT_SNAPSHOT = 5;
*/
public static final int REJECT_SNAPSHOT_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Result valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Result forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return ACCEPT;
case 2: return ABORT;
case 3: return RETRY;
case 4: return RETRY_SNAPSHOT;
case 5: return REJECT_SNAPSHOT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tendermint.abci.ResponseApplySnapshotChunk.Result)
}
public static final int RESULT_FIELD_NUMBER = 1;
private int result_;
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The result.
*/
@java.lang.Override public tendermint.abci.Types.ResponseApplySnapshotChunk.Result getResult() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.ResponseApplySnapshotChunk.Result result = tendermint.abci.Types.ResponseApplySnapshotChunk.Result.valueOf(result_);
return result == null ? tendermint.abci.Types.ResponseApplySnapshotChunk.Result.UNRECOGNIZED : result;
}
public static final int REFETCH_CHUNKS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.IntList refetchChunks_;
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return A list containing the refetchChunks.
*/
@java.lang.Override
public java.util.List
getRefetchChunksList() {
return refetchChunks_;
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return The count of refetchChunks.
*/
public int getRefetchChunksCount() {
return refetchChunks_.size();
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param index The index of the element to return.
* @return The refetchChunks at the given index.
*/
public int getRefetchChunks(int index) {
return refetchChunks_.getInt(index);
}
private int refetchChunksMemoizedSerializedSize = -1;
public static final int REJECT_SENDERS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList rejectSenders_;
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return A list containing the rejectSenders.
*/
public com.google.protobuf.ProtocolStringList
getRejectSendersList() {
return rejectSenders_;
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return The count of rejectSenders.
*/
public int getRejectSendersCount() {
return rejectSenders_.size();
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the element to return.
* @return The rejectSenders at the given index.
*/
public java.lang.String getRejectSenders(int index) {
return rejectSenders_.get(index);
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the value to return.
* @return The bytes of the rejectSenders at the given index.
*/
public com.google.protobuf.ByteString
getRejectSendersBytes(int index) {
return rejectSenders_.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 {
getSerializedSize();
if (result_ != tendermint.abci.Types.ResponseApplySnapshotChunk.Result.UNKNOWN.getNumber()) {
output.writeEnum(1, result_);
}
if (getRefetchChunksList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(refetchChunksMemoizedSerializedSize);
}
for (int i = 0; i < refetchChunks_.size(); i++) {
output.writeUInt32NoTag(refetchChunks_.getInt(i));
}
for (int i = 0; i < rejectSenders_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rejectSenders_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != tendermint.abci.Types.ResponseApplySnapshotChunk.Result.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, result_);
}
{
int dataSize = 0;
for (int i = 0; i < refetchChunks_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(refetchChunks_.getInt(i));
}
size += dataSize;
if (!getRefetchChunksList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
refetchChunksMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < rejectSenders_.size(); i++) {
dataSize += computeStringSizeNoTag(rejectSenders_.getRaw(i));
}
size += dataSize;
size += 1 * getRejectSendersList().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 tendermint.abci.Types.ResponseApplySnapshotChunk)) {
return super.equals(obj);
}
tendermint.abci.Types.ResponseApplySnapshotChunk other = (tendermint.abci.Types.ResponseApplySnapshotChunk) obj;
if (result_ != other.result_) return false;
if (!getRefetchChunksList()
.equals(other.getRefetchChunksList())) return false;
if (!getRejectSendersList()
.equals(other.getRejectSendersList())) 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) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
if (getRefetchChunksCount() > 0) {
hash = (37 * hash) + REFETCH_CHUNKS_FIELD_NUMBER;
hash = (53 * hash) + getRefetchChunksList().hashCode();
}
if (getRejectSendersCount() > 0) {
hash = (37 * hash) + REJECT_SENDERS_FIELD_NUMBER;
hash = (53 * hash) + getRejectSendersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk 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 tendermint.abci.Types.ResponseApplySnapshotChunk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk 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 tendermint.abci.Types.ResponseApplySnapshotChunk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk 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(tendermint.abci.Types.ResponseApplySnapshotChunk 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 tendermint.abci.ResponseApplySnapshotChunk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ResponseApplySnapshotChunk)
tendermint.abci.Types.ResponseApplySnapshotChunkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ResponseApplySnapshotChunk.class, tendermint.abci.Types.ResponseApplySnapshotChunk.Builder.class);
}
// Construct using tendermint.abci.Types.ResponseApplySnapshotChunk.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();
result_ = 0;
refetchChunks_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ResponseApplySnapshotChunk_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk getDefaultInstanceForType() {
return tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk build() {
tendermint.abci.Types.ResponseApplySnapshotChunk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk buildPartial() {
tendermint.abci.Types.ResponseApplySnapshotChunk result = new tendermint.abci.Types.ResponseApplySnapshotChunk(this);
int from_bitField0_ = bitField0_;
result.result_ = result_;
if (((bitField0_ & 0x00000001) != 0)) {
refetchChunks_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.refetchChunks_ = refetchChunks_;
if (((bitField0_ & 0x00000002) != 0)) {
rejectSenders_ = rejectSenders_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rejectSenders_ = rejectSenders_;
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 tendermint.abci.Types.ResponseApplySnapshotChunk) {
return mergeFrom((tendermint.abci.Types.ResponseApplySnapshotChunk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ResponseApplySnapshotChunk other) {
if (other == tendermint.abci.Types.ResponseApplySnapshotChunk.getDefaultInstance()) return this;
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (!other.refetchChunks_.isEmpty()) {
if (refetchChunks_.isEmpty()) {
refetchChunks_ = other.refetchChunks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRefetchChunksIsMutable();
refetchChunks_.addAll(other.refetchChunks_);
}
onChanged();
}
if (!other.rejectSenders_.isEmpty()) {
if (rejectSenders_.isEmpty()) {
rejectSenders_ = other.rejectSenders_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRejectSendersIsMutable();
rejectSenders_.addAll(other.rejectSenders_);
}
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 {
tendermint.abci.Types.ResponseApplySnapshotChunk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ResponseApplySnapshotChunk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int result_ = 0;
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return The result.
*/
@java.lang.Override
public tendermint.abci.Types.ResponseApplySnapshotChunk.Result getResult() {
@SuppressWarnings("deprecation")
tendermint.abci.Types.ResponseApplySnapshotChunk.Result result = tendermint.abci.Types.ResponseApplySnapshotChunk.Result.valueOf(result_);
return result == null ? tendermint.abci.Types.ResponseApplySnapshotChunk.Result.UNRECOGNIZED : result;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(tendermint.abci.Types.ResponseApplySnapshotChunk.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .tendermint.abci.ResponseApplySnapshotChunk.Result result = 1;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList refetchChunks_ = emptyIntList();
private void ensureRefetchChunksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
refetchChunks_ = mutableCopy(refetchChunks_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return A list containing the refetchChunks.
*/
public java.util.List
getRefetchChunksList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(refetchChunks_) : refetchChunks_;
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return The count of refetchChunks.
*/
public int getRefetchChunksCount() {
return refetchChunks_.size();
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param index The index of the element to return.
* @return The refetchChunks at the given index.
*/
public int getRefetchChunks(int index) {
return refetchChunks_.getInt(index);
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param index The index to set the value at.
* @param value The refetchChunks to set.
* @return This builder for chaining.
*/
public Builder setRefetchChunks(
int index, int value) {
ensureRefetchChunksIsMutable();
refetchChunks_.setInt(index, value);
onChanged();
return this;
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param value The refetchChunks to add.
* @return This builder for chaining.
*/
public Builder addRefetchChunks(int value) {
ensureRefetchChunksIsMutable();
refetchChunks_.addInt(value);
onChanged();
return this;
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @param values The refetchChunks to add.
* @return This builder for chaining.
*/
public Builder addAllRefetchChunks(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRefetchChunksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, refetchChunks_);
onChanged();
return this;
}
/**
*
* Chunks to refetch and reapply
*
*
* repeated uint32 refetch_chunks = 2;
* @return This builder for chaining.
*/
public Builder clearRefetchChunks() {
refetchChunks_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRejectSendersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
rejectSenders_ = new com.google.protobuf.LazyStringArrayList(rejectSenders_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return A list containing the rejectSenders.
*/
public com.google.protobuf.ProtocolStringList
getRejectSendersList() {
return rejectSenders_.getUnmodifiableView();
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return The count of rejectSenders.
*/
public int getRejectSendersCount() {
return rejectSenders_.size();
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the element to return.
* @return The rejectSenders at the given index.
*/
public java.lang.String getRejectSenders(int index) {
return rejectSenders_.get(index);
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index of the value to return.
* @return The bytes of the rejectSenders at the given index.
*/
public com.google.protobuf.ByteString
getRejectSendersBytes(int index) {
return rejectSenders_.getByteString(index);
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param index The index to set the value at.
* @param value The rejectSenders to set.
* @return This builder for chaining.
*/
public Builder setRejectSenders(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRejectSendersIsMutable();
rejectSenders_.set(index, value);
onChanged();
return this;
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param value The rejectSenders to add.
* @return This builder for chaining.
*/
public Builder addRejectSenders(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRejectSendersIsMutable();
rejectSenders_.add(value);
onChanged();
return this;
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param values The rejectSenders to add.
* @return This builder for chaining.
*/
public Builder addAllRejectSenders(
java.lang.Iterable values) {
ensureRejectSendersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rejectSenders_);
onChanged();
return this;
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @return This builder for chaining.
*/
public Builder clearRejectSenders() {
rejectSenders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Chunk senders to reject and ban
*
*
* repeated string reject_senders = 3;
* @param value The bytes of the rejectSenders to add.
* @return This builder for chaining.
*/
public Builder addRejectSendersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRejectSendersIsMutable();
rejectSenders_.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:tendermint.abci.ResponseApplySnapshotChunk)
}
// @@protoc_insertion_point(class_scope:tendermint.abci.ResponseApplySnapshotChunk)
private static final tendermint.abci.Types.ResponseApplySnapshotChunk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.abci.Types.ResponseApplySnapshotChunk();
}
public static tendermint.abci.Types.ResponseApplySnapshotChunk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseApplySnapshotChunk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseApplySnapshotChunk(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 tendermint.abci.Types.ResponseApplySnapshotChunk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsensusParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.abci.ConsensusParams)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.abci.BlockParams block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .tendermint.abci.BlockParams block = 1;
* @return The block.
*/
tendermint.abci.Types.BlockParams getBlock();
/**
* .tendermint.abci.BlockParams block = 1;
*/
tendermint.abci.Types.BlockParamsOrBuilder getBlockOrBuilder();
/**
* .tendermint.types.EvidenceParams evidence = 2;
* @return Whether the evidence field is set.
*/
boolean hasEvidence();
/**
* .tendermint.types.EvidenceParams evidence = 2;
* @return The evidence.
*/
tendermint.types.Params.EvidenceParams getEvidence();
/**
* .tendermint.types.EvidenceParams evidence = 2;
*/
tendermint.types.Params.EvidenceParamsOrBuilder getEvidenceOrBuilder();
/**
* .tendermint.types.ValidatorParams validator = 3;
* @return Whether the validator field is set.
*/
boolean hasValidator();
/**
* .tendermint.types.ValidatorParams validator = 3;
* @return The validator.
*/
tendermint.types.Params.ValidatorParams getValidator();
/**
* .tendermint.types.ValidatorParams validator = 3;
*/
tendermint.types.Params.ValidatorParamsOrBuilder getValidatorOrBuilder();
/**
* .tendermint.types.VersionParams version = 4;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
* .tendermint.types.VersionParams version = 4;
* @return The version.
*/
tendermint.types.Params.VersionParams getVersion();
/**
* .tendermint.types.VersionParams version = 4;
*/
tendermint.types.Params.VersionParamsOrBuilder getVersionOrBuilder();
}
/**
*
* ConsensusParams contains all consensus-relevant parameters
* that can be adjusted by the abci app
*
*
* Protobuf type {@code tendermint.abci.ConsensusParams}
*/
public static final class ConsensusParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.abci.ConsensusParams)
ConsensusParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsensusParams.newBuilder() to construct.
private ConsensusParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusParams() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsensusParams();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsensusParams(
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: {
tendermint.abci.Types.BlockParams.Builder subBuilder = null;
if (block_ != null) {
subBuilder = block_.toBuilder();
}
block_ = input.readMessage(tendermint.abci.Types.BlockParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(block_);
block_ = subBuilder.buildPartial();
}
break;
}
case 18: {
tendermint.types.Params.EvidenceParams.Builder subBuilder = null;
if (evidence_ != null) {
subBuilder = evidence_.toBuilder();
}
evidence_ = input.readMessage(tendermint.types.Params.EvidenceParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(evidence_);
evidence_ = subBuilder.buildPartial();
}
break;
}
case 26: {
tendermint.types.Params.ValidatorParams.Builder subBuilder = null;
if (validator_ != null) {
subBuilder = validator_.toBuilder();
}
validator_ = input.readMessage(tendermint.types.Params.ValidatorParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(validator_);
validator_ = subBuilder.buildPartial();
}
break;
}
case 34: {
tendermint.types.Params.VersionParams.Builder subBuilder = null;
if (version_ != null) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(tendermint.types.Params.VersionParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ConsensusParams.class, tendermint.abci.Types.ConsensusParams.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private tendermint.abci.Types.BlockParams block_;
/**
* .tendermint.abci.BlockParams block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .tendermint.abci.BlockParams block = 1;
* @return The block.
*/
@java.lang.Override
public tendermint.abci.Types.BlockParams getBlock() {
return block_ == null ? tendermint.abci.Types.BlockParams.getDefaultInstance() : block_;
}
/**
* .tendermint.abci.BlockParams block = 1;
*/
@java.lang.Override
public tendermint.abci.Types.BlockParamsOrBuilder getBlockOrBuilder() {
return getBlock();
}
public static final int EVIDENCE_FIELD_NUMBER = 2;
private tendermint.types.Params.EvidenceParams evidence_;
/**
* .tendermint.types.EvidenceParams evidence = 2;
* @return Whether the evidence field is set.
*/
@java.lang.Override
public boolean hasEvidence() {
return evidence_ != null;
}
/**
* .tendermint.types.EvidenceParams evidence = 2;
* @return The evidence.
*/
@java.lang.Override
public tendermint.types.Params.EvidenceParams getEvidence() {
return evidence_ == null ? tendermint.types.Params.EvidenceParams.getDefaultInstance() : evidence_;
}
/**
* .tendermint.types.EvidenceParams evidence = 2;
*/
@java.lang.Override
public tendermint.types.Params.EvidenceParamsOrBuilder getEvidenceOrBuilder() {
return getEvidence();
}
public static final int VALIDATOR_FIELD_NUMBER = 3;
private tendermint.types.Params.ValidatorParams validator_;
/**
* .tendermint.types.ValidatorParams validator = 3;
* @return Whether the validator field is set.
*/
@java.lang.Override
public boolean hasValidator() {
return validator_ != null;
}
/**
* .tendermint.types.ValidatorParams validator = 3;
* @return The validator.
*/
@java.lang.Override
public tendermint.types.Params.ValidatorParams getValidator() {
return validator_ == null ? tendermint.types.Params.ValidatorParams.getDefaultInstance() : validator_;
}
/**
* .tendermint.types.ValidatorParams validator = 3;
*/
@java.lang.Override
public tendermint.types.Params.ValidatorParamsOrBuilder getValidatorOrBuilder() {
return getValidator();
}
public static final int VERSION_FIELD_NUMBER = 4;
private tendermint.types.Params.VersionParams version_;
/**
* .tendermint.types.VersionParams version = 4;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return version_ != null;
}
/**
* .tendermint.types.VersionParams version = 4;
* @return The version.
*/
@java.lang.Override
public tendermint.types.Params.VersionParams getVersion() {
return version_ == null ? tendermint.types.Params.VersionParams.getDefaultInstance() : version_;
}
/**
* .tendermint.types.VersionParams version = 4;
*/
@java.lang.Override
public tendermint.types.Params.VersionParamsOrBuilder getVersionOrBuilder() {
return getVersion();
}
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 (block_ != null) {
output.writeMessage(1, getBlock());
}
if (evidence_ != null) {
output.writeMessage(2, getEvidence());
}
if (validator_ != null) {
output.writeMessage(3, getValidator());
}
if (version_ != null) {
output.writeMessage(4, getVersion());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (block_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlock());
}
if (evidence_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEvidence());
}
if (validator_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValidator());
}
if (version_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getVersion());
}
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 tendermint.abci.Types.ConsensusParams)) {
return super.equals(obj);
}
tendermint.abci.Types.ConsensusParams other = (tendermint.abci.Types.ConsensusParams) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) return false;
}
if (hasEvidence() != other.hasEvidence()) return false;
if (hasEvidence()) {
if (!getEvidence()
.equals(other.getEvidence())) return false;
}
if (hasValidator() != other.hasValidator()) return false;
if (hasValidator()) {
if (!getValidator()
.equals(other.getValidator())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) 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 (hasBlock()) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlock().hashCode();
}
if (hasEvidence()) {
hash = (37 * hash) + EVIDENCE_FIELD_NUMBER;
hash = (53 * hash) + getEvidence().hashCode();
}
if (hasValidator()) {
hash = (37 * hash) + VALIDATOR_FIELD_NUMBER;
hash = (53 * hash) + getValidator().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.abci.Types.ConsensusParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.abci.Types.ConsensusParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ConsensusParams 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 tendermint.abci.Types.ConsensusParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ConsensusParams 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 tendermint.abci.Types.ConsensusParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.abci.Types.ConsensusParams 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(tendermint.abci.Types.ConsensusParams 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;
}
/**
*
* ConsensusParams contains all consensus-relevant parameters
* that can be adjusted by the abci app
*
*
* Protobuf type {@code tendermint.abci.ConsensusParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.abci.ConsensusParams)
tendermint.abci.Types.ConsensusParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.abci.Types.ConsensusParams.class, tendermint.abci.Types.ConsensusParams.Builder.class);
}
// Construct using tendermint.abci.Types.ConsensusParams.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 (blockBuilder_ == null) {
block_ = null;
} else {
block_ = null;
blockBuilder_ = null;
}
if (evidenceBuilder_ == null) {
evidence_ = null;
} else {
evidence_ = null;
evidenceBuilder_ = null;
}
if (validatorBuilder_ == null) {
validator_ = null;
} else {
validator_ = null;
validatorBuilder_ = null;
}
if (versionBuilder_ == null) {
version_ = null;
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.abci.Types.internal_static_tendermint_abci_ConsensusParams_descriptor;
}
@java.lang.Override
public tendermint.abci.Types.ConsensusParams getDefaultInstanceForType() {
return tendermint.abci.Types.ConsensusParams.getDefaultInstance();
}
@java.lang.Override
public tendermint.abci.Types.ConsensusParams build() {
tendermint.abci.Types.ConsensusParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.abci.Types.ConsensusParams buildPartial() {
tendermint.abci.Types.ConsensusParams result = new tendermint.abci.Types.ConsensusParams(this);
if (blockBuilder_ == null) {
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
if (evidenceBuilder_ == null) {
result.evidence_ = evidence_;
} else {
result.evidence_ = evidenceBuilder_.build();
}
if (validatorBuilder_ == null) {
result.validator_ = validator_;
} else {
result.validator_ = validatorBuilder_.build();
}
if (versionBuilder_ == null) {
result.version_ = version_;
} else {
result.version_ = versionBuilder_.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 tendermint.abci.Types.ConsensusParams) {
return mergeFrom((tendermint.abci.Types.ConsensusParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.abci.Types.ConsensusParams other) {
if (other == tendermint.abci.Types.ConsensusParams.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
if (other.hasEvidence()) {
mergeEvidence(other.getEvidence());
}
if (other.hasValidator()) {
mergeValidator(other.getValidator());
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
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 {
tendermint.abci.Types.ConsensusParams parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.abci.Types.ConsensusParams) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tendermint.abci.Types.BlockParams block_;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.abci.Types.BlockParams, tendermint.abci.Types.BlockParams.Builder, tendermint.abci.Types.BlockParamsOrBuilder> blockBuilder_;
/**
*